2 # From configure.in Revision: 1.477 .
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 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2482 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2487 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2489 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2491 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2492 && test -z "${cf_tst_cflags}" \
2493 && cf_fix_cppflags=no
2498 if test -n "$cf_new_cflags" ; then
2500 CFLAGS="$CFLAGS $cf_new_cflags"
2503 if test -n "$cf_new_cppflags" ; then
2505 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2508 if test -n "$cf_new_extra_cppflags" ; then
2510 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2513 cat >conftest.$ac_ext <<_ACEOF
2514 #line 2514 "configure"
2515 #include "confdefs.h"
2517 #ifndef CC_HAS_PROTOS
2518 #if !defined(__STDC__) || (__STDC__ != 1)
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2534 rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:2535: \"$ac_compile\"") >&5
2536 (eval $ac_compile) 2>&5
2538 echo "$as_me:2538: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:2541: \"$ac_try\"") >&5
2544 echo "$as_me:2544: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 cf_cv_ansi_cc="$cf_arg"; break
2548 echo "$as_me: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2553 CFLAGS="$cf_save_CFLAGS"
2554 CPPFLAGS="$cf_save_CPPFLAGS"
2557 echo "$as_me:2557: result: $cf_cv_ansi_cc" >&5
2558 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2560 if test "$cf_cv_ansi_cc" != "no"; then
2561 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2566 cf_new_extra_cppflags=
2568 for cf_add_cflags in $cf_cv_ansi_cc
2570 case $cf_fix_cppflags in
2572 case $cf_add_cflags in #(vi
2573 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2574 case $cf_add_cflags in
2576 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2578 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2579 && test -z "${cf_tst_cflags}" \
2580 && cf_fix_cppflags=yes
2582 if test $cf_fix_cppflags = yes ; then
2583 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2585 elif test "${cf_tst_cflags}" = "\"'" ; then
2586 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2592 *$cf_add_cflags) #(vi
2595 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2600 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2605 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2607 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2609 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2610 && test -z "${cf_tst_cflags}" \
2611 && cf_fix_cppflags=no
2616 if test -n "$cf_new_cflags" ; then
2618 CFLAGS="$CFLAGS $cf_new_cflags"
2621 if test -n "$cf_new_cppflags" ; then
2623 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2626 if test -n "$cf_new_extra_cppflags" ; then
2628 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2632 cat >>confdefs.h <<\EOF
2633 #define CC_HAS_PROTOS 1
2639 if test "$cf_cv_ansi_cc" = "no"; then
2640 { { echo "$as_me:2640: error: Your compiler does not appear to recognize prototypes.
2641 You have the following choices:
2642 a. adjust your compiler options
2643 b. get an up-to-date compiler
2644 c. use a wrapper such as unproto" >&5
2645 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2646 You have the following choices:
2647 a. adjust your compiler options
2648 b. get an up-to-date compiler
2649 c. use a wrapper such as unproto" >&2;}
2650 { (exit 1); exit 1; }; }
2653 case $cf_cv_system_name in
2655 CFLAGS="$CFLAGS -Zmt"
2656 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2657 CXXFLAGS="$CXXFLAGS -Zmt"
2658 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2659 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2666 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2667 #define PROG_EXT "$PROG_EXT"
2670 if test "$cross_compiling" = yes ; then
2673 case "$cf_cv_system_name" in #(vi
2674 dragonfly*|freebsd*) #(vi
2675 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2677 *) LDPATH=$PATH:/sbin:/usr/sbin
2678 # Extract the first word of "ldconfig", so it can be a program name with args.
2679 set dummy ldconfig; ac_word=$2
2680 echo "$as_me:2680: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2690 ac_save_IFS=$IFS; IFS=$ac_path_separator
2692 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 if $as_executable_p "$ac_dir/$ac_word"; then
2696 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2697 echo "$as_me:2697: found $ac_dir/$ac_word" >&5
2705 LDCONFIG=$ac_cv_path_LDCONFIG
2707 if test -n "$LDCONFIG"; then
2708 echo "$as_me:2708: result: $LDCONFIG" >&5
2709 echo "${ECHO_T}$LDCONFIG" >&6
2711 echo "$as_me:2711: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2719 echo "$as_me:2719: checking if you want to ensure bool is consistent with C++" >&5
2720 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2722 # Check whether --with-cxx or --without-cxx was given.
2723 if test "${with_cxx+set}" = set; then
2725 cf_with_cxx=$withval
2729 echo "$as_me:2729: result: $cf_with_cxx" >&5
2730 echo "${ECHO_T}$cf_with_cxx" >&6
2731 if test "X$cf_with_cxx" = Xno ; then
2735 # with autoconf 2.13, we can change the error to a warning:
2737 ac_cpp='$CXXCPP $CPPFLAGS'
2738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2741 ac_main_return=return
2742 if test -n "$ac_tool_prefix"; then
2743 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2747 echo "$as_me:2747: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749 if test "${ac_cv_prog_CXX+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 if test -n "$CXX"; then
2753 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2755 ac_save_IFS=$IFS; IFS=$ac_path_separator
2757 for ac_dir in $ac_dummy; do
2759 test -z "$ac_dir" && ac_dir=.
2760 $as_executable_p "$ac_dir/$ac_word" || continue
2761 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2762 echo "$as_me:2762: found $ac_dir/$ac_word" >&5
2769 if test -n "$CXX"; then
2770 echo "$as_me:2770: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2773 echo "$as_me:2773: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 test -n "$CXX" && break
2780 if test -z "$CXX"; then
2782 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2784 # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 echo "$as_me:2786: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2788 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 if test -n "$ac_ct_CXX"; then
2792 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2794 ac_save_IFS=$IFS; IFS=$ac_path_separator
2796 for ac_dir in $ac_dummy; do
2798 test -z "$ac_dir" && ac_dir=.
2799 $as_executable_p "$ac_dir/$ac_word" || continue
2800 ac_cv_prog_ac_ct_CXX="$ac_prog"
2801 echo "$as_me:2801: found $ac_dir/$ac_word" >&5
2807 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2808 if test -n "$ac_ct_CXX"; then
2809 echo "$as_me:2809: result: $ac_ct_CXX" >&5
2810 echo "${ECHO_T}$ac_ct_CXX" >&6
2812 echo "$as_me:2812: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2816 test -n "$ac_ct_CXX" && break
2818 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2823 # Provide some information about the compiler.
2824 echo "$as_me:2824:" \
2825 "checking for C++ compiler version" >&5
2826 ac_compiler=`set X $ac_compile; echo $2`
2827 { (eval echo "$as_me:2827: \"$ac_compiler --version </dev/null >&5\"") >&5
2828 (eval $ac_compiler --version </dev/null >&5) 2>&5
2830 echo "$as_me:2830: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832 { (eval echo "$as_me:2832: \"$ac_compiler -v </dev/null >&5\"") >&5
2833 (eval $ac_compiler -v </dev/null >&5) 2>&5
2835 echo "$as_me:2835: \$? = $ac_status" >&5
2836 (exit $ac_status); }
2837 { (eval echo "$as_me:2837: \"$ac_compiler -V </dev/null >&5\"") >&5
2838 (eval $ac_compiler -V </dev/null >&5) 2>&5
2840 echo "$as_me:2840: \$? = $ac_status" >&5
2841 (exit $ac_status); }
2843 echo "$as_me:2843: checking whether we are using the GNU C++ compiler" >&5
2844 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2845 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line 2849 "configure"
2850 #include "confdefs.h"
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2885 echo "$as_me:2885: result: $ac_cv_cxx_compiler_gnu" >&5
2886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2887 GXX=`test $ac_compiler_gnu = yes && echo yes`
2888 ac_test_CXXFLAGS=${CXXFLAGS+set}
2889 ac_save_CXXFLAGS=$CXXFLAGS
2891 echo "$as_me:2891: checking whether $CXX accepts -g" >&5
2892 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2893 if test "${ac_cv_prog_cxx_g+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 cat >conftest.$ac_ext <<_ACEOF
2897 #line 2897 "configure"
2898 #include "confdefs.h"
2908 rm -f conftest.$ac_objext
2909 if { (eval echo "$as_me:2909: \"$ac_compile\"") >&5
2910 (eval $ac_compile) 2>&5
2912 echo "$as_me:2912: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:2915: \"$ac_try\"") >&5
2918 echo "$as_me:2918: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 ac_cv_prog_cxx_g=yes
2922 echo "$as_me: failed program was:" >&5
2923 cat conftest.$ac_ext >&5
2926 rm -f conftest.$ac_objext conftest.$ac_ext
2928 echo "$as_me:2928: result: $ac_cv_prog_cxx_g" >&5
2929 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2930 if test "$ac_test_CXXFLAGS" = set; then
2931 CXXFLAGS=$ac_save_CXXFLAGS
2932 elif test $ac_cv_prog_cxx_g = yes; then
2933 if test "$GXX" = yes; then
2939 if test "$GXX" = yes; then
2945 for ac_declaration in \
2947 '#include <stdlib.h>' \
2948 'extern "C" void std::exit (int) throw (); using std::exit;' \
2949 'extern "C" void std::exit (int); using std::exit;' \
2950 'extern "C" void exit (int) throw ();' \
2951 'extern "C" void exit (int);' \
2954 cat >conftest.$ac_ext <<_ACEOF
2955 #line 2955 "configure"
2956 #include "confdefs.h"
2967 rm -f conftest.$ac_objext
2968 if { (eval echo "$as_me:2968: \"$ac_compile\"") >&5
2969 (eval $ac_compile) 2>&5
2971 echo "$as_me:2971: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (eval echo "$as_me:2974: \"$ac_try\"") >&5
2977 echo "$as_me:2977: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2981 echo "$as_me: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2985 rm -f conftest.$ac_objext conftest.$ac_ext
2986 cat >conftest.$ac_ext <<_ACEOF
2987 #line 2987 "configure"
2988 #include "confdefs.h"
2998 rm -f conftest.$ac_objext
2999 if { (eval echo "$as_me:2999: \"$ac_compile\"") >&5
3000 (eval $ac_compile) 2>&5
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -s conftest.$ac_objext'
3005 { (eval echo "$as_me:3005: \"$ac_try\"") >&5
3008 echo "$as_me:3008: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3012 echo "$as_me: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3015 rm -f conftest.$ac_objext conftest.$ac_ext
3018 if test -n "$ac_declaration"; then
3019 echo '#ifdef __cplusplus' >>confdefs.h
3020 echo $ac_declaration >>confdefs.h
3021 echo '#endif' >>confdefs.h
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 ac_main_return=return
3031 # autoconf 2.5x removed the error - by hardcoding it to g++.
3032 if test "$CXX" = "g++" ; then
3033 # Extract the first word of "g++", so it can be a program name with args.
3034 set dummy g++; ac_word=$2
3035 echo "$as_me:3035: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_path_CXX+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3045 ac_save_IFS=$IFS; IFS=$ac_path_separator
3047 for ac_dir in $ac_dummy; do
3049 test -z "$ac_dir" && ac_dir=.
3050 if $as_executable_p "$ac_dir/$ac_word"; then
3051 ac_cv_path_CXX="$ac_dir/$ac_word"
3052 echo "$as_me:3052: found $ac_dir/$ac_word" >&5
3062 if test -n "$CXX"; then
3063 echo "$as_me:3063: result: $CXX" >&5
3064 echo "${ECHO_T}$CXX" >&6
3066 echo "$as_me:3066: result: no" >&5
3067 echo "${ECHO_T}no" >&6
3071 if test "$CXX" = "g++" ; then
3072 { echo "$as_me:3072: WARNING: ignoring hardcoded g++" >&5
3073 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3074 cf_with_cxx=no; CXX=""; GXX="";
3079 if test "$GXX" = yes; then
3080 echo "$as_me:3080: checking version of g++" >&5
3081 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3082 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3083 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3084 echo "$as_me:3084: result: $GXX_VERSION" >&5
3085 echo "${ECHO_T}$GXX_VERSION" >&6
3088 case $GXX_VERSION in
3090 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3092 { echo "$as_me:3092: WARNING: templates do not work" >&5
3093 echo "$as_me: WARNING: templates do not work" >&2;}
3097 echo "$as_me:3097: checking if you want to build C++ binding and demo" >&5
3098 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3100 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3101 if test "${with_cxx_binding+set}" = set; then
3102 withval="$with_cxx_binding"
3103 cf_with_cxx_binding=$withval
3105 cf_with_cxx_binding=$cf_with_cxx
3107 echo "$as_me:3107: result: $cf_with_cxx_binding" >&5
3108 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3110 echo "$as_me:3110: checking if you want to build with Ada95" >&5
3111 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3113 # Check whether --with-ada or --without-ada was given.
3114 if test "${with_ada+set}" = set; then
3116 cf_with_ada=$withval
3120 echo "$as_me:3120: result: $cf_with_ada" >&5
3121 echo "${ECHO_T}$cf_with_ada" >&6
3123 echo "$as_me:3123: checking if you want to install manpages" >&5
3124 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3126 # Check whether --with-manpages or --without-manpages was given.
3127 if test "${with_manpages+set}" = set; then
3128 withval="$with_manpages"
3129 cf_with_manpages=$withval
3131 cf_with_manpages=yes
3133 echo "$as_me:3133: result: $cf_with_manpages" >&5
3134 echo "${ECHO_T}$cf_with_manpages" >&6
3136 echo "$as_me:3136: checking if you want to build programs such as tic" >&5
3137 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3139 # Check whether --with-progs or --without-progs was given.
3140 if test "${with_progs+set}" = set; then
3141 withval="$with_progs"
3142 cf_with_progs=$withval
3146 echo "$as_me:3146: result: $cf_with_progs" >&5
3147 echo "${ECHO_T}$cf_with_progs" >&6
3149 echo "$as_me:3149: checking if you wish to install curses.h" >&5
3150 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3152 # Check whether --with-curses-h or --without-curses-h was given.
3153 if test "${with_curses_h+set}" = set; then
3154 withval="$with_curses_h"
3155 with_curses_h=$withval
3159 echo "$as_me:3159: result: $with_curses_h" >&5
3160 echo "${ECHO_T}$with_curses_h" >&6
3162 modules_to_build="ncurses"
3163 if test "X$cf_with_progs" != Xno ; then
3164 modules_to_build="$modules_to_build progs tack"
3166 modules_to_build="$modules_to_build panel menu form"
3168 test "$program_prefix" != NONE &&
3169 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3170 # Use a double $ so make ignores it.
3171 test "$program_suffix" != NONE &&
3172 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3173 # Double any \ or $. echo might interpret backslashes.
3174 # By default was `s,x,x', remove it if useless.
3175 cat <<\_ACEOF >conftest.sed
3176 s/[\\$]/&&/g;s/;s,x,x,$//
3178 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3181 for ac_prog in mawk gawk nawk awk
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184 set dummy $ac_prog; ac_word=$2
3185 echo "$as_me:3185: checking for $ac_word" >&5
3186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187 if test "${ac_cv_prog_AWK+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 if test -n "$AWK"; then
3191 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3193 ac_save_IFS=$IFS; IFS=$ac_path_separator
3195 for ac_dir in $ac_dummy; do
3197 test -z "$ac_dir" && ac_dir=.
3198 $as_executable_p "$ac_dir/$ac_word" || continue
3199 ac_cv_prog_AWK="$ac_prog"
3200 echo "$as_me:3200: found $ac_dir/$ac_word" >&5
3207 if test -n "$AWK"; then
3208 echo "$as_me:3208: result: $AWK" >&5
3209 echo "${ECHO_T}$AWK" >&6
3211 echo "$as_me:3211: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3215 test -n "$AWK" && break
3218 test -z "$AWK" && { { echo "$as_me:3218: error: No awk program found" >&5
3219 echo "$as_me: error: No awk program found" >&2;}
3220 { (exit 1); exit 1; }; }
3222 echo "$as_me:3222: checking for egrep" >&5
3223 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3224 if test "${ac_cv_prog_egrep+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3228 then ac_cv_prog_egrep='grep -E'
3229 else ac_cv_prog_egrep='egrep'
3232 echo "$as_me:3232: result: $ac_cv_prog_egrep" >&5
3233 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3234 EGREP=$ac_cv_prog_egrep
3236 test -z "$EGREP" && { { echo "$as_me:3236: error: No egrep program found" >&5
3237 echo "$as_me: error: No egrep program found" >&2;}
3238 { (exit 1); exit 1; }; }
3240 # Find a good install program. We prefer a C program (faster),
3241 # so one script is as good as another. But avoid the broken or
3242 # incompatible versions:
3243 # SysV /etc/install, /usr/sbin/install
3244 # SunOS /usr/etc/install
3245 # IRIX /sbin/install
3247 # AmigaOS /C/install, which installs bootblocks on floppy discs
3248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3251 # ./install, which can be erroneously created by make from ./install.sh.
3252 echo "$as_me:3252: checking for a BSD compatible install" >&5
3253 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3254 if test -z "$INSTALL"; then
3255 if test "${ac_cv_path_install+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 ac_save_IFS=$IFS; IFS=$ac_path_separator
3259 for ac_dir in $PATH; do
3261 # Account for people who put trailing slashes in PATH elements.
3263 / | ./ | .// | /cC/* \
3264 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3267 # OSF1 and SCO ODT 3.0 have their own names for install.
3268 # Don't use installbsd from OSF since it installs stuff as root
3270 for ac_prog in ginstall scoinst install; do
3271 if $as_executable_p "$ac_dir/$ac_prog"; then
3272 if test $ac_prog = install &&
3273 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3274 # AIX install. It has an incompatible calling convention.
3276 elif test $ac_prog = install &&
3277 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3278 # program-specific install script used by HP pwplus--don't use.
3281 ac_cv_path_install="$ac_dir/$ac_prog -c"
3291 if test "${ac_cv_path_install+set}" = set; then
3292 INSTALL=$ac_cv_path_install
3294 # As a last resort, use the slow shell script. We don't cache a
3295 # path for INSTALL within a source directory, because that will
3296 # break other packages using the cache if that directory is
3297 # removed, or if the path is relative.
3298 INSTALL=$ac_install_sh
3301 echo "$as_me:3301: result: $INSTALL" >&5
3302 echo "${ECHO_T}$INSTALL" >&6
3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305 # It thinks the first close brace ends the variable substitution.
3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3316 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3317 test -z "$cf_dir" && cf_dir=.
3318 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3322 for ac_prog in tdlint lint alint splint lclint
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 echo "$as_me:3326: checking for $ac_word" >&5
3327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328 if test "${ac_cv_prog_LINT+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 if test -n "$LINT"; then
3332 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3334 ac_save_IFS=$IFS; IFS=$ac_path_separator
3336 for ac_dir in $ac_dummy; do
3338 test -z "$ac_dir" && ac_dir=.
3339 $as_executable_p "$ac_dir/$ac_word" || continue
3340 ac_cv_prog_LINT="$ac_prog"
3341 echo "$as_me:3341: found $ac_dir/$ac_word" >&5
3347 LINT=$ac_cv_prog_LINT
3348 if test -n "$LINT"; then
3349 echo "$as_me:3349: result: $LINT" >&5
3350 echo "${ECHO_T}$LINT" >&6
3352 echo "$as_me:3352: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 test -n "$LINT" && break
3359 echo "$as_me:3359: checking whether ln -s works" >&5
3360 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3362 if test "$LN_S" = "ln -s"; then
3363 echo "$as_me:3363: result: yes" >&5
3364 echo "${ECHO_T}yes" >&6
3366 echo "$as_me:3366: result: no, using $LN_S" >&5
3367 echo "${ECHO_T}no, using $LN_S" >&6
3370 echo "$as_me:3370: checking for long file names" >&5
3371 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3372 if test "${ac_cv_sys_long_file_names+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 ac_cv_sys_long_file_names=yes
3376 # Test for long file names in all the places we know might matter:
3377 # . the current directory, where building will happen
3378 # $prefix/lib where we will be installing things
3379 # $exec_prefix/lib likewise
3380 # eval it to expand exec_prefix.
3381 # $TMPDIR if set, where it might want to write temporary files
3382 # if $TMPDIR is not set:
3383 # /tmp where it might want to write temporary files
3386 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3389 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3391 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3392 test -d $ac_dir || continue
3393 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3394 ac_xdir=$ac_dir/cf$$
3395 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3396 ac_tf1=$ac_xdir/conftest9012345
3397 ac_tf2=$ac_xdir/conftest9012346
3398 (echo 1 >$ac_tf1) 2>/dev/null
3399 (echo 2 >$ac_tf2) 2>/dev/null
3400 ac_val=`cat $ac_tf1 2>/dev/null`
3401 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3402 ac_cv_sys_long_file_names=no
3403 rm -rf $ac_xdir 2>/dev/null
3406 rm -rf $ac_xdir 2>/dev/null
3409 echo "$as_me:3409: result: $ac_cv_sys_long_file_names" >&5
3410 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3411 if test $ac_cv_sys_long_file_names = yes; then
3413 cat >>confdefs.h <<\EOF
3414 #define HAVE_LONG_FILE_NAMES 1
3419 # if we find pkg-config, check if we should install the ".pc" files.
3421 echo "$as_me:3421: checking if you want to use pkg-config" >&5
3422 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3424 # Check whether --with-pkg-config or --without-pkg-config was given.
3425 if test "${with_pkg_config+set}" = set; then
3426 withval="$with_pkg_config"
3427 cf_pkg_config=$withval
3431 echo "$as_me:3431: result: $cf_pkg_config" >&5
3432 echo "${ECHO_T}$cf_pkg_config" >&6
3434 case $cf_pkg_config in #(vi
3439 # Extract the first word of "pkg-config", so it can be a program name with args.
3440 set dummy pkg-config; ac_word=$2
3441 echo "$as_me:3441: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3451 ac_save_IFS=$IFS; IFS=$ac_path_separator
3453 for ac_dir in $ac_dummy; do
3455 test -z "$ac_dir" && ac_dir=.
3456 if $as_executable_p "$ac_dir/$ac_word"; then
3457 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3458 echo "$as_me:3458: found $ac_dir/$ac_word" >&5
3463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3469 if test -n "$PKG_CONFIG"; then
3470 echo "$as_me:3470: result: $PKG_CONFIG" >&5
3471 echo "${ECHO_T}$PKG_CONFIG" >&6
3473 echo "$as_me:3473: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3483 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3484 if test "$PKG_CONFIG" != none ; then
3486 if test "x$prefix" != xNONE; then
3487 cf_path_syntax="$prefix"
3489 cf_path_syntax="$ac_default_prefix"
3492 case ".$PKG_CONFIG" in #(vi
3493 .\$\(*\)*|.\'*\'*) #(vi
3497 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3500 eval PKG_CONFIG="$PKG_CONFIG"
3501 case ".$PKG_CONFIG" in #(vi
3503 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3508 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3511 { { echo "$as_me:3511: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3512 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3513 { (exit 1); exit 1; }; }
3519 if test "$PKG_CONFIG" != no ; then
3520 echo "$as_me:3520: checking if we should install .pc files for $PKG_CONFIG" >&5
3521 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3523 # Leave this as something that can be overridden in the environment.
3524 if test -z "$PKG_CONFIG_LIBDIR" ; then
3525 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3527 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3528 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3530 # Check whether --enable-pc-files or --disable-pc-files was given.
3531 if test "${enable_pc_files+set}" = set; then
3532 enableval="$enable_pc_files"
3533 enable_pc_files=$enableval
3537 echo "$as_me:3537: result: $enable_pc_files" >&5
3538 echo "${ECHO_T}$enable_pc_files" >&6
3540 echo "$as_me:3540: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 { echo "$as_me:3542: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3543 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3548 echo "$as_me:3548: checking if we should assume mixed-case filenames" >&5
3549 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3551 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3552 if test "${enable_mixed_case+set}" = set; then
3553 enableval="$enable_mixed_case"
3554 enable_mixedcase=$enableval
3556 enable_mixedcase=auto
3558 echo "$as_me:3558: result: $enable_mixedcase" >&5
3559 echo "${ECHO_T}$enable_mixedcase" >&6
3560 if test "$enable_mixedcase" = "auto" ; then
3562 echo "$as_me:3562: checking if filesystem supports mixed-case filenames" >&5
3563 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3564 if test "${cf_cv_mixedcase+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 if test "$cross_compiling" = yes ; then
3569 case $target_alias in #(vi
3570 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3578 rm -f conftest CONFTEST
3580 if test -f CONFTEST ; then
3585 rm -f conftest CONFTEST
3589 echo "$as_me:3589: result: $cf_cv_mixedcase" >&5
3590 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3591 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3592 #define MIXEDCASE_FILENAMES 1
3596 cf_cv_mixedcase=$enable_mixedcase
3597 if test "$enable_mixedcase" = "yes" ; then
3598 cat >>confdefs.h <<\EOF
3599 #define MIXEDCASE_FILENAMES 1
3605 # do this after mixed-case option (tags/TAGS is not as important as tic).
3606 echo "$as_me:3606: checking whether ${MAKE-make} sets \${MAKE}" >&5
3607 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3608 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3609 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 cat >conftest.make <<\EOF
3614 @echo 'ac_maketemp="${MAKE}"'
3616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3617 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3618 if test -n "$ac_maketemp"; then
3619 eval ac_cv_prog_make_${ac_make}_set=yes
3621 eval ac_cv_prog_make_${ac_make}_set=no
3625 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3626 echo "$as_me:3626: result: yes" >&5
3627 echo "${ECHO_T}yes" >&6
3630 echo "$as_me:3630: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3632 SET_MAKE="MAKE=${MAKE-make}"
3635 # Extract the first word of "ctags", so it can be a program name with args.
3636 set dummy ctags; ac_word=$2
3637 echo "$as_me:3637: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test -n "$MAKE_LOWER_TAGS"; then
3643 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3645 ac_save_IFS=$IFS; IFS=$ac_path_separator
3647 for ac_dir in $ac_dummy; do
3649 test -z "$ac_dir" && ac_dir=.
3650 $as_executable_p "$ac_dir/$ac_word" || continue
3651 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3652 echo "$as_me:3652: found $ac_dir/$ac_word" >&5
3656 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3659 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3660 if test -n "$MAKE_LOWER_TAGS"; then
3661 echo "$as_me:3661: result: $MAKE_LOWER_TAGS" >&5
3662 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3664 echo "$as_me:3664: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 if test "$cf_cv_mixedcase" = yes ; then
3669 # Extract the first word of "etags", so it can be a program name with args.
3670 set dummy etags; ac_word=$2
3671 echo "$as_me:3671: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if test -n "$MAKE_UPPER_TAGS"; then
3677 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3679 ac_save_IFS=$IFS; IFS=$ac_path_separator
3681 for ac_dir in $ac_dummy; do
3683 test -z "$ac_dir" && ac_dir=.
3684 $as_executable_p "$ac_dir/$ac_word" || continue
3685 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3686 echo "$as_me:3686: found $ac_dir/$ac_word" >&5
3690 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3693 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3694 if test -n "$MAKE_UPPER_TAGS"; then
3695 echo "$as_me:3695: result: $MAKE_UPPER_TAGS" >&5
3696 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3698 echo "$as_me:3698: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3706 if test "$MAKE_UPPER_TAGS" = yes ; then
3712 if test "$MAKE_LOWER_TAGS" = yes ; then
3718 echo "$as_me:3718: checking for makeflags variable" >&5
3719 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3720 if test "${cf_cv_makeflags+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3727 cat >cf_makeflags.tmp <<CF_EOF
3730 @ echo '.$cf_option'
3732 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3733 case "$cf_result" in
3735 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3736 case "$cf_result" in
3737 .*CC=*) cf_cv_makeflags=
3739 *) cf_cv_makeflags=$cf_option
3745 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3749 rm -f cf_makeflags.tmp
3752 echo "$as_me:3752: result: $cf_cv_makeflags" >&5
3753 echo "${ECHO_T}$cf_cv_makeflags" >&6
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3758 echo "$as_me:3758: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760 if test "${ac_cv_prog_RANLIB+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 if test -n "$RANLIB"; then
3764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3766 ac_save_IFS=$IFS; IFS=$ac_path_separator
3768 for ac_dir in $ac_dummy; do
3770 test -z "$ac_dir" && ac_dir=.
3771 $as_executable_p "$ac_dir/$ac_word" || continue
3772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3773 echo "$as_me:3773: found $ac_dir/$ac_word" >&5
3779 RANLIB=$ac_cv_prog_RANLIB
3780 if test -n "$RANLIB"; then
3781 echo "$as_me:3781: result: $RANLIB" >&5
3782 echo "${ECHO_T}$RANLIB" >&6
3784 echo "$as_me:3784: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3789 if test -z "$ac_cv_prog_RANLIB"; then
3790 ac_ct_RANLIB=$RANLIB
3791 # Extract the first word of "ranlib", so it can be a program name with args.
3792 set dummy ranlib; ac_word=$2
3793 echo "$as_me:3793: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 if test -n "$ac_ct_RANLIB"; then
3799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3801 ac_save_IFS=$IFS; IFS=$ac_path_separator
3803 for ac_dir in $ac_dummy; do
3805 test -z "$ac_dir" && ac_dir=.
3806 $as_executable_p "$ac_dir/$ac_word" || continue
3807 ac_cv_prog_ac_ct_RANLIB="ranlib"
3808 echo "$as_me:3808: found $ac_dir/$ac_word" >&5
3812 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3816 if test -n "$ac_ct_RANLIB"; then
3817 echo "$as_me:3817: result: $ac_ct_RANLIB" >&5
3818 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3820 echo "$as_me:3820: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3824 RANLIB=$ac_ct_RANLIB
3826 RANLIB="$ac_cv_prog_RANLIB"
3829 if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3831 set dummy ${ac_tool_prefix}ld; ac_word=$2
3832 echo "$as_me:3832: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_prog_LD+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 if test -n "$LD"; then
3838 ac_cv_prog_LD="$LD" # Let the user override the test.
3840 ac_save_IFS=$IFS; IFS=$ac_path_separator
3842 for ac_dir in $ac_dummy; do
3844 test -z "$ac_dir" && ac_dir=.
3845 $as_executable_p "$ac_dir/$ac_word" || continue
3846 ac_cv_prog_LD="${ac_tool_prefix}ld"
3847 echo "$as_me:3847: found $ac_dir/$ac_word" >&5
3854 if test -n "$LD"; then
3855 echo "$as_me:3855: result: $LD" >&5
3856 echo "${ECHO_T}$LD" >&6
3858 echo "$as_me:3858: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3863 if test -z "$ac_cv_prog_LD"; then
3865 # Extract the first word of "ld", so it can be a program name with args.
3866 set dummy ld; ac_word=$2
3867 echo "$as_me:3867: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 if test -n "$ac_ct_LD"; then
3873 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3875 ac_save_IFS=$IFS; IFS=$ac_path_separator
3877 for ac_dir in $ac_dummy; do
3879 test -z "$ac_dir" && ac_dir=.
3880 $as_executable_p "$ac_dir/$ac_word" || continue
3881 ac_cv_prog_ac_ct_LD="ld"
3882 echo "$as_me:3882: found $ac_dir/$ac_word" >&5
3886 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3889 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3890 if test -n "$ac_ct_LD"; then
3891 echo "$as_me:3891: result: $ac_ct_LD" >&5
3892 echo "${ECHO_T}$ac_ct_LD" >&6
3894 echo "$as_me:3894: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}ar; ac_word=$2
3906 echo "$as_me:3906: checking for $ac_word" >&5
3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908 if test "${ac_cv_prog_AR+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 if test -n "$AR"; then
3912 ac_cv_prog_AR="$AR" # Let the user override the test.
3914 ac_save_IFS=$IFS; IFS=$ac_path_separator
3916 for ac_dir in $ac_dummy; do
3918 test -z "$ac_dir" && ac_dir=.
3919 $as_executable_p "$ac_dir/$ac_word" || continue
3920 ac_cv_prog_AR="${ac_tool_prefix}ar"
3921 echo "$as_me:3921: found $ac_dir/$ac_word" >&5
3928 if test -n "$AR"; then
3929 echo "$as_me:3929: result: $AR" >&5
3930 echo "${ECHO_T}$AR" >&6
3932 echo "$as_me:3932: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3937 if test -z "$ac_cv_prog_AR"; then
3939 # Extract the first word of "ar", so it can be a program name with args.
3940 set dummy ar; ac_word=$2
3941 echo "$as_me:3941: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 if test -n "$ac_ct_AR"; then
3947 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3949 ac_save_IFS=$IFS; IFS=$ac_path_separator
3951 for ac_dir in $ac_dummy; do
3953 test -z "$ac_dir" && ac_dir=.
3954 $as_executable_p "$ac_dir/$ac_word" || continue
3955 ac_cv_prog_ac_ct_AR="ar"
3956 echo "$as_me:3956: found $ac_dir/$ac_word" >&5
3960 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3963 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3964 if test -n "$ac_ct_AR"; then
3965 echo "$as_me:3965: result: $ac_ct_AR" >&5
3966 echo "${ECHO_T}$ac_ct_AR" >&6
3968 echo "$as_me:3968: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}ar; ac_word=$2
3980 echo "$as_me:3980: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_AR+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 if test -n "$AR"; then
3986 ac_cv_prog_AR="$AR" # Let the user override the test.
3988 ac_save_IFS=$IFS; IFS=$ac_path_separator
3990 for ac_dir in $ac_dummy; do
3992 test -z "$ac_dir" && ac_dir=.
3993 $as_executable_p "$ac_dir/$ac_word" || continue
3994 ac_cv_prog_AR="${ac_tool_prefix}ar"
3995 echo "$as_me:3995: found $ac_dir/$ac_word" >&5
4002 if test -n "$AR"; then
4003 echo "$as_me:4003: result: $AR" >&5
4004 echo "${ECHO_T}$AR" >&6
4006 echo "$as_me:4006: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4011 if test -z "$ac_cv_prog_AR"; then
4013 # Extract the first word of "ar", so it can be a program name with args.
4014 set dummy ar; ac_word=$2
4015 echo "$as_me:4015: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 if test -n "$ac_ct_AR"; then
4021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4023 ac_save_IFS=$IFS; IFS=$ac_path_separator
4025 for ac_dir in $ac_dummy; do
4027 test -z "$ac_dir" && ac_dir=.
4028 $as_executable_p "$ac_dir/$ac_word" || continue
4029 ac_cv_prog_ac_ct_AR="ar"
4030 echo "$as_me:4030: found $ac_dir/$ac_word" >&5
4034 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4038 if test -n "$ac_ct_AR"; then
4039 echo "$as_me:4039: result: $ac_ct_AR" >&5
4040 echo "${ECHO_T}$ac_ct_AR" >&6
4042 echo "$as_me:4042: result: no" >&5
4043 echo "${ECHO_T}no" >&6
4051 echo "$as_me:4051: checking for options to update archives" >&5
4052 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4053 if test "${cf_cv_ar_flags+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 cf_cv_ar_flags=unknown
4058 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4060 rm -f conftest.$ac_cv_objext
4063 cat >conftest.$ac_ext <<EOF
4064 #line 4064 "configure"
4065 int testdata[3] = { 123, 456, 789 };
4067 if { (eval echo "$as_me:4067: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:4070: \$? = $ac_status" >&5
4071 (exit $ac_status); } ; then
4072 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4073 if test -f conftest.a ; then
4074 cf_cv_ar_flags=$cf_ar_flags
4078 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4080 echo "${as_me-configure}:4080: testing cannot compile test-program ..." 1>&5
4085 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4088 echo "$as_me:4088: result: $cf_cv_ar_flags" >&5
4089 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4090 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
4091 ARFLAGS=$cf_cv_ar_flags
4093 echo "$as_me:4093: checking if you have specified an install-prefix" >&5
4094 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4096 # Check whether --with-install-prefix or --without-install-prefix was given.
4097 if test "${with_install_prefix+set}" = set; then
4098 withval="$with_install_prefix"
4099 case "$withval" in #(vi
4102 *) DESTDIR="$withval"
4106 echo "$as_me:4106: result: $DESTDIR" >&5
4107 echo "${ECHO_T}$DESTDIR" >&6
4109 ###############################################################################
4111 # If we're cross-compiling, allow the user to override the tools and their
4112 # options. The configure script is oriented toward identifying the host
4113 # compiler, etc., but we need a build compiler to generate parts of the source.
4115 if test "$cross_compiling" = yes ; then
4117 # defaults that we might want to override
4118 : ${BUILD_CFLAGS:=''}
4119 : ${BUILD_CPPFLAGS:=''}
4120 : ${BUILD_LDFLAGS:=''}
4122 : ${BUILD_EXEEXT:='$x'}
4123 : ${BUILD_OBJEXT:='o'}
4125 # Check whether --with-build-cc or --without-build-cc was given.
4126 if test "${with_build_cc+set}" = set; then
4127 withval="$with_build_cc"
4130 for ac_prog in gcc cc cl
4132 # Extract the first word of "$ac_prog", so it can be a program name with args.
4133 set dummy $ac_prog; ac_word=$2
4134 echo "$as_me:4134: checking for $ac_word" >&5
4135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4136 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 if test -n "$BUILD_CC"; then
4140 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4142 ac_save_IFS=$IFS; IFS=$ac_path_separator
4144 for ac_dir in $ac_dummy; do
4146 test -z "$ac_dir" && ac_dir=.
4147 $as_executable_p "$ac_dir/$ac_word" || continue
4148 ac_cv_prog_BUILD_CC="$ac_prog"
4149 echo "$as_me:4149: found $ac_dir/$ac_word" >&5
4155 BUILD_CC=$ac_cv_prog_BUILD_CC
4156 if test -n "$BUILD_CC"; then
4157 echo "$as_me:4157: result: $BUILD_CC" >&5
4158 echo "${ECHO_T}$BUILD_CC" >&6
4160 echo "$as_me:4160: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4164 test -n "$BUILD_CC" && break
4168 echo "$as_me:4168: checking for native build C compiler" >&5
4169 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4170 echo "$as_me:4170: result: $BUILD_CC" >&5
4171 echo "${ECHO_T}$BUILD_CC" >&6
4173 echo "$as_me:4173: checking for native build C preprocessor" >&5
4174 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4176 # Check whether --with-build-cpp or --without-build-cpp was given.
4177 if test "${with_build_cpp+set}" = set; then
4178 withval="$with_build_cpp"
4179 BUILD_CPP="$withval"
4181 BUILD_CPP='${BUILD_CC} -E'
4183 echo "$as_me:4183: result: $BUILD_CPP" >&5
4184 echo "${ECHO_T}$BUILD_CPP" >&6
4186 echo "$as_me:4186: checking for native build C flags" >&5
4187 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4189 # Check whether --with-build-cflags or --without-build-cflags was given.
4190 if test "${with_build_cflags+set}" = set; then
4191 withval="$with_build_cflags"
4192 BUILD_CFLAGS="$withval"
4194 echo "$as_me:4194: result: $BUILD_CFLAGS" >&5
4195 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4197 echo "$as_me:4197: checking for native build C preprocessor-flags" >&5
4198 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4200 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4201 if test "${with_build_cppflags+set}" = set; then
4202 withval="$with_build_cppflags"
4203 BUILD_CPPFLAGS="$withval"
4205 echo "$as_me:4205: result: $BUILD_CPPFLAGS" >&5
4206 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4208 echo "$as_me:4208: checking for native build linker-flags" >&5
4209 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4211 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4212 if test "${with_build_ldflags+set}" = set; then
4213 withval="$with_build_ldflags"
4214 BUILD_LDFLAGS="$withval"
4216 echo "$as_me:4216: result: $BUILD_LDFLAGS" >&5
4217 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4219 echo "$as_me:4219: checking for native build linker-libraries" >&5
4220 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4222 # Check whether --with-build-libs or --without-build-libs was given.
4223 if test "${with_build_libs+set}" = set; then
4224 withval="$with_build_libs"
4225 BUILD_LIBS="$withval"
4227 echo "$as_me:4227: result: $BUILD_LIBS" >&5
4228 echo "${ECHO_T}$BUILD_LIBS" >&6
4230 # this assumes we're on Unix.
4234 : ${BUILD_CC:='${CC}'}
4236 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4237 { { echo "$as_me:4237: error: Cross-build requires two compilers.
4238 Use --with-build-cc to specify the native compiler." >&5
4239 echo "$as_me: error: Cross-build requires two compilers.
4240 Use --with-build-cc to specify the native compiler." >&2;}
4241 { (exit 1); exit 1; }; }
4245 : ${BUILD_CC:='${CC}'}
4246 : ${BUILD_CPP:='${CPP}'}
4247 : ${BUILD_CFLAGS:='${CFLAGS}'}
4248 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4249 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4250 : ${BUILD_LIBS:='${LIBS}'}
4251 : ${BUILD_EXEEXT:='$x'}
4252 : ${BUILD_OBJEXT:='o'}
4255 ###############################################################################
4257 ### Options to allow the user to specify the set of libraries which are used.
4258 ### Use "--without-normal --with-shared" to allow the default model to be
4259 ### shared, for example.
4264 # common library maintenance symbols that are convenient for libtool scripts:
4265 LIB_CREATE='${AR} -cr'
4266 LIB_OBJECT='${OBJECTS}'
4270 # symbols used to prop libtool up to enable it to determine what it should be
4278 echo "$as_me:4278: checking if you want to build libraries with libtool" >&5
4279 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4281 # Check whether --with-libtool or --without-libtool was given.
4282 if test "${with_libtool+set}" = set; then
4283 withval="$with_libtool"
4284 with_libtool=$withval
4288 echo "$as_me:4288: result: $with_libtool" >&5
4289 echo "${ECHO_T}$with_libtool" >&6
4290 if test "$with_libtool" != "no"; then
4292 if test "$with_libtool" != "yes" ; then
4294 if test "x$prefix" != xNONE; then
4295 cf_path_syntax="$prefix"
4297 cf_path_syntax="$ac_default_prefix"
4300 case ".$with_libtool" in #(vi
4301 .\$\(*\)*|.\'*\'*) #(vi
4305 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4308 eval with_libtool="$with_libtool"
4309 case ".$with_libtool" in #(vi
4311 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4316 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4319 { { echo "$as_me:4319: error: expected a pathname, not \"$with_libtool\"" >&5
4320 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4321 { (exit 1); exit 1; }; }
4325 LIBTOOL=$with_libtool
4327 # Extract the first word of "libtool", so it can be a program name with args.
4328 set dummy libtool; ac_word=$2
4329 echo "$as_me:4329: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4339 ac_save_IFS=$IFS; IFS=$ac_path_separator
4341 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 if $as_executable_p "$ac_dir/$ac_word"; then
4345 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4346 echo "$as_me:4346: found $ac_dir/$ac_word" >&5
4354 LIBTOOL=$ac_cv_path_LIBTOOL
4356 if test -n "$LIBTOOL"; then
4357 echo "$as_me:4357: result: $LIBTOOL" >&5
4358 echo "${ECHO_T}$LIBTOOL" >&6
4360 echo "$as_me:4360: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4365 if test -z "$LIBTOOL" ; then
4366 { { echo "$as_me:4366: error: Cannot find libtool" >&5
4367 echo "$as_me: error: Cannot find libtool" >&2;}
4368 { (exit 1); exit 1; }; }
4370 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4371 LIB_OBJECT='${OBJECTS:.o=.lo}'
4373 LIB_CLEAN='${LIBTOOL} --mode=clean'
4374 LIB_COMPILE='${LIBTOOL} --mode=compile'
4375 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4376 LIB_INSTALL='${LIBTOOL} --mode=install'
4377 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4380 # Show the version of libtool
4381 echo "$as_me:4381: checking version of libtool" >&5
4382 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4384 # Save the version in a cache variable - this is not entirely a good
4385 # thing, but the version string from libtool is very ugly, and for
4386 # bug reports it might be useful to have the original string. "("
4387 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.].*//'`
4388 echo "$as_me:4388: result: $cf_cv_libtool_version" >&5
4389 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4390 if test -z "$cf_cv_libtool_version" ; then
4391 { { echo "$as_me:4391: error: This is not GNU libtool" >&5
4392 echo "$as_me: error: This is not GNU libtool" >&2;}
4393 { (exit 1); exit 1; }; }
4396 # special hack to add -no-undefined (which libtool should do for itself)
4398 case "$cf_cv_system_name" in #(vi
4399 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4400 LT_UNDEF=-no-undefined
4404 # special hack to add --tag option for C++ compiler
4405 case $cf_cv_libtool_version in #(vi
4406 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4407 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4408 LIBTOOL="$LIBTOOL --tag=CC"
4411 LIBTOOL_CXX="$LIBTOOL"
4419 test -z "$LIBTOOL" && ECHO_LT=
4421 if test "$with_libtool" != "no" ; then
4423 cf_list_models="$cf_list_models libtool"
4427 echo "$as_me:4427: checking if you want to build shared libraries" >&5
4428 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4430 # Check whether --with-shared or --without-shared was given.
4431 if test "${with_shared+set}" = set; then
4432 withval="$with_shared"
4433 with_shared=$withval
4437 echo "$as_me:4437: result: $with_shared" >&5
4438 echo "${ECHO_T}$with_shared" >&6
4439 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4441 echo "$as_me:4441: checking if you want to build static libraries" >&5
4442 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4444 # Check whether --with-normal or --without-normal was given.
4445 if test "${with_normal+set}" = set; then
4446 withval="$with_normal"
4447 with_normal=$withval
4451 echo "$as_me:4451: result: $with_normal" >&5
4452 echo "${ECHO_T}$with_normal" >&6
4453 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4455 echo "$as_me:4455: checking if you want to build debug libraries" >&5
4456 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4458 # Check whether --with-debug or --without-debug was given.
4459 if test "${with_debug+set}" = set; then
4460 withval="$with_debug"
4465 echo "$as_me:4465: result: $with_debug" >&5
4466 echo "${ECHO_T}$with_debug" >&6
4467 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4469 echo "$as_me:4469: checking if you want to build profiling libraries" >&5
4470 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4472 # Check whether --with-profile or --without-profile was given.
4473 if test "${with_profile+set}" = set; then
4474 withval="$with_profile"
4475 with_profile=$withval
4479 echo "$as_me:4479: result: $with_profile" >&5
4480 echo "${ECHO_T}$with_profile" >&6
4481 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4485 ###############################################################################
4487 echo "$as_me:4487: checking for specified models" >&5
4488 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4489 test -z "$cf_list_models" && cf_list_models=normal
4490 test "$with_libtool" != "no" && cf_list_models=libtool
4491 echo "$as_me:4491: result: $cf_list_models" >&5
4492 echo "${ECHO_T}$cf_list_models" >&6
4494 ### Use the first model as the default, and save its suffix for use in building
4495 ### up test-applications.
4496 echo "$as_me:4496: checking for default model" >&5
4497 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4498 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4499 echo "$as_me:4499: result: $DFT_LWR_MODEL" >&5
4500 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4502 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4513 case $cf_cv_system_name in #(vi
4520 cf_prefix=$LIB_PREFIX
4522 LIB_PREFIX=$cf_prefix
4526 ###############################################################################
4528 echo "$as_me:4528: checking if you want to build a separate terminfo library" >&5
4529 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4531 # Check whether --with-termlib or --without-termlib was given.
4532 if test "${with_termlib+set}" = set; then
4533 withval="$with_termlib"
4534 with_termlib=$withval
4538 echo "$as_me:4538: result: $with_termlib" >&5
4539 echo "${ECHO_T}$with_termlib" >&6
4541 echo "$as_me:4541: checking if you want to build a separate tic library" >&5
4542 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4544 # Check whether --with-ticlib or --without-ticlib was given.
4545 if test "${with_ticlib+set}" = set; then
4546 withval="$with_ticlib"
4547 with_ticlib=$withval
4551 echo "$as_me:4551: result: $with_ticlib" >&5
4552 echo "${ECHO_T}$with_ticlib" >&6
4554 ### Checks for special libraries, must be done up-front.
4557 echo "$as_me:4557: checking if you want to link with the GPM mouse library" >&5
4558 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4560 # Check whether --with-gpm or --without-gpm was given.
4561 if test "${with_gpm+set}" = set; then
4567 echo "$as_me:4567: result: $with_gpm" >&5
4568 echo "${ECHO_T}$with_gpm" >&6
4570 if test "$with_gpm" != no ; then
4571 echo "$as_me:4571: checking for gpm.h" >&5
4572 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4573 if test "${ac_cv_header_gpm_h+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.$ac_ext <<_ACEOF
4577 #line 4577 "configure"
4578 #include "confdefs.h"
4581 if { (eval echo "$as_me:4581: \"$ac_cpp conftest.$ac_ext\"") >&5
4582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4584 egrep -v '^ *\+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:4587: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null; then
4589 if test -s conftest.err; then
4590 ac_cpp_err=$ac_c_preproc_warn_flag
4597 if test -z "$ac_cpp_err"; then
4598 ac_cv_header_gpm_h=yes
4600 echo "$as_me: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4602 ac_cv_header_gpm_h=no
4604 rm -f conftest.err conftest.$ac_ext
4606 echo "$as_me:4606: result: $ac_cv_header_gpm_h" >&5
4607 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4608 if test $ac_cv_header_gpm_h = yes; then
4610 cat >>confdefs.h <<\EOF
4611 #define HAVE_GPM_H 1
4614 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4615 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4617 echo "${as_me-configure}:4617: testing assuming we really have GPM library ..." 1>&5
4619 cat >>confdefs.h <<\EOF
4620 #define HAVE_LIBGPM 1
4624 echo "$as_me:4624: checking for Gpm_Open in -lgpm" >&5
4625 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4626 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_check_lib_save_LIBS=$LIBS
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line 4632 "configure"
4633 #include "confdefs.h"
4635 /* Override any gcc2 internal prototype to avoid an error. */
4639 /* We use char because int might match the return type of a gcc2
4640 builtin and then its argument prototype would still apply. */
4650 rm -f conftest.$ac_objext conftest$ac_exeext
4651 if { (eval echo "$as_me:4651: \"$ac_link\"") >&5
4652 (eval $ac_link) 2>&5
4654 echo "$as_me:4654: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:4657: \"$ac_try\"") >&5
4660 echo "$as_me:4660: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_lib_gpm_Gpm_Open=yes
4664 echo "$as_me: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 ac_cv_lib_gpm_Gpm_Open=no
4668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4669 LIBS=$ac_check_lib_save_LIBS
4671 echo "$as_me:4671: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4672 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4673 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4677 { { echo "$as_me:4677: error: Cannot link with GPM library" >&5
4678 echo "$as_me: error: Cannot link with GPM library" >&2;}
4679 { (exit 1); exit 1; }; }
4687 test "$with_gpm" != maybe && { echo "$as_me:4687: WARNING: Cannot find GPM header" >&5
4688 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4695 if test "$with_gpm" != no ; then
4696 echo "$as_me:4696: checking if you want to load GPM dynamically" >&5
4697 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4699 # Check whether --with-dlsym or --without-dlsym was given.
4700 if test "${with_dlsym+set}" = set; then
4701 withval="$with_dlsym"
4706 echo "$as_me:4706: result: $with_dlsym" >&5
4707 echo "${ECHO_T}$with_dlsym" >&6
4708 if test "$with_dlsym" = yes ; then
4711 echo "$as_me:4711: checking for dlsym" >&5
4712 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4713 if test "${ac_cv_func_dlsym+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 cat >conftest.$ac_ext <<_ACEOF
4717 #line 4717 "configure"
4718 #include "confdefs.h"
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char dlsym (); below. */
4722 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4734 /* The GNU C library defines this for functions which it implements
4735 to always fail with ENOSYS. Some functions are actually named
4736 something starting with __ and the normal name is an alias. */
4737 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4747 rm -f conftest.$ac_objext conftest$ac_exeext
4748 if { (eval echo "$as_me:4748: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>&5
4751 echo "$as_me:4751: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:4754: \"$ac_try\"") >&5
4757 echo "$as_me:4757: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_cv_func_dlsym=yes
4761 echo "$as_me: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4767 echo "$as_me:4767: result: $ac_cv_func_dlsym" >&5
4768 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4769 if test $ac_cv_func_dlsym = yes; then
4774 echo "$as_me:4774: checking for dlsym in -ldl" >&5
4775 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4776 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 ac_check_lib_save_LIBS=$LIBS
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line 4782 "configure"
4783 #include "confdefs.h"
4785 /* Override any gcc2 internal prototype to avoid an error. */
4789 /* We use char because int might match the return type of a gcc2
4790 builtin and then its argument prototype would still apply. */
4800 rm -f conftest.$ac_objext conftest$ac_exeext
4801 if { (eval echo "$as_me:4801: \"$ac_link\"") >&5
4802 (eval $ac_link) 2>&5
4804 echo "$as_me:4804: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try='test -s conftest$ac_exeext'
4807 { (eval echo "$as_me:4807: \"$ac_try\"") >&5
4810 echo "$as_me:4810: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_lib_dl_dlsym=yes
4814 echo "$as_me: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4816 ac_cv_lib_dl_dlsym=no
4818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4819 LIBS=$ac_check_lib_save_LIBS
4821 echo "$as_me:4821: result: $ac_cv_lib_dl_dlsym" >&5
4822 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4823 if test $ac_cv_lib_dl_dlsym = yes; then
4831 if test "$cf_have_dlsym" = yes ; then
4832 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4834 echo "$as_me:4834: checking whether able to link to dl*() functions" >&5
4835 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #line 4837 "configure"
4838 #include "confdefs.h"
4845 if ((obj = dlopen("filename", 0)) != 0) {
4846 if (dlsym(obj, "symbolname") == 0) {
4854 rm -f conftest.$ac_objext conftest$ac_exeext
4855 if { (eval echo "$as_me:4855: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -s conftest$ac_exeext'
4861 { (eval echo "$as_me:4861: \"$ac_try\"") >&5
4864 echo "$as_me:4864: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4867 cat >>confdefs.h <<\EOF
4868 #define HAVE_LIBDL 1
4872 echo "$as_me: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4875 { { echo "$as_me:4875: error: Cannot link test program for libdl" >&5
4876 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4877 { (exit 1); exit 1; }; }
4879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4880 echo "$as_me:4880: result: ok" >&5
4881 echo "${ECHO_T}ok" >&6
4883 { { echo "$as_me:4883: error: Cannot find dlsym function" >&5
4884 echo "$as_me: error: Cannot find dlsym function" >&2;}
4885 { (exit 1); exit 1; }; }
4888 if test "$with_gpm" != yes ; then
4889 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4891 echo "${as_me-configure}:4891: testing assuming soname for gpm is $with_gpm ..." 1>&5
4893 cf_cv_gpm_soname="$with_gpm"
4896 echo "$as_me:4896: checking for soname of gpm library" >&5
4897 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4898 if test "${cf_cv_gpm_soname+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 cf_cv_gpm_soname=unknown
4903 if test "$cross_compiling" != yes ; then
4904 cat >conftest.$ac_ext <<CF_EOF
4908 if (Gpm_Open(0,0)) Gpm_Close();
4909 ${cf_cv_main_return:-return}(0);
4912 cf_save_LIBS="$LIBS"
4914 if { (eval echo "$as_me:4914: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>&5
4917 echo "$as_me:4917: \$? = $ac_status" >&5
4918 (exit $ac_status); } ; then
4919 if { (eval echo "$as_me:4919: \"$ac_link\"") >&5
4920 (eval $ac_link) 2>&5
4922 echo "$as_me:4922: \$? = $ac_status" >&5
4923 (exit $ac_status); } ; then
4924 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4925 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4929 LIBS="$cf_save_LIBS"
4933 echo "$as_me:4933: result: $cf_cv_gpm_soname" >&5
4934 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4937 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4938 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4941 SHLIB_LIST="-ldl $SHLIB_LIST"
4943 SHLIB_LIST="-lgpm $SHLIB_LIST"
4945 cat >>confdefs.h <<\EOF
4946 #define HAVE_LIBGPM 1
4949 echo "$as_me:4949: checking for Gpm_Wgetch in -lgpm" >&5
4950 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4951 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 ac_check_lib_save_LIBS=$LIBS
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line 4957 "configure"
4958 #include "confdefs.h"
4960 /* Override any gcc2 internal prototype to avoid an error. */
4964 /* We use char because int might match the return type of a gcc2
4965 builtin and then its argument prototype would still apply. */
4975 rm -f conftest.$ac_objext conftest$ac_exeext
4976 if { (eval echo "$as_me:4976: \"$ac_link\"") >&5
4977 (eval $ac_link) 2>&5
4979 echo "$as_me:4979: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -s conftest$ac_exeext'
4982 { (eval echo "$as_me:4982: \"$ac_try\"") >&5
4985 echo "$as_me:4985: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_cv_lib_gpm_Gpm_Wgetch=yes
4989 echo "$as_me: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 ac_cv_lib_gpm_Gpm_Wgetch=no
4993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4994 LIBS=$ac_check_lib_save_LIBS
4996 echo "$as_me:4996: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4997 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4998 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5000 echo "$as_me:5000: checking if GPM is weakly bound to curses library" >&5
5001 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5002 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 cf_cv_check_gpm_wgetch=unknown
5007 if test "$cross_compiling" != yes ; then
5009 cat >conftest.$ac_ext <<CF_EOF
5014 ${cf_cv_main_return:-return}(0);
5018 cf_save_LIBS="$LIBS"
5019 # This only works if we can look at the symbol table. If a shared
5020 # library is stripped for install, we cannot use that. So we're forced
5021 # to rely on the static library, noting that some packagers may not
5023 LIBS="-static -lgpm -dynamic $LIBS"
5024 if { (eval echo "$as_me:5024: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5027 echo "$as_me:5027: \$? = $ac_status" >&5
5028 (exit $ac_status); } ; then
5029 if { (eval echo "$as_me:5029: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>&5
5032 echo "$as_me:5032: \$? = $ac_status" >&5
5033 (exit $ac_status); } ; then
5034 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5035 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5036 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5040 LIBS="$cf_save_LIBS"
5044 echo "$as_me:5044: result: $cf_cv_check_gpm_wgetch" >&5
5045 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5047 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5048 { echo "$as_me:5048: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5049 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5056 # not everyone has "test -c"
5057 if test -c /dev/sysmouse 2>/dev/null ; then
5058 echo "$as_me:5058: checking if you want to use sysmouse" >&5
5059 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5061 # Check whether --with-sysmouse or --without-sysmouse was given.
5062 if test "${with_sysmouse+set}" = set; then
5063 withval="$with_sysmouse"
5064 cf_with_sysmouse=$withval
5066 cf_with_sysmouse=maybe
5068 if test "$cf_with_sysmouse" != no ; then
5069 cat >conftest.$ac_ext <<_ACEOF
5070 #line 5070 "configure"
5071 #include "confdefs.h"
5073 #include <osreldate.h>
5074 #if (__FreeBSD_version >= 400017)
5075 #include <sys/consio.h>
5076 #include <sys/fbio.h>
5078 #include <machine/console.h>
5085 struct mouse_info the_mouse;
5086 ioctl(0, CONS_MOUSECTL, &the_mouse);
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:5093: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>&5
5096 echo "$as_me:5096: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -s conftest.$ac_objext'
5099 { (eval echo "$as_me:5099: \"$ac_try\"") >&5
5102 echo "$as_me:5102: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 cf_with_sysmouse=yes
5106 echo "$as_me: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5110 rm -f conftest.$ac_objext conftest.$ac_ext
5112 echo "$as_me:5112: result: $cf_with_sysmouse" >&5
5113 echo "${ECHO_T}$cf_with_sysmouse" >&6
5114 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5115 #define USE_SYSMOUSE 1
5120 if test X"$CC_G_OPT" = X"" ; then
5122 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5125 if test X"$CXX_G_OPT" = X"" ; then
5127 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5130 echo "$as_me:5130: checking for default loader flags" >&5
5131 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5132 case $DFT_LWR_MODEL in
5133 libtool) LD_MODEL='' ;;
5134 normal) LD_MODEL='' ;;
5135 debug) LD_MODEL=$CC_G_OPT ;;
5136 profile) LD_MODEL='-pg';;
5137 shared) LD_MODEL='' ;;
5139 echo "$as_me:5139: result: $LD_MODEL" >&5
5140 echo "${ECHO_T}$LD_MODEL" >&6
5142 case $DFT_LWR_MODEL in
5145 echo "$as_me:5145: checking if rpath option should be used" >&5
5146 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5148 # Check whether --enable-rpath or --disable-rpath was given.
5149 if test "${enable_rpath+set}" = set; then
5150 enableval="$enable_rpath"
5151 cf_cv_ld_rpath=$enableval
5155 echo "$as_me:5155: result: $cf_cv_ld_rpath" >&5
5156 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
5158 echo "$as_me:5158: checking if shared libraries should be relinked during install" >&5
5159 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5161 # Check whether --enable-relink or --disable-relink was given.
5162 if test "${enable_relink+set}" = set; then
5163 enableval="$enable_relink"
5164 cf_cv_do_relink=$enableval
5168 echo "$as_me:5168: result: $cf_cv_do_relink" >&5
5169 echo "${ECHO_T}$cf_cv_do_relink" >&6
5177 INSTALL_LIB="-m 644"
5179 cf_cv_do_symlinks=no
5181 echo "$as_me:5181: checking if release/abi version should be used for shared libs" >&5
5182 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5184 # Check whether --with-shlib-version or --without-shlib-version was given.
5185 if test "${with_shlib_version+set}" = set; then
5186 withval="$with_shlib_version"
5187 test -z "$withval" && withval=auto
5188 case $withval in #(vi
5190 cf_cv_shlib_version=auto
5192 rel|abi|auto|no) #(vi
5193 cf_cv_shlib_version=$withval
5196 { { echo "$as_me:5196: error: option value must be one of: rel, abi, auto or no" >&5
5197 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5198 { (exit 1); exit 1; }; }
5203 cf_cv_shlib_version=auto
5205 echo "$as_me:5205: result: $cf_cv_shlib_version" >&5
5206 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5210 # Some less-capable ports of gcc support only -fpic
5212 if test "$GCC" = yes
5214 echo "$as_me:5214: checking which $CC option to use" >&5
5215 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5216 cf_save_CFLAGS="$CFLAGS"
5217 for CC_SHARED_OPTS in -fPIC -fpic ''
5219 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line 5221 "configure"
5222 #include "confdefs.h"
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:5233: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>&5
5236 echo "$as_me:5236: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (eval echo "$as_me:5239: \"$ac_try\"") >&5
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5246 echo "$as_me: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5249 rm -f conftest.$ac_objext conftest.$ac_ext
5251 echo "$as_me:5251: result: $CC_SHARED_OPTS" >&5
5252 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5253 CFLAGS="$cf_save_CFLAGS"
5256 cf_cv_shlib_version_infix=no
5258 case $cf_cv_system_name in
5260 if test "$GCC" = yes; then
5262 MK_SHARED_LIB="$(CC) -shared"
5266 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5270 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5271 cf_cv_shlib_version=cygdll
5272 cf_cv_shlib_version_infix=cygdll
5273 cat >mk_shared_lib.sh <<-CF_EOF
5276 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5279 Linking shared library
5280 ** SHARED_LIB \$SHARED_LIB
5281 ** IMPORT_LIB \$IMPORT_LIB
5283 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5285 chmod +x mk_shared_lib.sh
5288 EXTRA_CFLAGS="-no-cpp-precomp"
5289 CC_SHARED_OPTS="-dynamic"
5290 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5291 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5292 cf_cv_shlib_version_infix=yes
5293 echo "$as_me:5293: checking if ld -search_paths_first works" >&5
5294 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5295 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cf_save_LDFLAGS=$LDFLAGS
5300 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5301 cat >conftest.$ac_ext <<_ACEOF
5302 #line 5302 "configure"
5303 #include "confdefs.h"
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:5314: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest$ac_exeext'
5320 { (eval echo "$as_me:5320: \"$ac_try\"") >&5
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 cf_cv_ldflags_search_paths_first=yes
5327 echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 cf_cv_ldflags_search_paths_first=no
5331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 LDFLAGS=$cf_save_LDFLAGS
5334 echo "$as_me:5334: result: $cf_cv_ldflags_search_paths_first" >&5
5335 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5336 if test $cf_cv_ldflags_search_paths_first = yes; then
5337 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5341 # (tested with gcc 2.7.2 -- I don't have c89)
5342 if test "$GCC" = yes; then
5343 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5346 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5348 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5349 # HP-UX shared libraries must be executable, and should be
5350 # readonly to exploit a quirk in the memory manager.
5351 INSTALL_LIB="-m 555"
5354 if test "$cf_cv_ld_rpath" = yes ; then
5355 if test "$GCC" = yes; then
5356 LD_RPATH_OPT="-Wl,-rpath,"
5357 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5359 LD_RPATH_OPT="-rpath "
5360 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5363 # tested with IRIX 5.2 and 'cc'.
5364 if test "$GCC" != yes; then
5365 CC_SHARED_OPTS='-KPIC'
5366 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5368 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5370 cf_cv_rm_so_locs=yes
5372 linux*|gnu*|k*bsd*-gnu)
5373 if test "$DFT_LWR_MODEL" = "shared" ; then
5374 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5375 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5377 if test "$cf_cv_ld_rpath" = yes ; then
5378 LD_RPATH_OPT="-Wl,-rpath,"
5379 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5382 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5383 if test "$cf_cv_shlib_version" = rel; then
5384 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5386 cf_cv_shared_soname='`basename $@`'
5389 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5392 if test "$DFT_LWR_MODEL" = "shared" ; then
5393 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5394 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5396 if test "$cf_cv_ld_rpath" = yes ; then
5397 LD_RPATH_OPT="-Wl,-rpath,"
5398 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5400 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
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,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5411 nto-qnx*|openbsd*|freebsd[12].*)
5412 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5413 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5414 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5417 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5418 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5419 LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
5420 LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
5421 LD_RPATH_OPT="-rpath "
5422 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5425 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5426 if test "$cf_cv_shlib_version" = rel; then
5427 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5429 cf_cv_shared_soname='`basename $@`'
5432 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5435 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5436 test "$cf_cv_ld_rpath" = yes && LD_RPATH_OPT="-Wl,-rpath,"
5437 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5438 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5439 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5440 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5441 if test "$cf_cv_shlib_version" = auto; then
5442 if test -f /usr/libexec/ld.elf_so; then
5443 cf_cv_shlib_version=abi
5445 cf_cv_shlib_version=rel
5449 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5450 if test "$cf_cv_shlib_version" = rel; then
5451 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5453 cf_cv_shared_soname='`basename $@`'
5456 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5458 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5462 # tested with OSF/1 V3.2 and 'cc'
5463 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5464 # link with shared libs).
5465 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5468 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5471 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5472 if test "$DFT_LWR_MODEL" = "shared" ; then
5473 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5474 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5476 if test "$cf_cv_ld_rpath" = yes ; then
5477 LD_RPATH_OPT="-rpath"
5478 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5480 cf_cv_rm_so_locs=yes
5482 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
5483 # tested with osr5.0.5
5484 if test "$GCC" != yes; then
5485 CC_SHARED_OPTS='-belf -KPIC'
5487 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5488 if test "$cf_cv_ld_rpath" = yes ; then
5489 # only way is to set LD_RUN_PATH but no switch for it
5492 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5493 LINK_PROGS='LD_RUN_PATH=${libdir}'
5494 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5497 # tested with SunOS 4.1.1 and gcc 2.7.0
5498 if test "$GCC" != yes; then
5499 CC_SHARED_OPTS='-KPIC'
5501 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5502 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5505 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5506 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5507 if test "$DFT_LWR_MODEL" = "shared" ; then
5508 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5509 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5511 if test "$cf_cv_ld_rpath" = yes ; then
5513 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5516 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5517 if test "$cf_cv_shlib_version" = rel; then
5518 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5520 cf_cv_shared_soname='`basename $@`'
5523 if test "$GCC" != yes; then
5524 cf_save_CFLAGS="$CFLAGS"
5525 for cf_shared_opts in -xcode=pic13 -xcode=pic32 -Kpic -KPIC -O
5527 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5528 cat >conftest.$ac_ext <<_ACEOF
5529 #line 5529 "configure"
5530 #include "confdefs.h"
5540 rm -f conftest.$ac_objext
5541 if { (eval echo "$as_me:5541: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5544 echo "$as_me:5544: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest.$ac_objext'
5547 { (eval echo "$as_me:5547: \"$ac_try\"") >&5
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5554 echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 rm -f conftest.$ac_objext conftest.$ac_ext
5559 CFLAGS="$cf_save_CFLAGS"
5560 CC_SHARED_OPTS=$cf_shared_opts
5561 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5563 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5567 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5568 if test "$GCC" != yes; then
5569 CC_SHARED_OPTS='-KPIC'
5571 MK_SHARED_LIB='${LD} -d y -G -o $@'
5574 CC_SHARED_OPTS='unknown'
5575 MK_SHARED_LIB='echo unknown'
5579 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5580 case "$cf_cv_shlib_version" in #(vi
5582 case "$MK_SHARED_LIB" in #(vi
5584 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5587 { echo "$as_me:5587: WARNING: ignored --with-shlib-version" >&5
5588 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5594 if test -n "$LD_RPATH_OPT" ; then
5595 echo "$as_me:5595: checking if we need a space after rpath option" >&5
5596 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5597 cf_save_LIBS="$LIBS"
5598 LIBS="$LIBS ${LD_RPATH_OPT}$libdir"
5599 cat >conftest.$ac_ext <<_ACEOF
5600 #line 5600 "configure"
5601 #include "confdefs.h"
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:5612: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5615 echo "$as_me:5615: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:5618: \"$ac_try\"") >&5
5621 echo "$as_me:5621: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5625 echo "$as_me: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5630 LIBS="$cf_save_LIBS"
5631 echo "$as_me:5631: result: $cf_rpath_space" >&5
5632 echo "${ECHO_T}$cf_rpath_space" >&6
5633 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5634 MK_SHARED_LIB="$MK_SHARED_LIB $LD_RPATH_OPT\${libdir}"
5637 if test "$CC_SHARED_OPTS" = "unknown"; then
5638 for model in $cf_list_models; do
5639 if test "$model" = "shared"; then
5640 { { echo "$as_me:5640: error: Shared libraries are not supported in this version" >&5
5641 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5642 { (exit 1); exit 1; }; }
5647 ###############################################################################
5649 ### use option --disable-overwrite to leave out the link to -lcurses
5650 echo "$as_me:5650: checking if you wish to install ncurses overwriting curses" >&5
5651 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
5653 # Check whether --enable-overwrite or --disable-overwrite was given.
5654 if test "${enable_overwrite+set}" = set; then
5655 enableval="$enable_overwrite"
5656 with_overwrite=$enableval
5658 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
5660 echo "$as_me:5660: result: $with_overwrite" >&5
5661 echo "${ECHO_T}$with_overwrite" >&6
5663 echo "$as_me:5663: checking if external terminfo-database is used" >&5
5664 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
5666 # Check whether --enable-database or --disable-database was given.
5667 if test "${enable_database+set}" = set; then
5668 enableval="$enable_database"
5669 use_database=$enableval
5673 echo "$as_me:5673: result: $use_database" >&5
5674 echo "${ECHO_T}$use_database" >&6
5676 case $host_os in #(vi
5678 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
5681 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
5685 case $cf_cv_system_name in
5686 os2*) PATH_SEPARATOR=';' ;;
5687 *) PATH_SEPARATOR=':' ;;
5690 if test "$use_database" != no ; then
5691 cat >>confdefs.h <<\EOF
5692 #define USE_DATABASE 1
5695 echo "$as_me:5695: checking which terminfo source-file will be installed" >&5
5696 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
5698 # Check whether --with-database or --without-database was given.
5699 if test "${with_database+set}" = set; then
5700 withval="$with_database"
5701 TERMINFO_SRC=$withval
5703 echo "$as_me:5703: result: $TERMINFO_SRC" >&5
5704 echo "${ECHO_T}$TERMINFO_SRC" >&6
5706 echo "$as_me:5706: checking whether to use hashed database instead of directory/tree" >&5
5707 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
5709 # Check whether --with-hashed-db or --without-hashed-db was given.
5710 if test "${with_hashed_db+set}" = set; then
5711 withval="$with_hashed_db"
5716 echo "$as_me:5716: result: $with_hashed_db" >&5
5717 echo "${ECHO_T}$with_hashed_db" >&6
5722 echo "$as_me:5722: checking for list of fallback descriptions" >&5
5723 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
5725 # Check whether --with-fallbacks or --without-fallbacks was given.
5726 if test "${with_fallbacks+set}" = set; then
5727 withval="$with_fallbacks"
5728 with_fallback=$withval
5732 echo "$as_me:5732: result: $with_fallback" >&5
5733 echo "${ECHO_T}$with_fallback" >&6
5734 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
5736 echo "$as_me:5736: checking if you want modern xterm or antique" >&5
5737 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
5739 # Check whether --with-xterm-new or --without-xterm-new was given.
5740 if test "${with_xterm_new+set}" = set; then
5741 withval="$with_xterm_new"
5742 with_xterm_new=$withval
5746 case $with_xterm_new in
5747 no) with_xterm_new=xterm-old;;
5748 *) with_xterm_new=xterm-new;;
5750 echo "$as_me:5750: result: $with_xterm_new" >&5
5751 echo "${ECHO_T}$with_xterm_new" >&6
5752 WHICH_XTERM=$with_xterm_new
5755 if test "$use_database" = no ; then
5756 TERMINFO="${datadir}/terminfo"
5760 echo "$as_me:5760: checking for list of terminfo directories" >&5
5761 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
5763 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
5764 if test "${with_terminfo_dirs+set}" = set; then
5765 withval="$with_terminfo_dirs"
5768 withval=${TERMINFO_DIRS-${datadir}/terminfo}
5770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
5772 for cf_src_path in $withval
5775 if test "x$prefix" != xNONE; then
5776 cf_path_syntax="$prefix"
5778 cf_path_syntax="$ac_default_prefix"
5781 case ".$cf_src_path" in #(vi
5782 .\$\(*\)*|.\'*\'*) #(vi
5786 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5789 eval cf_src_path="$cf_src_path"
5790 case ".$cf_src_path" in #(vi
5792 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5797 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5800 { { echo "$as_me:5800: error: expected a pathname, not \"$cf_src_path\"" >&5
5801 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5802 { (exit 1); exit 1; }; }
5806 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5807 cf_dst_path="${cf_dst_path}${cf_src_path}"
5811 eval 'TERMINFO_DIRS="$cf_dst_path"'
5813 echo "$as_me:5813: result: $TERMINFO_DIRS" >&5
5814 echo "${ECHO_T}$TERMINFO_DIRS" >&6
5815 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
5816 #define TERMINFO_DIRS "$TERMINFO_DIRS"
5819 echo "$as_me:5819: checking for default terminfo directory" >&5
5820 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
5822 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
5823 if test "${with_default_terminfo_dir+set}" = set; then
5824 withval="$with_default_terminfo_dir"
5827 withval="${TERMINFO-${datadir}/terminfo}"
5828 fi; if test -n "${datadir}/terminfo" ; then
5830 if test "x$prefix" != xNONE; then
5831 cf_path_syntax="$prefix"
5833 cf_path_syntax="$ac_default_prefix"
5836 case ".$withval" in #(vi
5837 .\$\(*\)*|.\'*\'*) #(vi
5841 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5844 eval withval="$withval"
5845 case ".$withval" in #(vi
5847 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5852 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5855 { { echo "$as_me:5855: error: expected a pathname, not \"$withval\"" >&5
5856 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5857 { (exit 1); exit 1; }; }
5864 echo "$as_me:5864: result: $TERMINFO" >&5
5865 echo "${ECHO_T}$TERMINFO" >&6
5866 cat >>confdefs.h <<EOF
5867 #define TERMINFO "$TERMINFO"
5872 ### use option --disable-big-core to make tic run on small machines
5873 ### We need 4Mb, check if we can allocate 50% more than that.
5874 echo "$as_me:5874: checking if big-core option selected" >&5
5875 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
5877 # Check whether --enable-big-core or --disable-big-core was given.
5878 if test "${enable_big_core+set}" = set; then
5879 enableval="$enable_big_core"
5880 with_big_core=$enableval
5882 if test "$cross_compiling" = yes; then
5885 cat >conftest.$ac_ext <<_ACEOF
5886 #line 5886 "configure"
5887 #include "confdefs.h"
5892 unsigned long n = 6000000L;
5893 char *s = malloc(n);
5896 ${cf_cv_main_return:-return}(s == 0);
5899 rm -f conftest$ac_exeext
5900 if { (eval echo "$as_me:5900: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5903 echo "$as_me:5903: \$? = $ac_status" >&5
5904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5905 { (eval echo "$as_me:5905: \"$ac_try\"") >&5
5908 echo "$as_me:5908: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5912 echo "$as_me: program exited with status $ac_status" >&5
5913 echo "$as_me: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5917 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5920 echo "$as_me:5920: result: $with_big_core" >&5
5921 echo "${ECHO_T}$with_big_core" >&6
5922 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
5923 #define HAVE_BIG_CORE 1
5926 ### ISO C only guarantees 512-char strings, we have tables which load faster
5927 ### when constructed using "big" strings. More than the C compiler, the awk
5928 ### program is a limit on most vendor UNIX systems. Check that we can build.
5929 echo "$as_me:5929: checking if big-strings option selected" >&5
5930 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
5932 # Check whether --enable-big-strings or --disable-big-strings was given.
5933 if test "${enable_big_strings+set}" = set; then
5934 enableval="$enable_big_strings"
5935 with_big_strings=$enableval
5940 eval with_big_strings=no
5943 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
5944 | $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
5945 eval with_big_strings=yes
5947 eval with_big_strings=no
5953 echo "$as_me:5953: result: $with_big_strings" >&5
5954 echo "${ECHO_T}$with_big_strings" >&6
5957 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
5959 ### use option --enable-termcap to compile in the termcap fallback support
5960 echo "$as_me:5960: checking if you want termcap-fallback support" >&5
5961 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
5963 # Check whether --enable-termcap or --disable-termcap was given.
5964 if test "${enable_termcap+set}" = set; then
5965 enableval="$enable_termcap"
5966 with_termcap=$enableval
5970 echo "$as_me:5970: result: $with_termcap" >&5
5971 echo "${ECHO_T}$with_termcap" >&6
5973 if test "$with_termcap" != "yes" ; then
5974 if test "$use_database" = no ; then
5975 if test -z "$with_fallback" ; then
5976 { { echo "$as_me:5976: error: You have disabled the database w/o specifying fallbacks" >&5
5977 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
5978 { (exit 1); exit 1; }; }
5981 cat >>confdefs.h <<\EOF
5982 #define PURE_TERMINFO 1
5987 if test "$with_ticlib" != no ; then
5988 { { echo "$as_me:5988: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
5989 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
5990 { (exit 1); exit 1; }; }
5993 cat >>confdefs.h <<\EOF
5994 #define USE_TERMCAP 1
5997 echo "$as_me:5997: checking for list of termcap files" >&5
5998 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6000 # Check whether --with-termpath or --without-termpath was given.
6001 if test "${with_termpath+set}" = set; then
6002 withval="$with_termpath"
6005 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
6007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6009 for cf_src_path in $withval
6012 if test "x$prefix" != xNONE; then
6013 cf_path_syntax="$prefix"
6015 cf_path_syntax="$ac_default_prefix"
6018 case ".$cf_src_path" in #(vi
6019 .\$\(*\)*|.\'*\'*) #(vi
6023 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6026 eval cf_src_path="$cf_src_path"
6027 case ".$cf_src_path" in #(vi
6029 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6034 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6037 { { echo "$as_me:6037: error: expected a pathname, not \"$cf_src_path\"" >&5
6038 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6039 { (exit 1); exit 1; }; }
6043 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6044 cf_dst_path="${cf_dst_path}${cf_src_path}"
6048 eval 'TERMPATH="$cf_dst_path"'
6050 echo "$as_me:6050: result: $TERMPATH" >&5
6051 echo "${ECHO_T}$TERMPATH" >&6
6052 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6053 #define TERMPATH "$TERMPATH"
6056 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6057 echo "$as_me:6057: checking if fast termcap-loader is needed" >&5
6058 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6060 # Check whether --enable-getcap or --disable-getcap was given.
6061 if test "${enable_getcap+set}" = set; then
6062 enableval="$enable_getcap"
6063 with_getcap=$enableval
6067 echo "$as_me:6067: result: $with_getcap" >&5
6068 echo "${ECHO_T}$with_getcap" >&6
6069 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6070 #define USE_GETCAP 1
6073 echo "$as_me:6073: checking if translated termcaps will be cached in ~/.terminfo" >&5
6074 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6076 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6077 if test "${enable_getcap_cache+set}" = set; then
6078 enableval="$enable_getcap_cache"
6079 with_getcap_cache=$enableval
6081 with_getcap_cache=no
6083 echo "$as_me:6083: result: $with_getcap_cache" >&5
6084 echo "${ECHO_T}$with_getcap_cache" >&6
6085 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6086 #define USE_GETCAP_CACHE 1
6091 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6092 echo "$as_me:6092: checking if ~/.terminfo is wanted" >&5
6093 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6095 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6096 if test "${enable_home_terminfo+set}" = set; then
6097 enableval="$enable_home_terminfo"
6098 with_home_terminfo=$enableval
6100 with_home_terminfo=yes
6102 echo "$as_me:6102: result: $with_home_terminfo" >&5
6103 echo "${ECHO_T}$with_home_terminfo" >&6
6104 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6105 #define USE_HOME_TERMINFO 1
6108 echo "$as_me:6108: checking if you want to use restricted environment when running as root" >&5
6109 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6111 # Check whether --enable-root-environ or --disable-root-environ was given.
6112 if test "${enable_root_environ+set}" = set; then
6113 enableval="$enable_root_environ"
6114 with_root_environ=$enableval
6116 with_root_environ=yes
6118 echo "$as_me:6118: result: $with_root_environ" >&5
6119 echo "${ECHO_T}$with_root_environ" >&6
6120 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6121 #define USE_ROOT_ENVIRON 1
6124 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6125 ### to reduce storage requirements for the terminfo database.
6131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6132 echo "$as_me:6132: checking for $ac_func" >&5
6133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6134 if eval "test \"\${$as_ac_var+set}\" = set"; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 cat >conftest.$ac_ext <<_ACEOF
6138 #line 6138 "configure"
6139 #include "confdefs.h"
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func (); below. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6155 /* The GNU C library defines this for functions which it implements
6156 to always fail with ENOSYS. Some functions are actually named
6157 something starting with __ and the normal name is an alias. */
6158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:6169: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6172 echo "$as_me:6172: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -s conftest$ac_exeext'
6175 { (eval echo "$as_me:6175: \"$ac_try\"") >&5
6178 echo "$as_me:6178: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 eval "$as_ac_var=yes"
6182 echo "$as_me: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6184 eval "$as_ac_var=no"
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6188 echo "$as_me:6188: result: `eval echo '${'$as_ac_var'}'`" >&5
6189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6190 if test `eval echo '${'$as_ac_var'}'` = yes; then
6191 cat >>confdefs.h <<EOF
6192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6198 if test "$cross_compiling" = yes ; then
6204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6205 echo "$as_me:6205: checking for $ac_func" >&5
6206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6207 if eval "test \"\${$as_ac_var+set}\" = set"; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 cat >conftest.$ac_ext <<_ACEOF
6211 #line 6211 "configure"
6212 #include "confdefs.h"
6213 /* System header to define __stub macros and hopefully few prototypes,
6214 which can conflict with char $ac_func (); below. */
6216 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6228 /* The GNU C library defines this for functions which it implements
6229 to always fail with ENOSYS. Some functions are actually named
6230 something starting with __ and the normal name is an alias. */
6231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (eval echo "$as_me:6242: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>&5
6245 echo "$as_me:6245: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -s conftest$ac_exeext'
6248 { (eval echo "$as_me:6248: \"$ac_try\"") >&5
6251 echo "$as_me:6251: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 eval "$as_ac_var=yes"
6255 echo "$as_me: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 eval "$as_ac_var=no"
6259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6261 echo "$as_me:6261: result: `eval echo '${'$as_ac_var'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6263 if test `eval echo '${'$as_ac_var'}'` = yes; then
6264 cat >>confdefs.h <<EOF
6265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6272 echo "$as_me:6272: checking if link/symlink functions work" >&5
6273 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6274 if test "${cf_cv_link_funcs+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 for cf_func in link symlink ; do
6280 if test "$cross_compiling" = yes; then
6282 eval 'ac_cv_func_'$cf_func'=error'
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line 6285 "configure"
6286 #include "confdefs.h"
6288 #include <sys/types.h>
6289 #include <sys/stat.h>
6290 #ifdef HAVE_UNISTD_H
6296 char *src = "config.log";
6297 char *dst = "conftest.chk";
6302 fail = ($cf_func("config.log", "conftest.chk") < 0)
6303 || (stat(dst, &dst_sb) < 0)
6304 || (dst_sb.st_mtime != src_sb.st_mtime);
6310 ${cf_cv_main_return:-return} (fail);
6314 rm -f conftest$ac_exeext
6315 if { (eval echo "$as_me:6315: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>&5
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6320 { (eval echo "$as_me:6320: \"$ac_try\"") >&5
6323 echo "$as_me:6323: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6326 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6327 eval 'ac_cv_func_'$cf_func'=yes'
6329 echo "$as_me: program exited with status $ac_status" >&5
6330 echo "$as_me: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 eval 'ac_cv_func_'$cf_func'=no'
6335 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6338 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6341 echo "$as_me:6341: result: $cf_cv_link_funcs" >&5
6342 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6343 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6347 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6348 #define HAVE_SYMLINK 1
6356 # soft links (symbolic links) are useful for some systems where hard links do
6357 # not work, or to make it simpler to copy terminfo trees around.
6358 if test "$ac_cv_func_symlink" = yes ; then
6359 echo "$as_me:6359: checking if tic should use symbolic links" >&5
6360 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6362 # Check whether --enable-symlinks or --disable-symlinks was given.
6363 if test "${enable_symlinks+set}" = set; then
6364 enableval="$enable_symlinks"
6365 with_symlinks=$enableval
6369 echo "$as_me:6369: result: $with_symlinks" >&5
6370 echo "${ECHO_T}$with_symlinks" >&6
6373 # If we have hard links and did not choose to use soft links instead, there is
6374 # no reason to make this choice optional - use the hard links.
6375 if test "$with_symlinks" = no ; then
6376 echo "$as_me:6376: checking if tic should use hard links" >&5
6377 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6378 if test "$ac_cv_func_link" = yes ; then
6383 echo "$as_me:6383: result: $with_links" >&5
6384 echo "${ECHO_T}$with_links" >&6
6387 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6391 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6392 #define USE_SYMLINKS 1
6395 ### use option --enable-broken-linker to force on use of broken-linker support
6396 echo "$as_me:6396: checking if you want broken-linker support code" >&5
6397 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6399 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6400 if test "${enable_broken_linker+set}" = set; then
6401 enableval="$enable_broken_linker"
6402 with_broken_linker=$enableval
6404 with_broken_linker=${BROKEN_LINKER-no}
6406 echo "$as_me:6406: result: $with_broken_linker" >&5
6407 echo "${ECHO_T}$with_broken_linker" >&6
6410 if test "$with_broken_linker" = yes ; then
6411 cat >>confdefs.h <<\EOF
6412 #define BROKEN_LINKER 1
6416 elif test "$DFT_LWR_MODEL" = shared ; then
6417 case $cf_cv_system_name in #(vi
6419 cat >>confdefs.h <<\EOF
6420 #define BROKEN_LINKER 1
6424 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6426 echo "${as_me-configure}:6426: testing cygwin linker is broken anyway ..." 1>&5
6432 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6433 echo "$as_me:6433: checking if tputs should process BSD-style prefix padding" >&5
6434 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6436 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6437 if test "${enable_bsdpad+set}" = set; then
6438 enableval="$enable_bsdpad"
6439 with_bsdpad=$enableval
6443 echo "$as_me:6443: result: $with_bsdpad" >&5
6444 echo "${ECHO_T}$with_bsdpad" >&6
6445 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6449 ### use option --enable-widec to turn on use of wide-character support
6458 # Check to define _XOPEN_SOURCE "automatically"
6460 echo "$as_me:6460: checking if $CC -U and -D options work together" >&5
6461 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
6462 if test "${cf_cv_cc_u_d_options+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 cf_save_CPPFLAGS="$CPPFLAGS"
6467 CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
6468 cat >conftest.$ac_ext <<_ACEOF
6469 #line 6469 "configure"
6470 #include "confdefs.h"
6477 make an undefined-error
6480 make a defined-error
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:6488: \"$ac_compile\"") >&5
6489 (eval $ac_compile) 2>&5
6491 echo "$as_me:6491: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:6494: \"$ac_try\"") >&5
6497 echo "$as_me:6497: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6500 cf_cv_cc_u_d_options=yes
6502 echo "$as_me: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6505 cf_cv_cc_u_d_options=no
6507 rm -f conftest.$ac_objext conftest.$ac_ext
6508 CPPFLAGS="$cf_save_CPPFLAGS"
6511 echo "$as_me:6511: result: $cf_cv_cc_u_d_options" >&5
6512 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
6515 cf_POSIX_C_SOURCE=199506L
6517 case $host_os in #(vi
6519 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
6521 freebsd*|dragonfly*) #(vi
6522 # 5.x headers associate
6523 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6524 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6525 cf_POSIX_C_SOURCE=200112L
6527 CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6530 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6533 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
6536 CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
6538 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6540 echo "$as_me:6540: checking if we must define _GNU_SOURCE" >&5
6541 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6542 if test "${cf_cv_gnu_source+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 #line 6547 "configure"
6548 #include "confdefs.h"
6549 #include <sys/types.h>
6554 #ifndef _XOPEN_SOURCE
6561 rm -f conftest.$ac_objext
6562 if { (eval echo "$as_me:6562: \"$ac_compile\"") >&5
6563 (eval $ac_compile) 2>&5
6565 echo "$as_me:6565: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -s conftest.$ac_objext'
6568 { (eval echo "$as_me:6568: \"$ac_try\"") >&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6575 echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line 6580 "configure"
6581 #include "confdefs.h"
6582 #include <sys/types.h>
6587 #ifdef _XOPEN_SOURCE
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:6595: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest.$ac_objext'
6601 { (eval echo "$as_me:6601: \"$ac_try\"") >&5
6604 echo "$as_me:6604: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 cf_cv_gnu_source=yes
6612 rm -f conftest.$ac_objext conftest.$ac_ext
6616 rm -f conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me:6619: result: $cf_cv_gnu_source" >&5
6620 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6621 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6625 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6628 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6631 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6634 CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
6637 CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
6640 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6643 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6646 echo "$as_me:6646: checking if we should define _XOPEN_SOURCE" >&5
6647 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6648 if test "${cf_cv_xopen_source+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6653 #line 6653 "configure"
6654 #include "confdefs.h"
6655 #include <sys/types.h>
6660 #ifndef _XOPEN_SOURCE
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:6668: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:6674: \"$ac_try\"") >&5
6677 echo "$as_me:6677: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 cf_cv_xopen_source=no
6681 echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6684 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line 6686 "configure"
6687 #include "confdefs.h"
6688 #include <sys/types.h>
6693 #ifdef _XOPEN_SOURCE
6700 rm -f conftest.$ac_objext
6701 if { (eval echo "$as_me:6701: \"$ac_compile\"") >&5
6702 (eval $ac_compile) 2>&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try='test -s conftest.$ac_objext'
6707 { (eval echo "$as_me:6707: \"$ac_try\"") >&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 cf_cv_xopen_source=no
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6716 cf_cv_xopen_source=$cf_XOPEN_SOURCE
6718 rm -f conftest.$ac_objext conftest.$ac_ext
6722 rm -f conftest.$ac_objext conftest.$ac_ext
6725 echo "$as_me:6725: result: $cf_cv_xopen_source" >&5
6726 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6727 if test "$cf_cv_xopen_source" != no ; then
6729 # remove _XOPEN_SOURCE symbol from $CFLAGS
6730 CFLAGS=`echo "$CFLAGS" | \
6731 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6732 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6734 # remove _XOPEN_SOURCE symbol from $CPPFLAGS
6735 CPPFLAGS=`echo "$CPPFLAGS" | \
6736 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6737 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6739 test "$cf_cv_cc_u_d_options" = yes && \
6740 CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
6741 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
6744 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
6746 cf_save_CFLAGS="$CFLAGS"
6747 cf_save_CPPFLAGS="$CPPFLAGS"
6749 # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
6750 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
6751 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6752 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6754 # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
6755 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
6756 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6757 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6759 echo "$as_me:6759: checking if we should define _POSIX_C_SOURCE" >&5
6760 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6761 if test "${cf_cv_posix_c_source+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 echo "${as_me-configure}:6765: testing if the symbol is already defined go no further ..." 1>&5
6767 cat >conftest.$ac_ext <<_ACEOF
6768 #line 6768 "configure"
6769 #include "confdefs.h"
6770 #include <sys/types.h>
6775 #ifndef _POSIX_C_SOURCE
6782 rm -f conftest.$ac_objext
6783 if { (eval echo "$as_me:6783: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>&5
6786 echo "$as_me:6786: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -s conftest.$ac_objext'
6789 { (eval echo "$as_me:6789: \"$ac_try\"") >&5
6792 echo "$as_me:6792: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 cf_cv_posix_c_source=no
6796 echo "$as_me: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6798 cf_want_posix_source=no
6799 case .$cf_POSIX_C_SOURCE in #(vi
6801 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6804 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6805 cf_want_posix_source=yes
6808 cf_want_posix_source=yes
6811 if test "$cf_want_posix_source" = yes ; then
6812 cat >conftest.$ac_ext <<_ACEOF
6813 #line 6813 "configure"
6814 #include "confdefs.h"
6815 #include <sys/types.h>
6820 #ifdef _POSIX_SOURCE
6827 rm -f conftest.$ac_objext
6828 if { (eval echo "$as_me:6828: \"$ac_compile\"") >&5
6829 (eval $ac_compile) 2>&5
6831 echo "$as_me:6831: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -s conftest.$ac_objext'
6834 { (eval echo "$as_me:6834: \"$ac_try\"") >&5
6837 echo "$as_me:6837: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6841 echo "$as_me: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6843 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
6845 rm -f conftest.$ac_objext conftest.$ac_ext
6848 echo "${as_me-configure}:6848: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
6850 CFLAGS="$cf_trim_CFLAGS"
6851 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
6853 echo "${as_me-configure}:6853: testing if the second compile does not leave our definition intact error ..." 1>&5
6855 cat >conftest.$ac_ext <<_ACEOF
6856 #line 6856 "configure"
6857 #include "confdefs.h"
6858 #include <sys/types.h>
6863 #ifndef _POSIX_C_SOURCE
6870 rm -f conftest.$ac_objext
6871 if { (eval echo "$as_me:6871: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>&5
6874 echo "$as_me:6874: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:6877: \"$ac_try\"") >&5
6880 echo "$as_me:6880: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6884 echo "$as_me: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6886 cf_cv_posix_c_source=no
6888 rm -f conftest.$ac_objext conftest.$ac_ext
6889 CFLAGS="$cf_save_CFLAGS"
6890 CPPFLAGS="$cf_save_CPPFLAGS"
6893 rm -f conftest.$ac_objext conftest.$ac_ext
6896 echo "$as_me:6896: result: $cf_cv_posix_c_source" >&5
6897 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
6899 if test "$cf_cv_posix_c_source" != no ; then
6900 CFLAGS="$cf_trim_CFLAGS"
6901 CPPFLAGS="$cf_trim_CPPFLAGS"
6902 if test "$cf_cv_cc_u_d_options" = yes ; then
6903 cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
6904 sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
6905 CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
6907 CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
6913 # Work around breakage on OS X
6915 echo "$as_me:6915: checking if SIGWINCH is defined" >&5
6916 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
6917 if test "${cf_cv_define_sigwinch+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.$ac_ext <<_ACEOF
6922 #line 6922 "configure"
6923 #include "confdefs.h"
6925 #include <sys/types.h>
6926 #include <sys/signal.h>
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:6937: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5
6940 echo "$as_me:6940: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:6943: \"$ac_try\"") >&5
6946 echo "$as_me:6946: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 cf_cv_define_sigwinch=yes
6950 echo "$as_me: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6952 cat >conftest.$ac_ext <<_ACEOF
6953 #line 6953 "configure"
6954 #include "confdefs.h"
6956 #undef _XOPEN_SOURCE
6957 #undef _POSIX_SOURCE
6958 #undef _POSIX_C_SOURCE
6959 #include <sys/types.h>
6960 #include <sys/signal.h>
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:6971: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>&5
6974 echo "$as_me:6974: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:6977: \"$ac_try\"") >&5
6980 echo "$as_me:6980: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 cf_cv_define_sigwinch=maybe
6984 echo "$as_me: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 cf_cv_define_sigwinch=no
6988 rm -f conftest.$ac_objext conftest.$ac_ext
6991 rm -f conftest.$ac_objext conftest.$ac_ext
6994 echo "$as_me:6994: result: $cf_cv_define_sigwinch" >&5
6995 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
6997 if test "$cf_cv_define_sigwinch" = maybe ; then
6998 echo "$as_me:6998: checking for actual SIGWINCH definition" >&5
6999 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7000 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 cf_cv_fixup_sigwinch=unknown
7006 while test $cf_sigwinch != 1
7008 cat >conftest.$ac_ext <<_ACEOF
7009 #line 7009 "configure"
7010 #include "confdefs.h"
7012 #undef _XOPEN_SOURCE
7013 #undef _POSIX_SOURCE
7014 #undef _POSIX_C_SOURCE
7015 #include <sys/types.h>
7016 #include <sys/signal.h>
7022 #if SIGWINCH != $cf_sigwinch
7030 rm -f conftest.$ac_objext
7031 if { (eval echo "$as_me:7031: \"$ac_compile\"") >&5
7032 (eval $ac_compile) 2>&5
7034 echo "$as_me:7034: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:7037: \"$ac_try\"") >&5
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 cf_cv_fixup_sigwinch=$cf_sigwinch
7045 echo "$as_me: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7048 rm -f conftest.$ac_objext conftest.$ac_ext
7050 cf_sigwinch=`expr $cf_sigwinch - 1`
7054 echo "$as_me:7054: result: $cf_cv_fixup_sigwinch" >&5
7055 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7057 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7058 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7062 # Checks for CODESET support.
7064 echo "$as_me:7064: checking for nl_langinfo and CODESET" >&5
7065 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7066 if test "${am_cv_langinfo_codeset+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line 7070 "configure"
7071 #include "confdefs.h"
7072 #include <langinfo.h>
7076 char* cs = nl_langinfo(CODESET);
7081 rm -f conftest.$ac_objext conftest$ac_exeext
7082 if { (eval echo "$as_me:7082: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
7085 echo "$as_me:7085: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -s conftest$ac_exeext'
7088 { (eval echo "$as_me:7088: \"$ac_try\"") >&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 am_cv_langinfo_codeset=yes
7095 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 am_cv_langinfo_codeset=no
7099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7102 echo "$as_me:7102: result: $am_cv_langinfo_codeset" >&5
7103 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7104 if test $am_cv_langinfo_codeset = yes; then
7106 cat >>confdefs.h <<\EOF
7107 #define HAVE_LANGINFO_CODESET 1
7112 # use these variables to work around a defect in gcc's fixincludes.
7116 echo "$as_me:7116: checking if you want wide-character code" >&5
7117 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7119 # Check whether --enable-widec or --disable-widec was given.
7120 if test "${enable_widec+set}" = set; then
7121 enableval="$enable_widec"
7122 with_widec=$enableval
7126 echo "$as_me:7126: result: $with_widec" >&5
7127 echo "${ECHO_T}$with_widec" >&6
7128 if test "$with_widec" = yes ; then
7129 LIB_SUFFIX="w${LIB_SUFFIX}"
7130 cat >>confdefs.h <<\EOF
7131 #define USE_WIDEC_SUPPORT 1
7134 echo "$as_me:7134: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7135 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line 7137 "configure"
7138 #include "confdefs.h"
7139 #include <sys/types.h>
7145 #ifndef _XOPEN_SOURCE_EXTENDED
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:7153: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>&5
7156 echo "$as_me:7156: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:7159: \"$ac_try\"") >&5
7162 echo "$as_me:7162: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7166 echo "$as_me: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7170 rm -f conftest.$ac_objext conftest.$ac_ext
7171 echo "$as_me:7171: result: $cf_result" >&5
7172 echo "${ECHO_T}$cf_result" >&6
7174 if test "$cf_result" = yes ; then
7175 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7176 elif test "x" != "x" ; then
7177 echo "$as_me:7177: checking checking for compatible value versus " >&5
7178 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7179 cat >conftest.$ac_ext <<_ACEOF
7180 #line 7180 "configure"
7181 #include "confdefs.h"
7182 #include <sys/types.h>
7188 #if _XOPEN_SOURCE_EXTENDED- < 0
7195 rm -f conftest.$ac_objext
7196 if { (eval echo "$as_me:7196: \"$ac_compile\"") >&5
7197 (eval $ac_compile) 2>&5
7199 echo "$as_me:7199: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:7202: \"$ac_try\"") >&5
7205 echo "$as_me:7205: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7209 echo "$as_me: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7213 rm -f conftest.$ac_objext conftest.$ac_ext
7214 echo "$as_me:7214: result: $cf_result" >&5
7215 echo "${ECHO_T}$cf_result" >&6
7216 if test "$cf_result" = no ; then
7217 # perhaps we can override it - try...
7218 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7223 NCURSES_CH_T=cchar_t
7225 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7228 echo "$as_me:7228: checking for $ac_func" >&5
7229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7230 if eval "test \"\${$as_ac_var+set}\" = set"; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7234 #line 7234 "configure"
7235 #include "confdefs.h"
7236 /* System header to define __stub macros and hopefully few prototypes,
7237 which can conflict with char $ac_func (); below. */
7239 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7264 rm -f conftest.$ac_objext conftest$ac_exeext
7265 if { (eval echo "$as_me:7265: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -s conftest$ac_exeext'
7271 { (eval echo "$as_me:7271: \"$ac_try\"") >&5
7274 echo "$as_me:7274: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 eval "$as_ac_var=yes"
7278 echo "$as_me: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 eval "$as_ac_var=no"
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7284 echo "$as_me:7284: result: `eval echo '${'$as_ac_var'}'`" >&5
7285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7286 if test `eval echo '${'$as_ac_var'}'` = yes; then
7287 cat >>confdefs.h <<EOF
7288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7294 if test "$ac_cv_func_putwc" != yes ; then
7296 echo "$as_me:7296: checking for multibyte character support" >&5
7297 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7298 if test "${cf_cv_utf8_lib+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cf_save_LIBS="$LIBS"
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line 7304 "configure"
7305 #include "confdefs.h"
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (eval echo "$as_me:7317: \"$ac_link\"") >&5
7318 (eval $ac_link) 2>&5
7320 echo "$as_me:7320: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:7323: \"$ac_try\"") >&5
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7330 echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7333 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7334 # will be set on completion of the AC_TRY_LINK below.
7335 cf_cv_header_path_utf8=
7336 cf_cv_library_path_utf8=
7338 echo "${as_me-configure}:7338: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line 7341 "configure"
7342 #include "confdefs.h"
7344 #include <libutf8.h>
7353 rm -f conftest.$ac_objext conftest$ac_exeext
7354 if { (eval echo "$as_me:7354: \"$ac_link\"") >&5
7355 (eval $ac_link) 2>&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -s conftest$ac_exeext'
7360 { (eval echo "$as_me:7360: \"$ac_try\"") >&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 cf_cv_find_linkage_utf8=yes
7367 echo "$as_me: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 cf_cv_find_linkage_utf8=no
7372 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7374 echo "${as_me-configure}:7374: testing find linkage for utf8 library ..." 1>&5
7376 echo "${as_me-configure}:7376: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7378 cf_save_CPPFLAGS="$CPPFLAGS"
7379 cf_test_CPPFLAGS="$CPPFLAGS"
7381 cf_header_path_list=""
7382 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7383 for cf_header_path in $CPPFLAGS $CFLAGS
7385 case $cf_header_path in #(vi
7387 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7389 test "$cf_header_path" != "NONE" && \
7390 test -d "$cf_header_path" && \
7392 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7393 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7394 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7395 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7396 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7397 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7400 cf_header_path_list="$cf_header_path_list $cf_search"
7408 test "/usr" != "$prefix" && \
7410 (test $prefix = NONE || test -d $prefix) && {
7411 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7412 test -d /usr/include && cf_search="$cf_search /usr/include"
7413 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7414 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7415 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7416 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7419 test "$prefix" != "NONE" && \
7420 test -d "$prefix" && \
7422 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7423 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7424 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7425 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7426 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7427 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7430 test "/usr/local" != "$prefix" && \
7431 test -d "/usr/local" && \
7432 (test $prefix = NONE || test -d $prefix) && {
7433 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7434 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7435 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7436 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7437 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7438 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7441 test "/opt" != "$prefix" && \
7443 (test $prefix = NONE || test -d $prefix) && {
7444 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7445 test -d /opt/include && cf_search="$cf_search /opt/include"
7446 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7447 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7448 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7449 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7452 test "$HOME" != "$prefix" && \
7453 test -d "$HOME" && \
7454 (test $prefix = NONE || test -d $prefix) && {
7455 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7456 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7457 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7458 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7459 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7460 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7463 test "$includedir" != NONE && \
7464 test "$includedir" != "/usr/include" && \
7465 test -d "$includedir" && {
7466 test -d $includedir && cf_search="$cf_search $includedir"
7467 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7470 test "$oldincludedir" != NONE && \
7471 test "$oldincludedir" != "/usr/include" && \
7472 test -d "$oldincludedir" && {
7473 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7474 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7477 cf_search="$cf_header_path_list $cf_search"
7479 for cf_cv_header_path_utf8 in $cf_search
7481 if test -d $cf_cv_header_path_utf8 ; then
7482 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7484 echo "${as_me-configure}:7484: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7486 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7487 cat >conftest.$ac_ext <<_ACEOF
7488 #line 7488 "configure"
7489 #include "confdefs.h"
7491 #include <libutf8.h>
7500 rm -f conftest.$ac_objext
7501 if { (eval echo "$as_me:7501: \"$ac_compile\"") >&5
7502 (eval $ac_compile) 2>&5
7504 echo "$as_me:7504: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -s conftest.$ac_objext'
7507 { (eval echo "$as_me:7507: \"$ac_try\"") >&5
7510 echo "$as_me:7510: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7513 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7515 echo "${as_me-configure}:7515: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7517 cf_cv_find_linkage_utf8=maybe
7518 cf_test_CPPFLAGS="$CPPFLAGS"
7521 echo "$as_me: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7524 CPPFLAGS="$cf_save_CPPFLAGS"
7527 rm -f conftest.$ac_objext conftest.$ac_ext
7531 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7533 echo "${as_me-configure}:7533: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7535 cf_save_LIBS="$LIBS"
7536 cf_save_LDFLAGS="$LDFLAGS"
7538 if test "$cf_cv_find_linkage_utf8" != yes ; then
7540 cf_library_path_list=""
7541 if test -n "${LDFLAGS}${LIBS}" ; then
7542 for cf_library_path in $LDFLAGS $LIBS
7544 case $cf_library_path in #(vi
7546 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7548 test "$cf_library_path" != "NONE" && \
7549 test -d "$cf_library_path" && \
7551 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7552 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7553 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7554 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7555 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7556 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7559 cf_library_path_list="$cf_library_path_list $cf_search"
7567 test "/usr" != "$prefix" && \
7569 (test $prefix = NONE || test -d $prefix) && {
7570 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7571 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7572 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7573 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7574 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7575 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7578 test "$prefix" != "NONE" && \
7579 test -d "$prefix" && \
7581 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7582 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7583 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7584 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7585 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7586 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7589 test "/usr/local" != "$prefix" && \
7590 test -d "/usr/local" && \
7591 (test $prefix = NONE || test -d $prefix) && {
7592 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7593 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7594 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7595 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7596 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7597 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7600 test "/opt" != "$prefix" && \
7602 (test $prefix = NONE || test -d $prefix) && {
7603 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7604 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7605 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7606 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7607 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7608 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7611 test "$HOME" != "$prefix" && \
7612 test -d "$HOME" && \
7613 (test $prefix = NONE || test -d $prefix) && {
7614 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7615 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7616 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7617 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7618 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7619 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7622 cf_search="$cf_library_path_list $cf_search"
7624 for cf_cv_library_path_utf8 in $cf_search
7626 if test -d $cf_cv_library_path_utf8 ; then
7627 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7629 echo "${as_me-configure}:7629: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7631 CPPFLAGS="$cf_test_CPPFLAGS"
7632 LIBS="-lutf8 $cf_save_LIBS"
7633 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7634 cat >conftest.$ac_ext <<_ACEOF
7635 #line 7635 "configure"
7636 #include "confdefs.h"
7638 #include <libutf8.h>
7647 rm -f conftest.$ac_objext conftest$ac_exeext
7648 if { (eval echo "$as_me:7648: \"$ac_link\"") >&5
7649 (eval $ac_link) 2>&5
7651 echo "$as_me:7651: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
7653 { ac_try='test -s conftest$ac_exeext'
7654 { (eval echo "$as_me:7654: \"$ac_try\"") >&5
7657 echo "$as_me:7657: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7660 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7662 echo "${as_me-configure}:7662: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7664 cf_cv_find_linkage_utf8=yes
7665 cf_cv_library_file_utf8="-lutf8"
7668 echo "$as_me: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7671 CPPFLAGS="$cf_save_CPPFLAGS"
7672 LIBS="$cf_save_LIBS"
7673 LDFLAGS="$cf_save_LDFLAGS"
7676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 LIBS="$cf_save_LIBS"
7680 CPPFLAGS="$cf_save_CPPFLAGS"
7681 LDFLAGS="$cf_save_LDFLAGS"
7685 cf_cv_find_linkage_utf8=no
7689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7691 if test "$cf_cv_find_linkage_utf8" = yes ; then
7692 cf_cv_utf8_lib=add-on
7698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7700 echo "$as_me:7700: result: $cf_cv_utf8_lib" >&5
7701 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7703 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7705 if test "$cf_cv_utf8_lib" = "add-on" ; then
7706 cat >>confdefs.h <<\EOF
7707 #define HAVE_LIBUTF8_H 1
7710 if test -n "$cf_cv_header_path_utf8" ; then
7711 for cf_add_incdir in $cf_cv_header_path_utf8
7713 while test $cf_add_incdir != /usr/include
7715 if test -d $cf_add_incdir
7718 if test -n "$CFLAGS$CPPFLAGS" ; then
7719 # a loop is needed to ensure we can add subdirs of existing dirs
7720 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7721 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7722 cf_have_incdir=yes; break
7727 if test "$cf_have_incdir" = no ; then
7728 if test "$cf_add_incdir" = /usr/local/include ; then
7729 if test "$GCC" = yes
7731 cf_save_CPPFLAGS=$CPPFLAGS
7732 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 #line 7734 "configure"
7735 #include "confdefs.h"
7745 rm -f conftest.$ac_objext
7746 if { (eval echo "$as_me:7746: \"$ac_compile\"") >&5
7747 (eval $ac_compile) 2>&5
7749 echo "$as_me:7749: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -s conftest.$ac_objext'
7752 { (eval echo "$as_me:7752: \"$ac_try\"") >&5
7755 echo "$as_me:7755: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7759 echo "$as_me: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7763 rm -f conftest.$ac_objext conftest.$ac_ext
7764 CPPFLAGS=$cf_save_CPPFLAGS
7769 if test "$cf_have_incdir" = no ; then
7770 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7772 echo "${as_me-configure}:7772: testing adding $cf_add_incdir to include-path ..." 1>&5
7774 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7776 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7777 test "$cf_top_incdir" = "$cf_add_incdir" && break
7778 cf_add_incdir="$cf_top_incdir"
7787 if test -n "$cf_cv_library_path_utf8" ; then
7788 for cf_add_libdir in $cf_cv_library_path_utf8
7790 if test $cf_add_libdir = /usr/lib ; then
7792 elif test -d $cf_add_libdir
7795 if test -n "$LDFLAGS$LIBS" ; then
7796 # a loop is needed to ensure we can add subdirs of existing dirs
7797 for cf_test_libdir in $LDFLAGS $LIBS ; do
7798 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7799 cf_have_libdir=yes; break
7803 if test "$cf_have_libdir" = no ; then
7804 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7806 echo "${as_me-configure}:7806: testing adding $cf_add_libdir to library-path ..." 1>&5
7808 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7817 if test "$cf_cv_utf8_lib" != no ; then
7822 # This is needed on Tru64 5.0 to declare mbstate_t
7823 echo "$as_me:7823: checking if we must include wchar.h to declare mbstate_t" >&5
7824 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
7825 if test "${cf_cv_mbstate_t+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #line 7830 "configure"
7831 #include "confdefs.h"
7836 #ifdef HAVE_LIBUTF8_H
7837 #include <libutf8.h>
7847 rm -f conftest.$ac_objext
7848 if { (eval echo "$as_me:7848: \"$ac_compile\"") >&5
7849 (eval $ac_compile) 2>&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -s conftest.$ac_objext'
7854 { (eval echo "$as_me:7854: \"$ac_try\"") >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7861 echo "$as_me: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 cat >conftest.$ac_ext <<_ACEOF
7864 #line 7864 "configure"
7865 #include "confdefs.h"
7871 #ifdef HAVE_LIBUTF8_H
7872 #include <libutf8.h>
7882 rm -f conftest.$ac_objext
7883 if { (eval echo "$as_me:7883: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>&5
7886 echo "$as_me:7886: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -s conftest.$ac_objext'
7889 { (eval echo "$as_me:7889: \"$ac_try\"") >&5
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7896 echo "$as_me: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7898 cf_cv_mbstate_t=unknown
7900 rm -f conftest.$ac_objext conftest.$ac_ext
7902 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:7904: result: $cf_cv_mbstate_t" >&5
7905 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
7907 if test "$cf_cv_mbstate_t" = yes ; then
7908 cat >>confdefs.h <<\EOF
7909 #define NEED_WCHAR_H 1
7915 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
7916 if test "$cf_cv_mbstate_t" = unknown ; then
7920 # This is needed on Tru64 5.0 to declare wchar_t
7921 echo "$as_me:7921: checking if we must include wchar.h to declare wchar_t" >&5
7922 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
7923 if test "${cf_cv_wchar_t+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 cat >conftest.$ac_ext <<_ACEOF
7928 #line 7928 "configure"
7929 #include "confdefs.h"
7934 #ifdef HAVE_LIBUTF8_H
7935 #include <libutf8.h>
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:7946: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>&5
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:7952: \"$ac_try\"") >&5
7955 echo "$as_me:7955: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7959 echo "$as_me: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 cat >conftest.$ac_ext <<_ACEOF
7962 #line 7962 "configure"
7963 #include "confdefs.h"
7969 #ifdef HAVE_LIBUTF8_H
7970 #include <libutf8.h>
7980 rm -f conftest.$ac_objext
7981 if { (eval echo "$as_me:7981: \"$ac_compile\"") >&5
7982 (eval $ac_compile) 2>&5
7984 echo "$as_me:7984: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:7987: \"$ac_try\"") >&5
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7994 echo "$as_me: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7996 cf_cv_wchar_t=unknown
7998 rm -f conftest.$ac_objext conftest.$ac_ext
8000 rm -f conftest.$ac_objext conftest.$ac_ext
8002 echo "$as_me:8002: result: $cf_cv_wchar_t" >&5
8003 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8005 if test "$cf_cv_wchar_t" = yes ; then
8006 cat >>confdefs.h <<\EOF
8007 #define NEED_WCHAR_H 1
8013 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8014 if test "$cf_cv_wchar_t" = unknown ; then
8018 # if we find wchar_t in either place, use substitution to provide a fallback.
8019 if test "$cf_cv_wchar_t" != unknown ; then
8020 NCURSES_OK_WCHAR_T=1
8023 # This is needed on Tru64 5.0 to declare wint_t
8024 echo "$as_me:8024: checking if we must include wchar.h to declare wint_t" >&5
8025 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8026 if test "${cf_cv_wint_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_wint_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_wint_t" >&5
8106 echo "${ECHO_T}$cf_cv_wint_t" >&6
8108 if test "$cf_cv_wint_t" = yes ; then
8109 cat >>confdefs.h <<\EOF
8110 #define NEED_WCHAR_H 1
8116 # if we do not find wint_t in either place, use substitution to provide a fallback.
8117 if test "$cf_cv_wint_t" = unknown ; then
8121 # if we find wint_t in either place, use substitution to provide a fallback.
8122 if test "$cf_cv_wint_t" != unknown ; then
8126 if test "$NCURSES_MBSTATE_T" != 0; then
8127 cat >>confdefs.h <<\EOF
8128 #define NEED_MBSTATE_T_DEF 1
8134 ### use option --disable-lp64 to allow long chtype
8135 case $cf_cv_abi_version in
8137 default_with_lp64=no
8140 default_with_lp64=yes
8144 echo "$as_me:8144: checking whether to enable _LP64 definition in curses.h" >&5
8145 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8147 # Check whether --enable-lp64 or --disable-lp64 was given.
8148 if test "${enable_lp64+set}" = set; then
8149 enableval="$enable_lp64"
8150 with_lp64=$enableval
8152 with_lp64=$default_with_lp64
8154 echo "$as_me:8154: result: $with_lp64" >&5
8155 echo "${ECHO_T}$with_lp64" >&6
8157 if test "$with_lp64" = yes ; then
8163 # Check whether --enable-largefile or --disable-largefile was given.
8164 if test "${enable_largefile+set}" = set; then
8165 enableval="$enable_largefile"
8168 if test "$enable_largefile" != no; then
8170 echo "$as_me:8170: checking for special C compiler options needed for large files" >&5
8171 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8172 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 ac_cv_sys_largefile_CC=no
8176 if test "$GCC" != yes; then
8179 # IRIX 6.2 and later do not support large files by default,
8180 # so use the C compiler's -n32 option if that helps.
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line 8182 "configure"
8183 #include "confdefs.h"
8184 #include <sys/types.h>
8185 /* Check that off_t can represent 2**63 - 1 correctly.
8186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8187 since some C++ compilers masquerading as C compilers
8188 incorrectly reject 9223372036854775807. */
8189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8191 && LARGE_OFF_T % 2147483647 == 1)
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:8202: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>&5
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:8208: \"$ac_try\"") >&5
8211 echo "$as_me:8211: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8215 echo "$as_me: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8218 rm -f conftest.$ac_objext
8220 rm -f conftest.$ac_objext
8221 if { (eval echo "$as_me:8221: \"$ac_compile\"") >&5
8222 (eval $ac_compile) 2>&5
8224 echo "$as_me:8224: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (eval echo "$as_me:8227: \"$ac_try\"") >&5
8230 echo "$as_me:8230: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_sys_largefile_CC=' -n32'; break
8234 echo "$as_me: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8237 rm -f conftest.$ac_objext
8241 rm -f conftest.$ac_ext
8244 echo "$as_me:8244: result: $ac_cv_sys_largefile_CC" >&5
8245 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8246 if test "$ac_cv_sys_largefile_CC" != no; then
8247 CC=$CC$ac_cv_sys_largefile_CC
8250 echo "$as_me:8250: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8251 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8252 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 ac_cv_sys_file_offset_bits=no
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line 8258 "configure"
8259 #include "confdefs.h"
8260 #include <sys/types.h>
8261 /* Check that off_t can represent 2**63 - 1 correctly.
8262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8263 since some C++ compilers masquerading as C compilers
8264 incorrectly reject 9223372036854775807. */
8265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8267 && LARGE_OFF_T % 2147483647 == 1)
8277 rm -f conftest.$ac_objext
8278 if { (eval echo "$as_me:8278: \"$ac_compile\"") >&5
8279 (eval $ac_compile) 2>&5
8281 echo "$as_me:8281: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -s conftest.$ac_objext'
8284 { (eval echo "$as_me:8284: \"$ac_try\"") >&5
8287 echo "$as_me:8287: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8291 echo "$as_me: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8294 rm -f conftest.$ac_objext conftest.$ac_ext
8295 cat >conftest.$ac_ext <<_ACEOF
8296 #line 8296 "configure"
8297 #include "confdefs.h"
8298 #define _FILE_OFFSET_BITS 64
8299 #include <sys/types.h>
8300 /* Check that off_t can represent 2**63 - 1 correctly.
8301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8302 since some C++ compilers masquerading as C compilers
8303 incorrectly reject 9223372036854775807. */
8304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8306 && LARGE_OFF_T % 2147483647 == 1)
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:8317: \"$ac_compile\"") >&5
8318 (eval $ac_compile) 2>&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -s conftest.$ac_objext'
8323 { (eval echo "$as_me:8323: \"$ac_try\"") >&5
8326 echo "$as_me:8326: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 ac_cv_sys_file_offset_bits=64; break
8330 echo "$as_me: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8333 rm -f conftest.$ac_objext conftest.$ac_ext
8337 echo "$as_me:8337: result: $ac_cv_sys_file_offset_bits" >&5
8338 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8339 if test "$ac_cv_sys_file_offset_bits" != no; then
8341 cat >>confdefs.h <<EOF
8342 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8347 echo "$as_me:8347: checking for _LARGE_FILES value needed for large files" >&5
8348 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8349 if test "${ac_cv_sys_large_files+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_cv_sys_large_files=no
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line 8355 "configure"
8356 #include "confdefs.h"
8357 #include <sys/types.h>
8358 /* Check that off_t can represent 2**63 - 1 correctly.
8359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8360 since some C++ compilers masquerading as C compilers
8361 incorrectly reject 9223372036854775807. */
8362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8364 && LARGE_OFF_T % 2147483647 == 1)
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:8375: \"$ac_compile\"") >&5
8376 (eval $ac_compile) 2>&5
8378 echo "$as_me:8378: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -s conftest.$ac_objext'
8381 { (eval echo "$as_me:8381: \"$ac_try\"") >&5
8384 echo "$as_me:8384: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8388 echo "$as_me: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8391 rm -f conftest.$ac_objext conftest.$ac_ext
8392 cat >conftest.$ac_ext <<_ACEOF
8393 #line 8393 "configure"
8394 #include "confdefs.h"
8395 #define _LARGE_FILES 1
8396 #include <sys/types.h>
8397 /* Check that off_t can represent 2**63 - 1 correctly.
8398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8399 since some C++ compilers masquerading as C compilers
8400 incorrectly reject 9223372036854775807. */
8401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8403 && LARGE_OFF_T % 2147483647 == 1)
8413 rm -f conftest.$ac_objext
8414 if { (eval echo "$as_me:8414: \"$ac_compile\"") >&5
8415 (eval $ac_compile) 2>&5
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -s conftest.$ac_objext'
8420 { (eval echo "$as_me:8420: \"$ac_try\"") >&5
8423 echo "$as_me:8423: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_sys_large_files=1; break
8427 echo "$as_me: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8430 rm -f conftest.$ac_objext conftest.$ac_ext
8434 echo "$as_me:8434: result: $ac_cv_sys_large_files" >&5
8435 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8436 if test "$ac_cv_sys_large_files" != no; then
8438 cat >>confdefs.h <<EOF
8439 #define _LARGE_FILES $ac_cv_sys_large_files
8446 if test "$enable_largefile" != no ; then
8447 echo "$as_me:8447: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8448 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8449 if test "${ac_cv_sys_largefile_source+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 ac_cv_sys_largefile_source=no
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line 8455 "configure"
8456 #include "confdefs.h"
8466 rm -f conftest.$ac_objext
8467 if { (eval echo "$as_me:8467: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>&5
8470 echo "$as_me:8470: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (eval echo "$as_me:8473: \"$ac_try\"") >&5
8476 echo "$as_me:8476: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8480 echo "$as_me: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8483 rm -f conftest.$ac_objext conftest.$ac_ext
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line 8485 "configure"
8486 #include "confdefs.h"
8487 #define _LARGEFILE_SOURCE 1
8497 rm -f conftest.$ac_objext
8498 if { (eval echo "$as_me:8498: \"$ac_compile\"") >&5
8499 (eval $ac_compile) 2>&5
8501 echo "$as_me:8501: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:8504: \"$ac_try\"") >&5
8507 echo "$as_me:8507: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_sys_largefile_source=1; break
8511 echo "$as_me: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8514 rm -f conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:8518: result: $ac_cv_sys_largefile_source" >&5
8519 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8520 if test "$ac_cv_sys_largefile_source" != no; then
8522 cat >>confdefs.h <<EOF
8523 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8529 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8530 # in glibc 2.1.3, but that breaks too many other things.
8531 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8532 echo "$as_me:8532: checking for fseeko" >&5
8533 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8534 if test "${ac_cv_func_fseeko+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 cat >conftest.$ac_ext <<_ACEOF
8538 #line 8538 "configure"
8539 #include "confdefs.h"
8544 return fseeko && fseeko (stdin, 0, 0);
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:8550: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>&5
8553 echo "$as_me:8553: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:8556: \"$ac_try\"") >&5
8559 echo "$as_me:8559: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_func_fseeko=yes
8563 echo "$as_me: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8565 ac_cv_func_fseeko=no
8567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8569 echo "$as_me:8569: result: $ac_cv_func_fseeko" >&5
8570 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8571 if test $ac_cv_func_fseeko = yes; then
8573 cat >>confdefs.h <<\EOF
8574 #define HAVE_FSEEKO 1
8579 # Normally we would collect these definitions in the config.h,
8580 # but (like _XOPEN_SOURCE), some environments rely on having these
8581 # defined before any of the system headers are included. Another
8582 # case comes up with C++, e.g., on AIX the compiler compiles the
8583 # header files by themselves before looking at the body files it is
8584 # told to compile. For ncurses, those header files do not include
8586 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8587 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8588 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8590 echo "$as_me:8590: checking whether to use struct dirent64" >&5
8591 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8592 if test "${cf_cv_struct_dirent64+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 cat >conftest.$ac_ext <<_ACEOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8600 #include <sys/types.h>
8607 /* if transitional largefile support is setup, this is true */
8608 extern struct dirent64 * readdir(DIR *);
8609 struct dirent64 *x = readdir((DIR *)0);
8610 struct dirent *y = readdir((DIR *)0);
8617 rm -f conftest.$ac_objext
8618 if { (eval echo "$as_me:8618: \"$ac_compile\"") >&5
8619 (eval $ac_compile) 2>&5
8621 echo "$as_me:8621: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -s conftest.$ac_objext'
8624 { (eval echo "$as_me:8624: \"$ac_try\"") >&5
8627 echo "$as_me:8627: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 cf_cv_struct_dirent64=yes
8631 echo "$as_me: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8633 cf_cv_struct_dirent64=no
8635 rm -f conftest.$ac_objext conftest.$ac_ext
8638 echo "$as_me:8638: result: $cf_cv_struct_dirent64" >&5
8639 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8640 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8641 #define HAVE_STRUCT_DIRENT64 1
8646 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
8647 echo "$as_me:8647: checking if you want tparm not to use X/Open fixed-parameter list" >&5
8648 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
8650 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
8651 if test "${enable_tparm_varargs+set}" = set; then
8652 enableval="$enable_tparm_varargs"
8653 with_tparm_varargs=$enableval
8655 with_tparm_varargs=yes
8657 echo "$as_me:8657: result: $with_tparm_varargs" >&5
8658 echo "${ECHO_T}$with_tparm_varargs" >&6
8659 NCURSES_TPARM_VARARGS=0
8660 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
8662 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
8663 if test "$with_ticlib" != no ; then
8664 echo "$as_me:8664: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
8665 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
8667 # Check whether --enable-tic-depends or --disable-tic-depends was given.
8668 if test "${enable_tic_depends+set}" = set; then
8669 enableval="$enable_tic_depends"
8670 with_tic_depends=$enableval
8672 with_tic_depends=yes
8674 echo "$as_me:8674: result: $with_tic_depends" >&5
8675 echo "${ECHO_T}$with_tic_depends" >&6
8680 ### use option --with-bool to override bool's type
8681 echo "$as_me:8681: checking for type of bool" >&5
8682 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
8684 # Check whether --with-bool or --without-bool was given.
8685 if test "${with_bool+set}" = set; then
8686 withval="$with_bool"
8687 NCURSES_BOOL="$withval"
8691 echo "$as_me:8691: result: $NCURSES_BOOL" >&5
8692 echo "${ECHO_T}$NCURSES_BOOL" >&6
8694 echo "$as_me:8694: checking for alternate terminal capabilities file" >&5
8695 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
8697 # Check whether --with-caps or --without-caps was given.
8698 if test "${with_caps+set}" = set; then
8699 withval="$with_caps"
8700 TERMINFO_CAPS=Caps.$withval
8704 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
8705 echo "$as_me:8705: result: $TERMINFO_CAPS" >&5
8706 echo "${ECHO_T}$TERMINFO_CAPS" >&6
8708 ### use option --with-chtype to override chtype's type
8709 echo "$as_me:8709: checking for type of chtype" >&5
8710 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
8712 # Check whether --with-chtype or --without-chtype was given.
8713 if test "${with_chtype+set}" = set; then
8714 withval="$with_chtype"
8715 NCURSES_CHTYPE="$withval"
8719 echo "$as_me:8719: result: $NCURSES_CHTYPE" >&5
8720 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
8722 ### use option --with-ospeed to override ospeed's type
8723 echo "$as_me:8723: checking for type of ospeed" >&5
8724 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
8726 # Check whether --with-ospeed or --without-ospeed was given.
8727 if test "${with_ospeed+set}" = set; then
8728 withval="$with_ospeed"
8729 NCURSES_OSPEED="$withval"
8731 NCURSES_OSPEED=short
8733 echo "$as_me:8733: result: $NCURSES_OSPEED" >&5
8734 echo "${ECHO_T}$NCURSES_OSPEED" >&6
8736 ### use option --with-mmask-t to override mmask_t's type
8737 echo "$as_me:8737: checking for type of mmask_t" >&5
8738 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
8740 # Check whether --with-mmask-t or --without-mmask-t was given.
8741 if test "${with_mmask_t+set}" = set; then
8742 withval="$with_mmask_t"
8743 NCURSES_MMASK_T="$withval"
8745 NCURSES_MMASK_T=auto
8747 echo "$as_me:8747: result: $NCURSES_MMASK_T" >&5
8748 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
8750 ### use option --with-ccharw-max to override CCHARW_MAX size
8751 echo "$as_me:8751: checking for size CCHARW_MAX" >&5
8752 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
8754 # Check whether --with-ccharw-max or --without-ccharw-max was given.
8755 if test "${with_ccharw_max+set}" = set; then
8756 withval="$with_ccharw_max"
8757 NCURSES_CCHARW_MAX="$withval"
8759 NCURSES_CCHARW_MAX=5
8761 echo "$as_me:8761: result: $NCURSES_CCHARW_MAX" >&5
8762 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
8764 ### Enable compiling-in rcs id's
8765 echo "$as_me:8765: checking if RCS identifiers should be compiled-in" >&5
8766 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
8768 # Check whether --with-rcs-ids or --without-rcs-ids was given.
8769 if test "${with_rcs_ids+set}" = set; then
8770 withval="$with_rcs_ids"
8771 with_rcs_ids=$withval
8775 echo "$as_me:8775: result: $with_rcs_ids" >&5
8776 echo "${ECHO_T}$with_rcs_ids" >&6
8777 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
8778 #define USE_RCS_IDS 1
8781 ###############################################################################
8783 echo "$as_me:8783: checking format of man-pages" >&5
8784 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
8786 # Check whether --with-manpage-format or --without-manpage-format was given.
8787 if test "${with_manpage_format+set}" = set; then
8788 withval="$with_manpage_format"
8789 MANPAGE_FORMAT=$withval
8791 MANPAGE_FORMAT=unknown
8794 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
8795 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
8799 case $MANPAGE_FORMAT in
8801 if test -z "$MANPATH" ; then
8802 MANPATH="/usr/man:/usr/share/man"
8805 # look for the 'date' man-page (it's most likely to be installed!)
8811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8812 for cf_dir in $MANPATH; do
8813 test -z "$cf_dir" && cf_dir=/usr/man
8814 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
8816 cf_test=`echo $cf_name | sed -e 's/*//'`
8817 if test "x$cf_test" = "x$cf_name" ; then
8820 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
8821 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
8822 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
8823 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
8837 # if we found a match in either man* or cat*, stop looking
8838 if test -n "$MANPAGE_FORMAT" ; then
8840 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
8841 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
8847 test $cf_found=yes && break
8850 # only check the first directory in $MANPATH where we find manpages
8851 if test -n "$MANPAGE_FORMAT" ; then
8855 # if we did not find the example, just assume it is normal
8856 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
8860 for cf_option in $MANPAGE_FORMAT; do
8861 case $cf_option in #(vi
8862 gzip|compress|BSDI|normal|formatted|catonly)
8865 cf_unknown="$cf_unknown $cf_option"
8872 echo "$as_me:8872: result: $MANPAGE_FORMAT" >&5
8873 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
8874 if test -n "$cf_unknown" ; then
8875 { echo "$as_me:8875: WARNING: Unexpected manpage-format $cf_unknown" >&5
8876 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
8879 echo "$as_me:8879: checking for manpage renaming" >&5
8880 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
8882 # Check whether --with-manpage-renames or --without-manpage-renames was given.
8883 if test "${with_manpage_renames+set}" = set; then
8884 withval="$with_manpage_renames"
8885 MANPAGE_RENAMES=$withval
8890 case ".$MANPAGE_RENAMES" in #(vi
8894 # Debian 'man' program?
8895 if test -f /etc/debian_version ; then
8896 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
8903 if test "$MANPAGE_RENAMES" != no ; then
8904 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
8905 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
8906 elif test ! -f $MANPAGE_RENAMES ; then
8907 { { echo "$as_me:8907: error: not a filename: $MANPAGE_RENAMES" >&5
8908 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
8909 { (exit 1); exit 1; }; }
8912 test ! -d man && mkdir man
8914 # Construct a sed-script to perform renaming within man-pages
8915 if test -n "$MANPAGE_RENAMES" ; then
8916 test ! -d man && mkdir man
8917 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
8921 echo "$as_me:8921: result: $MANPAGE_RENAMES" >&5
8922 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
8924 echo "$as_me:8924: checking if manpage aliases will be installed" >&5
8925 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
8927 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
8928 if test "${with_manpage_aliases+set}" = set; then
8929 withval="$with_manpage_aliases"
8930 MANPAGE_ALIASES=$withval
8935 echo "$as_me:8935: result: $MANPAGE_ALIASES" >&5
8936 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
8938 if test "$LN_S" = "ln -s"; then
8945 if test "$MANPAGE_ALIASES" = yes ; then
8946 echo "$as_me:8946: checking if manpage symlinks should be used" >&5
8947 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
8949 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
8950 if test "${with_manpage_symlinks+set}" = set; then
8951 withval="$with_manpage_symlinks"
8952 MANPAGE_SYMLINKS=$withval
8954 MANPAGE_SYMLINKS=$cf_use_symlinks
8957 if test "$$cf_use_symlinks" = no; then
8958 if test "$MANPAGE_SYMLINKS" = yes ; then
8959 { echo "$as_me:8959: WARNING: cannot make symlinks" >&5
8960 echo "$as_me: WARNING: cannot make symlinks" >&2;}
8965 echo "$as_me:8965: result: $MANPAGE_SYMLINKS" >&5
8966 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
8969 echo "$as_me:8969: checking for manpage tbl" >&5
8970 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
8972 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
8973 if test "${with_manpage_tbl+set}" = set; then
8974 withval="$with_manpage_tbl"
8975 MANPAGE_TBL=$withval
8980 echo "$as_me:8980: result: $MANPAGE_TBL" >&5
8981 echo "${ECHO_T}$MANPAGE_TBL" >&6
8983 if test "$prefix" = "NONE" ; then
8984 cf_prefix="$ac_default_prefix"
8989 case "$MANPAGE_FORMAT" in # (vi
9004 test ! -d man && mkdir man
9008 case "$MANPAGE_FORMAT" in #(vi
9011 cf_compress=compress
9019 cf_edit_man=./edit_man.sh
9020 cf_man_alias=`pwd`/man_alias.sed
9022 cat >$cf_edit_man <<CF_EOF
9024 # this script is generated by the configure-script CF_MAN_PAGES macro.
9029 NCURSES_MAJOR="$NCURSES_MAJOR"
9030 NCURSES_MINOR="$NCURSES_MINOR"
9031 NCURSES_PATCH="$NCURSES_PATCH"
9033 NCURSES_OSPEED="$NCURSES_OSPEED"
9034 TERMINFO="$TERMINFO"
9036 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
9039 INSTALL_DATA="$INSTALL_DATA"
9041 transform="$program_transform_name"
9043 TMP=\${TMPDIR-/tmp}/man\$\$
9044 trap "rm -f \$TMP" 0 1 2 5 15
9056 top_srcdir=\$srcdir/..
9059 if test "\$form" = normal ; then
9060 if test "$cf_format" = yes ; then
9061 if test "$cf_inboth" = no ; then
9062 sh \$0 format \$verb \$mandir \$srcdir \$*
9066 cf_subdir=\$mandir/man
9067 cf_tables=$MANPAGE_TBL
9069 cf_subdir=\$mandir/cat
9073 # process the list of source-files
9076 *.orig|*.rej) ;; #(vi
9078 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9079 if test \$verb = installing ; then
9080 if test ! -d \$cf_subdir\${section} ; then
9081 \$MKDIRS \$cf_subdir\$section
9085 # replace variables in man page
9086 if test ! -f $cf_man_alias ; then
9087 cat >>$cf_man_alias <<-CF_EOF2
9088 s,@DATADIR@,\$datadir,g
9089 s,@TERMINFO@,\$TERMINFO,g
9090 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9091 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9092 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9093 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9096 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9098 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9099 cf_name=`echo $cf_name|sed "$program_transform_name"`
9100 cat >>$cf_edit_man <<-CF_EOF
9101 s,@$cf_NAME@,$cf_name,
9105 cat >>$cf_edit_man <<CF_EOF
9107 echo "...made $cf_man_alias"
9111 cf_source=\`basename \$i\`
9113 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9114 if test ! -f \$inalias ; then
9115 echo .. skipped \$cf_source
9120 if test "$MANPAGE_ALIASES" != no ; then
9121 cat >>$cf_edit_man <<CF_EOF
9122 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9126 if test "$MANPAGE_RENAMES" = no ; then
9127 cat >>$cf_edit_man <<CF_EOF
9128 # perform program transformations for section 1 man pages
9129 if test \$section = 1 ; then
9130 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9132 cf_target=\$cf_subdir\${section}/\$cf_source
9136 cat >>$cf_edit_man <<CF_EOF
9137 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9138 if test -z "\$cf_target" ; then
9139 echo '? missing rename for '\$cf_source
9140 cf_target="\$cf_source"
9142 cf_target="\$cf_subdir\${section}/\${cf_target}"
9147 cat >>$cf_edit_man <<CF_EOF
9148 sed -f $cf_man_alias \\
9151 if test -f $MANPAGE_RENAMES ; then
9152 cat >>$cf_edit_man <<CF_EOF
9153 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9156 cat >>$cf_edit_man <<CF_EOF
9161 cat >>$cf_edit_man <<CF_EOF
9162 if test \$cf_tables = yes ; then
9163 tbl \$TMP >\$TMP.out
9168 if test $with_curses_h != yes ; then
9169 cat >>$cf_edit_man <<CF_EOF
9170 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9175 cat >>$cf_edit_man <<CF_EOF
9176 if test \$form = format ; then
9177 nroff -man \$TMP >\$TMP.out
9182 if test -n "$cf_compress" ; then
9183 cat >>$cf_edit_man <<CF_EOF
9184 if test \$verb = installing ; then
9185 if ( $cf_compress -f \$TMP )
9187 mv \$TMP.$cf_so_strip \$TMP
9190 cf_target="\$cf_target.$cf_so_strip"
9194 case "$MANPAGE_FORMAT" in #(vi
9196 cat >>$cf_edit_man <<CF_EOF
9197 if test \$form = format ; then
9198 # BSDI installs only .0 suffixes in the cat directories
9199 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9205 cat >>$cf_edit_man <<CF_EOF
9206 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9207 if test \$verb = installing ; then
9208 echo \$verb \$cf_target
9209 \$INSTALL_DATA \$TMP \$cf_target
9210 test -d \$cf_subdir\${section} &&
9211 test -n "\$aliases" && (
9212 cd \$cf_subdir\${section} && (
9213 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9214 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9215 cf_target=\`basename \$cf_target\`
9216 for cf_alias in \$aliases
9218 if test \$section = 1 ; then
9219 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9222 if test "$MANPAGE_SYMLINKS" = yes ; then
9223 if test -f \$cf_alias\${suffix} ; then
9224 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9229 echo .. \$verb alias \$cf_alias\${suffix}
9230 rm -f \$cf_alias\${suffix}
9231 $LN_S \$cf_target \$cf_alias\${suffix}
9232 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
9233 echo ".so \$cf_source" >\$TMP
9235 if test -n "$cf_compress" ; then
9236 cat >>$cf_edit_man <<CF_EOF
9237 if test -n "$cf_so_strip" ; then
9238 $cf_compress -f \$TMP
9239 mv \$TMP.$cf_so_strip \$TMP
9243 cat >>$cf_edit_man <<CF_EOF
9244 echo .. \$verb alias \$cf_alias\${suffix}
9245 rm -f \$cf_alias\${suffix}
9246 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
9251 elif test \$verb = removing ; then
9252 test -f \$cf_target && (
9253 echo \$verb \$cf_target
9256 test -d \$cf_subdir\${section} &&
9257 test -n "\$aliases" && (
9258 cd \$cf_subdir\${section} && (
9259 for cf_alias in \$aliases
9261 if test \$section = 1 ; then
9262 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9265 echo .. \$verb alias \$cf_alias\${suffix}
9266 rm -f \$cf_alias\${suffix}
9278 if test $cf_inboth = yes ; then
9279 if test \$form != format ; then
9280 sh \$0 format \$verb \$mandir \$srcdir \$*
9286 chmod 755 $cf_edit_man
9288 ###############################################################################
9290 ### Note that some functions (such as const) are normally disabled anyway.
9291 echo "$as_me:9291: checking if you want to build with function extensions" >&5
9292 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9294 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9295 if test "${enable_ext_funcs+set}" = set; then
9296 enableval="$enable_ext_funcs"
9297 with_ext_funcs=$enableval
9301 echo "$as_me:9301: result: $with_ext_funcs" >&5
9302 echo "${ECHO_T}$with_ext_funcs" >&6
9303 if test "$with_ext_funcs" = yes ; then
9305 cat >>confdefs.h <<\EOF
9306 #define HAVE_CURSES_VERSION 1
9309 cat >>confdefs.h <<\EOF
9310 #define HAVE_HAS_KEY 1
9313 cat >>confdefs.h <<\EOF
9314 #define HAVE_RESIZETERM 1
9317 cat >>confdefs.h <<\EOF
9318 #define HAVE_RESIZE_TERM 1
9321 cat >>confdefs.h <<\EOF
9322 #define HAVE_USE_DEFAULT_COLORS 1
9325 cat >>confdefs.h <<\EOF
9326 #define HAVE_WRESIZE 1
9329 cat >>confdefs.h <<\EOF
9330 #define NCURSES_EXT_FUNCS 1
9333 GENERATED_EXT_FUNCS=generated
9336 GENERATED_EXT_FUNCS=
9339 echo "$as_me:9339: checking if you want to build with experimental SCREEN extensions" >&5
9340 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
9342 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
9343 if test "${enable_sp_funcs+set}" = set; then
9344 enableval="$enable_sp_funcs"
9345 with_sp_funcs=$enableval
9349 echo "$as_me:9349: result: $with_sp_funcs" >&5
9350 echo "${ECHO_T}$with_sp_funcs" >&6
9351 if test "$with_sp_funcs" = yes ; then
9353 cat >>confdefs.h <<\EOF
9354 #define NCURSES_SP_FUNCS 1
9357 GENERATED_SP_FUNCS=generated
9363 echo "$as_me:9363: checking if you want to build with experimental terminal-driver" >&5
9364 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
9366 # Check whether --enable-term-driver or --disable-term-driver was given.
9367 if test "${enable_term_driver+set}" = set; then
9368 enableval="$enable_term_driver"
9369 with_term_driver=$enableval
9373 echo "$as_me:9373: result: $with_term_driver" >&5
9374 echo "${ECHO_T}$with_term_driver" >&6
9375 if test "$with_term_driver" = yes ; then
9376 cat >>confdefs.h <<\EOF
9377 #define USE_TERM_DRIVER 1
9382 ### use option --enable-const to turn on use of const beyond that in XSI.
9383 echo "$as_me:9383: checking for extended use of const keyword" >&5
9384 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9386 # Check whether --enable-const or --disable-const was given.
9387 if test "${enable_const+set}" = set; then
9388 enableval="$enable_const"
9389 with_ext_const=$enableval
9393 echo "$as_me:9393: result: $with_ext_const" >&5
9394 echo "${ECHO_T}$with_ext_const" >&6
9395 NCURSES_CONST='/*nothing*/'
9396 if test "$with_ext_const" = yes ; then
9400 ### use option --enable-ext-colors to turn on use of colors beyond 16.
9401 echo "$as_me:9401: checking if you want to use extended colors" >&5
9402 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
9404 # Check whether --enable-ext-colors or --disable-ext-colors was given.
9405 if test "${enable_ext_colors+set}" = set; then
9406 enableval="$enable_ext_colors"
9407 with_ext_colors=$enableval
9411 echo "$as_me:9411: result: $with_ext_colors" >&5
9412 echo "${ECHO_T}$with_ext_colors" >&6
9413 NCURSES_EXT_COLORS=0
9414 if test "$with_ext_colors" = yes ; then
9415 if test "$with_widec" != yes ; then
9416 { { echo "$as_me:9416: error: This option applies only to wide-character library" >&5
9417 echo "$as_me: error: This option applies only to wide-character library" >&2;}
9418 { (exit 1); exit 1; }; }
9420 # cannot be ABI 5 since it changes sizeof(cchar_t)
9422 if test "${with_abi_version+set}" != set; then
9423 case $cf_cv_rel_version in
9425 cf_cv_rel_version=6.0
9427 { echo "$as_me:9427: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9428 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9434 NCURSES_EXT_COLORS=1
9435 cat >>confdefs.h <<\EOF
9436 #define NCURSES_EXT_COLORS 1
9441 ### use option --enable-ext-mouse to modify coding to support 5-button mice
9442 echo "$as_me:9442: checking if you want to use extended mouse encoding" >&5
9443 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
9445 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
9446 if test "${enable_ext_mouse+set}" = set; then
9447 enableval="$enable_ext_mouse"
9448 with_ext_mouse=$enableval
9452 echo "$as_me:9452: result: $with_ext_mouse" >&5
9453 echo "${ECHO_T}$with_ext_mouse" >&6
9454 NCURSES_MOUSE_VERSION=1
9455 if test "$with_ext_mouse" = yes ; then
9456 NCURSES_MOUSE_VERSION=2
9458 if test "${with_abi_version+set}" != set; then
9459 case $cf_cv_rel_version in
9461 cf_cv_rel_version=6.0
9463 { echo "$as_me:9463: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9464 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9471 echo "$as_me:9471: checking if you want \$NCURSES_NO_PADDING code" >&5
9472 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
9474 # Check whether --enable-no-padding or --disable-no-padding was given.
9475 if test "${enable_no_padding+set}" = set; then
9476 enableval="$enable_no_padding"
9477 with_no_padding=$enableval
9479 with_no_padding=$with_ext_funcs
9481 echo "$as_me:9481: result: $with_no_padding" >&5
9482 echo "${ECHO_T}$with_no_padding" >&6
9483 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
9484 #define NCURSES_NO_PADDING 1
9487 echo "$as_me:9487: checking for ANSI C header files" >&5
9488 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9489 if test "${ac_cv_header_stdc+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 cat >conftest.$ac_ext <<_ACEOF
9493 #line 9493 "configure"
9494 #include "confdefs.h"
9501 if { (eval echo "$as_me:9501: \"$ac_cpp conftest.$ac_ext\"") >&5
9502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9504 egrep -v '^ *\+' conftest.er1 >conftest.err
9506 cat conftest.err >&5
9507 echo "$as_me:9507: \$? = $ac_status" >&5
9508 (exit $ac_status); } >/dev/null; then
9509 if test -s conftest.err; then
9510 ac_cpp_err=$ac_c_preproc_warn_flag
9517 if test -z "$ac_cpp_err"; then
9518 ac_cv_header_stdc=yes
9520 echo "$as_me: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 ac_cv_header_stdc=no
9524 rm -f conftest.err conftest.$ac_ext
9526 if test $ac_cv_header_stdc = yes; then
9527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9528 cat >conftest.$ac_ext <<_ACEOF
9529 #line 9529 "configure"
9530 #include "confdefs.h"
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 egrep "memchr" >/dev/null 2>&1; then
9538 ac_cv_header_stdc=no
9544 if test $ac_cv_header_stdc = yes; then
9545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line 9547 "configure"
9548 #include "confdefs.h"
9552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9553 egrep "free" >/dev/null 2>&1; then
9556 ac_cv_header_stdc=no
9562 if test $ac_cv_header_stdc = yes; then
9563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9564 if test "$cross_compiling" = yes; then
9567 cat >conftest.$ac_ext <<_ACEOF
9568 #line 9568 "configure"
9569 #include "confdefs.h"
9571 #if ((' ' & 0x0FF) == 0x020)
9572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9575 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9576 || ('j' <= (c) && (c) <= 'r') \
9577 || ('s' <= (c) && (c) <= 'z'))
9578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9586 for (i = 0; i < 256; i++)
9587 if (XOR (islower (i), ISLOWER (i))
9588 || toupper (i) != TOUPPER (i))
9590 $ac_main_return (0);
9593 rm -f conftest$ac_exeext
9594 if { (eval echo "$as_me:9594: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>&5
9597 echo "$as_me:9597: \$? = $ac_status" >&5
9598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9599 { (eval echo "$as_me:9599: \"$ac_try\"") >&5
9602 echo "$as_me:9602: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9606 echo "$as_me: program exited with status $ac_status" >&5
9607 echo "$as_me: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 ac_cv_header_stdc=no
9611 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9615 echo "$as_me:9615: result: $ac_cv_header_stdc" >&5
9616 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9617 if test $ac_cv_header_stdc = yes; then
9619 cat >>confdefs.h <<\EOF
9620 #define STDC_HEADERS 1
9625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9627 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9628 inttypes.h stdint.h unistd.h
9630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9631 echo "$as_me:9631: checking for $ac_header" >&5
9632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 cat >conftest.$ac_ext <<_ACEOF
9637 #line 9637 "configure"
9638 #include "confdefs.h"
9639 $ac_includes_default
9640 #include <$ac_header>
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:9643: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>&5
9646 echo "$as_me:9646: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -s conftest.$ac_objext'
9649 { (eval echo "$as_me:9649: \"$ac_try\"") >&5
9652 echo "$as_me:9652: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 eval "$as_ac_Header=yes"
9656 echo "$as_me: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 eval "$as_ac_Header=no"
9660 rm -f conftest.$ac_objext conftest.$ac_ext
9662 echo "$as_me:9662: result: `eval echo '${'$as_ac_Header'}'`" >&5
9663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9665 cat >>confdefs.h <<EOF
9666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9672 echo "$as_me:9672: checking for signed char" >&5
9673 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
9674 if test "${ac_cv_type_signed_char+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line 9678 "configure"
9679 #include "confdefs.h"
9680 $ac_includes_default
9684 if ((signed char *) 0)
9686 if (sizeof (signed char))
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:9693: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>&5
9696 echo "$as_me:9696: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:9699: \"$ac_try\"") >&5
9702 echo "$as_me:9702: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_type_signed_char=yes
9706 echo "$as_me: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 ac_cv_type_signed_char=no
9710 rm -f conftest.$ac_objext conftest.$ac_ext
9712 echo "$as_me:9712: result: $ac_cv_type_signed_char" >&5
9713 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
9715 echo "$as_me:9715: checking size of signed char" >&5
9716 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
9717 if test "${ac_cv_sizeof_signed_char+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 if test "$ac_cv_type_signed_char" = yes; then
9721 if test "$cross_compiling" = yes; then
9722 # Depending upon the size, compute the lo and hi bounds.
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line 9724 "configure"
9725 #include "confdefs.h"
9726 $ac_includes_default
9730 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:9736: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9739 echo "$as_me:9739: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:9742: \"$ac_try\"") >&5
9745 echo "$as_me:9745: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9749 cat >conftest.$ac_ext <<_ACEOF
9750 #line 9750 "configure"
9751 #include "confdefs.h"
9752 $ac_includes_default
9756 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
9761 rm -f conftest.$ac_objext
9762 if { (eval echo "$as_me:9762: \"$ac_compile\"") >&5
9763 (eval $ac_compile) 2>&5
9765 echo "$as_me:9765: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -s conftest.$ac_objext'
9768 { (eval echo "$as_me:9768: \"$ac_try\"") >&5
9771 echo "$as_me:9771: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_hi=$ac_mid; break
9775 echo "$as_me: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9777 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9779 rm -f conftest.$ac_objext conftest.$ac_ext
9782 echo "$as_me: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line 9787 "configure"
9788 #include "confdefs.h"
9789 $ac_includes_default
9793 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
9798 rm -f conftest.$ac_objext
9799 if { (eval echo "$as_me:9799: \"$ac_compile\"") >&5
9800 (eval $ac_compile) 2>&5
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest.$ac_objext'
9805 { (eval echo "$as_me:9805: \"$ac_try\"") >&5
9808 echo "$as_me:9808: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_lo=$ac_mid; break
9812 echo "$as_me: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9816 rm -f conftest.$ac_objext conftest.$ac_ext
9819 rm -f conftest.$ac_objext conftest.$ac_ext
9820 # Binary search between lo and hi bounds.
9821 while test "x$ac_lo" != "x$ac_hi"; do
9822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9823 cat >conftest.$ac_ext <<_ACEOF
9824 #line 9824 "configure"
9825 #include "confdefs.h"
9826 $ac_includes_default
9830 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
9835 rm -f conftest.$ac_objext
9836 if { (eval echo "$as_me:9836: \"$ac_compile\"") >&5
9837 (eval $ac_compile) 2>&5
9839 echo "$as_me:9839: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:9842: \"$ac_try\"") >&5
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9849 echo "$as_me: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 ac_lo=`expr $ac_mid + 1`
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9855 ac_cv_sizeof_signed_char=$ac_lo
9857 if test "$cross_compiling" = yes; then
9858 { { echo "$as_me:9858: error: cannot run test program while cross compiling" >&5
9859 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9860 { (exit 1); exit 1; }; }
9862 cat >conftest.$ac_ext <<_ACEOF
9863 #line 9863 "configure"
9864 #include "confdefs.h"
9865 $ac_includes_default
9869 FILE *f = fopen ("conftest.val", "w");
9871 $ac_main_return (1);
9872 fprintf (f, "%d", (sizeof (signed char)));
9878 rm -f conftest$ac_exeext
9879 if { (eval echo "$as_me:9879: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>&5
9882 echo "$as_me:9882: \$? = $ac_status" >&5
9883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9884 { (eval echo "$as_me:9884: \"$ac_try\"") >&5
9887 echo "$as_me:9887: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_sizeof_signed_char=`cat conftest.val`
9891 echo "$as_me: program exited with status $ac_status" >&5
9892 echo "$as_me: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9895 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9900 ac_cv_sizeof_signed_char=0
9903 echo "$as_me:9903: result: $ac_cv_sizeof_signed_char" >&5
9904 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
9905 cat >>confdefs.h <<EOF
9906 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9909 if test "$ac_cv_sizeof_signed_char" = 1 ; then
9910 NCURSES_SBOOL="signed char"
9912 NCURSES_SBOOL="char"
9914 echo "$as_me:9914: checking if you want to use signed Boolean array in term.h" >&5
9915 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
9917 # Check whether --enable-signed-char or --disable-signed-char was given.
9918 if test "${enable_signed_char+set}" = set; then
9919 enableval="$enable_signed_char"
9920 with_signed_char=$enableval
9924 echo "$as_me:9924: result: $with_signed_char" >&5
9925 echo "${ECHO_T}$with_signed_char" >&6
9926 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
9928 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
9929 echo "$as_me:9929: checking if you want SIGWINCH handler" >&5
9930 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
9932 # Check whether --enable-sigwinch or --disable-sigwinch was given.
9933 if test "${enable_sigwinch+set}" = set; then
9934 enableval="$enable_sigwinch"
9935 with_sigwinch=$enableval
9937 with_sigwinch=$with_ext_funcs
9939 echo "$as_me:9939: result: $with_sigwinch" >&5
9940 echo "${ECHO_T}$with_sigwinch" >&6
9941 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
9942 #define USE_SIGWINCH 1
9945 ### use option --enable-tcap-names to allow user to define new capabilities
9946 echo "$as_me:9946: checking if you want user-definable terminal capabilities like termcap" >&5
9947 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
9949 # Check whether --enable-tcap-names or --disable-tcap-names was given.
9950 if test "${enable_tcap_names+set}" = set; then
9951 enableval="$enable_tcap_names"
9952 with_tcap_names=$enableval
9954 with_tcap_names=$with_ext_funcs
9956 echo "$as_me:9956: result: $with_tcap_names" >&5
9957 echo "${ECHO_T}$with_tcap_names" >&6
9959 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
9961 ###############################################################################
9962 # These options are relatively safe to experiment with.
9964 echo "$as_me:9964: checking if you want all development code" >&5
9965 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9967 # Check whether --with-develop or --without-develop was given.
9968 if test "${with_develop+set}" = set; then
9969 withval="$with_develop"
9970 with_develop=$withval
9974 echo "$as_me:9974: result: $with_develop" >&5
9975 echo "${ECHO_T}$with_develop" >&6
9977 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
9978 echo "$as_me:9978: checking if you want hard-tabs code" >&5
9979 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
9981 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
9982 if test "${enable_hard_tabs+set}" = set; then
9983 enableval="$enable_hard_tabs"
9986 enable_hard_tabs=$with_develop
9988 echo "$as_me:9988: result: $enable_hard_tabs" >&5
9989 echo "${ECHO_T}$enable_hard_tabs" >&6
9990 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
9991 #define USE_HARD_TABS 1
9994 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
9995 echo "$as_me:9995: checking if you want limited support for xmc" >&5
9996 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
9998 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
9999 if test "${enable_xmc_glitch+set}" = set; then
10000 enableval="$enable_xmc_glitch"
10003 enable_xmc_glitch=$with_develop
10005 echo "$as_me:10005: result: $enable_xmc_glitch" >&5
10006 echo "${ECHO_T}$enable_xmc_glitch" >&6
10007 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10008 #define USE_XMC_SUPPORT 1
10011 ###############################################################################
10012 # These are just experimental, probably should not be in a package:
10014 echo "$as_me:10014: checking if you do not want to assume colors are white-on-black" >&5
10015 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10017 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10018 if test "${enable_assumed_color+set}" = set; then
10019 enableval="$enable_assumed_color"
10020 with_assumed_color=$enableval
10022 with_assumed_color=yes
10024 echo "$as_me:10024: result: $with_assumed_color" >&5
10025 echo "${ECHO_T}$with_assumed_color" >&6
10026 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10027 #define USE_ASSUMED_COLOR 1
10030 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10031 echo "$as_me:10031: checking if you want hashmap scrolling-optimization code" >&5
10032 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10034 # Check whether --enable-hashmap or --disable-hashmap was given.
10035 if test "${enable_hashmap+set}" = set; then
10036 enableval="$enable_hashmap"
10037 with_hashmap=$enableval
10041 echo "$as_me:10041: result: $with_hashmap" >&5
10042 echo "${ECHO_T}$with_hashmap" >&6
10043 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10044 #define USE_HASHMAP 1
10047 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10048 echo "$as_me:10048: checking if you want colorfgbg code" >&5
10049 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10051 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10052 if test "${enable_colorfgbg+set}" = set; then
10053 enableval="$enable_colorfgbg"
10054 with_colorfgbg=$enableval
10058 echo "$as_me:10058: result: $with_colorfgbg" >&5
10059 echo "${ECHO_T}$with_colorfgbg" >&6
10060 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10061 #define USE_COLORFGBG 1
10064 ### use option --enable-interop to turn on use of bindings used for interop
10065 echo "$as_me:10065: checking if you want interop bindings" >&5
10066 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
10068 # Check whether --enable-interop or --disable-interop was given.
10069 if test "${enable_interop+set}" = set; then
10070 enableval="$enable_interop"
10071 with_exp_interop=$enableval
10073 with_exp_interop=no
10075 echo "$as_me:10075: result: $with_exp_interop" >&5
10076 echo "${ECHO_T}$with_exp_interop" >&6
10078 NCURSES_INTEROP_FUNCS=0
10079 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
10081 # This is still experimental (20080329), but should ultimately be moved to
10082 # the script-block --with-normal, etc.
10084 echo "$as_me:10084: checking if you want to link with the pthread library" >&5
10085 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10087 # Check whether --with-pthread or --without-pthread was given.
10088 if test "${with_pthread+set}" = set; then
10089 withval="$with_pthread"
10090 with_pthread=$withval
10094 echo "$as_me:10094: result: $with_pthread" >&5
10095 echo "${ECHO_T}$with_pthread" >&6
10097 if test "$with_pthread" != no ; then
10098 echo "$as_me:10098: checking for pthread.h" >&5
10099 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10100 if test "${ac_cv_header_pthread_h+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10106 #include <pthread.h>
10108 if { (eval echo "$as_me:10108: \"$ac_cpp conftest.$ac_ext\"") >&5
10109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10111 egrep -v '^ *\+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 echo "$as_me:10114: \$? = $ac_status" >&5
10115 (exit $ac_status); } >/dev/null; then
10116 if test -s conftest.err; then
10117 ac_cpp_err=$ac_c_preproc_warn_flag
10124 if test -z "$ac_cpp_err"; then
10125 ac_cv_header_pthread_h=yes
10127 echo "$as_me: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 ac_cv_header_pthread_h=no
10131 rm -f conftest.err conftest.$ac_ext
10133 echo "$as_me:10133: result: $ac_cv_header_pthread_h" >&5
10134 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10135 if test $ac_cv_header_pthread_h = yes; then
10137 cat >>confdefs.h <<\EOF
10138 #define HAVE_PTHREADS_H 1
10141 echo "$as_me:10141: checking if we can link with the pthread library" >&5
10142 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10143 cf_save_LIBS="$LIBS"
10144 LIBS="-lpthread $LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 #line 10146 "configure"
10147 #include "confdefs.h"
10149 #include <pthread.h>
10155 int rc = pthread_create(0,0,0,0);
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (eval echo "$as_me:10162: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>&5
10165 echo "$as_me:10165: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:10168: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:10171: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10175 echo "$as_me: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10180 LIBS="$cf_save_LIBS"
10181 echo "$as_me:10181: result: $with_pthread" >&5
10182 echo "${ECHO_T}$with_pthread" >&6
10184 if test "$with_pthread" = yes ; then
10185 LIBS="-lpthread $LIBS"
10186 cat >>confdefs.h <<\EOF
10187 #define HAVE_LIBPTHREADS 1
10191 { { echo "$as_me:10191: error: Cannot link with pthread library" >&5
10192 echo "$as_me: error: Cannot link with pthread library" >&2;}
10193 { (exit 1); exit 1; }; }
10200 echo "$as_me:10200: checking if you want to use weak-symbols for pthreads" >&5
10201 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
10203 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
10204 if test "${enable_weak_symbols+set}" = set; then
10205 enableval="$enable_weak_symbols"
10206 use_weak_symbols=$withval
10208 use_weak_symbols=no
10210 echo "$as_me:10210: result: $use_weak_symbols" >&5
10211 echo "${ECHO_T}$use_weak_symbols" >&6
10212 if test "$use_weak_symbols" = yes ; then
10214 echo "$as_me:10214: checking if $CC supports weak symbols" >&5
10215 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
10216 if test "${cf_cv_weak_symbols+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line 10221 "configure"
10222 #include "confdefs.h"
10229 #if defined(__GNUC__)
10230 # if defined __USE_ISOC99
10231 # define _cat_pragma(exp) _Pragma(#exp)
10232 # define _weak_pragma(exp) _cat_pragma(weak name)
10234 # define _weak_pragma(exp)
10236 # define _declare(name) __extension__ extern __typeof__(name) name
10237 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
10240 weak_symbol(fopen);
10246 rm -f conftest.$ac_objext
10247 if { (eval echo "$as_me:10247: \"$ac_compile\"") >&5
10248 (eval $ac_compile) 2>&5
10250 echo "$as_me:10250: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -s conftest.$ac_objext'
10253 { (eval echo "$as_me:10253: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10256 echo "$as_me:10256: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }; then
10258 cf_cv_weak_symbols=yes
10260 echo "$as_me: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10262 cf_cv_weak_symbols=no
10264 rm -f conftest.$ac_objext conftest.$ac_ext
10267 echo "$as_me:10267: result: $cf_cv_weak_symbols" >&5
10268 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
10271 cf_cv_weak_symbols=no
10274 if test $cf_cv_weak_symbols = yes ; then
10275 cat >>confdefs.h <<\EOF
10276 #define USE_WEAK_SYMBOLS 1
10282 if test "$with_pthread" = "yes" ; then
10283 cat >>confdefs.h <<\EOF
10284 #define USE_PTHREADS 1
10287 enable_reentrant=yes
10288 if test $cf_cv_weak_symbols = yes ; then
10293 # Reentrant code has to be opaque; there's little advantage to making ncurses
10294 # opaque outside of that, so there is no --enable-opaque option. We can use
10295 # this option without --with-pthreads, but this will be always set for
10297 echo "$as_me:10297: checking if you want experimental reentrant code" >&5
10298 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
10300 # Check whether --enable-reentrant or --disable-reentrant was given.
10301 if test "${enable_reentrant+set}" = set; then
10302 enableval="$enable_reentrant"
10303 with_reentrant=$enableval
10307 echo "$as_me:10307: result: $with_reentrant" >&5
10308 echo "${ECHO_T}$with_reentrant" >&6
10309 if test "$with_reentrant" = yes ; then
10310 cf_cv_enable_reentrant=1
10311 cf_cv_enable_opaque="NCURSES_INTERNALS"
10314 if test $cf_cv_weak_symbols = yes ; then
10316 # remove pthread library from $LIBS
10317 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
10320 LIB_SUFFIX="t${LIB_SUFFIX}"
10322 cat >>confdefs.h <<\EOF
10323 #define USE_REENTRANT 1
10326 if test "${with_abi_version+set}" != set; then
10327 case $cf_cv_rel_version in
10329 cf_cv_rel_version=6.0
10330 cf_cv_abi_version=6
10331 { echo "$as_me:10331: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10332 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10338 cf_cv_enable_reentrant=0
10339 cf_cv_enable_opaque="NCURSES_OPAQUE"
10341 NCURSES_SIZE_T=short
10344 ### Allow using a different wrap-prefix
10345 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
10346 echo "$as_me:10346: checking for prefix used to wrap public variables" >&5
10347 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
10349 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
10350 if test "${with_wrap_prefix+set}" = set; then
10351 withval="$with_wrap_prefix"
10352 NCURSES_WRAP_PREFIX=$withval
10354 NCURSES_WRAP_PREFIX=_nc_
10356 echo "$as_me:10356: result: $NCURSES_WRAP_PREFIX" >&5
10357 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
10359 NCURSES_WRAP_PREFIX=_nc_
10362 cat >>confdefs.h <<EOF
10363 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
10366 echo "$as_me:10366: checking if you want experimental safe-sprintf code" >&5
10367 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
10369 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
10370 if test "${enable_safe_sprintf+set}" = set; then
10371 enableval="$enable_safe_sprintf"
10372 with_safe_sprintf=$enableval
10374 with_safe_sprintf=no
10376 echo "$as_me:10376: result: $with_safe_sprintf" >&5
10377 echo "${ECHO_T}$with_safe_sprintf" >&6
10378 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
10379 #define USE_SAFE_SPRINTF 1
10382 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
10383 # when hashmap is used scroll hints are useless
10384 if test "$with_hashmap" = no ; then
10385 echo "$as_me:10385: checking if you want to experiment without scrolling-hints code" >&5
10386 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
10388 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
10389 if test "${enable_scroll_hints+set}" = set; then
10390 enableval="$enable_scroll_hints"
10391 with_scroll_hints=$enableval
10393 with_scroll_hints=yes
10395 echo "$as_me:10395: result: $with_scroll_hints" >&5
10396 echo "${ECHO_T}$with_scroll_hints" >&6
10397 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
10398 #define USE_SCROLL_HINTS 1
10403 echo "$as_me:10403: checking if you want experimental wgetch-events code" >&5
10404 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
10406 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
10407 if test "${enable_wgetch_events+set}" = set; then
10408 enableval="$enable_wgetch_events"
10409 with_wgetch_events=$enableval
10411 with_wgetch_events=no
10413 echo "$as_me:10413: result: $with_wgetch_events" >&5
10414 echo "${ECHO_T}$with_wgetch_events" >&6
10415 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
10416 #define NCURSES_WGETCH_EVENTS 1
10419 ###############################################################################
10421 ### use option --disable-echo to suppress full display compiling commands
10422 echo "$as_me:10422: checking if you want to display full commands during build" >&5
10423 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
10425 # Check whether --enable-echo or --disable-echo was given.
10426 if test "${enable_echo+set}" = set; then
10427 enableval="$enable_echo"
10428 with_echo=$enableval
10432 if test "$with_echo" = yes; then
10435 ECHO_LINK='@ echo linking $@ ... ;'
10436 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
10437 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
10439 echo "$as_me:10439: result: $with_echo" >&5
10440 echo "${ECHO_T}$with_echo" >&6
10442 ### use option --enable-warnings to turn on all gcc warnings
10443 echo "$as_me:10443: checking if you want to see compiler warnings" >&5
10444 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
10446 # Check whether --enable-warnings or --disable-warnings was given.
10447 if test "${enable_warnings+set}" = set; then
10448 enableval="$enable_warnings"
10449 with_warnings=$enableval
10451 echo "$as_me:10451: result: $with_warnings" >&5
10452 echo "${ECHO_T}$with_warnings" >&6
10454 if test "x$with_warnings" = "xyes"; then
10455 ADAFLAGS="$ADAFLAGS -gnatg"
10459 if test "$GCC" = yes ; then
10462 echo "$as_me:10462: checking if this is really Intel C compiler" >&5
10463 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
10464 cf_save_CFLAGS="$CFLAGS"
10465 CFLAGS="$CFLAGS -no-gcc"
10466 cat >conftest.$ac_ext <<_ACEOF
10467 #line 10467 "configure"
10468 #include "confdefs.h"
10474 #ifdef __INTEL_COMPILER
10483 rm -f conftest.$ac_objext
10484 if { (eval echo "$as_me:10484: \"$ac_compile\"") >&5
10485 (eval $ac_compile) 2>&5
10487 echo "$as_me:10487: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -s conftest.$ac_objext'
10490 { (eval echo "$as_me:10490: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10493 echo "$as_me:10493: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10496 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10499 echo "$as_me: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 rm -f conftest.$ac_objext conftest.$ac_ext
10503 CFLAGS="$cf_save_CFLAGS"
10504 echo "$as_me:10504: result: $INTEL_COMPILER" >&5
10505 echo "${ECHO_T}$INTEL_COMPILER" >&6
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10511 "${as_me-configure}"
10512 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10515 if test "$INTEL_COMPILER" = yes
10517 # The "-wdXXX" options suppress warnings:
10518 # remark #1419: external declaration in primary source file
10519 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10520 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10521 # remark #193: zero used for undefined preprocessing identifier
10522 # remark #593: variable "curs_sb_left_arrow" was set but never used
10523 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10524 # remark #869: parameter "tw" was never referenced
10525 # remark #981: operands are evaluated in unspecified order
10526 # warning #279: controlling expression is constant
10528 { echo "$as_me:10528: checking for $CC warning options..." >&5
10529 echo "$as_me: checking for $CC warning options..." >&6;}
10530 cf_save_CFLAGS="$CFLAGS"
10531 EXTRA_CFLAGS="-Wall"
10543 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10544 if { (eval echo "$as_me:10544: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>&5
10547 echo "$as_me:10547: \$? = $ac_status" >&5
10548 (exit $ac_status); }; then
10549 test -n "$verbose" && echo "$as_me:10549: result: ... -$cf_opt" >&5
10550 echo "${ECHO_T}... -$cf_opt" >&6
10551 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10554 CFLAGS="$cf_save_CFLAGS"
10556 elif test "$GCC" = yes
10558 { echo "$as_me:10558: checking for $CC warning options..." >&5
10559 echo "$as_me: checking for $CC warning options..." >&6;}
10560 cf_save_CFLAGS="$CFLAGS"
10561 EXTRA_CFLAGS="-W -Wall"
10563 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
10565 Wbad-function-cast \
10569 Wmissing-declarations \
10570 Wmissing-prototypes \
10574 Wstrict-prototypes \
10575 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
10577 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10578 if { (eval echo "$as_me:10578: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10581 echo "$as_me:10581: \$? = $ac_status" >&5
10582 (exit $ac_status); }; then
10583 test -n "$verbose" && echo "$as_me:10583: result: ... -$cf_opt" >&5
10584 echo "${ECHO_T}... -$cf_opt" >&6
10585 case $cf_opt in #(vi
10587 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
10590 case $GCC_VERSION in
10592 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10594 echo "${as_me-configure}:10594: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10600 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10603 CFLAGS="$cf_save_CFLAGS"
10607 if test "$cf_with_cxx" = yes ; then
10611 if test "$GCC" = yes ; then
10614 echo "$as_me:10614: checking if this is really Intel C++ compiler" >&5
10615 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
10616 cf_save_CFLAGS="$CXXFLAGS"
10617 CXXFLAGS="$CXXFLAGS -no-gcc"
10618 cat >conftest.$ac_ext <<_ACEOF
10619 #line 10619 "configure"
10620 #include "confdefs.h"
10626 #ifdef __INTEL_COMPILER
10635 rm -f conftest.$ac_objext
10636 if { (eval echo "$as_me:10636: \"$ac_compile\"") >&5
10637 (eval $ac_compile) 2>&5
10639 echo "$as_me:10639: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -s conftest.$ac_objext'
10642 { (eval echo "$as_me:10642: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:10645: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 INTEL_CPLUSPLUS=yes
10648 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10651 echo "$as_me: failed program was:" >&5
10652 cat conftest.$ac_ext >&5
10654 rm -f conftest.$ac_objext conftest.$ac_ext
10655 CXXFLAGS="$cf_save_CFLAGS"
10656 echo "$as_me:10656: result: $INTEL_CPLUSPLUS" >&5
10657 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
10663 ac_cpp='$CXXCPP $CPPFLAGS'
10664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10667 ac_main_return=return
10669 cat > conftest.$ac_ext <<EOF
10670 #line 10670 "configure"
10671 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10674 if test "$INTEL_CPLUSPLUS" = yes
10676 # The "-wdXXX" options suppress warnings:
10677 # remark #1419: external declaration in primary source file
10678 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10679 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10680 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10681 # remark #193: zero used for undefined preprocessing identifier
10682 # remark #593: variable "curs_sb_left_arrow" was set but never used
10683 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10684 # remark #869: parameter "tw" was never referenced
10685 # remark #981: operands are evaluated in unspecified order
10686 # warning #269: invalid format string conversion
10688 { echo "$as_me:10688: checking for $CC warning options..." >&5
10689 echo "$as_me: checking for $CC warning options..." >&6;}
10690 cf_save_CXXFLAGS="$CXXFLAGS"
10691 EXTRA_CXXFLAGS="-Wall"
10704 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
10705 if { (eval echo "$as_me:10705: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>&5
10708 echo "$as_me:10708: \$? = $ac_status" >&5
10709 (exit $ac_status); }; then
10710 test -n "$verbose" && echo "$as_me:10710: result: ... -$cf_opt" >&5
10711 echo "${ECHO_T}... -$cf_opt" >&6
10712 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10715 CXXFLAGS="$cf_save_CXXFLAGS"
10717 elif test "$GXX" = yes
10719 { echo "$as_me:10719: checking for $CXX warning options..." >&5
10720 echo "$as_me: checking for $CXX warning options..." >&6;}
10721 cf_save_CXXFLAGS="$CXXFLAGS"
10722 EXTRA_CXXFLAGS="-W -Wall"
10723 cf_gxx_extra_warnings=""
10724 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
10725 case "$GCC_VERSION" in
10729 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
10735 Woverloaded-virtual \
10741 Wmissing-prototypes \
10744 Wstrict-prototypes \
10745 Wundef $cf_gxx_extra_warnings Wno-unused
10747 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
10748 if { (eval echo "$as_me:10748: \"$ac_compile\"") >&5
10749 (eval $ac_compile) 2>&5
10751 echo "$as_me:10751: \$? = $ac_status" >&5
10752 (exit $ac_status); }; then
10753 test -n "$verbose" && echo "$as_me:10753: result: ... -$cf_opt" >&5
10754 echo "${ECHO_T}... -$cf_opt" >&6
10755 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10757 test -n "$verbose" && echo "$as_me:10757: result: ... no -$cf_opt" >&5
10758 echo "${ECHO_T}... no -$cf_opt" >&6
10761 CXXFLAGS="$cf_save_CXXFLAGS"
10766 ac_cpp='$CPP $CPPFLAGS'
10767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10770 ac_main_return=return
10775 if test "$GCC" = yes
10777 cat > conftest.i <<EOF
10779 #define GCC_PRINTF 0
10782 #define GCC_SCANF 0
10784 #ifndef GCC_NORETURN
10785 #define GCC_NORETURN /* nothing */
10788 #define GCC_UNUSED /* nothing */
10791 if test "$GCC" = yes
10793 { echo "$as_me:10793: checking for $CC __attribute__ directives..." >&5
10794 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
10795 cat > conftest.$ac_ext <<EOF
10796 #line 10796 "${as_me-configure}"
10797 #include "confdefs.h"
10798 #include "conftest.h"
10799 #include "conftest.i"
10801 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10803 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
10806 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10808 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
10810 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
10811 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
10812 extern void foo(void) GCC_NORETURN;
10813 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
10815 cf_printf_attribute=no
10816 cf_scanf_attribute=no
10817 for cf_attribute in scanf printf unused noreturn
10820 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10822 cf_directive="__attribute__(($cf_attribute))"
10823 echo "checking for $CC $cf_directive" 1>&5
10825 case $cf_attribute in #(vi
10827 cf_printf_attribute=yes
10828 cat >conftest.h <<EOF
10829 #define GCC_$cf_ATTRIBUTE 1
10833 cf_scanf_attribute=yes
10834 cat >conftest.h <<EOF
10835 #define GCC_$cf_ATTRIBUTE 1
10839 cat >conftest.h <<EOF
10840 #define GCC_$cf_ATTRIBUTE $cf_directive
10845 if { (eval echo "$as_me:10845: \"$ac_compile\"") >&5
10846 (eval $ac_compile) 2>&5
10848 echo "$as_me:10848: \$? = $ac_status" >&5
10849 (exit $ac_status); }; then
10850 test -n "$verbose" && echo "$as_me:10850: result: ... $cf_attribute" >&5
10851 echo "${ECHO_T}... $cf_attribute" >&6
10852 cat conftest.h >>confdefs.h
10853 case $cf_attribute in #(vi
10855 if test "$cf_printf_attribute" = no ; then
10856 cat >>confdefs.h <<EOF
10857 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
10860 cat >>confdefs.h <<EOF
10861 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10866 if test "$cf_scanf_attribute" = no ; then
10867 cat >>confdefs.h <<EOF
10868 #define GCC_SCANFLIKE(fmt,var) /* nothing */
10871 cat >>confdefs.h <<EOF
10872 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10880 fgrep define conftest.i >>confdefs.h
10885 ### use option --enable-assertions to turn on generation of assertion code
10886 echo "$as_me:10886: checking if you want to enable runtime assertions" >&5
10887 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
10889 # Check whether --enable-assertions or --disable-assertions was given.
10890 if test "${enable_assertions+set}" = set; then
10891 enableval="$enable_assertions"
10892 with_assertions=$enableval
10896 echo "$as_me:10896: result: $with_assertions" >&5
10897 echo "${ECHO_T}$with_assertions" >&6
10900 if test "$with_assertions" = no
10902 cat >>confdefs.h <<\EOF
10906 CPPFLAGS="$CPPFLAGS -DNDEBUG"
10908 ADAFLAGS="$ADAFLAGS -gnata"
10912 ### use option --disable-leaks to suppress "permanent" leaks, for testing
10914 echo "$as_me:10914: checking if you want to use dmalloc for testing" >&5
10915 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
10917 # Check whether --with-dmalloc or --without-dmalloc was given.
10918 if test "${with_dmalloc+set}" = set; then
10919 withval="$with_dmalloc"
10920 cat >>confdefs.h <<\EOF
10921 #define USE_DMALLOC 1
10924 : ${with_cflags:=-g}
10925 : ${with_no_leaks:=yes}
10930 echo "$as_me:10930: result: ${with_dmalloc:-no}" >&5
10931 echo "${ECHO_T}${with_dmalloc:-no}" >&6
10933 case .$with_cflags in #(vi
10935 case .$CFLAGS in #(vi
10943 cf_new_extra_cppflags=
10945 for cf_add_cflags in -g
10947 case $cf_fix_cppflags in
10949 case $cf_add_cflags in #(vi
10950 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10951 case $cf_add_cflags in
10953 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10955 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10956 && test -z "${cf_tst_cflags}" \
10957 && cf_fix_cppflags=yes
10959 if test $cf_fix_cppflags = yes ; then
10960 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10962 elif test "${cf_tst_cflags}" = "\"'" ; then
10963 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10968 case "$CPPFLAGS" in
10969 *$cf_add_cflags) #(vi
10972 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10977 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10982 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10984 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10986 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10987 && test -z "${cf_tst_cflags}" \
10988 && cf_fix_cppflags=no
10993 if test -n "$cf_new_cflags" ; then
10995 CFLAGS="$CFLAGS $cf_new_cflags"
10998 if test -n "$cf_new_cppflags" ; then
11000 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11003 if test -n "$cf_new_extra_cppflags" ; then
11005 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11013 if test "$with_dmalloc" = yes ; then
11014 echo "$as_me:11014: checking for dmalloc.h" >&5
11015 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
11016 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11020 #line 11020 "configure"
11021 #include "confdefs.h"
11022 #include <dmalloc.h>
11024 if { (eval echo "$as_me:11024: \"$ac_cpp conftest.$ac_ext\"") >&5
11025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11027 egrep -v '^ *\+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:11030: \$? = $ac_status" >&5
11031 (exit $ac_status); } >/dev/null; then
11032 if test -s conftest.err; then
11033 ac_cpp_err=$ac_c_preproc_warn_flag
11040 if test -z "$ac_cpp_err"; then
11041 ac_cv_header_dmalloc_h=yes
11043 echo "$as_me: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11045 ac_cv_header_dmalloc_h=no
11047 rm -f conftest.err conftest.$ac_ext
11049 echo "$as_me:11049: result: $ac_cv_header_dmalloc_h" >&5
11050 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
11051 if test $ac_cv_header_dmalloc_h = yes; then
11053 echo "$as_me:11053: checking for dmalloc_debug in -ldmalloc" >&5
11054 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
11055 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-ldmalloc $LIBS"
11060 cat >conftest.$ac_ext <<_ACEOF
11061 #line 11061 "configure"
11062 #include "confdefs.h"
11064 /* Override any gcc2 internal prototype to avoid an error. */
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11070 char dmalloc_debug ();
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (eval echo "$as_me:11080: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>&5
11083 echo "$as_me:11083: \$? = $ac_status" >&5
11084 (exit $ac_status); } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:11086: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:11089: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_lib_dmalloc_dmalloc_debug=yes
11093 echo "$as_me: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 ac_cv_lib_dmalloc_dmalloc_debug=no
11097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11100 echo "$as_me:11100: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11101 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11102 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11103 cat >>confdefs.h <<EOF
11104 #define HAVE_LIBDMALLOC 1
11107 LIBS="-ldmalloc $LIBS"
11115 echo "$as_me:11115: checking if you want to use dbmalloc for testing" >&5
11116 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
11118 # Check whether --with-dbmalloc or --without-dbmalloc was given.
11119 if test "${with_dbmalloc+set}" = set; then
11120 withval="$with_dbmalloc"
11121 cat >>confdefs.h <<\EOF
11122 #define USE_DBMALLOC 1
11125 : ${with_cflags:=-g}
11126 : ${with_no_leaks:=yes}
11131 echo "$as_me:11131: result: ${with_dbmalloc:-no}" >&5
11132 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
11134 case .$with_cflags in #(vi
11136 case .$CFLAGS in #(vi
11144 cf_new_extra_cppflags=
11146 for cf_add_cflags in -g
11148 case $cf_fix_cppflags in
11150 case $cf_add_cflags in #(vi
11151 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11152 case $cf_add_cflags in
11154 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11156 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11157 && test -z "${cf_tst_cflags}" \
11158 && cf_fix_cppflags=yes
11160 if test $cf_fix_cppflags = yes ; then
11161 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11163 elif test "${cf_tst_cflags}" = "\"'" ; then
11164 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11169 case "$CPPFLAGS" in
11170 *$cf_add_cflags) #(vi
11173 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11178 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11183 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11185 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11187 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11188 && test -z "${cf_tst_cflags}" \
11189 && cf_fix_cppflags=no
11194 if test -n "$cf_new_cflags" ; then
11196 CFLAGS="$CFLAGS $cf_new_cflags"
11199 if test -n "$cf_new_cppflags" ; then
11201 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11204 if test -n "$cf_new_extra_cppflags" ; then
11206 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11214 if test "$with_dbmalloc" = yes ; then
11215 echo "$as_me:11215: checking for dbmalloc.h" >&5
11216 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
11217 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 cat >conftest.$ac_ext <<_ACEOF
11221 #line 11221 "configure"
11222 #include "confdefs.h"
11223 #include <dbmalloc.h>
11225 if { (eval echo "$as_me:11225: \"$ac_cpp conftest.$ac_ext\"") >&5
11226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11228 egrep -v '^ *\+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:11231: \$? = $ac_status" >&5
11232 (exit $ac_status); } >/dev/null; then
11233 if test -s conftest.err; then
11234 ac_cpp_err=$ac_c_preproc_warn_flag
11241 if test -z "$ac_cpp_err"; then
11242 ac_cv_header_dbmalloc_h=yes
11244 echo "$as_me: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 ac_cv_header_dbmalloc_h=no
11248 rm -f conftest.err conftest.$ac_ext
11250 echo "$as_me:11250: result: $ac_cv_header_dbmalloc_h" >&5
11251 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
11252 if test $ac_cv_header_dbmalloc_h = yes; then
11254 echo "$as_me:11254: checking for debug_malloc in -ldbmalloc" >&5
11255 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
11256 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 ac_check_lib_save_LIBS=$LIBS
11260 LIBS="-ldbmalloc $LIBS"
11261 cat >conftest.$ac_ext <<_ACEOF
11262 #line 11262 "configure"
11263 #include "confdefs.h"
11265 /* Override any gcc2 internal prototype to avoid an error. */
11269 /* We use char because int might match the return type of a gcc2
11270 builtin and then its argument prototype would still apply. */
11271 char debug_malloc ();
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (eval echo "$as_me:11281: \"$ac_link\"") >&5
11282 (eval $ac_link) 2>&5
11284 echo "$as_me:11284: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (eval echo "$as_me:11287: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:11290: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_cv_lib_dbmalloc_debug_malloc=yes
11294 echo "$as_me: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 ac_cv_lib_dbmalloc_debug_malloc=no
11298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11301 echo "$as_me:11301: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
11302 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
11303 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
11304 cat >>confdefs.h <<EOF
11305 #define HAVE_LIBDBMALLOC 1
11308 LIBS="-ldbmalloc $LIBS"
11316 echo "$as_me:11316: checking if you want to use valgrind for testing" >&5
11317 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
11319 # Check whether --with-valgrind or --without-valgrind was given.
11320 if test "${with_valgrind+set}" = set; then
11321 withval="$with_valgrind"
11322 cat >>confdefs.h <<\EOF
11323 #define USE_VALGRIND 1
11326 : ${with_cflags:=-g}
11327 : ${with_no_leaks:=yes}
11332 echo "$as_me:11332: result: ${with_valgrind:-no}" >&5
11333 echo "${ECHO_T}${with_valgrind:-no}" >&6
11335 case .$with_cflags in #(vi
11337 case .$CFLAGS in #(vi
11345 cf_new_extra_cppflags=
11347 for cf_add_cflags in -g
11349 case $cf_fix_cppflags in
11351 case $cf_add_cflags in #(vi
11352 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11353 case $cf_add_cflags in
11355 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11357 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11358 && test -z "${cf_tst_cflags}" \
11359 && cf_fix_cppflags=yes
11361 if test $cf_fix_cppflags = yes ; then
11362 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11364 elif test "${cf_tst_cflags}" = "\"'" ; then
11365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11370 case "$CPPFLAGS" in
11371 *$cf_add_cflags) #(vi
11374 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11379 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11384 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11386 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11388 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11389 && test -z "${cf_tst_cflags}" \
11390 && cf_fix_cppflags=no
11395 if test -n "$cf_new_cflags" ; then
11397 CFLAGS="$CFLAGS $cf_new_cflags"
11400 if test -n "$cf_new_cppflags" ; then
11402 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11405 if test -n "$cf_new_extra_cppflags" ; then
11407 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11415 echo "$as_me:11415: checking if you want to perform memory-leak testing" >&5
11416 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
11418 # Check whether --enable-leaks or --disable-leaks was given.
11419 if test "${enable_leaks+set}" = set; then
11420 enableval="$enable_leaks"
11423 : ${with_no_leaks:=no}
11425 echo "$as_me:11425: result: $with_no_leaks" >&5
11426 echo "${ECHO_T}$with_no_leaks" >&6
11428 if test "$with_no_leaks" = yes ; then
11429 cat >>confdefs.h <<\EOF
11435 cat >>confdefs.h <<\EOF
11436 #define HAVE_NC_ALLOC_H 1
11439 ### use option --enable-expanded to generate certain macros as functions
11441 # Check whether --enable-expanded or --disable-expanded was given.
11442 if test "${enable_expanded+set}" = set; then
11443 enableval="$enable_expanded"
11444 test "$enableval" = yes && cat >>confdefs.h <<\EOF
11445 #define NCURSES_EXPANDED 1
11450 ### use option --disable-macros to suppress macros in favor of functions
11452 # Check whether --enable-macros or --disable-macros was given.
11453 if test "${enable_macros+set}" = set; then
11454 enableval="$enable_macros"
11455 test "$enableval" = no && cat >>confdefs.h <<\EOF
11456 #define NCURSES_NOMACROS 1
11461 # Normally we only add trace() to the debug-library. Allow this to be
11462 # extended to all models of the ncurses library:
11464 case "$CFLAGS $CPPFLAGS" in
11470 echo "$as_me:11470: checking whether to add trace feature to all models" >&5
11471 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
11473 # Check whether --with-trace or --without-trace was given.
11474 if test "${with_trace+set}" = set; then
11475 withval="$with_trace"
11476 cf_with_trace=$withval
11478 cf_with_trace=$cf_all_traces
11480 echo "$as_me:11480: result: $cf_with_trace" >&5
11481 echo "${ECHO_T}$cf_with_trace" >&6
11483 if test "$cf_with_trace" = yes ; then
11490 cf_new_extra_cppflags=
11492 for cf_add_cflags in -DTRACE
11494 case $cf_fix_cppflags in
11496 case $cf_add_cflags in #(vi
11497 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11498 case $cf_add_cflags in
11500 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11502 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11503 && test -z "${cf_tst_cflags}" \
11504 && cf_fix_cppflags=yes
11506 if test $cf_fix_cppflags = yes ; then
11507 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11509 elif test "${cf_tst_cflags}" = "\"'" ; then
11510 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11515 case "$CPPFLAGS" in
11516 *$cf_add_cflags) #(vi
11519 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11524 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11529 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11531 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11533 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11534 && test -z "${cf_tst_cflags}" \
11535 && cf_fix_cppflags=no
11540 if test -n "$cf_new_cflags" ; then
11542 CFLAGS="$CFLAGS $cf_new_cflags"
11545 if test -n "$cf_new_cppflags" ; then
11547 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11550 if test -n "$cf_new_extra_cppflags" ; then
11552 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11560 ### Checks for libraries.
11561 case $cf_cv_system_name in #(vi
11565 echo "$as_me:11565: checking for gettimeofday" >&5
11566 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11567 if test "${ac_cv_func_gettimeofday+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 cat >conftest.$ac_ext <<_ACEOF
11571 #line 11571 "configure"
11572 #include "confdefs.h"
11573 /* System header to define __stub macros and hopefully few prototypes,
11574 which can conflict with char gettimeofday (); below. */
11575 #include <assert.h>
11576 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11582 char gettimeofday ();
11588 /* The GNU C library defines this for functions which it implements
11589 to always fail with ENOSYS. Some functions are actually named
11590 something starting with __ and the normal name is an alias. */
11591 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
11601 rm -f conftest.$ac_objext conftest$ac_exeext
11602 if { (eval echo "$as_me:11602: \"$ac_link\"") >&5
11603 (eval $ac_link) 2>&5
11605 echo "$as_me:11605: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:11608: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:11611: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_func_gettimeofday=yes
11615 echo "$as_me: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11617 ac_cv_func_gettimeofday=no
11619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11621 echo "$as_me:11621: result: $ac_cv_func_gettimeofday" >&5
11622 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11623 if test $ac_cv_func_gettimeofday = yes; then
11624 cat >>confdefs.h <<\EOF
11625 #define HAVE_GETTIMEOFDAY 1
11630 echo "$as_me:11630: checking for gettimeofday in -lbsd" >&5
11631 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
11632 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 ac_check_lib_save_LIBS=$LIBS
11637 cat >conftest.$ac_ext <<_ACEOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11641 /* Override any gcc2 internal prototype to avoid an error. */
11645 /* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647 char gettimeofday ();
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (eval echo "$as_me:11657: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11660 echo "$as_me:11660: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:11663: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:11666: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_lib_bsd_gettimeofday=yes
11670 echo "$as_me: failed program was:" >&5
11671 cat conftest.$ac_ext >&5
11672 ac_cv_lib_bsd_gettimeofday=no
11674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11675 LIBS=$ac_check_lib_save_LIBS
11677 echo "$as_me:11677: result: $ac_cv_lib_bsd_gettimeofday" >&5
11678 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
11679 if test $ac_cv_lib_bsd_gettimeofday = yes; then
11680 cat >>confdefs.h <<\EOF
11681 #define HAVE_GETTIMEOFDAY 1
11691 echo "$as_me:11691: checking if -lm needed for math functions" >&5
11692 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
11693 if test "${cf_cv_need_libm+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 cat >conftest.$ac_ext <<_ACEOF
11698 #line 11698 "configure"
11699 #include "confdefs.h"
11707 double x = rand(); printf("result = %g\n", sin(x))
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (eval echo "$as_me:11713: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>&5
11716 echo "$as_me:11716: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:11719: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:11722: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11726 echo "$as_me: failed program was:" >&5
11727 cat conftest.$ac_ext >&5
11728 cf_cv_need_libm=yes
11730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11732 echo "$as_me:11732: result: $cf_cv_need_libm" >&5
11733 echo "${ECHO_T}$cf_cv_need_libm" >&6
11734 if test "$cf_cv_need_libm" = yes
11739 ### Checks for header files.
11740 echo "$as_me:11740: checking for ANSI C header files" >&5
11741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11742 if test "${ac_cv_header_stdc+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11746 #line 11746 "configure"
11747 #include "confdefs.h"
11748 #include <stdlib.h>
11749 #include <stdarg.h>
11750 #include <string.h>
11754 if { (eval echo "$as_me:11754: \"$ac_cpp conftest.$ac_ext\"") >&5
11755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11757 egrep -v '^ *\+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:11760: \$? = $ac_status" >&5
11761 (exit $ac_status); } >/dev/null; then
11762 if test -s conftest.err; then
11763 ac_cpp_err=$ac_c_preproc_warn_flag
11770 if test -z "$ac_cpp_err"; then
11771 ac_cv_header_stdc=yes
11773 echo "$as_me: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 ac_cv_header_stdc=no
11777 rm -f conftest.err conftest.$ac_ext
11779 if test $ac_cv_header_stdc = yes; then
11780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11781 cat >conftest.$ac_ext <<_ACEOF
11782 #line 11782 "configure"
11783 #include "confdefs.h"
11784 #include <string.h>
11787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11788 egrep "memchr" >/dev/null 2>&1; then
11791 ac_cv_header_stdc=no
11797 if test $ac_cv_header_stdc = yes; then
11798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11799 cat >conftest.$ac_ext <<_ACEOF
11800 #line 11800 "configure"
11801 #include "confdefs.h"
11802 #include <stdlib.h>
11805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11806 egrep "free" >/dev/null 2>&1; then
11809 ac_cv_header_stdc=no
11815 if test $ac_cv_header_stdc = yes; then
11816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11817 if test "$cross_compiling" = yes; then
11820 cat >conftest.$ac_ext <<_ACEOF
11821 #line 11821 "configure"
11822 #include "confdefs.h"
11824 #if ((' ' & 0x0FF) == 0x020)
11825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11828 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11829 || ('j' <= (c) && (c) <= 'r') \
11830 || ('s' <= (c) && (c) <= 'z'))
11831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11839 for (i = 0; i < 256; i++)
11840 if (XOR (islower (i), ISLOWER (i))
11841 || toupper (i) != TOUPPER (i))
11842 $ac_main_return(2);
11843 $ac_main_return (0);
11846 rm -f conftest$ac_exeext
11847 if { (eval echo "$as_me:11847: \"$ac_link\"") >&5
11848 (eval $ac_link) 2>&5
11850 echo "$as_me:11850: \$? = $ac_status" >&5
11851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11852 { (eval echo "$as_me:11852: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11859 echo "$as_me: program exited with status $ac_status" >&5
11860 echo "$as_me: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 ac_cv_header_stdc=no
11864 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11868 echo "$as_me:11868: result: $ac_cv_header_stdc" >&5
11869 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11870 if test $ac_cv_header_stdc = yes; then
11872 cat >>confdefs.h <<\EOF
11873 #define STDC_HEADERS 1
11878 ac_header_dirent=no
11879 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11880 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11881 echo "$as_me:11881: checking for $ac_hdr that defines DIR" >&5
11882 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 cat >conftest.$ac_ext <<_ACEOF
11887 #line 11887 "configure"
11888 #include "confdefs.h"
11889 #include <sys/types.h>
11901 rm -f conftest.$ac_objext
11902 if { (eval echo "$as_me:11902: \"$ac_compile\"") >&5
11903 (eval $ac_compile) 2>&5
11905 echo "$as_me:11905: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -s conftest.$ac_objext'
11908 { (eval echo "$as_me:11908: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:11911: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_Header=yes"
11915 echo "$as_me: failed program was:" >&5
11916 cat conftest.$ac_ext >&5
11917 eval "$as_ac_Header=no"
11919 rm -f conftest.$ac_objext conftest.$ac_ext
11921 echo "$as_me:11921: result: `eval echo '${'$as_ac_Header'}'`" >&5
11922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11924 cat >>confdefs.h <<EOF
11925 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11928 ac_header_dirent=$ac_hdr; break
11932 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11933 if test $ac_header_dirent = dirent.h; then
11934 echo "$as_me:11934: checking for opendir in -ldir" >&5
11935 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
11936 if test "${ac_cv_lib_dir_opendir+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_check_lib_save_LIBS=$LIBS
11941 cat >conftest.$ac_ext <<_ACEOF
11942 #line 11942 "configure"
11943 #include "confdefs.h"
11945 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:11961: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11964 echo "$as_me:11964: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:11967: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:11970: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_cv_lib_dir_opendir=yes
11974 echo "$as_me: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 ac_cv_lib_dir_opendir=no
11978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 echo "$as_me:11981: result: $ac_cv_lib_dir_opendir" >&5
11982 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
11983 if test $ac_cv_lib_dir_opendir = yes; then
11988 echo "$as_me:11988: checking for opendir in -lx" >&5
11989 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
11990 if test "${ac_cv_lib_x_opendir+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 ac_check_lib_save_LIBS=$LIBS
11995 cat >conftest.$ac_ext <<_ACEOF
11996 #line 11996 "configure"
11997 #include "confdefs.h"
11999 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (eval echo "$as_me:12015: \"$ac_link\"") >&5
12016 (eval $ac_link) 2>&5
12018 echo "$as_me:12018: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:12021: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:12024: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_lib_x_opendir=yes
12028 echo "$as_me: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 ac_cv_lib_x_opendir=no
12032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12035 echo "$as_me:12035: result: $ac_cv_lib_x_opendir" >&5
12036 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12037 if test $ac_cv_lib_x_opendir = yes; then
12043 echo "$as_me:12043: checking whether time.h and sys/time.h may both be included" >&5
12044 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12045 if test "${ac_cv_header_time+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12049 #line 12049 "configure"
12050 #include "confdefs.h"
12051 #include <sys/types.h>
12052 #include <sys/time.h>
12058 if ((struct tm *) 0)
12064 rm -f conftest.$ac_objext
12065 if { (eval echo "$as_me:12065: \"$ac_compile\"") >&5
12066 (eval $ac_compile) 2>&5
12068 echo "$as_me:12068: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -s conftest.$ac_objext'
12071 { (eval echo "$as_me:12071: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:12074: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_header_time=yes
12078 echo "$as_me: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 ac_cv_header_time=no
12082 rm -f conftest.$ac_objext conftest.$ac_ext
12084 echo "$as_me:12084: result: $ac_cv_header_time" >&5
12085 echo "${ECHO_T}$ac_cv_header_time" >&6
12086 if test $ac_cv_header_time = yes; then
12088 cat >>confdefs.h <<\EOF
12089 #define TIME_WITH_SYS_TIME 1
12094 echo "$as_me:12094: checking for regular-expression headers" >&5
12095 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
12096 if test "${cf_cv_regex+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 cat >conftest.$ac_ext <<_ACEOF
12101 #line 12101 "configure"
12102 #include "confdefs.h"
12103 #include <sys/types.h>
12110 int x = regcomp(p, "", 0);
12111 int y = regexec(p, "", 0, 0, 0);
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (eval echo "$as_me:12119: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>&5
12122 echo "$as_me:12122: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (eval echo "$as_me:12125: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12128 echo "$as_me:12128: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 cf_cv_regex="regex.h"
12132 echo "$as_me: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line 12136 "configure"
12137 #include "confdefs.h"
12138 #include <regexp.h>
12143 char *p = compile("", "", "", 0);
12144 int x = step("", "");
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:12151: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12154 echo "$as_me:12154: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:12157: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:12160: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 cf_cv_regex="regexp.h"
12164 echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12167 cf_save_LIBS="$LIBS"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 #line 12170 "configure"
12171 #include "confdefs.h"
12172 #include <regexpr.h>
12177 char *p = compile("", "", "");
12178 int x = step("", "");
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:12185: \"$ac_link\"") >&5
12186 (eval $ac_link) 2>&5
12188 echo "$as_me:12188: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -s conftest$ac_exeext'
12191 { (eval echo "$as_me:12191: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12194 echo "$as_me:12194: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 cf_cv_regex="regexpr.h"
12198 echo "$as_me: failed program was:" >&5
12199 cat conftest.$ac_ext >&5
12200 LIBS="$cf_save_LIBS"
12202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12210 echo "$as_me:12210: result: $cf_cv_regex" >&5
12211 echo "${ECHO_T}$cf_cv_regex" >&6
12212 case $cf_cv_regex in
12213 regex.h) cat >>confdefs.h <<\EOF
12214 #define HAVE_REGEX_H_FUNCS 1
12217 regexp.h) cat >>confdefs.h <<\EOF
12218 #define HAVE_REGEXP_H_FUNCS 1
12221 regexpr.h) cat >>confdefs.h <<\EOF
12222 #define HAVE_REGEXPR_H_FUNCS 1
12245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12246 echo "$as_me:12246: checking for $ac_header" >&5
12247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12252 #line 12252 "configure"
12253 #include "confdefs.h"
12254 #include <$ac_header>
12256 if { (eval echo "$as_me:12256: \"$ac_cpp conftest.$ac_ext\"") >&5
12257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12259 egrep -v '^ *\+' conftest.er1 >conftest.err
12261 cat conftest.err >&5
12262 echo "$as_me:12262: \$? = $ac_status" >&5
12263 (exit $ac_status); } >/dev/null; then
12264 if test -s conftest.err; then
12265 ac_cpp_err=$ac_c_preproc_warn_flag
12272 if test -z "$ac_cpp_err"; then
12273 eval "$as_ac_Header=yes"
12275 echo "$as_me: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12277 eval "$as_ac_Header=no"
12279 rm -f conftest.err conftest.$ac_ext
12281 echo "$as_me:12281: result: `eval echo '${'$as_ac_Header'}'`" >&5
12282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12284 cat >>confdefs.h <<EOF
12285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12291 # check for ISC (this may also define _POSIX_SOURCE)
12292 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
12293 if test "$ISC" = yes ; then
12295 echo "$as_me:12295: checking for main in -lcposix" >&5
12296 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
12297 if test "${ac_cv_lib_cposix_main+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 ac_check_lib_save_LIBS=$LIBS
12301 LIBS="-lcposix $LIBS"
12302 cat >conftest.$ac_ext <<_ACEOF
12303 #line 12303 "configure"
12304 #include "confdefs.h"
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (eval echo "$as_me:12315: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>&5
12318 echo "$as_me:12318: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -s conftest$ac_exeext'
12321 { (eval echo "$as_me:12321: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:12324: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_cv_lib_cposix_main=yes
12328 echo "$as_me: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12330 ac_cv_lib_cposix_main=no
12332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12335 echo "$as_me:12335: result: $ac_cv_lib_cposix_main" >&5
12336 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
12337 if test $ac_cv_lib_cposix_main = yes; then
12338 cat >>confdefs.h <<EOF
12339 #define HAVE_LIBCPOSIX 1
12342 LIBS="-lcposix $LIBS"
12346 echo "$as_me:12346: checking for bzero in -linet" >&5
12347 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
12348 if test "${ac_cv_lib_inet_bzero+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-linet $LIBS"
12353 cat >conftest.$ac_ext <<_ACEOF
12354 #line 12354 "configure"
12355 #include "confdefs.h"
12357 /* Override any gcc2 internal prototype to avoid an error. */
12361 /* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:12373: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>&5
12376 echo "$as_me:12376: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (eval echo "$as_me:12379: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:12382: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_lib_inet_bzero=yes
12386 echo "$as_me: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 ac_cv_lib_inet_bzero=no
12390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12393 echo "$as_me:12393: result: $ac_cv_lib_inet_bzero" >&5
12394 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
12395 if test $ac_cv_lib_inet_bzero = yes; then
12396 LIBS="$LIBS -linet"
12400 echo "$as_me:12400: checking if sys/time.h works with sys/select.h" >&5
12401 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
12402 if test "${cf_cv_sys_time_select+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 cat >conftest.$ac_ext <<_ACEOF
12407 #line 12407 "configure"
12408 #include "confdefs.h"
12410 #include <sys/types.h>
12411 #ifdef HAVE_SYS_TIME_H
12412 #include <sys/time.h>
12414 #ifdef HAVE_SYS_SELECT_H
12415 #include <sys/select.h>
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:12427: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12430 echo "$as_me:12430: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:12433: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:12436: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 cf_cv_sys_time_select=yes
12440 echo "$as_me: failed program was:" >&5
12441 cat conftest.$ac_ext >&5
12442 cf_cv_sys_time_select=no
12444 rm -f conftest.$ac_objext conftest.$ac_ext
12448 echo "$as_me:12448: result: $cf_cv_sys_time_select" >&5
12449 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
12450 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
12451 #define HAVE_SYS_TIME_SELECT 1
12454 ### checks for compiler characteristics
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12460 ac_main_return=return
12462 echo "$as_me:12462: checking for $CC option to accept ANSI C" >&5
12463 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12464 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 ac_cv_prog_cc_stdc=no
12469 cat >conftest.$ac_ext <<_ACEOF
12470 #line 12470 "configure"
12471 #include "confdefs.h"
12472 #include <stdarg.h>
12474 #include <sys/types.h>
12475 #include <sys/stat.h>
12476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12477 struct buf { int x; };
12478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12479 static char *e (p, i)
12485 static char *f (char * (*g) (char **, int), char **p, ...)
12490 s = g (p, va_arg (v,int));
12494 int test (int i, double x);
12495 struct s1 {int (*f) (int a);};
12496 struct s2 {int (*f) (double a);};
12497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12503 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12508 # Don't try gcc -ansi; that turns off useful extensions and
12509 # breaks some systems' header files.
12510 # AIX -qlanglvl=ansi
12511 # Ultrix and OSF/1 -std1
12512 # HP-UX 10.20 and later -Ae
12513 # HP-UX older versions -Aa -D_HPUX_SOURCE
12514 # SVR4 -Xc -D__EXTENSIONS__
12515 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12517 CC="$ac_save_CC $ac_arg"
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:12519: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12522 echo "$as_me:12522: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:12525: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:12528: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_prog_cc_stdc=$ac_arg
12533 echo "$as_me: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12536 rm -f conftest.$ac_objext
12538 rm -f conftest.$ac_ext conftest.$ac_objext
12543 case "x$ac_cv_prog_cc_stdc" in
12545 echo "$as_me:12545: result: none needed" >&5
12546 echo "${ECHO_T}none needed" >&6 ;;
12548 echo "$as_me:12548: result: $ac_cv_prog_cc_stdc" >&5
12549 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12550 CC="$CC $ac_cv_prog_cc_stdc" ;;
12553 echo "$as_me:12553: checking for an ANSI C-conforming const" >&5
12554 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12555 if test "${ac_cv_c_const+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line 12559 "configure"
12560 #include "confdefs.h"
12565 /* FIXME: Include the comments suggested by Paul. */
12566 #ifndef __cplusplus
12567 /* Ultrix mips cc rejects this. */
12568 typedef int charset[2];
12570 /* SunOS 4.1.1 cc rejects this. */
12571 char const *const *ccp;
12573 /* NEC SVR4.0.2 mips cc rejects this. */
12574 struct point {int x, y;};
12575 static struct point const zero = {0,0};
12576 /* AIX XL C 1.02.0.0 rejects this.
12577 It does not let you subtract one const X* pointer from another in
12578 an arm of an if-expression whose if-part is not a constant
12580 const char *g = "string";
12581 ccp = &g + (g ? g-g : 0);
12582 /* HPUX 7.0 cc rejects these. */
12585 ccp = (char const *const *) p;
12586 { /* SCO 3.2v4 cc rejects this. */
12588 char const *s = 0 ? (char *) 0 : (char const *) 0;
12592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12593 int x[] = {25, 17};
12594 const int *foo = &x[0];
12597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12598 typedef const int *iptr;
12602 { /* AIX XL C 1.02.0.0 rejects this saying
12603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12604 struct s { int j; const int *ap[3]; };
12605 struct s *b; b->j = 5;
12607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12608 const int foo = 10;
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:12617: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>&5
12620 echo "$as_me:12620: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:12623: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12626 echo "$as_me:12626: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12630 echo "$as_me: failed program was:" >&5
12631 cat conftest.$ac_ext >&5
12634 rm -f conftest.$ac_objext conftest.$ac_ext
12636 echo "$as_me:12636: result: $ac_cv_c_const" >&5
12637 echo "${ECHO_T}$ac_cv_c_const" >&6
12638 if test $ac_cv_c_const = no; then
12640 cat >>confdefs.h <<\EOF
12646 echo "$as_me:12646: checking for inline" >&5
12647 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12648 if test "${ac_cv_c_inline+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 for ac_kw in inline __inline__ __inline; do
12653 cat >conftest.$ac_ext <<_ACEOF
12654 #line 12654 "configure"
12655 #include "confdefs.h"
12656 #ifndef __cplusplus
12657 static $ac_kw int static_foo () {return 0; }
12658 $ac_kw int foo () {return 0; }
12662 rm -f conftest.$ac_objext
12663 if { (eval echo "$as_me:12663: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>&5
12666 echo "$as_me:12666: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -s conftest.$ac_objext'
12669 { (eval echo "$as_me:12669: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:12672: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 ac_cv_c_inline=$ac_kw; break
12676 echo "$as_me: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12679 rm -f conftest.$ac_objext conftest.$ac_ext
12683 echo "$as_me:12683: result: $ac_cv_c_inline" >&5
12684 echo "${ECHO_T}$ac_cv_c_inline" >&6
12685 case $ac_cv_c_inline in
12688 cat >>confdefs.h <<\EOF
12692 *) cat >>confdefs.h <<EOF
12693 #define inline $ac_cv_c_inline
12699 if test "$ac_cv_c_inline" != no ; then
12700 NCURSES_INLINE=inline
12701 if test "$INTEL_COMPILER" = yes
12704 elif test "$GCC" = yes
12706 echo "$as_me:12706: checking if gcc supports options to tune inlining" >&5
12707 echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
12708 if test "${cf_cv_gcc_inline+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 cf_save_CFLAGS=$CFLAGS
12713 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
12714 cat >conftest.$ac_ext <<_ACEOF
12715 #line 12715 "configure"
12716 #include "confdefs.h"
12717 inline int foo(void) { return 1; }
12721 ${cf_cv_main_return:-return} foo()
12726 rm -f conftest.$ac_objext
12727 if { (eval echo "$as_me:12727: \"$ac_compile\"") >&5
12728 (eval $ac_compile) 2>&5
12730 echo "$as_me:12730: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -s conftest.$ac_objext'
12733 { (eval echo "$as_me:12733: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:12736: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 cf_cv_gcc_inline=yes
12740 echo "$as_me: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 cf_cv_gcc_inline=no
12744 rm -f conftest.$ac_objext conftest.$ac_ext
12745 CFLAGS=$cf_save_CFLAGS
12748 echo "$as_me:12748: result: $cf_cv_gcc_inline" >&5
12749 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
12750 if test "$cf_cv_gcc_inline" = yes ; then
12755 cf_new_extra_cppflags=
12757 for cf_add_cflags in --param max-inline-insns-single=1200
12759 case $cf_fix_cppflags in
12761 case $cf_add_cflags in #(vi
12762 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12763 case $cf_add_cflags in
12765 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12767 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12768 && test -z "${cf_tst_cflags}" \
12769 && cf_fix_cppflags=yes
12771 if test $cf_fix_cppflags = yes ; then
12772 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12774 elif test "${cf_tst_cflags}" = "\"'" ; then
12775 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12780 case "$CPPFLAGS" in
12781 *$cf_add_cflags) #(vi
12784 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12789 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12794 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12796 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12798 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12799 && test -z "${cf_tst_cflags}" \
12800 && cf_fix_cppflags=no
12805 if test -n "$cf_new_cflags" ; then
12807 CFLAGS="$CFLAGS $cf_new_cflags"
12810 if test -n "$cf_new_cppflags" ; then
12812 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12815 if test -n "$cf_new_extra_cppflags" ; then
12817 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12824 echo "$as_me:12824: checking for signal global datatype" >&5
12825 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
12826 if test "${cf_cv_sig_atomic_t+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 "volatile sig_atomic_t" \
12835 cat >conftest.$ac_ext <<_ACEOF
12836 #line 12836 "configure"
12837 #include "confdefs.h"
12839 #include <sys/types.h>
12840 #include <signal.h>
12845 static void handler(int sig)
12852 signal(SIGINT, handler);
12858 rm -f conftest.$ac_objext
12859 if { (eval echo "$as_me:12859: \"$ac_compile\"") >&5
12860 (eval $ac_compile) 2>&5
12862 echo "$as_me:12862: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -s conftest.$ac_objext'
12865 { (eval echo "$as_me:12865: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:12868: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 cf_cv_sig_atomic_t=$cf_type
12872 echo "$as_me: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 cf_cv_sig_atomic_t=no
12876 rm -f conftest.$ac_objext conftest.$ac_ext
12877 test "$cf_cv_sig_atomic_t" != no && break
12882 echo "$as_me:12882: result: $cf_cv_sig_atomic_t" >&5
12883 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
12884 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
12885 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
12888 if test $NCURSES_CHTYPE = auto ; then
12890 echo "$as_me:12890: checking for type of chtype" >&5
12891 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
12892 if test "${cf_cv_typeof_chtype+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 if test "$cross_compiling" = yes; then
12897 cf_cv_typeof_chtype=long
12899 cat >conftest.$ac_ext <<_ACEOF
12900 #line 12900 "configure"
12901 #include "confdefs.h"
12903 #define WANT_BITS 31
12907 FILE *fp = fopen("cf_test.out", "w");
12909 char *result = "long";
12910 if (sizeof(unsigned long) > sizeof(unsigned int)) {
12913 for (n = 0; n < WANT_BITS; n++) {
12916 if (y != 1 || x == 0) {
12922 * If x is nonzero, an int is big enough for the bits
12925 result = (x != 0) ? "int" : "long";
12930 ${cf_cv_main_return:-return}(0);
12934 rm -f conftest$ac_exeext
12935 if { (eval echo "$as_me:12935: \"$ac_link\"") >&5
12936 (eval $ac_link) 2>&5
12938 echo "$as_me:12938: \$? = $ac_status" >&5
12939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12940 { (eval echo "$as_me:12940: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:12943: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 cf_cv_typeof_chtype=`cat cf_test.out`
12947 echo "$as_me: program exited with status $ac_status" >&5
12948 echo "$as_me: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12950 cf_cv_typeof_chtype=long
12952 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12958 echo "$as_me:12958: result: $cf_cv_typeof_chtype" >&5
12959 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
12961 cat >>confdefs.h <<EOF
12962 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
12966 cf_cv_typeof_chtype=$NCURSES_CHTYPE
12968 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
12970 echo "$as_me:12970: checking if unsigned literals are legal" >&5
12971 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
12972 if test "${cf_cv_unsigned_literals+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 #line 12977 "configure"
12978 #include "confdefs.h"
12983 long x = 1L + 1UL + 1U + 1
12988 rm -f conftest.$ac_objext
12989 if { (eval echo "$as_me:12989: \"$ac_compile\"") >&5
12990 (eval $ac_compile) 2>&5
12992 echo "$as_me:12992: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -s conftest.$ac_objext'
12995 { (eval echo "$as_me:12995: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12998 echo "$as_me:12998: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 cf_cv_unsigned_literals=yes
13002 echo "$as_me: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 cf_cv_unsigned_literals=no
13006 rm -f conftest.$ac_objext conftest.$ac_ext
13010 echo "$as_me:13010: result: $cf_cv_unsigned_literals" >&5
13011 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
13014 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
13015 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
13017 if test $NCURSES_MMASK_T = auto ; then
13018 cf_cv_typeof_mmask_t=long
13020 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
13022 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
13024 ### Checks for external-data
13026 echo "$as_me:13026: checking if external errno is declared" >&5
13027 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
13028 if test "${cf_cv_dcl_errno+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 cat >conftest.$ac_ext <<_ACEOF
13033 #line 13033 "configure"
13034 #include "confdefs.h"
13036 #ifdef HAVE_STDLIB_H
13037 #include <stdlib.h>
13040 #include <sys/types.h>
13045 int x = (int) errno
13050 rm -f conftest.$ac_objext
13051 if { (eval echo "$as_me:13051: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>&5
13054 echo "$as_me:13054: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:13057: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:13060: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 cf_cv_dcl_errno=yes
13064 echo "$as_me: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13068 rm -f conftest.$ac_objext conftest.$ac_ext
13071 echo "$as_me:13071: result: $cf_cv_dcl_errno" >&5
13072 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
13074 if test "$cf_cv_dcl_errno" = no ; then
13076 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13078 cat >>confdefs.h <<EOF
13079 #define $cf_result 1
13084 # It's possible (for near-UNIX clones) that the data doesn't exist
13086 echo "$as_me:13086: checking if external errno exists" >&5
13087 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
13088 if test "${cf_cv_have_errno+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 cat >conftest.$ac_ext <<_ACEOF
13093 #line 13093 "configure"
13094 #include "confdefs.h"
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:13108: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>&5
13111 echo "$as_me:13111: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:13114: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:13117: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 cf_cv_have_errno=yes
13121 echo "$as_me: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13123 cf_cv_have_errno=no
13125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13128 echo "$as_me:13128: result: $cf_cv_have_errno" >&5
13129 echo "${ECHO_T}$cf_cv_have_errno" >&6
13131 if test "$cf_cv_have_errno" = yes ; then
13133 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13135 cat >>confdefs.h <<EOF
13136 #define $cf_result 1
13141 echo "$as_me:13141: checking if data-only library module links" >&5
13142 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
13143 if test "${cf_cv_link_dataonly+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 cat >conftest.$ac_ext <<EOF
13149 #line 13149 "configure"
13150 int testdata[3] = { 123, 456, 789 };
13152 if { (eval echo "$as_me:13152: \"$ac_compile\"") >&5
13153 (eval $ac_compile) 2>&5
13155 echo "$as_me:13155: \$? = $ac_status" >&5
13156 (exit $ac_status); } ; then
13157 mv conftest.o data.o && \
13158 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
13160 rm -f conftest.$ac_ext data.o
13161 cat >conftest.$ac_ext <<EOF
13162 #line 13162 "configure"
13166 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
13168 extern int testdata[3];
13169 return testdata[0] == 123
13170 && testdata[1] == 456
13171 && testdata[2] == 789;
13175 if { (eval echo "$as_me:13175: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>&5
13178 echo "$as_me:13178: \$? = $ac_status" >&5
13179 (exit $ac_status); }; then
13180 mv conftest.o func.o && \
13181 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
13183 rm -f conftest.$ac_ext func.o
13184 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
13185 cf_saveLIBS="$LIBS"
13186 LIBS="conftest.a $LIBS"
13187 if test "$cross_compiling" = yes; then
13188 cf_cv_link_dataonly=unknown
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line 13191 "configure"
13192 #include "confdefs.h"
13196 extern int testfunc();
13197 ${cf_cv_main_return:-return} (!testfunc());
13201 rm -f conftest$ac_exeext
13202 if { (eval echo "$as_me:13202: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>&5
13205 echo "$as_me:13205: \$? = $ac_status" >&5
13206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13207 { (eval echo "$as_me:13207: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:13210: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 cf_cv_link_dataonly=yes
13214 echo "$as_me: program exited with status $ac_status" >&5
13215 echo "$as_me: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 cf_cv_link_dataonly=no
13219 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13221 LIBS="$cf_saveLIBS"
13225 echo "$as_me:13225: result: $cf_cv_link_dataonly" >&5
13226 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
13228 if test "$cf_cv_link_dataonly" = no ; then
13229 cat >>confdefs.h <<\EOF
13230 #define BROKEN_LINKER 1
13236 ### Checks for library functions.
13259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13260 echo "$as_me:13260: checking for $ac_func" >&5
13261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13262 if eval "test \"\${$as_ac_var+set}\" = set"; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 cat >conftest.$ac_ext <<_ACEOF
13266 #line 13266 "configure"
13267 #include "confdefs.h"
13268 /* System header to define __stub macros and hopefully few prototypes,
13269 which can conflict with char $ac_func (); below. */
13270 #include <assert.h>
13271 /* Override any gcc2 internal prototype to avoid an error. */
13275 /* We use char because int might match the return type of a gcc2
13276 builtin and then its argument prototype would still apply. */
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13296 rm -f conftest.$ac_objext conftest$ac_exeext
13297 if { (eval echo "$as_me:13297: \"$ac_link\"") >&5
13298 (eval $ac_link) 2>&5
13300 echo "$as_me:13300: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -s conftest$ac_exeext'
13303 { (eval echo "$as_me:13303: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:13306: \$? = $ac_status" >&5
13307 (exit $ac_status); }; }; then
13308 eval "$as_ac_var=yes"
13310 echo "$as_me: failed program was:" >&5
13311 cat conftest.$ac_ext >&5
13312 eval "$as_ac_var=no"
13314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13316 echo "$as_me:13316: result: `eval echo '${'$as_ac_var'}'`" >&5
13317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13318 if test `eval echo '${'$as_ac_var'}'` = yes; then
13319 cat >>confdefs.h <<EOF
13320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13326 if test "$with_getcap" = "yes" ; then
13328 echo "$as_me:13328: checking for terminal-capability database functions" >&5
13329 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
13330 if test "${cf_cv_cgetent+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #line 13335 "configure"
13336 #include "confdefs.h"
13338 #include <stdlib.h>
13345 char *db_array = temp;
13346 cgetent(&buf, /* int *, */ &db_array, "vt100");
13347 cgetcap(buf, "tc", '=');
13348 cgetmatch(buf, "tc");
13354 rm -f conftest.$ac_objext conftest$ac_exeext
13355 if { (eval echo "$as_me:13355: \"$ac_link\"") >&5
13356 (eval $ac_link) 2>&5
13358 echo "$as_me:13358: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
13360 { ac_try='test -s conftest$ac_exeext'
13361 { (eval echo "$as_me:13361: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 echo "$as_me:13364: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13368 echo "$as_me: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13376 echo "$as_me:13376: result: $cf_cv_cgetent" >&5
13377 echo "${ECHO_T}$cf_cv_cgetent" >&6
13378 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
13379 #define HAVE_BSD_CGETENT 1
13384 echo "$as_me:13384: checking for isascii" >&5
13385 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
13386 if test "${cf_cv_have_isascii+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13391 #line 13391 "configure"
13392 #include "confdefs.h"
13397 int x = isascii(' ')
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (eval echo "$as_me:13403: \"$ac_link\"") >&5
13404 (eval $ac_link) 2>&5
13406 echo "$as_me:13406: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -s conftest$ac_exeext'
13409 { (eval echo "$as_me:13409: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:13412: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 cf_cv_have_isascii=yes
13416 echo "$as_me: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 cf_cv_have_isascii=no
13420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13423 echo "$as_me:13423: result: $cf_cv_have_isascii" >&5
13424 echo "${ECHO_T}$cf_cv_have_isascii" >&6
13425 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
13426 #define HAVE_ISASCII 1
13429 if test "$ac_cv_func_sigaction" = yes; then
13430 echo "$as_me:13430: checking whether sigaction needs _POSIX_SOURCE" >&5
13431 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
13432 cat >conftest.$ac_ext <<_ACEOF
13433 #line 13433 "configure"
13434 #include "confdefs.h"
13436 #include <sys/types.h>
13437 #include <signal.h>
13441 struct sigaction act
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:13447: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>&5
13450 echo "$as_me:13450: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -s conftest.$ac_objext'
13453 { (eval echo "$as_me:13453: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:13456: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13460 echo "$as_me: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13463 cat >conftest.$ac_ext <<_ACEOF
13464 #line 13464 "configure"
13465 #include "confdefs.h"
13467 #define _POSIX_SOURCE
13468 #include <sys/types.h>
13469 #include <signal.h>
13473 struct sigaction act
13478 rm -f conftest.$ac_objext
13479 if { (eval echo "$as_me:13479: \"$ac_compile\"") >&5
13480 (eval $ac_compile) 2>&5
13482 echo "$as_me:13482: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:13485: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:13488: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13491 cat >>confdefs.h <<\EOF
13492 #define SVR4_ACTION 1
13496 echo "$as_me: failed program was:" >&5
13497 cat conftest.$ac_ext >&5
13500 rm -f conftest.$ac_objext conftest.$ac_ext
13502 rm -f conftest.$ac_objext conftest.$ac_ext
13503 echo "$as_me:13503: result: $sigact_bad" >&5
13504 echo "${ECHO_T}$sigact_bad" >&6
13507 echo "$as_me:13507: checking if nanosleep really works" >&5
13508 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
13509 if test "${cf_cv_func_nanosleep+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 if test "$cross_compiling" = yes; then
13514 cf_cv_func_nanosleep=unknown
13516 cat >conftest.$ac_ext <<_ACEOF
13517 #line 13517 "configure"
13518 #include "confdefs.h"
13524 #ifdef HAVE_SYS_TIME_H
13525 #include <sys/time.h>
13529 struct timespec ts1, ts2;
13532 ts1.tv_nsec = 750000000;
13536 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
13537 ${cf_cv_main_return:-return}(code != 0);
13541 rm -f conftest$ac_exeext
13542 if { (eval echo "$as_me:13542: \"$ac_link\"") >&5
13543 (eval $ac_link) 2>&5
13545 echo "$as_me:13545: \$? = $ac_status" >&5
13546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13547 { (eval echo "$as_me:13547: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:13550: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 cf_cv_func_nanosleep=yes
13554 echo "$as_me: program exited with status $ac_status" >&5
13555 echo "$as_me: failed program was:" >&5
13556 cat conftest.$ac_ext >&5
13557 cf_cv_func_nanosleep=no
13559 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13562 echo "$as_me:13562: result: $cf_cv_func_nanosleep" >&5
13563 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
13565 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
13566 #define HAVE_NANOSLEEP 1
13575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13576 echo "$as_me:13576: checking for $ac_header" >&5
13577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 cat >conftest.$ac_ext <<_ACEOF
13582 #line 13582 "configure"
13583 #include "confdefs.h"
13584 #include <$ac_header>
13586 if { (eval echo "$as_me:13586: \"$ac_cpp conftest.$ac_ext\"") >&5
13587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13589 egrep -v '^ *\+' conftest.er1 >conftest.err
13591 cat conftest.err >&5
13592 echo "$as_me:13592: \$? = $ac_status" >&5
13593 (exit $ac_status); } >/dev/null; then
13594 if test -s conftest.err; then
13595 ac_cpp_err=$ac_c_preproc_warn_flag
13602 if test -z "$ac_cpp_err"; then
13603 eval "$as_ac_Header=yes"
13605 echo "$as_me: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13607 eval "$as_ac_Header=no"
13609 rm -f conftest.err conftest.$ac_ext
13611 echo "$as_me:13611: result: `eval echo '${'$as_ac_Header'}'`" >&5
13612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13614 cat >>confdefs.h <<EOF
13615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13621 if test "$ISC" = yes ; then
13623 for ac_header in sys/termio.h
13625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13626 echo "$as_me:13626: checking for $ac_header" >&5
13627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 cat >conftest.$ac_ext <<_ACEOF
13632 #line 13632 "configure"
13633 #include "confdefs.h"
13634 #include <$ac_header>
13636 if { (eval echo "$as_me:13636: \"$ac_cpp conftest.$ac_ext\"") >&5
13637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13639 egrep -v '^ *\+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:13642: \$? = $ac_status" >&5
13643 (exit $ac_status); } >/dev/null; then
13644 if test -s conftest.err; then
13645 ac_cpp_err=$ac_c_preproc_warn_flag
13652 if test -z "$ac_cpp_err"; then
13653 eval "$as_ac_Header=yes"
13655 echo "$as_me: failed program was:" >&5
13656 cat conftest.$ac_ext >&5
13657 eval "$as_ac_Header=no"
13659 rm -f conftest.err conftest.$ac_ext
13661 echo "$as_me:13661: result: `eval echo '${'$as_ac_Header'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13664 cat >>confdefs.h <<EOF
13665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13672 if test "$ac_cv_header_termios_h" = yes ; then
13673 case "$CFLAGS $CPPFLAGS" in
13675 termios_bad=dunno ;;
13676 *) termios_bad=maybe ;;
13678 if test "$termios_bad" = maybe ; then
13679 echo "$as_me:13679: checking whether termios.h needs _POSIX_SOURCE" >&5
13680 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
13681 cat >conftest.$ac_ext <<_ACEOF
13682 #line 13682 "configure"
13683 #include "confdefs.h"
13684 #include <termios.h>
13688 struct termios foo; int x = foo.c_iflag
13693 rm -f conftest.$ac_objext
13694 if { (eval echo "$as_me:13694: \"$ac_compile\"") >&5
13695 (eval $ac_compile) 2>&5
13697 echo "$as_me:13697: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -s conftest.$ac_objext'
13700 { (eval echo "$as_me:13700: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:13703: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13707 echo "$as_me: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13710 cat >conftest.$ac_ext <<_ACEOF
13711 #line 13711 "configure"
13712 #include "confdefs.h"
13714 #define _POSIX_SOURCE
13715 #include <termios.h>
13719 struct termios foo; int x = foo.c_iflag
13724 rm -f conftest.$ac_objext
13725 if { (eval echo "$as_me:13725: \"$ac_compile\"") >&5
13726 (eval $ac_compile) 2>&5
13728 echo "$as_me:13728: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -s conftest.$ac_objext'
13731 { (eval echo "$as_me:13731: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:13734: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 termios_bad=unknown
13738 echo "$as_me: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 termios_bad=yes cat >>confdefs.h <<\EOF
13741 #define SVR4_TERMIO 1
13745 rm -f conftest.$ac_objext conftest.$ac_ext
13748 rm -f conftest.$ac_objext conftest.$ac_ext
13749 echo "$as_me:13749: result: $termios_bad" >&5
13750 echo "${ECHO_T}$termios_bad" >&6
13754 echo "$as_me:13754: checking for tcgetattr" >&5
13755 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
13756 if test "${cf_cv_have_tcgetattr+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 cat >conftest.$ac_ext <<_ACEOF
13761 #line 13761 "configure"
13762 #include "confdefs.h"
13764 #include <sys/types.h>
13765 #ifdef HAVE_UNISTD_H
13766 #include <unistd.h>
13768 #ifdef HAVE_TERMIOS_H
13769 #include <termios.h>
13770 #define TTY struct termios
13772 #ifdef HAVE_TERMIO_H
13773 #include <termio.h>
13774 #define TTY struct termio
13783 tcgetattr(1, &foo);
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (eval echo "$as_me:13789: \"$ac_link\"") >&5
13790 (eval $ac_link) 2>&5
13792 echo "$as_me:13792: \$? = $ac_status" >&5
13793 (exit $ac_status); } &&
13794 { ac_try='test -s conftest$ac_exeext'
13795 { (eval echo "$as_me:13795: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13798 echo "$as_me:13798: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 cf_cv_have_tcgetattr=yes
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 cf_cv_have_tcgetattr=no
13806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13808 echo "$as_me:13808: result: $cf_cv_have_tcgetattr" >&5
13809 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
13810 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
13811 #define HAVE_TCGETATTR 1
13814 echo "$as_me:13814: checking for vsscanf function or workaround" >&5
13815 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
13816 if test "${cf_cv_func_vsscanf+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 cat >conftest.$ac_ext <<_ACEOF
13821 #line 13821 "configure"
13822 #include "confdefs.h"
13824 #include <stdarg.h>
13831 vsscanf("from", "%d", ap)
13836 rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (eval echo "$as_me:13837: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>&5
13840 echo "$as_me:13840: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -s conftest$ac_exeext'
13843 { (eval echo "$as_me:13843: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:13846: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 cf_cv_func_vsscanf=vsscanf
13850 echo "$as_me: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13853 cat >conftest.$ac_ext <<_ACEOF
13854 #line 13854 "configure"
13855 #include "confdefs.h"
13857 #include <stdarg.h>
13864 char *str = "from";
13866 strbuf._flag = _IOREAD;
13867 strbuf._ptr = strbuf._base = (unsigned char *) str;
13868 strbuf._cnt = strlen(str);
13869 strbuf._file = _NFILE;
13870 return (vfscanf(&strbuf, "%d", ap))
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (eval echo "$as_me:13876: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>&5
13879 echo "$as_me:13879: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:13882: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:13885: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 cf_cv_func_vsscanf=vfscanf
13889 echo "$as_me: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13892 cat >conftest.$ac_ext <<_ACEOF
13893 #line 13893 "configure"
13894 #include "confdefs.h"
13896 #include <stdarg.h>
13903 char *str = "from";
13905 strbuf._flag = _IOREAD;
13906 strbuf._ptr = strbuf._base = (unsigned char *) str;
13907 strbuf._cnt = strlen(str);
13908 strbuf._file = _NFILE;
13909 return (_doscan(&strbuf, "%d", ap))
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:13915: \"$ac_link\"") >&5
13916 (eval $ac_link) 2>&5
13918 echo "$as_me:13918: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -s conftest$ac_exeext'
13921 { (eval echo "$as_me:13921: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:13924: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 cf_cv_func_vsscanf=_doscan
13928 echo "$as_me: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13931 cf_cv_func_vsscanf=no
13933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13939 echo "$as_me:13939: result: $cf_cv_func_vsscanf" >&5
13940 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
13942 case $cf_cv_func_vsscanf in #(vi
13943 vsscanf) cat >>confdefs.h <<\EOF
13944 #define HAVE_VSSCANF 1
13947 vfscanf) cat >>confdefs.h <<\EOF
13948 #define HAVE_VFSCANF 1
13951 _doscan) cat >>confdefs.h <<\EOF
13952 #define HAVE__DOSCAN 1
13957 echo "$as_me:13957: checking for working mkstemp" >&5
13958 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
13959 if test "${cf_cv_func_mkstemp+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 if test "$cross_compiling" = yes; then
13965 echo "$as_me:13965: checking for mkstemp" >&5
13966 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13967 if test "${ac_cv_func_mkstemp+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13971 #line 13971 "configure"
13972 #include "confdefs.h"
13973 /* System header to define __stub macros and hopefully few prototypes,
13974 which can conflict with char mkstemp (); below. */
13975 #include <assert.h>
13976 /* Override any gcc2 internal prototype to avoid an error. */
13980 /* We use char because int might match the return type of a gcc2
13981 builtin and then its argument prototype would still apply. */
13988 /* The GNU C library defines this for functions which it implements
13989 to always fail with ENOSYS. Some functions are actually named
13990 something starting with __ and the normal name is an alias. */
13991 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:14002: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>&5
14005 echo "$as_me:14005: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -s conftest$ac_exeext'
14008 { (eval echo "$as_me:14008: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:14011: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_func_mkstemp=yes
14015 echo "$as_me: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 ac_cv_func_mkstemp=no
14019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14021 echo "$as_me:14021: result: $ac_cv_func_mkstemp" >&5
14022 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
14025 cat >conftest.$ac_ext <<_ACEOF
14026 #line 14026 "configure"
14027 #include "confdefs.h"
14029 #include <sys/types.h>
14030 #include <stdlib.h>
14032 #include <string.h>
14033 #include <sys/stat.h>
14036 char *tmpl = "conftestXXXXXX";
14044 for (n = 0; n < 2; ++n) {
14045 strcpy(name[n], tmpl);
14046 if ((fd = mkstemp(name[n])) >= 0) {
14047 if (!strcmp(name[n], tmpl)
14048 || stat(name[n], &sb) != 0
14049 || (sb.st_mode & S_IFMT) != S_IFREG
14050 || (sb.st_mode & 077) != 0) {
14057 && !strcmp(name[0], name[1]))
14059 ${cf_cv_main_return:-return}(result);
14063 rm -f conftest$ac_exeext
14064 if { (eval echo "$as_me:14064: \"$ac_link\"") >&5
14065 (eval $ac_link) 2>&5
14067 echo "$as_me:14067: \$? = $ac_status" >&5
14068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14069 { (eval echo "$as_me:14069: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:14072: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 cf_cv_func_mkstemp=yes
14077 echo "$as_me: program exited with status $ac_status" >&5
14078 echo "$as_me: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 cf_cv_func_mkstemp=no
14083 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14087 echo "$as_me:14087: result: $cf_cv_func_mkstemp" >&5
14088 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
14089 if test "$cf_cv_func_mkstemp" = yes ; then
14090 cat >>confdefs.h <<\EOF
14091 #define HAVE_MKSTEMP 1
14096 # setup for prototype of fallback for vsscanf()
14098 if test "$cf_cv_func_vsscanf" = vsscanf ; then
14104 if test "$cross_compiling" = yes ; then
14105 { echo "$as_me:14105: WARNING: cross compiling: assume setvbuf params not reversed" >&5
14106 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
14108 echo "$as_me:14108: checking whether setvbuf arguments are reversed" >&5
14109 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14110 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 if test "$cross_compiling" = yes; then
14114 { { echo "$as_me:14114: error: cannot run test program while cross compiling" >&5
14115 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14116 { (exit 1); exit 1; }; }
14118 cat >conftest.$ac_ext <<_ACEOF
14119 #line 14119 "configure"
14120 #include "confdefs.h"
14122 /* If setvbuf has the reversed format, exit 0. */
14126 /* This call has the arguments reversed.
14127 A reversed system may check and see that the address of main
14128 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14129 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14130 $ac_main_return(1);
14131 putc('\r', stdout);
14132 $ac_main_return(0); /* Non-reversed systems segv here. */
14135 rm -f conftest$ac_exeext
14136 if { (eval echo "$as_me:14136: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>&5
14139 echo "$as_me:14139: \$? = $ac_status" >&5
14140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14141 { (eval echo "$as_me:14141: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14144 echo "$as_me:14144: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 ac_cv_func_setvbuf_reversed=yes
14148 echo "$as_me: program exited with status $ac_status" >&5
14149 echo "$as_me: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14151 ac_cv_func_setvbuf_reversed=no
14153 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14155 rm -f core core.* *.core
14157 echo "$as_me:14157: result: $ac_cv_func_setvbuf_reversed" >&5
14158 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14159 if test $ac_cv_func_setvbuf_reversed = yes; then
14161 cat >>confdefs.h <<\EOF
14162 #define SETVBUF_REVERSED 1
14168 echo "$as_me:14168: checking return type of signal handlers" >&5
14169 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14170 if test "${ac_cv_type_signal+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14174 #line 14174 "configure"
14175 #include "confdefs.h"
14176 #include <sys/types.h>
14177 #include <signal.h>
14182 extern "C" void (*signal (int, void (*)(int)))(int);
14184 void (*signal ()) ();
14195 rm -f conftest.$ac_objext
14196 if { (eval echo "$as_me:14196: \"$ac_compile\"") >&5
14197 (eval $ac_compile) 2>&5
14199 echo "$as_me:14199: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -s conftest.$ac_objext'
14202 { (eval echo "$as_me:14202: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:14205: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_type_signal=void
14209 echo "$as_me: failed program was:" >&5
14210 cat conftest.$ac_ext >&5
14211 ac_cv_type_signal=int
14213 rm -f conftest.$ac_objext conftest.$ac_ext
14215 echo "$as_me:14215: result: $ac_cv_type_signal" >&5
14216 echo "${ECHO_T}$ac_cv_type_signal" >&6
14218 cat >>confdefs.h <<EOF
14219 #define RETSIGTYPE $ac_cv_type_signal
14222 echo "$as_me:14222: checking for type sigaction_t" >&5
14223 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
14224 if test "${cf_cv_type_sigaction+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 cat >conftest.$ac_ext <<_ACEOF
14229 #line 14229 "configure"
14230 #include "confdefs.h"
14232 #include <signal.h>
14241 rm -f conftest.$ac_objext
14242 if { (eval echo "$as_me:14242: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>&5
14245 echo "$as_me:14245: \$? = $ac_status" >&5
14246 (exit $ac_status); } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:14248: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:14251: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 cf_cv_type_sigaction=yes
14255 echo "$as_me: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 cf_cv_type_sigaction=no
14259 rm -f conftest.$ac_objext conftest.$ac_ext
14262 echo "$as_me:14262: result: $cf_cv_type_sigaction" >&5
14263 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
14264 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
14265 #define HAVE_TYPE_SIGACTION 1
14268 echo "$as_me:14268: checking declaration of size-change" >&5
14269 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
14270 if test "${cf_cv_sizechange+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cf_cv_sizechange=unknown
14275 cf_save_CPPFLAGS="$CPPFLAGS"
14277 for cf_opts in "" "NEED_PTEM_H"
14280 CPPFLAGS="$cf_save_CPPFLAGS"
14281 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
14282 cat >conftest.$ac_ext <<_ACEOF
14283 #line 14283 "configure"
14284 #include "confdefs.h"
14285 #include <sys/types.h>
14286 #ifdef HAVE_TERMIOS_H
14287 #include <termios.h>
14289 #ifdef HAVE_TERMIO_H
14290 #include <termio.h>
14294 /* This is a workaround for SCO: they neglected to define struct winsize in
14295 * termios.h -- it's only in termio.h and ptem.h
14297 #include <sys/stream.h>
14298 #include <sys/ptem.h>
14300 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
14301 #include <sys/ioctl.h>
14309 struct ttysize win; /* FIXME: what system is this? */
14310 int y = win.ts_lines;
14311 int x = win.ts_cols;
14314 struct winsize win;
14315 int y = win.ws_row;
14316 int x = win.ws_col;
14318 no TIOCGSIZE or TIOCGWINSZ
14319 #endif /* TIOCGWINSZ */
14320 #endif /* TIOCGSIZE */
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:14327: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>&5
14330 echo "$as_me:14330: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try='test -s conftest.$ac_objext'
14333 { (eval echo "$as_me:14333: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:14336: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 cf_cv_sizechange=yes
14340 echo "$as_me: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 cf_cv_sizechange=no
14344 rm -f conftest.$ac_objext conftest.$ac_ext
14346 CPPFLAGS="$cf_save_CPPFLAGS"
14347 if test "$cf_cv_sizechange" = yes ; then
14348 echo "size-change succeeded ($cf_opts)" >&5
14349 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
14355 echo "$as_me:14355: result: $cf_cv_sizechange" >&5
14356 echo "${ECHO_T}$cf_cv_sizechange" >&6
14357 if test "$cf_cv_sizechange" != no ; then
14358 cat >>confdefs.h <<\EOF
14359 #define HAVE_SIZECHANGE 1
14362 case $cf_cv_sizechange in #(vi
14364 cat >>confdefs.h <<EOF
14365 #define $cf_cv_sizechange 1
14372 echo "$as_me:14372: checking for memmove" >&5
14373 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
14374 if test "${ac_cv_func_memmove+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 cat >conftest.$ac_ext <<_ACEOF
14378 #line 14378 "configure"
14379 #include "confdefs.h"
14380 /* System header to define __stub macros and hopefully few prototypes,
14381 which can conflict with char memmove (); below. */
14382 #include <assert.h>
14383 /* Override any gcc2 internal prototype to avoid an error. */
14387 /* We use char because int might match the return type of a gcc2
14388 builtin and then its argument prototype would still apply. */
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_memmove) || defined (__stub___memmove)
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (eval echo "$as_me:14409: \"$ac_link\"") >&5
14410 (eval $ac_link) 2>&5
14412 echo "$as_me:14412: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -s conftest$ac_exeext'
14415 { (eval echo "$as_me:14415: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14418 echo "$as_me:14418: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_func_memmove=yes
14422 echo "$as_me: failed program was:" >&5
14423 cat conftest.$ac_ext >&5
14424 ac_cv_func_memmove=no
14426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14428 echo "$as_me:14428: result: $ac_cv_func_memmove" >&5
14429 echo "${ECHO_T}$ac_cv_func_memmove" >&6
14430 if test $ac_cv_func_memmove = yes; then
14434 echo "$as_me:14434: checking for bcopy" >&5
14435 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
14436 if test "${ac_cv_func_bcopy+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14440 #line 14440 "configure"
14441 #include "confdefs.h"
14442 /* System header to define __stub macros and hopefully few prototypes,
14443 which can conflict with char bcopy (); below. */
14444 #include <assert.h>
14445 /* Override any gcc2 internal prototype to avoid an error. */
14449 /* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14457 /* The GNU C library defines this for functions which it implements
14458 to always fail with ENOSYS. Some functions are actually named
14459 something starting with __ and the normal name is an alias. */
14460 #if defined (__stub_bcopy) || defined (__stub___bcopy)
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (eval echo "$as_me:14471: \"$ac_link\"") >&5
14472 (eval $ac_link) 2>&5
14474 echo "$as_me:14474: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -s conftest$ac_exeext'
14477 { (eval echo "$as_me:14477: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:14480: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_func_bcopy=yes
14484 echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 ac_cv_func_bcopy=no
14488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14490 echo "$as_me:14490: result: $ac_cv_func_bcopy" >&5
14491 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
14492 if test $ac_cv_func_bcopy = yes; then
14494 echo "$as_me:14494: checking if bcopy does overlapping moves" >&5
14495 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
14496 if test "${cf_cv_good_bcopy+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 if test "$cross_compiling" = yes; then
14501 cf_cv_good_bcopy=unknown
14503 cat >conftest.$ac_ext <<_ACEOF
14504 #line 14504 "configure"
14505 #include "confdefs.h"
14508 static char data[] = "abcdefghijklmnopqrstuwwxyz";
14510 bcopy(data, temp, sizeof(data));
14511 bcopy(temp+10, temp, 15);
14512 bcopy(temp+5, temp+15, 10);
14513 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:14518: \"$ac_link\"") >&5
14519 (eval $ac_link) 2>&5
14521 echo "$as_me:14521: \$? = $ac_status" >&5
14522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14523 { (eval echo "$as_me:14523: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:14526: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 cf_cv_good_bcopy=yes
14530 echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 cf_cv_good_bcopy=no
14535 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14539 echo "$as_me:14539: result: $cf_cv_good_bcopy" >&5
14540 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
14543 cf_cv_good_bcopy=no
14546 if test "$cf_cv_good_bcopy" = yes ; then
14547 cat >>confdefs.h <<\EOF
14548 #define USE_OK_BCOPY 1
14552 cat >>confdefs.h <<\EOF
14553 #define USE_MY_MEMMOVE 1
14560 echo "$as_me:14560: checking if poll really works" >&5
14561 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
14562 if test "${cf_cv_working_poll+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 if test "$cross_compiling" = yes; then
14567 cf_cv_working_poll=unknown
14569 cat >conftest.$ac_ext <<_ACEOF
14570 #line 14570 "configure"
14571 #include "confdefs.h"
14577 #include <sys/poll.h>
14580 struct pollfd myfds;
14584 myfds.events = POLLIN;
14586 ret = poll(&myfds, 1, 100);
14587 ${cf_cv_main_return:-return}(ret != 0);
14590 rm -f conftest$ac_exeext
14591 if { (eval echo "$as_me:14591: \"$ac_link\"") >&5
14592 (eval $ac_link) 2>&5
14594 echo "$as_me:14594: \$? = $ac_status" >&5
14595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14596 { (eval echo "$as_me:14596: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14599 echo "$as_me:14599: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
14601 cf_cv_working_poll=yes
14603 echo "$as_me: program exited with status $ac_status" >&5
14604 echo "$as_me: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 cf_cv_working_poll=no
14608 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14611 echo "$as_me:14611: result: $cf_cv_working_poll" >&5
14612 echo "${ECHO_T}$cf_cv_working_poll" >&6
14613 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
14614 #define HAVE_WORKING_POLL 1
14617 # special check for test/ditto.c
14619 echo "$as_me:14619: checking for openpty in -lutil" >&5
14620 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14621 if test "${ac_cv_lib_util_openpty+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 ac_check_lib_save_LIBS=$LIBS
14625 LIBS="-lutil $LIBS"
14626 cat >conftest.$ac_ext <<_ACEOF
14627 #line 14627 "configure"
14628 #include "confdefs.h"
14630 /* Override any gcc2 internal prototype to avoid an error. */
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (eval echo "$as_me:14646: \"$ac_link\"") >&5
14647 (eval $ac_link) 2>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -s conftest$ac_exeext'
14652 { (eval echo "$as_me:14652: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_lib_util_openpty=yes
14659 echo "$as_me: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14661 ac_cv_lib_util_openpty=no
14663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14664 LIBS=$ac_check_lib_save_LIBS
14666 echo "$as_me:14666: result: $ac_cv_lib_util_openpty" >&5
14667 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14668 if test $ac_cv_lib_util_openpty = yes; then
14674 echo "$as_me:14674: checking for openpty header" >&5
14675 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
14676 if test "${cf_cv_func_openpty+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 cf_save_LIBS="$LIBS"
14681 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
14682 for cf_header in pty.h libutil.h util.h
14684 cat >conftest.$ac_ext <<_ACEOF
14685 #line 14685 "configure"
14686 #include "confdefs.h"
14688 #include <$cf_header>
14694 int x = openpty((int *)0, (int *)0, (char *)0,
14695 (struct termios *)0, (struct winsize *)0);
14701 rm -f conftest.$ac_objext conftest$ac_exeext
14702 if { (eval echo "$as_me:14702: \"$ac_link\"") >&5
14703 (eval $ac_link) 2>&5
14705 echo "$as_me:14705: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -s conftest$ac_exeext'
14708 { (eval echo "$as_me:14708: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:14711: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14714 cf_cv_func_openpty=$cf_header
14718 echo "$as_me: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14721 cf_cv_func_openpty=no
14724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14726 LIBS="$cf_save_LIBS"
14729 echo "$as_me:14729: result: $cf_cv_func_openpty" >&5
14730 echo "${ECHO_T}$cf_cv_func_openpty" >&6
14732 if test "$cf_cv_func_openpty" != no ; then
14733 cat >>confdefs.h <<EOF
14734 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
14737 cat >>confdefs.h <<\EOF
14738 #define USE_XTERM_PTY 1
14741 if test "$cf_cv_lib_util" = yes ; then
14742 TEST_LIBS="-lutil $TEST_LIBS"
14746 if test "$with_hashed_db" != no ; then
14747 cat >>confdefs.h <<\EOF
14748 #define USE_HASHED_DB 1
14751 case $with_hashed_db in #(vi
14755 if test -d "$with_hashed_db" ; then
14757 if test -n "$with_hashed_db/include" ; then
14758 for cf_add_incdir in $with_hashed_db/include
14760 while test $cf_add_incdir != /usr/include
14762 if test -d $cf_add_incdir
14765 if test -n "$CFLAGS$CPPFLAGS" ; then
14766 # a loop is needed to ensure we can add subdirs of existing dirs
14767 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
14768 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
14769 cf_have_incdir=yes; break
14774 if test "$cf_have_incdir" = no ; then
14775 if test "$cf_add_incdir" = /usr/local/include ; then
14776 if test "$GCC" = yes
14778 cf_save_CPPFLAGS=$CPPFLAGS
14779 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14780 cat >conftest.$ac_ext <<_ACEOF
14781 #line 14781 "configure"
14782 #include "confdefs.h"
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:14793: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>&5
14796 echo "$as_me:14796: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:14799: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14806 echo "$as_me: failed program was:" >&5
14807 cat conftest.$ac_ext >&5
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14811 CPPFLAGS=$cf_save_CPPFLAGS
14816 if test "$cf_have_incdir" = no ; then
14817 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
14819 echo "${as_me-configure}:14819: testing adding $cf_add_incdir to include-path ..." 1>&5
14821 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14823 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
14824 test "$cf_top_incdir" = "$cf_add_incdir" && break
14825 cf_add_incdir="$cf_top_incdir"
14834 if test -n "$with_hashed_db/lib" ; then
14835 for cf_add_libdir in $with_hashed_db/lib
14837 if test $cf_add_libdir = /usr/lib ; then
14839 elif test -d $cf_add_libdir
14842 if test -n "$LDFLAGS$LIBS" ; then
14843 # a loop is needed to ensure we can add subdirs of existing dirs
14844 for cf_test_libdir in $LDFLAGS $LIBS ; do
14845 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
14846 cf_have_libdir=yes; break
14850 if test "$cf_have_libdir" = no ; then
14851 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
14853 echo "${as_me-configure}:14853: testing adding $cf_add_libdir to library-path ..." 1>&5
14855 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
14864 echo "$as_me:14864: checking for db.h" >&5
14865 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
14866 if test "${ac_cv_header_db_h+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 cat >conftest.$ac_ext <<_ACEOF
14870 #line 14870 "configure"
14871 #include "confdefs.h"
14874 if { (eval echo "$as_me:14874: \"$ac_cpp conftest.$ac_ext\"") >&5
14875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14877 egrep -v '^ *\+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 echo "$as_me:14880: \$? = $ac_status" >&5
14881 (exit $ac_status); } >/dev/null; then
14882 if test -s conftest.err; then
14883 ac_cpp_err=$ac_c_preproc_warn_flag
14890 if test -z "$ac_cpp_err"; then
14891 ac_cv_header_db_h=yes
14893 echo "$as_me: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14895 ac_cv_header_db_h=no
14897 rm -f conftest.err conftest.$ac_ext
14899 echo "$as_me:14899: result: $ac_cv_header_db_h" >&5
14900 echo "${ECHO_T}$ac_cv_header_db_h" >&6
14901 if test $ac_cv_header_db_h = yes; then
14903 echo "$as_me:14903: checking for version of db" >&5
14904 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
14905 if test "${cf_cv_hashed_db_version+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 cf_cv_hashed_db_version=unknown
14911 for cf_db_version in 1 2 3 4 5
14914 echo "${as_me-configure}:14914: testing checking for db version $cf_db_version ..." 1>&5
14916 cat >conftest.$ac_ext <<_ACEOF
14917 #line 14917 "configure"
14918 #include "confdefs.h"
14920 $ac_includes_default
14923 #ifdef DB_VERSION_MAJOR
14924 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
14925 #if $cf_db_version == DB_VERSION_MAJOR
14931 #if $cf_db_version == 1
14932 /* ok: assuming this is DB 1.8.5 */
14946 rm -f conftest.$ac_objext
14947 if { (eval echo "$as_me:14947: \"$ac_compile\"") >&5
14948 (eval $ac_compile) 2>&5
14950 echo "$as_me:14950: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:14953: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:14956: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14959 cf_cv_hashed_db_version=$cf_db_version
14963 echo "$as_me: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14966 rm -f conftest.$ac_objext conftest.$ac_ext
14970 echo "$as_me:14970: result: $cf_cv_hashed_db_version" >&5
14971 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
14973 if test "$cf_cv_hashed_db_version" = unknown ; then
14974 { { echo "$as_me:14974: error: Cannot determine version of db" >&5
14975 echo "$as_me: error: Cannot determine version of db" >&2;}
14976 { (exit 1); exit 1; }; }
14979 echo "$as_me:14979: checking for db libraries" >&5
14980 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
14981 if test "${cf_cv_hashed_db_libs+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 cf_cv_hashed_db_libs=unknown
14986 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
14988 cf_save_libs="$LIBS"
14989 if test -n "$cf_db_libs"; then
14990 LIBS="-l$cf_db_libs $LIBS"
14993 echo "${as_me-configure}:14993: testing checking for library "$cf_db_libs" ..." 1>&5
14995 cat >conftest.$ac_ext <<_ACEOF
14996 #line 14996 "configure"
14997 #include "confdefs.h"
14999 $ac_includes_default
15006 char *path = "/tmp/foo";
15007 #ifdef DB_VERSION_MAJOR
15008 #if DB_VERSION_MAJOR >= 4
15010 db_create(&result, NULL, 0);
15011 result->open(result,
15018 #elif DB_VERSION_MAJOR >= 3
15020 db_create(&result, NULL, 0);
15021 result->open(result,
15027 #elif DB_VERSION_MAJOR >= 2
15036 #endif /* DB_VERSION_MAJOR */
15038 DB *result = dbopen(path,
15044 ${cf_cv_main_return:-return}(result != 0)
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (eval echo "$as_me:15051: \"$ac_link\"") >&5
15052 (eval $ac_link) 2>&5
15054 echo "$as_me:15054: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -s conftest$ac_exeext'
15057 { (eval echo "$as_me:15057: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:15060: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15063 if test -n "$cf_db_libs" ; then
15064 cf_cv_hashed_db_libs=$cf_db_libs
15066 cf_cv_hashed_db_libs=default
15068 LIBS="$cf_save_libs"
15072 echo "$as_me: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15076 LIBS="$cf_save_libs"
15080 echo "$as_me:15080: result: $cf_cv_hashed_db_libs" >&5
15081 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
15083 if test "$cf_cv_hashed_db_libs" = unknown ; then
15084 { { echo "$as_me:15084: error: Cannot determine library for db" >&5
15085 echo "$as_me: error: Cannot determine library for db" >&2;}
15086 { (exit 1); exit 1; }; }
15087 elif test "$cf_cv_hashed_db_libs" != default ; then
15088 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
15094 { { echo "$as_me:15094: error: Cannot find db.h" >&5
15095 echo "$as_me: error: Cannot find db.h" >&2;}
15096 { (exit 1); exit 1; }; }
15102 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
15103 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15104 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15107 # Just in case, check if the C compiler has a bool type.
15109 echo "$as_me:15109: checking if we should include stdbool.h" >&5
15110 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
15112 if test "${cf_cv_header_stdbool_h+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line 15117 "configure"
15118 #include "confdefs.h"
15128 rm -f conftest.$ac_objext
15129 if { (eval echo "$as_me:15129: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>&5
15132 echo "$as_me:15132: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:15135: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:15138: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 cf_cv_header_stdbool_h=0
15142 echo "$as_me: failed program was:" >&5
15143 cat conftest.$ac_ext >&5
15144 cat >conftest.$ac_ext <<_ACEOF
15145 #line 15145 "configure"
15146 #include "confdefs.h"
15149 #include <stdbool.h>
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:15161: \"$ac_compile\"") >&5
15162 (eval $ac_compile) 2>&5
15164 echo "$as_me:15164: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (eval echo "$as_me:15167: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15170 echo "$as_me:15170: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 cf_cv_header_stdbool_h=1
15174 echo "$as_me: failed program was:" >&5
15175 cat conftest.$ac_ext >&5
15176 cf_cv_header_stdbool_h=0
15178 rm -f conftest.$ac_objext conftest.$ac_ext
15180 rm -f conftest.$ac_objext conftest.$ac_ext
15183 if test "$cf_cv_header_stdbool_h" = 1
15184 then echo "$as_me:15184: result: yes" >&5
15185 echo "${ECHO_T}yes" >&6
15186 else echo "$as_me:15186: result: no" >&5
15187 echo "${ECHO_T}no" >&6
15190 echo "$as_me:15190: checking for builtin bool type" >&5
15191 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
15193 if test "${cf_cv_cc_bool_type+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 cat >conftest.$ac_ext <<_ACEOF
15198 #line 15198 "configure"
15199 #include "confdefs.h"
15202 #include <sys/types.h>
15212 rm -f conftest.$ac_objext
15213 if { (eval echo "$as_me:15213: \"$ac_compile\"") >&5
15214 (eval $ac_compile) 2>&5
15216 echo "$as_me:15216: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:15219: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:15222: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 cf_cv_cc_bool_type=1
15226 echo "$as_me: failed program was:" >&5
15227 cat conftest.$ac_ext >&5
15228 cf_cv_cc_bool_type=0
15230 rm -f conftest.$ac_objext conftest.$ac_ext
15234 if test "$cf_cv_cc_bool_type" = 1
15235 then echo "$as_me:15235: result: yes" >&5
15236 echo "${ECHO_T}yes" >&6
15237 else echo "$as_me:15237: result: no" >&5
15238 echo "${ECHO_T}no" >&6
15241 # Check for C++ compiler characteristics (and ensure that it's there!)
15242 if test -n "$CXX" ; then
15244 ac_cpp='$CXXCPP $CPPFLAGS'
15245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15248 ac_main_return=return
15250 if test -n "$GXX" ; then
15251 case $cf_cv_system_name in #(vi
15253 cf_stdcpp_libname=stdcpp
15256 cf_stdcpp_libname=stdc++
15259 echo "$as_me:15259: checking for library $cf_stdcpp_libname" >&5
15260 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
15261 if test "${cf_cv_libstdcpp+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 LIBS="$LIBS -l$cf_stdcpp_libname"
15267 cat >conftest.$ac_ext <<_ACEOF
15268 #line 15268 "configure"
15269 #include "confdefs.h"
15271 #include <strstream.h>
15277 strstreambuf foo(buf, sizeof(buf))
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (eval echo "$as_me:15284: \"$ac_link\"") >&5
15285 (eval $ac_link) 2>&5
15287 echo "$as_me:15287: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -s conftest$ac_exeext'
15290 { (eval echo "$as_me:15290: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:15293: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 cf_cv_libstdcpp=yes
15297 echo "$as_me: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15305 echo "$as_me:15305: result: $cf_cv_libstdcpp" >&5
15306 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
15307 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
15310 echo "$as_me:15310: checking whether $CXX understands -c and -o together" >&5
15311 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
15312 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 cat > conftest.$ac_ext <<CF_EOF
15320 ${cf_cv_main_return:-return}(0);
15323 # We do the test twice because some compilers refuse to overwrite an
15324 # existing .o file with -o, though they will create one.
15325 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15326 if { (eval echo "$as_me:15326: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15329 echo "$as_me:15329: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 test -f conftest2.$ac_objext && { (eval echo "$as_me:15331: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:15334: \$? = $ac_status" >&5
15335 (exit $ac_status); };
15337 eval cf_cv_prog_CXX_c_o=yes
15339 eval cf_cv_prog_CXX_c_o=no
15344 if test $cf_cv_prog_CXX_c_o = yes; then
15345 echo "$as_me:15345: result: yes" >&5
15346 echo "${ECHO_T}yes" >&6
15348 echo "$as_me:15348: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15352 case $GXX_VERSION in
15358 cf_cxx_library=unknown
15359 case $cf_cv_system_name in #(vi
15367 if test "$GXX" = yes; then
15368 echo "$as_me:15368: checking for lib$cf_gpp_libname" >&5
15369 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
15371 LIBS="$LIBS -l$cf_gpp_libname"
15372 cat >conftest.$ac_ext <<_ACEOF
15373 #line 15373 "configure"
15374 #include "confdefs.h"
15376 #include <$cf_gpp_libname/builtin.h>
15381 two_arg_error_handler_t foo2 = lib_error_handler
15386 rm -f conftest.$ac_objext conftest$ac_exeext
15387 if { (eval echo "$as_me:15387: \"$ac_link\"") >&5
15388 (eval $ac_link) 2>&5
15390 echo "$as_me:15390: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:15393: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:15396: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15399 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
15400 if test "$cf_gpp_libname" = cpp ; then
15401 cat >>confdefs.h <<\EOF
15402 #define HAVE_GPP_BUILTIN_H 1
15406 cat >>confdefs.h <<\EOF
15407 #define HAVE_GXX_BUILTIN_H 1
15412 echo "$as_me: failed program was:" >&5
15413 cat conftest.$ac_ext >&5
15414 cat >conftest.$ac_ext <<_ACEOF
15415 #line 15415 "configure"
15416 #include "confdefs.h"
15418 #include <builtin.h>
15423 two_arg_error_handler_t foo2 = lib_error_handler
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:15429: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>&5
15432 echo "$as_me:15432: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -s conftest$ac_exeext'
15435 { (eval echo "$as_me:15435: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15438 echo "$as_me:15438: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15441 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
15442 cat >>confdefs.h <<\EOF
15443 #define HAVE_BUILTIN_H 1
15447 echo "$as_me: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15455 echo "$as_me:15455: result: $cf_cxx_library" >&5
15456 echo "${ECHO_T}$cf_cxx_library" >&6
15466 ac_cpp='$CXXCPP $CPPFLAGS'
15467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15470 ac_main_return=return
15471 echo "$as_me:15471: checking how to run the C++ preprocessor" >&5
15472 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15473 if test -z "$CXXCPP"; then
15474 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 # Double quotes because CXXCPP needs to be expanded
15478 for CXXCPP in "$CXX -E" "/lib/cpp"
15480 ac_preproc_ok=false
15481 for ac_cxx_preproc_warn_flag in '' yes
15483 # Use a header file that comes with gcc, so configuring glibc
15484 # with a fresh cross-compiler works.
15485 # On the NeXT, cc -E runs the code through the compiler's parser,
15486 # not just through cpp. "Syntax error" is here to catch this case.
15487 cat >conftest.$ac_ext <<_ACEOF
15488 #line 15488 "configure"
15489 #include "confdefs.h"
15490 #include <assert.h>
15493 if { (eval echo "$as_me:15493: \"$ac_cpp conftest.$ac_ext\"") >&5
15494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15496 egrep -v '^ *\+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:15499: \$? = $ac_status" >&5
15500 (exit $ac_status); } >/dev/null; then
15501 if test -s conftest.err; then
15502 ac_cpp_err=$ac_cxx_preproc_warn_flag
15509 if test -z "$ac_cpp_err"; then
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 # Broken: fails on valid input.
15517 rm -f conftest.err conftest.$ac_ext
15519 # OK, works on sane cases. Now check whether non-existent headers
15520 # can be detected and how.
15521 cat >conftest.$ac_ext <<_ACEOF
15522 #line 15522 "configure"
15523 #include "confdefs.h"
15524 #include <ac_nonexistent.h>
15526 if { (eval echo "$as_me:15526: \"$ac_cpp conftest.$ac_ext\"") >&5
15527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15529 egrep -v '^ *\+' conftest.er1 >conftest.err
15531 cat conftest.err >&5
15532 echo "$as_me:15532: \$? = $ac_status" >&5
15533 (exit $ac_status); } >/dev/null; then
15534 if test -s conftest.err; then
15535 ac_cpp_err=$ac_cxx_preproc_warn_flag
15542 if test -z "$ac_cpp_err"; then
15543 # Broken: success on invalid input.
15546 echo "$as_me: failed program was:" >&5
15547 cat conftest.$ac_ext >&5
15548 # Passes both tests.
15552 rm -f conftest.err conftest.$ac_ext
15555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15556 rm -f conftest.err conftest.$ac_ext
15557 if $ac_preproc_ok; then
15562 ac_cv_prog_CXXCPP=$CXXCPP
15565 CXXCPP=$ac_cv_prog_CXXCPP
15567 ac_cv_prog_CXXCPP=$CXXCPP
15569 echo "$as_me:15569: result: $CXXCPP" >&5
15570 echo "${ECHO_T}$CXXCPP" >&6
15571 ac_preproc_ok=false
15572 for ac_cxx_preproc_warn_flag in '' yes
15574 # Use a header file that comes with gcc, so configuring glibc
15575 # with a fresh cross-compiler works.
15576 # On the NeXT, cc -E runs the code through the compiler's parser,
15577 # not just through cpp. "Syntax error" is here to catch this case.
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line 15579 "configure"
15580 #include "confdefs.h"
15581 #include <assert.h>
15584 if { (eval echo "$as_me:15584: \"$ac_cpp conftest.$ac_ext\"") >&5
15585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15587 egrep -v '^ *\+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit $ac_status); } >/dev/null; then
15592 if test -s conftest.err; then
15593 ac_cpp_err=$ac_cxx_preproc_warn_flag
15600 if test -z "$ac_cpp_err"; then
15603 echo "$as_me: failed program was:" >&5
15604 cat conftest.$ac_ext >&5
15605 # Broken: fails on valid input.
15608 rm -f conftest.err conftest.$ac_ext
15610 # OK, works on sane cases. Now check whether non-existent headers
15611 # can be detected and how.
15612 cat >conftest.$ac_ext <<_ACEOF
15613 #line 15613 "configure"
15614 #include "confdefs.h"
15615 #include <ac_nonexistent.h>
15617 if { (eval echo "$as_me:15617: \"$ac_cpp conftest.$ac_ext\"") >&5
15618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15620 egrep -v '^ *\+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:15623: \$? = $ac_status" >&5
15624 (exit $ac_status); } >/dev/null; then
15625 if test -s conftest.err; then
15626 ac_cpp_err=$ac_cxx_preproc_warn_flag
15633 if test -z "$ac_cpp_err"; then
15634 # Broken: success on invalid input.
15637 echo "$as_me: failed program was:" >&5
15638 cat conftest.$ac_ext >&5
15639 # Passes both tests.
15643 rm -f conftest.err conftest.$ac_ext
15646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15647 rm -f conftest.err conftest.$ac_ext
15648 if $ac_preproc_ok; then
15651 { { echo "$as_me:15651: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
15652 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
15653 { (exit 1); exit 1; }; }
15657 ac_cpp='$CXXCPP $CPPFLAGS'
15658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15661 ac_main_return=return
15663 for ac_header in iostream typeinfo
15665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15666 echo "$as_me:15666: checking for $ac_header" >&5
15667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 cat >conftest.$ac_ext <<_ACEOF
15672 #line 15672 "configure"
15673 #include "confdefs.h"
15674 #include <$ac_header>
15676 if { (eval echo "$as_me:15676: \"$ac_cpp conftest.$ac_ext\"") >&5
15677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15679 egrep -v '^ *\+' conftest.er1 >conftest.err
15681 cat conftest.err >&5
15682 echo "$as_me:15682: \$? = $ac_status" >&5
15683 (exit $ac_status); } >/dev/null; then
15684 if test -s conftest.err; then
15685 ac_cpp_err=$ac_cxx_preproc_warn_flag
15692 if test -z "$ac_cpp_err"; then
15693 eval "$as_ac_Header=yes"
15695 echo "$as_me: failed program was:" >&5
15696 cat conftest.$ac_ext >&5
15697 eval "$as_ac_Header=no"
15699 rm -f conftest.err conftest.$ac_ext
15701 echo "$as_me:15701: result: `eval echo '${'$as_ac_Header'}'`" >&5
15702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15704 cat >>confdefs.h <<EOF
15705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15711 if test x"$ac_cv_header_iostream" = xyes ; then
15712 echo "$as_me:15712: checking if iostream uses std-namespace" >&5
15713 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
15714 cat >conftest.$ac_ext <<_ACEOF
15715 #line 15715 "configure"
15716 #include "confdefs.h"
15718 #include <iostream>
15725 cerr << "testing" << endl;
15731 rm -f conftest.$ac_objext
15732 if { (eval echo "$as_me:15732: \"$ac_compile\"") >&5
15733 (eval $ac_compile) 2>&5
15735 echo "$as_me:15735: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -s conftest.$ac_objext'
15738 { (eval echo "$as_me:15738: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:15741: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 cf_iostream_namespace=yes
15745 echo "$as_me: failed program was:" >&5
15746 cat conftest.$ac_ext >&5
15747 cf_iostream_namespace=no
15749 rm -f conftest.$ac_objext conftest.$ac_ext
15750 echo "$as_me:15750: result: $cf_iostream_namespace" >&5
15751 echo "${ECHO_T}$cf_iostream_namespace" >&6
15752 if test "$cf_iostream_namespace" = yes ; then
15753 cat >>confdefs.h <<\EOF
15754 #define IOSTREAM_NAMESPACE 1
15760 echo "$as_me:15760: checking if we should include stdbool.h" >&5
15761 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
15763 if test "${cf_cv_header_stdbool_h+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 cat >conftest.$ac_ext <<_ACEOF
15768 #line 15768 "configure"
15769 #include "confdefs.h"
15779 rm -f conftest.$ac_objext
15780 if { (eval echo "$as_me:15780: \"$ac_compile\"") >&5
15781 (eval $ac_compile) 2>&5
15783 echo "$as_me:15783: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -s conftest.$ac_objext'
15786 { (eval echo "$as_me:15786: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:15789: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 cf_cv_header_stdbool_h=0
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 cat >conftest.$ac_ext <<_ACEOF
15796 #line 15796 "configure"
15797 #include "confdefs.h"
15800 #include <stdbool.h>
15811 rm -f conftest.$ac_objext
15812 if { (eval echo "$as_me:15812: \"$ac_compile\"") >&5
15813 (eval $ac_compile) 2>&5
15815 echo "$as_me:15815: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -s conftest.$ac_objext'
15818 { (eval echo "$as_me:15818: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15821 echo "$as_me:15821: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823 cf_cv_header_stdbool_h=1
15825 echo "$as_me: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15827 cf_cv_header_stdbool_h=0
15829 rm -f conftest.$ac_objext conftest.$ac_ext
15831 rm -f conftest.$ac_objext conftest.$ac_ext
15834 if test "$cf_cv_header_stdbool_h" = 1
15835 then echo "$as_me:15835: result: yes" >&5
15836 echo "${ECHO_T}yes" >&6
15837 else echo "$as_me:15837: result: no" >&5
15838 echo "${ECHO_T}no" >&6
15841 echo "$as_me:15841: checking for builtin bool type" >&5
15842 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
15844 if test "${cf_cv_builtin_bool+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 cat >conftest.$ac_ext <<_ACEOF
15849 #line 15849 "configure"
15850 #include "confdefs.h"
15853 #include <sys/types.h>
15863 rm -f conftest.$ac_objext
15864 if { (eval echo "$as_me:15864: \"$ac_compile\"") >&5
15865 (eval $ac_compile) 2>&5
15867 echo "$as_me:15867: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try='test -s conftest.$ac_objext'
15870 { (eval echo "$as_me:15870: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:15873: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 cf_cv_builtin_bool=1
15877 echo "$as_me: failed program was:" >&5
15878 cat conftest.$ac_ext >&5
15879 cf_cv_builtin_bool=0
15881 rm -f conftest.$ac_objext conftest.$ac_ext
15885 if test "$cf_cv_builtin_bool" = 1
15886 then echo "$as_me:15886: result: yes" >&5
15887 echo "${ECHO_T}yes" >&6
15888 else echo "$as_me:15888: result: no" >&5
15889 echo "${ECHO_T}no" >&6
15892 echo "$as_me:15892: checking for size of bool" >&5
15893 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
15894 if test "${cf_cv_type_of_bool+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 if test "$cross_compiling" = yes; then
15900 cf_cv_type_of_bool=unknown
15902 cat >conftest.$ac_ext <<_ACEOF
15903 #line 15903 "configure"
15904 #include "confdefs.h"
15906 #include <stdlib.h>
15909 #if defined(__cplusplus)
15911 #ifdef HAVE_GXX_BUILTIN_H
15912 #include <g++/builtin.h>
15913 #elif HAVE_GPP_BUILTIN_H
15914 #include <gpp/builtin.h>
15915 #elif HAVE_BUILTIN_H
15916 #include <builtin.h>
15921 #if $cf_cv_header_stdbool_h
15922 #include <stdbool.h>
15929 FILE *fp = fopen("cf_test.out", "w");
15932 if ((bool)(-x) >= 0)
15933 fputs("unsigned ", fp);
15934 if (sizeof(x) == sizeof(int)) fputs("int", fp);
15935 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
15936 else if (sizeof(x) == sizeof(short))fputs("short",fp);
15937 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
15940 ${cf_cv_main_return:-return}(0);
15944 rm -f conftest$ac_exeext
15945 if { (eval echo "$as_me:15945: \"$ac_link\"") >&5
15946 (eval $ac_link) 2>&5
15948 echo "$as_me:15948: \$? = $ac_status" >&5
15949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15950 { (eval echo "$as_me:15950: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15953 echo "$as_me:15953: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 cf_cv_type_of_bool=`cat cf_test.out`
15956 if test -z "$cf_cv_type_of_bool"; then
15957 cf_cv_type_of_bool=unknown
15960 echo "$as_me: program exited with status $ac_status" >&5
15961 echo "$as_me: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15963 cf_cv_type_of_bool=unknown
15965 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15971 echo "$as_me:15971: result: $cf_cv_type_of_bool" >&5
15972 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
15973 if test "$cf_cv_type_of_bool" = unknown ; then
15974 case .$NCURSES_BOOL in #(vi
15975 .auto|.) NCURSES_BOOL=unsigned;;
15977 { echo "$as_me:15977: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
15978 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
15979 cf_cv_type_of_bool=$NCURSES_BOOL
15982 echo "$as_me:15982: checking for special defines needed for etip.h" >&5
15983 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
15984 cf_save_CXXFLAGS="$CXXFLAGS"
15986 for cf_math in "" MATH_H
15988 for cf_excp in "" MATH_EXCEPTION
15990 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
15991 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
15992 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
15993 cat >conftest.$ac_ext <<_ACEOF
15994 #line 15994 "configure"
15995 #include "confdefs.h"
15997 #include <etip.h.in>
16007 rm -f conftest.$ac_objext
16008 if { (eval echo "$as_me:16008: \"$ac_compile\"") >&5
16009 (eval $ac_compile) 2>&5
16011 echo "$as_me:16011: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:16014: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:16017: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16020 test -n "$cf_math" && cat >>confdefs.h <<EOF
16021 #define ETIP_NEEDS_${cf_math} 1
16024 test -n "$cf_excp" && cat >>confdefs.h <<EOF
16025 #define ETIP_NEEDS_${cf_excp} 1
16028 cf_result="$cf_math $cf_excp"
16032 echo "$as_me: failed program was:" >&5
16033 cat conftest.$ac_ext >&5
16035 rm -f conftest.$ac_objext conftest.$ac_ext
16038 echo "$as_me:16038: result: $cf_result" >&5
16039 echo "${ECHO_T}$cf_result" >&6
16040 CXXFLAGS="$cf_save_CXXFLAGS"
16042 if test -n "$CXX"; then
16043 echo "$as_me:16043: checking if $CXX accepts parameter initialization" >&5
16044 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
16045 if test "${cf_cv_cpp_param_init+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 ac_cpp='$CXXCPP $CPPFLAGS'
16051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16054 ac_main_return=return
16056 if test "$cross_compiling" = yes; then
16057 cf_cv_cpp_param_init=unknown
16059 cat >conftest.$ac_ext <<_ACEOF
16060 #line 16060 "configure"
16061 #include "confdefs.h"
16071 TEST::TEST(int x = 1) // some compilers do not like second initializer
16078 rm -f conftest$ac_exeext
16079 if { (eval echo "$as_me:16079: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>&5
16082 echo "$as_me:16082: \$? = $ac_status" >&5
16083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16084 { (eval echo "$as_me:16084: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:16087: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 cf_cv_cpp_param_init=yes
16091 echo "$as_me: program exited with status $ac_status" >&5
16092 echo "$as_me: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16094 cf_cv_cpp_param_init=no
16096 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16099 ac_cpp='$CXXCPP $CPPFLAGS'
16100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16103 ac_main_return=return
16106 echo "$as_me:16106: result: $cf_cv_cpp_param_init" >&5
16107 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
16109 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
16110 #define CPP_HAS_PARAM_INIT 1
16113 if test -n "$CXX"; then
16115 echo "$as_me:16115: checking if $CXX accepts static_cast" >&5
16116 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
16117 if test "${cf_cv_cpp_static_cast+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 ac_cpp='$CXXCPP $CPPFLAGS'
16123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16126 ac_main_return=return
16128 cat >conftest.$ac_ext <<_ACEOF
16129 #line 16129 "configure"
16130 #include "confdefs.h"
16135 NCursesPanel(int nlines,
16145 template<class T> class NCursesUserPanel : public NCursesPanel
16148 NCursesUserPanel (int nlines,
16152 const T* p_UserData = static_cast<T*>(0))
16153 : NCursesPanel (nlines, ncols, begin_y, begin_x)
16156 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
16160 virtual ~NCursesUserPanel() {};
16167 const char* p_UserData = static_cast<char*>(0)
16172 rm -f conftest.$ac_objext
16173 if { (eval echo "$as_me:16173: \"$ac_compile\"") >&5
16174 (eval $ac_compile) 2>&5
16176 echo "$as_me:16176: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -s conftest.$ac_objext'
16179 { (eval echo "$as_me:16179: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:16182: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 cf_cv_cpp_static_cast=yes
16186 echo "$as_me: failed program was:" >&5
16187 cat conftest.$ac_ext >&5
16188 cf_cv_cpp_static_cast=no
16190 rm -f conftest.$ac_objext conftest.$ac_ext
16193 ac_cpp='$CXXCPP $CPPFLAGS'
16194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16197 ac_main_return=return
16200 echo "$as_me:16200: result: $cf_cv_cpp_static_cast" >&5
16201 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
16205 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
16206 #define CPP_HAS_STATIC_CAST 1
16210 CXX_ARFLAGS='$(ARFLAGS)'
16211 case $cf_cv_system_name in #(vi
16213 if test "$GXX" != yes ; then
16215 CXX_ARFLAGS='-ar -o'
16219 CXXLDFLAGS="-u main"
16222 if test "$GXX" != yes ; then
16224 CXX_ARFLAGS='-xar -o'
16231 cf_cv_builtin_bool=1
16233 # Just because we are not configuring against C++ right now does not
16234 # mean that a user will not want to use C++. Some distributors disable
16235 # the C++ portion of this configuration as a shortcut (or just to avoid
16236 # compiling the demo in the c++ directory). So we need a reasonable
16237 # default for the 'bool' type.
16239 # Caveat: since the storage of the bool type is not standardized, it
16242 if test "$NCURSES_BOOL" != auto ; then
16243 cf_cv_type_of_bool=$NCURSES_BOOL
16244 cf_cv_header_stdbool_h=0
16246 if test "$cf_cv_header_stdbool_h" = 1 ; then
16248 echo "$as_me:16248: checking for size of bool" >&5
16249 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
16250 if test "${cf_cv_type_of_bool+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 if test "$cross_compiling" = yes; then
16256 cf_cv_type_of_bool=unknown
16258 cat >conftest.$ac_ext <<_ACEOF
16259 #line 16259 "configure"
16260 #include "confdefs.h"
16262 #include <stdlib.h>
16265 #if defined(__cplusplus)
16267 #ifdef HAVE_GXX_BUILTIN_H
16268 #include <g++/builtin.h>
16269 #elif HAVE_GPP_BUILTIN_H
16270 #include <gpp/builtin.h>
16271 #elif HAVE_BUILTIN_H
16272 #include <builtin.h>
16277 #if $cf_cv_header_stdbool_h
16278 #include <stdbool.h>
16285 FILE *fp = fopen("cf_test.out", "w");
16288 if ((bool)(-x) >= 0)
16289 fputs("unsigned ", fp);
16290 if (sizeof(x) == sizeof(int)) fputs("int", fp);
16291 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
16292 else if (sizeof(x) == sizeof(short))fputs("short",fp);
16293 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
16296 ${cf_cv_main_return:-return}(0);
16300 rm -f conftest$ac_exeext
16301 if { (eval echo "$as_me:16301: \"$ac_link\"") >&5
16302 (eval $ac_link) 2>&5
16304 echo "$as_me:16304: \$? = $ac_status" >&5
16305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16306 { (eval echo "$as_me:16306: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16309 echo "$as_me:16309: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16311 cf_cv_type_of_bool=`cat cf_test.out`
16312 if test -z "$cf_cv_type_of_bool"; then
16313 cf_cv_type_of_bool=unknown
16316 echo "$as_me: program exited with status $ac_status" >&5
16317 echo "$as_me: failed program was:" >&5
16318 cat conftest.$ac_ext >&5
16319 cf_cv_type_of_bool=unknown
16321 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16327 echo "$as_me:16327: result: $cf_cv_type_of_bool" >&5
16328 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
16329 if test "$cf_cv_type_of_bool" = unknown ; then
16330 case .$NCURSES_BOOL in #(vi
16331 .auto|.) NCURSES_BOOL=unsigned;;
16333 { echo "$as_me:16333: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
16334 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
16335 cf_cv_type_of_bool=$NCURSES_BOOL
16339 echo "$as_me:16339: checking for fallback type of bool" >&5
16340 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
16341 case "$host_cpu" in #(vi
16342 i?86) cf_cv_type_of_bool=char ;; #(vi
16343 *) cf_cv_type_of_bool=int ;;
16345 echo "$as_me:16345: result: $cf_cv_type_of_bool" >&5
16346 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
16351 # If the C compiler did not declare bool, and we did not determine that the C++
16352 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
16353 # ncurses library use the same type as C++ bool. Note that this allows one to
16354 # specify the type of bool in a configure-script option and postpone
16355 # integration with the C++ compiler provided that the types are compatible.
16357 if test $cf_cv_cc_bool_type = 1
16359 # oops: C has a bool. Unlikely, but C++ could differ.
16361 elif test $cf_cv_builtin_bool = 0
16366 # this is the normal case
16367 USE_CXX_BOOL='defined(__cplusplus)'
16370 if test -f "${srcdir}/Ada95/Makefile.in" ; then
16372 if test "$cf_with_ada" != "no" ; then
16373 if test "$with_libtool" != "no"; then
16374 { echo "$as_me:16374: WARNING: libtool does not support Ada - disabling feature" >&5
16375 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
16380 if test "$cf_with_ada" != "no" ; then
16381 cf_ada_make=gnatmake
16382 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
16383 set dummy $cf_ada_make; ac_word=$2
16384 echo "$as_me:16384: checking for $ac_word" >&5
16385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16386 if test "${ac_cv_prog_gnat_exists+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 if test -n "$gnat_exists"; then
16390 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
16392 ac_save_IFS=$IFS; IFS=$ac_path_separator
16394 for ac_dir in $ac_dummy; do
16396 test -z "$ac_dir" && ac_dir=.
16397 $as_executable_p "$ac_dir/$ac_word" || continue
16398 ac_cv_prog_gnat_exists="yes"
16399 echo "$as_me:16399: found $ac_dir/$ac_word" >&5
16403 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
16406 gnat_exists=$ac_cv_prog_gnat_exists
16407 if test -n "$gnat_exists"; then
16408 echo "$as_me:16408: result: $gnat_exists" >&5
16409 echo "${ECHO_T}$gnat_exists" >&6
16411 echo "$as_me:16411: result: no" >&5
16412 echo "${ECHO_T}no" >&6
16415 if test "$ac_cv_prog_gnat_exists" = no; then
16419 echo "$as_me:16419: checking for gnat version" >&5
16420 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
16421 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
16422 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
16423 echo "$as_me:16423: result: $cf_gnat_version" >&5
16424 echo "${ECHO_T}$cf_gnat_version" >&6
16426 case $cf_gnat_version in
16427 3.1[1-9]*|3.[2-9]*|[4-9].*)
16428 cf_cv_prog_gnat_correct=yes
16430 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
16431 cf_cv_prog_gnat_correct=no
16434 case $cf_gnat_version in
16436 cf_compile_generics=generics
16437 cf_generic_objects="\${GENOBJS}"
16439 *) cf_compile_generics=
16440 cf_generic_objects=
16444 # Extract the first word of "m4", so it can be a program name with args.
16445 set dummy m4; ac_word=$2
16446 echo "$as_me:16446: checking for $ac_word" >&5
16447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16448 if test "${ac_cv_prog_M4_exists+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 if test -n "$M4_exists"; then
16452 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
16454 ac_save_IFS=$IFS; IFS=$ac_path_separator
16456 for ac_dir in $ac_dummy; do
16458 test -z "$ac_dir" && ac_dir=.
16459 $as_executable_p "$ac_dir/$ac_word" || continue
16460 ac_cv_prog_M4_exists="yes"
16461 echo "$as_me:16461: found $ac_dir/$ac_word" >&5
16465 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
16468 M4_exists=$ac_cv_prog_M4_exists
16469 if test -n "$M4_exists"; then
16470 echo "$as_me:16470: result: $M4_exists" >&5
16471 echo "${ECHO_T}$M4_exists" >&6
16473 echo "$as_me:16473: result: no" >&5
16474 echo "${ECHO_T}no" >&6
16477 if test "$ac_cv_prog_M4_exists" = no; then
16478 cf_cv_prog_gnat_correct=no
16479 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
16481 if test "$cf_cv_prog_gnat_correct" = yes; then
16482 echo "$as_me:16482: checking if GNAT works" >&5
16483 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
16486 cat >>conftest.ads <<CF_EOF
16487 procedure conftest;
16489 cat >>conftest.adb <<CF_EOF
16492 procedure conftest is
16494 Text_IO.Put ("Hello World");
16496 GNAT.OS_Lib.OS_Exit (0);
16499 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16500 if ( ./conftest 1>&5 2>&1 ) ; then
16501 cf_cv_prog_gnat_correct=yes
16503 cf_cv_prog_gnat_correct=no
16506 cf_cv_prog_gnat_correct=no
16510 echo "$as_me:16510: result: $cf_cv_prog_gnat_correct" >&5
16511 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
16514 if test "$cf_cv_prog_gnat_correct" = yes; then
16515 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
16517 echo "$as_me:16517: checking if GNAT pragma Unreferenced works" >&5
16518 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
16521 cat >>conftest.ads <<CF_EOF
16522 procedure conftest;
16524 cat >>conftest.adb <<CF_EOF
16527 procedure conftest is
16529 pragma Unreferenced (test);
16532 Text_IO.Put ("Hello World");
16534 GNAT.OS_Lib.OS_Exit (0);
16537 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16538 cf_cv_pragma_unreferenced=yes
16540 cf_cv_pragma_unreferenced=no
16544 echo "$as_me:16544: result: $cf_cv_pragma_unreferenced" >&5
16545 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
16547 # if the pragma is supported, use it (needed in the Trace code).
16548 if test $cf_cv_pragma_unreferenced = yes ; then
16554 # Check whether --with-ada-compiler or --without-ada-compiler was given.
16555 if test "${with_ada_compiler+set}" = set; then
16556 withval="$with_ada_compiler"
16557 cf_ada_compiler=$withval
16559 cf_ada_compiler=gnatmake
16562 cf_ada_package=terminal_interface
16564 # Check whether --with-ada-include or --without-ada-include was given.
16565 if test "${with_ada_include+set}" = set; then
16566 withval="$with_ada_include"
16569 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
16570 fi; if test -n "$prefix/lib/ada/adainclude" ; then
16572 if test "x$prefix" != xNONE; then
16573 cf_path_syntax="$prefix"
16575 cf_path_syntax="$ac_default_prefix"
16578 case ".$withval" in #(vi
16579 .\$\(*\)*|.\'*\'*) #(vi
16583 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16585 .\${*prefix}*) #(vi
16586 eval withval="$withval"
16587 case ".$withval" in #(vi
16589 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16594 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16597 { { echo "$as_me:16597: error: expected a pathname, not \"$withval\"" >&5
16598 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16599 { (exit 1); exit 1; }; }
16604 ADA_INCLUDE="$withval"
16606 # Check whether --with-ada-objects or --without-ada-objects was given.
16607 if test "${with_ada_objects+set}" = set; then
16608 withval="$with_ada_objects"
16611 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
16612 fi; if test -n "$prefix/lib/ada/adalib" ; then
16614 if test "x$prefix" != xNONE; then
16615 cf_path_syntax="$prefix"
16617 cf_path_syntax="$ac_default_prefix"
16620 case ".$withval" in #(vi
16621 .\$\(*\)*|.\'*\'*) #(vi
16625 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16627 .\${*prefix}*) #(vi
16628 eval withval="$withval"
16629 case ".$withval" in #(vi
16631 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16636 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16639 { { echo "$as_me:16639: error: expected a pathname, not \"$withval\"" >&5
16640 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16641 { (exit 1); exit 1; }; }
16646 ADA_OBJECTS="$withval"
16654 ### Construct the ncurses library-subsets, if any, from this set of keywords:
16655 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
16657 ### ticlib modules may be a separate library, otherwise contained in termlib.
16658 ### termlib modules may be a separate library, otherwise contained in ncurses.
16660 ### The of "+" or " " between the tokens controls the way the script
16661 ### chooses to split module lists into libraries.
16663 ### (see CF_LIB_RULES).
16664 echo "$as_me:16664: checking for library subsets" >&5
16665 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
16668 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
16669 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
16670 if test "$with_ticlib" != no ; then
16671 LIB_SUBSETS="${LIB_SUBSETS} "
16673 LIB_SUBSETS="${LIB_SUBSETS}+"
16677 LIB_SUBSETS="${LIB_SUBSETS}termlib"
16678 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
16680 if test "$with_term_driver" != no ; then
16681 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
16682 case $cf_cv_system_name in #(vi
16684 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
16687 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
16692 if test "$with_termlib" != no ; then
16693 LIB_SUBSETS="${LIB_SUBSETS} "
16695 LIB_SUBSETS="${LIB_SUBSETS}+"
16698 LIB_SUBSETS="${LIB_SUBSETS}base"
16700 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
16701 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
16703 echo "$as_me:16703: result: $LIB_SUBSETS" >&5
16704 echo "${ECHO_T}$LIB_SUBSETS" >&6
16706 ### Construct the list of include-directories to be generated
16708 CPPFLAGS="$CPPFLAGS -I. -I../include"
16709 if test "$srcdir" != "."; then
16710 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
16712 if test "$GCC" != yes; then
16713 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16714 elif test "$includedir" != "/usr/include"; then
16715 if test "$includedir" = '${prefix}/include' ; then
16716 if test $prefix != /usr ; then
16717 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16720 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16724 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
16725 if test "$srcdir" != "."; then
16726 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
16728 if test "$GCC" != yes; then
16729 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16730 elif test "$includedir" != "/usr/include"; then
16731 if test "$includedir" = '${prefix}/include' ; then
16732 if test $prefix != /usr ; then
16733 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16736 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16740 ### Build up pieces for makefile rules
16741 echo "$as_me:16741: checking default library suffix" >&5
16742 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
16744 case $DFT_LWR_MODEL in
16745 libtool) DFT_ARG_SUFFIX='' ;;
16746 normal) DFT_ARG_SUFFIX='' ;;
16747 debug) DFT_ARG_SUFFIX='_g' ;;
16748 profile) DFT_ARG_SUFFIX='_p' ;;
16749 shared) DFT_ARG_SUFFIX='' ;;
16751 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
16752 echo "$as_me:16752: result: $DFT_ARG_SUFFIX" >&5
16753 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
16755 echo "$as_me:16755: checking default library-dependency suffix" >&5
16756 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
16758 case $DFT_LWR_MODEL in #(vi
16760 DFT_LIB_SUFFIX='.la'
16761 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16764 DFT_LIB_SUFFIX='.a'
16765 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16768 DFT_LIB_SUFFIX='_g.a'
16769 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16772 DFT_LIB_SUFFIX='_p.a'
16773 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16776 case $cf_cv_system_name in
16778 DFT_LIB_SUFFIX='.a'
16779 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16782 DFT_LIB_SUFFIX='.dll'
16783 DFT_DEP_SUFFIX='.dll.a'
16786 DFT_LIB_SUFFIX='.dylib'
16787 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16792 DFT_LIB_SUFFIX='.so'
16793 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16796 DFT_LIB_SUFFIX='.sl'
16797 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16801 *) DFT_LIB_SUFFIX='.so'
16802 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16806 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
16807 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
16808 echo "$as_me:16808: result: $DFT_DEP_SUFFIX" >&5
16809 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
16811 echo "$as_me:16811: checking default object directory" >&5
16812 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
16814 case $DFT_LWR_MODEL in
16815 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
16816 normal) DFT_OBJ_SUBDIR='objects' ;;
16817 debug) DFT_OBJ_SUBDIR='obj_g' ;;
16818 profile) DFT_OBJ_SUBDIR='obj_p' ;;
16820 case $cf_cv_system_name in #(vi
16822 DFT_OBJ_SUBDIR='objects' ;;
16824 DFT_OBJ_SUBDIR='obj_s' ;;
16827 echo "$as_me:16827: result: $DFT_OBJ_SUBDIR" >&5
16828 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
16830 # libtool thinks it can make c++ shared libraries (perhaps only g++)
16831 if test "$cf_with_cxx" = yes ; then
16832 echo "$as_me:16832: checking c++ library-dependency suffix" >&5
16833 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
16834 if test "$with_libtool" != "no"; then
16835 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
16838 case normal in #(vi
16840 CXX_LIB_SUFFIX='.la'
16841 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16844 CXX_LIB_SUFFIX='.a'
16845 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16848 CXX_LIB_SUFFIX='_g.a'
16849 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16852 CXX_LIB_SUFFIX='_p.a'
16853 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16856 case $cf_cv_system_name in
16858 CXX_LIB_SUFFIX='.a'
16859 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16862 CXX_LIB_SUFFIX='.dll'
16863 CXX_DEP_SUFFIX='.dll.a'
16866 CXX_LIB_SUFFIX='.dylib'
16867 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16872 CXX_LIB_SUFFIX='.so'
16873 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16876 CXX_LIB_SUFFIX='.sl'
16877 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16881 *) CXX_LIB_SUFFIX='.so'
16882 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16886 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
16887 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
16889 echo "$as_me:16889: result: $CXX_LIB_SUFFIX" >&5
16890 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
16894 # do not want -ldl in build except as needed for -lncurses dependency
16895 if test "$with_dlsym" = yes ; then
16896 if test $DFT_LWR_MODEL = shared || \
16897 test $DFT_LWR_MODEL = libtool ; then
16899 # remove dl library from $LIBS
16900 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16904 ### Set up low-level terminfo dependencies for makefiles.
16906 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
16907 # do not need libdl
16909 if test "$with_dlsym" = yes ; then
16911 # remove dl library from $SHLIB_LIST
16912 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16916 if test "$with_ticlib" != no ; then
16918 if test "$with_ticlib" != yes ; then
16919 TICS_NAME=$with_ticlib
16920 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16921 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16922 TICS_LIB_SUFFIX="${with_ticlib}"
16924 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
16925 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
16926 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
16928 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
16930 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16933 if test "$with_termlib" != no ; then
16935 if test "$with_termlib" != yes ; then
16936 TINFO_NAME=$with_termlib
16937 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16938 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16939 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16940 TINFO_LIB_SUFFIX="${with_termlib}"
16942 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
16943 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
16944 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
16945 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
16948 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
16949 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
16950 if test "$DFT_LWR_MODEL" = "libtool"; then
16951 TEST_ARGS="${TEST_DEPS}"
16952 TEST_ARG2="${TEST_DEP2}"
16953 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
16954 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
16955 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
16957 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
16958 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
16959 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
16960 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
16961 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
16964 # the next lines are needed for linking libtic over libncurses
16965 TINFO_NAME=${LIB_NAME}
16966 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
16967 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
16968 if test "$with_tic_depends" = yes ; then
16969 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16971 TICS_LIST="$SHLIB_LIST"
16974 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16977 if test "$DFT_LWR_MODEL" = shared ; then
16978 case $cf_cv_system_name in #(vi
16980 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
16986 if test "$with_dlsym" = yes ; then
16988 # remove dl library from $TICS_LIST
16989 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16993 if test "$DFT_LWR_MODEL" = "libtool"; then
16998 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
17000 case $DFT_LWR_MODEL in
17001 normal|debug|profile)
17003 if test "$GCC" = yes ; then
17004 case $cf_cv_system_name in #(
17005 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
17009 *) #( normally, except when broken
17010 LDFLAGS_STATIC=-static
17011 LDFLAGS_SHARED=-dynamic
17015 case $cf_cv_system_name in #(
17016 aix[456]*) #( from ld manpage
17017 LDFLAGS_STATIC=-bstatic
17018 LDFLAGS_SHARED=-bdynamic
17020 hpux*) #( from ld manpage for hpux10.20, hpux11.11
17021 # We could also use just "archive" and "shared".
17022 LDFLAGS_STATIC=-Wl,-a,archive_shared
17023 LDFLAGS_SHARED=-Wl,-a,shared_archive
17025 irix*) #( from ld manpage IRIX64
17026 LDFLAGS_STATIC=-Bstatic
17027 LDFLAGS_SHARED=-Bdynamic
17029 osf[45]*) #( from ld manpage osf4.0d, osf5.1
17030 # alternative "-oldstyle_liblookup" (not in cc manpage)
17031 LDFLAGS_STATIC=-noso
17032 LDFLAGS_SHARED=-so_archive
17035 LDFLAGS_STATIC=-Bstatic
17036 LDFLAGS_SHARED=-Bdynamic
17044 echo "$as_me:17044: checking where we will install curses.h" >&5
17045 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
17046 test "$with_overwrite" = no && \
17047 test "x$includedir" = 'x${prefix}/include' && \
17048 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
17049 echo "$as_me:17049: result: $includedir" >&5
17050 echo "${ECHO_T}$includedir" >&6
17052 ### Resolve a conflict between normal and wide-curses by forcing applications
17053 ### that will need libutf8 to add it to their configure script.
17054 if test "$with_overwrite" != no ; then
17055 if test "$NCURSES_LIBUTF8" = 1 ; then
17056 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
17057 { echo "$as_me:17057: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
17058 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
17061 WITH_OVERWRITE=$with_overwrite
17063 # used to separate tack out of the tree
17066 ### predefined stuff for the test programs
17067 cat >>confdefs.h <<\EOF
17068 #define HAVE_SLK_COLOR 1
17071 ### Construct the list of subdirectories for which we'll customize makefiles
17072 ### with the appropriate compile-rules.
17074 echo "$as_me:17074: checking for src modules" >&5
17075 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
17077 # dependencies and linker-arguments for test-programs
17078 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
17079 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
17080 if test "$DFT_LWR_MODEL" = "libtool"; then
17081 TEST_ARGS="${TEST_DEPS}"
17082 TEST_ARG2="${TEST_DEP2}"
17084 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
17085 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
17089 for cf_dir in $modules_to_build
17091 if test -f $srcdir/$cf_dir/modules; then
17093 # We may/may not have tack in the distribution, though the
17095 if test $cf_dir = tack ; then
17096 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
17101 if test -z "$cf_cv_src_modules"; then
17102 cf_cv_src_modules=$cf_dir
17104 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
17107 # Make the ncurses_cfg.h file record the library interface files as
17108 # well. These are header files that are the same name as their
17109 # directory. Ncurses is the only library that does not follow
17111 if test $cf_dir = tack ; then
17113 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
17115 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17117 cat >>confdefs.h <<EOF
17118 #define HAVE_${cf_have_include}_H 1
17121 cat >>confdefs.h <<EOF
17122 #define HAVE_LIB${cf_have_include} 1
17125 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
17126 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
17127 if test "$DFT_LWR_MODEL" = "libtool"; then
17128 TEST_ARGS="${TEST_DEPS}"
17129 TEST_ARG2="${TEST_DEP2}"
17131 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
17132 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
17137 echo "$as_me:17137: result: $cf_cv_src_modules" >&5
17138 echo "${ECHO_T}$cf_cv_src_modules" >&6
17140 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
17141 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
17144 if test "x$cf_with_manpages" != xno ; then
17145 SRC_SUBDIRS="$SRC_SUBDIRS man"
17147 SRC_SUBDIRS="$SRC_SUBDIRS include"
17148 for cf_dir in $cf_cv_src_modules
17150 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
17152 SRC_SUBDIRS="$SRC_SUBDIRS test"
17153 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
17154 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
17157 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
17158 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
17159 ADA_SUBDIRS="gen src samples"
17163 for cf_dir in $SRC_SUBDIRS
17165 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
17168 if test -n "$ADA_SUBDIRS"; then
17169 for cf_dir in $ADA_SUBDIRS
17171 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
17176 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
17177 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
17181 for cf_item in $cf_list_models
17185 libtool) cf_subdir='obj_lo' ;;
17186 normal) cf_subdir='objects' ;;
17187 debug) cf_subdir='obj_g' ;;
17188 profile) cf_subdir='obj_p' ;;
17190 case $cf_cv_system_name in #(vi
17192 cf_subdir='objects' ;;
17194 cf_subdir='obj_s' ;;
17198 for cf_item2 in $DIRS_TO_MAKE
17200 test $cf_item2 = $cf_subdir && break
17202 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
17204 for cf_dir in $DIRS_TO_MAKE
17206 test ! -d $cf_dir && mkdir $cf_dir
17209 cat >>confdefs.h <<EOF
17210 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
17213 cat >>confdefs.h <<EOF
17214 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
17217 ### Now that we're done running tests, add the compiler-warnings, if any
17222 cf_new_extra_cppflags=
17224 for cf_add_cflags in $EXTRA_CFLAGS
17226 case $cf_fix_cppflags in
17228 case $cf_add_cflags in #(vi
17229 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17230 case $cf_add_cflags in
17232 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17234 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17235 && test -z "${cf_tst_cflags}" \
17236 && cf_fix_cppflags=yes
17238 if test $cf_fix_cppflags = yes ; then
17239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17241 elif test "${cf_tst_cflags}" = "\"'" ; then
17242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17247 case "$CPPFLAGS" in
17248 *$cf_add_cflags) #(vi
17251 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17256 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17261 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17263 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17265 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17266 && test -z "${cf_tst_cflags}" \
17267 && cf_fix_cppflags=no
17272 if test -n "$cf_new_cflags" ; then
17274 CFLAGS="$CFLAGS $cf_new_cflags"
17277 if test -n "$cf_new_cppflags" ; then
17279 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17282 if test -n "$cf_new_extra_cppflags" ; then
17284 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17287 ### If we're building with rpath, try to link non-standard libs that way too.
17288 if test "$DFT_LWR_MODEL" = "shared"; then
17290 echo "$as_me:17290: checking for updated LDFLAGS" >&5
17291 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
17292 if test -n "$LDFLAGS" ; then
17293 echo "$as_me:17293: result: maybe" >&5
17294 echo "${ECHO_T}maybe" >&6
17295 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17297 echo "${as_me-configure}:17297: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17299 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17301 echo "${as_me-configure}:17301: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17303 case "$EXTRA_LDFLAGS" in #(vi
17305 cf_rpath_hack="-Wl,-rpath,"
17308 cf_rpath_hack="-R "
17317 if test -n "$cf_rpath_hack" ; then
17319 for cf_rpath_src in $LDFLAGS
17321 test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
17323 echo "${as_me-configure}:17323: testing Filtering $cf_rpath_src ..." 1>&5
17325 case $cf_rpath_src in #(vi
17327 if test "$cf_rpath_hack" = "-R " ; then
17328 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
17330 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
17332 test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
17334 echo "${as_me-configure}:17334: testing ...Filter $cf_rpath_tmp ..." 1>&5
17336 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17339 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17341 LDFLAGS=$cf_rpath_dst
17342 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17344 echo "${as_me-configure}:17344: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17346 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17348 echo "${as_me-configure}:17348: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17352 echo "$as_me:17352: result: no" >&5
17353 echo "${ECHO_T}no" >&6
17358 ### Define substitutions for header files to avoid name-pollution
17360 if test "$cf_cv_have_tcgetattr" = yes ; then
17366 if test "$ac_cv_header_termio_h" = yes ; then
17372 if test "$ac_cv_header_termios_h" = yes ; then
17378 ################################################################################
17379 test "$use_database" = yes && \
17380 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
17382 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
17384 if test x"$enable_pc_files" = xyes ; then \
17385 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
17391 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"
17392 ac_config_commands="$ac_config_commands default"
17393 cat >confcache <<\_ACEOF
17394 # This file is a shell script that caches the results of configure
17395 # tests run on this system so they can be shared between configure
17396 # scripts and configure runs, see configure's option --config-cache.
17397 # It is not useful on other systems. If it contains results you don't
17398 # want to keep, you may remove or edit it.
17400 # config.status only pays attention to the cache file if you give it
17401 # the --recheck option to rerun configure.
17403 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17405 # following values.
17409 # The following way of writing the cache mishandles newlines in values,
17410 # but we know of no workaround that is simple, portable, and efficient.
17411 # So, don't put newlines in cache variables' values.
17412 # Ultrix sh set writes to stderr and can't be redirected directly,
17413 # and sets the high bit in the cache file unless we assign to the vars.
17416 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17418 # `set' does not quote correctly, so add quotes (double-quote
17419 # substitution turns \\\\ into \\, and sed turns \\ into \).
17422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17425 # `set' quotes correctly as required by POSIX, so do not add quotes.
17427 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17436 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17438 if cmp -s $cache_file confcache; then :; else
17439 if test -w $cache_file; then
17440 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17441 cat confcache >$cache_file
17443 echo "not updating unwritable cache $cache_file"
17448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17449 # Let make expand exec_prefix.
17450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17452 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17453 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17454 # trailing colons and then remove the whole line if VPATH becomes empty
17455 # (actually we leave an empty line to preserve line numbers).
17456 if test "x$srcdir" = x.; then
17457 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17458 s/:*\$(srcdir):*/:/;
17459 s/:*\${srcdir}:*/:/;
17461 s/^\([^=]*=[ ]*\):*/\1/;
17467 DEFS=-DHAVE_CONFIG_H
17469 : ${CONFIG_STATUS=./config.status}
17470 ac_clean_files_save=$ac_clean_files
17471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17472 { echo "$as_me:17472: creating $CONFIG_STATUS" >&5
17473 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17474 cat >$CONFIG_STATUS <<_ACEOF
17476 # Generated automatically by configure.
17477 # Run this file to recreate the current configuration.
17478 # Compiler output produced by configure, useful for debugging
17479 # configure, is in config.log if it exists.
17482 SHELL=\${CONFIG_SHELL-$SHELL}
17483 ac_cs_invocation="\$0 \$@"
17487 cat >>$CONFIG_STATUS <<\_ACEOF
17488 # Be Bourne compatible
17489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17492 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17496 # Name of the executable.
17497 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17499 if expr a : '\(a\)' >/dev/null 2>&1; then
17505 rm -f conf$$ conf$$.exe conf$$.file
17507 if ln -s conf$$.file conf$$ 2>/dev/null; then
17508 # We could just check for DJGPP; but this test a) works b) is more generic
17509 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17510 if test -f conf$$.exe; then
17511 # Don't use ln at all; we don't have any links
17516 elif ln conf$$.file conf$$ 2>/dev/null; then
17521 rm -f conf$$ conf$$.exe conf$$.file
17523 as_executable_p="test -f"
17525 # Support unset when possible.
17526 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17533 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17534 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17535 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17536 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17537 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17538 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17539 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17540 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17543 # We need space, tab and new line, in precisely that order.
17549 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17555 # Files that config.status was made for.
17556 if test -n "$ac_config_files"; then
17557 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17560 if test -n "$ac_config_headers"; then
17561 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17564 if test -n "$ac_config_links"; then
17565 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17568 if test -n "$ac_config_commands"; then
17569 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17572 cat >>$CONFIG_STATUS <<\EOF
17575 \`$as_me' instantiates files from templates according to the
17576 current configuration.
17578 Usage: $0 [OPTIONS] [FILE]...
17580 -h, --help print this help, then exit
17581 -V, --version print version number, then exit
17582 -d, --debug don't remove temporary files
17583 --recheck update $as_me by reconfiguring in the same conditions
17584 --file=FILE[:TEMPLATE]
17585 instantiate the configuration file FILE
17586 --header=FILE[:TEMPLATE]
17587 instantiate the configuration header FILE
17589 Configuration files:
17592 Configuration headers:
17595 Configuration commands:
17598 Report bugs to <bug-autoconf@gnu.org>."
17601 cat >>$CONFIG_STATUS <<EOF
17604 configured by $0, generated by GNU Autoconf 2.52.20081225,
17605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17608 Free Software Foundation, Inc.
17609 This config.status script is free software; the Free Software Foundation
17610 gives unlimited permission to copy, distribute and modify it."
17615 cat >>$CONFIG_STATUS <<\EOF
17616 # If no file are specified by the user, then we need to provide default
17617 # value. By we need to know if files were specified by the user.
17623 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17624 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17626 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17630 *) # This is not an option, so the user has probably given explicit
17632 ac_need_defaults=false;;
17636 # Handling of the options.
17638 cat >>$CONFIG_STATUS <<EOF
17639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17640 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17641 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17643 cat >>$CONFIG_STATUS <<\EOF
17644 --version | --vers* | -V )
17645 echo "$ac_cs_version"; exit 0 ;;
17647 # Conflict between --help and --header
17648 { { echo "$as_me:17648: error: ambiguous option: $1
17649 Try \`$0 --help' for more information." >&5
17650 echo "$as_me: error: ambiguous option: $1
17651 Try \`$0 --help' for more information." >&2;}
17652 { (exit 1); exit 1; }; };;
17653 --help | --hel | -h )
17654 echo "$ac_cs_usage"; exit 0 ;;
17655 --debug | --d* | -d )
17657 --file | --fil | --fi | --f )
17659 CONFIG_FILES="$CONFIG_FILES $1"
17660 ac_need_defaults=false;;
17661 --header | --heade | --head | --hea )
17663 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17664 ac_need_defaults=false;;
17666 # This is an error.
17667 -*) { { echo "$as_me:17667: error: unrecognized option: $1
17668 Try \`$0 --help' for more information." >&5
17669 echo "$as_me: error: unrecognized option: $1
17670 Try \`$0 --help' for more information." >&2;}
17671 { (exit 1); exit 1; }; } ;;
17673 *) ac_config_targets="$ac_config_targets $1" ;;
17682 ## ----------------------- ##
17683 ## Running config.status. ##
17684 ## ----------------------- ##
17686 This file was extended by $as_me 2.52.20081225, executed with
17687 CONFIG_FILES = $CONFIG_FILES
17688 CONFIG_HEADERS = $CONFIG_HEADERS
17689 CONFIG_LINKS = $CONFIG_LINKS
17690 CONFIG_COMMANDS = $CONFIG_COMMANDS
17691 > $ac_cs_invocation
17692 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17697 cat >>$CONFIG_STATUS <<EOF
17699 # INIT-COMMANDS section.
17702 ### Special initialization commands, used to pass information from the
17703 ### configuration-run into config.status
17706 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
17707 DFT_LWR_MODEL="$DFT_LWR_MODEL"
17708 ECHO_LINK="$ECHO_LINK"
17709 LDCONFIG="$LDCONFIG"
17710 LIB_NAME="$LIB_NAME"
17711 LIB_SUBSETS="$LIB_SUBSETS"
17712 LIB_SUFFIX="$LIB_SUFFIX"
17713 LIB_TRACING="$LIB_TRACING"
17714 MAKE_TERMINFO="$MAKE_TERMINFO"
17715 NCURSES_MAJOR="$NCURSES_MAJOR"
17716 NCURSES_MINOR="$NCURSES_MINOR"
17717 NCURSES_OSPEED="$NCURSES_OSPEED"
17718 NCURSES_PATCH="$NCURSES_PATCH"
17719 SRC_SUBDIRS="$SRC_SUBDIRS"
17720 TERMINFO="$TERMINFO"
17721 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
17722 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
17723 TICS_NAME="$TICS_NAME"
17724 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
17725 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
17726 TINFO_NAME="$TINFO_NAME"
17727 TINFO_SUFFIX="$TINFO_SUFFIX"
17728 WITH_CURSES_H="$with_curses_h"
17729 WITH_ECHO="$with_echo"
17730 WITH_OVERWRITE="$with_overwrite"
17731 cf_LIST_MODELS="$cf_list_models"
17732 cf_cv_abi_version="$cf_cv_abi_version"
17733 cf_cv_do_relink="$cf_cv_do_relink"
17734 cf_cv_do_symlinks="$cf_cv_do_symlinks"
17735 cf_cv_enable_lp64="$cf_cv_enable_lp64"
17736 cf_cv_enable_opaque="$cf_cv_enable_opaque"
17737 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
17738 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
17739 cf_cv_rel_version="$cf_cv_rel_version"
17740 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
17741 cf_cv_shared_soname='$cf_cv_shared_soname'
17742 cf_cv_shlib_version="$cf_cv_shlib_version"
17743 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
17744 cf_cv_system_name="$cf_cv_system_name"
17745 cf_with_cxx_binding="$cf_with_cxx_binding"
17746 cf_with_manpages="$cf_with_manpages"
17752 cat >>$CONFIG_STATUS <<\EOF
17753 for ac_config_target in $ac_config_targets
17755 case "$ac_config_target" in
17756 # Handling of arguments.
17757 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
17758 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
17759 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
17760 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
17761 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
17762 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
17763 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17764 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17765 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
17766 *) { { echo "$as_me:17766: error: invalid argument: $ac_config_target" >&5
17767 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17768 { (exit 1); exit 1; }; };;
17772 # If the user did not use the arguments to specify the items to instantiate,
17773 # then the envvar interface is used. Set only those that are not.
17774 # We use the long form for the default assignment because of an extremely
17775 # bizarre bug on SunOS 4.1.3.
17776 if $ac_need_defaults; then
17777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17782 # Create a temporary directory, and hook for its removal unless debugging.
17785 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17786 trap '{ (exit 1); exit 1; }' 1 2 13 15
17789 # Create a (secure) tmp directory for tmp files.
17792 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17793 test -n "$tmp" && test -d "$tmp"
17796 tmp=$TMPDIR/cs$$-$RANDOM
17797 (umask 077 && mkdir $tmp)
17800 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17801 { (exit 1); exit 1; }
17806 cat >>$CONFIG_STATUS <<EOF
17809 # CONFIG_FILES section.
17812 # No need to generate the scripts if there are no CONFIG_FILES.
17813 # This happens for instance when ./config.status config.h
17814 if test -n "\$CONFIG_FILES"; then
17815 # Protect against being on the right side of a sed subst in config.status.
17816 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17817 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17818 s,@SHELL@,$SHELL,;t t
17819 s,@exec_prefix@,$exec_prefix,;t t
17820 s,@prefix@,$prefix,;t t
17821 s,@program_transform_name@,$program_transform_name,;t t
17822 s,@bindir@,$bindir,;t t
17823 s,@sbindir@,$sbindir,;t t
17824 s,@libexecdir@,$libexecdir,;t t
17825 s,@datadir@,$datadir,;t t
17826 s,@sysconfdir@,$sysconfdir,;t t
17827 s,@sharedstatedir@,$sharedstatedir,;t t
17828 s,@localstatedir@,$localstatedir,;t t
17829 s,@libdir@,$libdir,;t t
17830 s,@includedir@,$includedir,;t t
17831 s,@oldincludedir@,$oldincludedir,;t t
17832 s,@infodir@,$infodir,;t t
17833 s,@mandir@,$mandir,;t t
17834 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17835 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17836 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17837 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17838 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17839 s,@build_alias@,$build_alias,;t t
17840 s,@host_alias@,$host_alias,;t t
17841 s,@target_alias@,$target_alias,;t t
17842 s,@ECHO_C@,$ECHO_C,;t t
17843 s,@ECHO_N@,$ECHO_N,;t t
17844 s,@ECHO_T@,$ECHO_T,;t t
17845 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17846 s,@DEFS@,$DEFS,;t t
17847 s,@LIBS@,$LIBS,;t t
17848 s,@top_builddir@,$top_builddir,;t t
17849 s,@EGREP@,$EGREP,;t t
17850 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
17851 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
17852 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
17853 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
17854 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
17855 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
17856 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
17857 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
17858 s,@build@,$build,;t t
17859 s,@build_cpu@,$build_cpu,;t t
17860 s,@build_vendor@,$build_vendor,;t t
17861 s,@build_os@,$build_os,;t t
17862 s,@host@,$host,;t t
17863 s,@host_cpu@,$host_cpu,;t t
17864 s,@host_vendor@,$host_vendor,;t t
17865 s,@host_os@,$host_os,;t t
17866 s,@target@,$target,;t t
17867 s,@target_cpu@,$target_cpu,;t t
17868 s,@target_vendor@,$target_vendor,;t t
17869 s,@target_os@,$target_os,;t t
17871 s,@CFLAGS@,$CFLAGS,;t t
17872 s,@LDFLAGS@,$LDFLAGS,;t t
17873 s,@CPPFLAGS@,$CPPFLAGS,;t t
17874 s,@ac_ct_CC@,$ac_ct_CC,;t t
17875 s,@EXEEXT@,$EXEEXT,;t t
17876 s,@OBJEXT@,$OBJEXT,;t t
17878 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
17879 s,@PROG_EXT@,$PROG_EXT,;t t
17880 s,@LDCONFIG@,$LDCONFIG,;t t
17882 s,@CXXFLAGS@,$CXXFLAGS,;t t
17883 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17885 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17886 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17887 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17888 s,@LINT@,$LINT,;t t
17889 s,@LINT_OPTS@,$LINT_OPTS,;t t
17890 s,@LN_S@,$LN_S,;t t
17891 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17892 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
17893 s,@SET_MAKE@,$SET_MAKE,;t t
17894 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
17895 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
17896 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
17897 s,@RANLIB@,$RANLIB,;t t
17898 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17900 s,@ac_ct_LD@,$ac_ct_LD,;t t
17902 s,@ac_ct_AR@,$ac_ct_AR,;t t
17903 s,@ARFLAGS@,$ARFLAGS,;t t
17904 s,@DESTDIR@,$DESTDIR,;t t
17905 s,@BUILD_CC@,$BUILD_CC,;t t
17906 s,@BUILD_CPP@,$BUILD_CPP,;t t
17907 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17908 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
17909 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
17910 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
17911 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
17912 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
17913 s,@cf_list_models@,$cf_list_models,;t t
17914 s,@LIBTOOL@,$LIBTOOL,;t t
17915 s,@LT_UNDEF@,$LT_UNDEF,;t t
17916 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
17917 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
17918 s,@LIB_CREATE@,$LIB_CREATE,;t t
17919 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
17920 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
17921 s,@LIB_PREP@,$LIB_PREP,;t t
17922 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
17923 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
17924 s,@LIB_LINK@,$LIB_LINK,;t t
17925 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
17926 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
17927 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
17928 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
17929 s,@TICS_NAME@,$TICS_NAME,;t t
17930 s,@TINFO_NAME@,$TINFO_NAME,;t t
17931 s,@LIB_NAME@,$LIB_NAME,;t t
17932 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
17933 s,@CC_G_OPT@,$CC_G_OPT,;t t
17934 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
17935 s,@LD_MODEL@,$LD_MODEL,;t t
17936 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
17937 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
17938 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
17939 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
17940 s,@LINK_PROGS@,$LINK_PROGS,;t t
17941 s,@LINK_TESTS@,$LINK_TESTS,;t t
17942 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
17943 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
17944 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
17945 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
17946 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
17947 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
17948 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
17949 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
17950 s,@TERMINFO@,$TERMINFO,;t t
17951 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
17952 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
17953 s,@TERMPATH@,$TERMPATH,;t t
17954 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
17955 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
17956 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
17957 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
17958 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
17959 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
17960 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
17961 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
17962 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
17963 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
17964 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
17965 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
17966 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
17967 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
17968 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
17969 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
17970 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
17971 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
17972 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
17973 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
17974 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
17975 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
17976 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
17977 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
17978 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
17979 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
17980 s,@PTHREAD@,$PTHREAD,;t t
17981 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
17982 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
17983 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
17984 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
17985 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
17986 s,@ECHO_LINK@,$ECHO_LINK,;t t
17987 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
17988 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
17989 s,@ADA_TRACE@,$ADA_TRACE,;t t
17990 s,@MATH_LIB@,$MATH_LIB,;t t
17991 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
17992 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
17993 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
17994 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
17995 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
17996 s,@TEST_LIBS@,$TEST_LIBS,;t t
17997 s,@CXXCPP@,$CXXCPP,;t t
17998 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
17999 s,@CXX_AR@,$CXX_AR,;t t
18000 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
18001 s,@CXXLIBS@,$CXXLIBS,;t t
18002 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
18003 s,@gnat_exists@,$gnat_exists,;t t
18004 s,@M4_exists@,$M4_exists,;t t
18005 s,@cf_ada_make@,$cf_ada_make,;t t
18006 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
18007 s,@cf_ada_package@,$cf_ada_package,;t t
18008 s,@ADAFLAGS@,$ADAFLAGS,;t t
18009 s,@cf_compile_generics@,$cf_compile_generics,;t t
18010 s,@cf_generic_objects@,$cf_generic_objects,;t t
18011 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
18012 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
18013 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
18014 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
18015 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
18016 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
18017 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
18018 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
18019 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
18020 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
18021 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
18022 s,@TICS_ARGS@,$TICS_ARGS,;t t
18023 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
18024 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
18025 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
18026 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
18027 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
18028 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
18029 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
18030 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
18031 s,@TICS_LIST@,$TICS_LIST,;t t
18032 s,@TINFO_LIST@,$TINFO_LIST,;t t
18033 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
18034 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
18035 s,@TEST_ARGS@,$TEST_ARGS,;t t
18036 s,@TEST_DEPS@,$TEST_DEPS,;t t
18037 s,@TEST_ARG2@,$TEST_ARG2,;t t
18038 s,@TEST_DEP2@,$TEST_DEP2,;t t
18039 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
18040 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
18041 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
18042 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
18043 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
18044 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
18045 s,@cross_compiling@,$cross_compiling,;t t
18050 cat >>$CONFIG_STATUS <<\EOF
18051 # Split the substitutions into bite-sized pieces for seds with
18052 # small command number limits, like on Digital OSF/1 and HP-UX.
18053 ac_max_sed_lines=48
18054 ac_sed_frag=1 # Number of current file.
18055 ac_beg=1 # First line for current file.
18056 ac_end=$ac_max_sed_lines # Line after last line for current file.
18059 while $ac_more_lines; do
18060 if test $ac_beg -gt 1; then
18061 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18063 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18065 if test ! -s $tmp/subs.frag; then
18066 ac_more_lines=false
18068 # The purpose of the label and of the branching condition is to
18069 # speed up the sed processing (if there are no `@' at all, there
18070 # is no need to browse any of the substitutions).
18071 # These are the two extra sed commands mentioned above.
18073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18074 if test -z "$ac_sed_cmds"; then
18075 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18077 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18079 ac_sed_frag=`expr $ac_sed_frag + 1`
18081 ac_end=`expr $ac_end + $ac_max_sed_lines`
18084 if test -z "$ac_sed_cmds"; then
18087 fi # test -n "$CONFIG_FILES"
18090 cat >>$CONFIG_STATUS <<\EOF
18091 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18094 - | *:- | *:-:* ) # input from stdin
18096 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18098 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18100 * ) ac_file_in=$ac_file.in ;;
18103 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18104 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18105 X"$ac_file" : 'X\(//\)[^/]' \| \
18106 X"$ac_file" : 'X\(//\)$' \| \
18107 X"$ac_file" : 'X\(/\)' \| \
18108 . : '\(.\)' 2>/dev/null ||
18110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18112 /^X\(\/\/\)$/{ s//\1/; q; }
18113 /^X\(\/\).*/{ s//\1/; q; }
18115 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18116 { case "$ac_dir" in
18117 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18121 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18122 case $as_mkdir_dir in
18123 # Skip DOS drivespec
18124 ?:) as_incr_dir=$as_mkdir_dir ;;
18126 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18127 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18132 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18133 # A "../" for each directory in $ac_dir_suffix.
18134 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18136 ac_dir_suffix= ac_dots=
18141 if test -z "$ac_dots"; then
18144 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18146 [\\/]* | ?:[\\/]* )
18147 ac_srcdir=$srcdir$ac_dir_suffix;
18148 ac_top_srcdir=$srcdir ;;
18149 *) # Relative path.
18150 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18151 ac_top_srcdir=$ac_dots$srcdir ;;
18155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18156 *) ac_INSTALL=$ac_dots$INSTALL ;;
18159 if test x"$ac_file" != x-; then
18160 { echo "$as_me:18160: creating $ac_file" >&5
18161 echo "$as_me: creating $ac_file" >&6;}
18164 # Let's still pretend it is `configure' which instantiates (i.e., don't
18165 # use $as_me), people would be surprised to read:
18166 # /* config.h. Generated automatically by config.status. */
18167 configure_input="Generated automatically from `echo $ac_file_in |
18168 sed 's,.*/,,'` by configure."
18170 # First look for the input files in the build tree, otherwise in the
18172 ac_file_inputs=`IFS=:
18173 for f in $ac_file_in; do
18175 -) echo $tmp/stdin ;;
18177 # Absolute (can't be DOS-style, as IFS=:)
18178 test -f "$f" || { { echo "$as_me:18178: error: cannot find input file: $f" >&5
18179 echo "$as_me: error: cannot find input file: $f" >&2;}
18180 { (exit 1); exit 1; }; }
18183 if test -f "$f"; then
18186 elif test -f "$srcdir/$f"; then
18191 { { echo "$as_me:18191: error: cannot find input file: $f" >&5
18192 echo "$as_me: error: cannot find input file: $f" >&2;}
18193 { (exit 1); exit 1; }; }
18196 done` || { (exit 1); exit 1; }
18198 cat >>$CONFIG_STATUS <<EOF
18202 cat >>$CONFIG_STATUS <<\EOF
18204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18205 s,@configure_input@,$configure_input,;t t
18206 s,@srcdir@,$ac_srcdir,;t t
18207 s,@top_srcdir@,$ac_top_srcdir,;t t
18208 s,@INSTALL@,$ac_INSTALL,;t t
18209 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18211 if test x"$ac_file" != x-; then
18212 mv $tmp/out $ac_file
18220 cat >>$CONFIG_STATUS <<\EOF
18223 # CONFIG_HEADER section.
18226 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18227 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18229 # ac_d sets the value in "#define NAME VALUE" lines.
18230 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18231 ac_dB='[ ].*$,\1#\2'
18234 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18235 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18236 ac_iB='\([ ]\),\1#\2define\3'
18239 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18240 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18241 ac_uB='$,\1#\2define\3'
18245 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18246 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18248 - | *:- | *:-:* ) # input from stdin
18250 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18252 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18254 * ) ac_file_in=$ac_file.in ;;
18257 test x"$ac_file" != x- && { echo "$as_me:18257: creating $ac_file" >&5
18258 echo "$as_me: creating $ac_file" >&6;}
18260 # First look for the input files in the build tree, otherwise in the
18262 ac_file_inputs=`IFS=:
18263 for f in $ac_file_in; do
18265 -) echo $tmp/stdin ;;
18267 # Absolute (can't be DOS-style, as IFS=:)
18268 test -f "$f" || { { echo "$as_me:18268: error: cannot find input file: $f" >&5
18269 echo "$as_me: error: cannot find input file: $f" >&2;}
18270 { (exit 1); exit 1; }; }
18273 if test -f "$f"; then
18276 elif test -f "$srcdir/$f"; then
18281 { { echo "$as_me:18281: error: cannot find input file: $f" >&5
18282 echo "$as_me: error: cannot find input file: $f" >&2;}
18283 { (exit 1); exit 1; }; }
18286 done` || { (exit 1); exit 1; }
18287 # Remove the trailing spaces.
18288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18292 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18293 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18294 # be either 'cat' or 'sort'.
18295 cat confdefs.h | uniq >conftest.vals
18297 # Break up conftest.vals because some shells have a limit on
18298 # the size of here documents, and old seds have small limits too.
18300 rm -f conftest.tail
18301 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18302 while grep . conftest.vals >/dev/null
18304 # Write chunks of a limited-size here document to conftest.frag.
18305 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18306 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18307 echo 'CEOF' >> $CONFIG_STATUS
18308 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18309 rm -f conftest.vals
18310 mv conftest.tail conftest.vals
18312 rm -f conftest.vals
18314 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18316 echo ' cat >> conftest.edit <<CEOF
18317 /@DEFS@/r conftest.frag
18320 sed -f conftest.edit $tmp/in > $tmp/out
18322 mv $tmp/out $tmp/in
18323 rm -f conftest.edit conftest.frag
18324 ' >> $CONFIG_STATUS
18326 cat >>$CONFIG_STATUS <<\EOF
18327 # Let's still pretend it is `configure' which instantiates (i.e., don't
18328 # use $as_me), people would be surprised to read:
18329 # /* config.h. Generated automatically by config.status. */
18330 if test x"$ac_file" = x-; then
18331 echo "/* Generated automatically by configure. */" >$tmp/config.h
18333 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18335 cat $tmp/in >>$tmp/config.h
18337 if test x"$ac_file" != x-; then
18338 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18339 { echo "$as_me:18339: $ac_file is unchanged" >&5
18340 echo "$as_me: $ac_file is unchanged" >&6;}
18342 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18343 X"$ac_file" : 'X\(//\)[^/]' \| \
18344 X"$ac_file" : 'X\(//\)$' \| \
18345 X"$ac_file" : 'X\(/\)' \| \
18346 . : '\(.\)' 2>/dev/null ||
18348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18350 /^X\(\/\/\)$/{ s//\1/; q; }
18351 /^X\(\/\).*/{ s//\1/; q; }
18353 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18354 { case "$ac_dir" in
18355 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18359 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18360 case $as_mkdir_dir in
18361 # Skip DOS drivespec
18362 ?:) as_incr_dir=$as_mkdir_dir ;;
18364 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18365 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18372 mv $tmp/config.h $ac_file
18376 rm -f $tmp/config.h
18380 cat >>$CONFIG_STATUS <<\EOF
18383 # CONFIG_COMMANDS section.
18385 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18386 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18387 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18394 if test ! -d $srcdir/$cf_dir; then
18396 elif test -f $srcdir/$cf_dir/programs; then
18397 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
18401 case $cf_cv_system_name in #(vi
18405 *) LIB_PREFIX='lib'
18408 cf_prefix=$LIB_PREFIX
18410 if test $cf_cv_shlib_version = cygdll ; then
18411 TINFO_NAME=$TINFO_ARG_SUFFIX
18415 for cf_dir in $SRC_SUBDIRS
18417 if test ! -d $srcdir/$cf_dir ; then
18419 elif test -f $srcdir/$cf_dir/modules; then
18423 for cf_item in $cf_LIST_MODELS
18426 case $cf_item in #(vi
18429 cf_depsuf=$cf_suffix
18433 cf_depsuf=$cf_suffix
18437 cf_depsuf=$cf_suffix
18441 cf_depsuf=$cf_suffix
18444 case $cf_cv_system_name in
18447 cf_depsuf=$cf_suffix
18455 cf_depsuf=$cf_suffix
18461 cf_depsuf=$cf_suffix
18465 cf_depsuf=$cf_suffix
18470 cf_depsuf=$cf_suffix
18474 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
18475 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18477 if test $cf_item = shared ; then
18478 if test "$cf_cv_do_symlinks" = yes ; then
18479 case "$cf_cv_shlib_version" in #(vi
18481 case "$cf_cv_system_name" in #(vi
18483 case .${LIB_SUFFIX} in
18485 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18486 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
18489 cf_suffix='.${REL_VERSION}'"$cf_suffix"
18493 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
18497 case "$cf_cv_system_name" in #(vi
18499 case .${LIB_SUFFIX} in
18501 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18502 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
18505 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
18509 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
18514 # cygwin needs import library, and has unique naming convention
18515 # use autodetected ${cf_prefix} for import lib and static lib, but
18516 # use 'cyg' prefix for shared lib.
18517 if test $cf_cv_shlib_version = cygdll ; then
18518 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
18519 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
18523 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
18526 if test $cf_dir = ncurses ; then
18527 cf_subsets="$LIB_SUBSETS"
18528 cf_r_parts="$cf_subsets"
18529 cf_liblist="$LIBS_TO_MAKE"
18531 while test -n "$cf_r_parts"
18533 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
18534 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
18535 if test "$cf_l_parts" != "$cf_r_parts" ; then
18537 case $cf_l_parts in #(vi
18539 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
18542 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
18548 if test -n "$cf_item"; then
18549 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
18556 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
18559 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
18560 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
18561 $cf_dir/Makefile >$cf_dir/Makefile.out
18562 mv $cf_dir/Makefile.out $cf_dir/Makefile
18564 $AWK -f $srcdir/mk-0th.awk \
18565 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
18566 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18568 for cf_subset in $cf_subsets
18571 for cf_item in $cf_LIST_MODELS
18573 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
18575 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18577 case $cf_item in #(vi
18580 cf_depsuf=$cf_suffix
18584 cf_depsuf=$cf_suffix
18588 cf_depsuf=$cf_suffix
18592 cf_depsuf=$cf_suffix
18595 case $cf_cv_system_name in
18598 cf_depsuf=$cf_suffix
18606 cf_depsuf=$cf_suffix
18612 cf_depsuf=$cf_suffix
18616 cf_depsuf=$cf_suffix
18621 cf_depsuf=$cf_suffix
18625 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
18626 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18629 libtool) cf_subdir='obj_lo' ;;
18630 normal) cf_subdir='objects' ;;
18631 debug) cf_subdir='obj_g' ;;
18632 profile) cf_subdir='obj_p' ;;
18634 case $cf_cv_system_name in #(vi
18636 cf_subdir='objects' ;;
18638 cf_subdir='obj_s' ;;
18642 # Test for case where we build libtinfo with a different name.
18644 if test $cf_dir = ncurses ; then
18647 cf_libname=${cf_libname}$LIB_SUFFIX
18650 cf_libname=$TINFO_LIB_SUFFIX
18653 cf_libname=$TICS_LIB_SUFFIX
18657 cf_libname=${cf_libname}$LIB_SUFFIX
18659 if test -n "${DFT_ARG_SUFFIX}" ; then
18660 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
18661 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
18664 # These dependencies really are for development, not
18665 # builds, but they are useful in porting, too.
18666 cf_depend="../include/ncurses_cfg.h"
18667 if test "$srcdir" = "."; then
18670 cf_reldir="\${srcdir}"
18673 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
18674 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
18675 elif test -f $srcdir/$cf_dir/curses.priv.h; then
18676 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
18680 old_cf_suffix="$cf_suffix"
18681 if test "$cf_cv_shlib_version_infix" = yes ; then
18682 if test -n "$LIB_SUFFIX" ; then
18683 case $LIB_SUFFIX in
18685 cf_libname=`echo $cf_libname | sed 's/w$//'`
18686 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18693 $AWK -f $srcdir/mk-1st.awk \
18694 name=${cf_libname}${cf_dir_suffix} \
18695 traces=$LIB_TRACING \
18698 prefix=$cf_prefix \
18699 suffix=$cf_suffix \
18700 subset=$cf_subset \
18701 TermlibRoot=$TINFO_NAME \
18702 TermlibSuffix=$TINFO_SUFFIX \
18703 ShlibVer=$cf_cv_shlib_version \
18704 ShlibVerInfix=$cf_cv_shlib_version_infix \
18705 ReLink=${cf_cv_do_relink-no} \
18706 DoLinks=$cf_cv_do_symlinks \
18707 rmSoLocs=$cf_cv_rm_so_locs \
18708 ldconfig="$LDCONFIG" \
18709 overwrite=$WITH_OVERWRITE \
18710 depend="$cf_depend" \
18712 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18714 cf_suffix="$old_cf_suffix"
18716 for cf_subdir2 in $cf_subdirs lib
18718 test $cf_subdir = $cf_subdir2 && break
18720 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
18721 $AWK -f $srcdir/mk-2nd.awk \
18723 traces=$LIB_TRACING \
18726 subset=$cf_subset \
18729 crenames=$cf_cv_prog_CC_c_o \
18730 cxxrenames=$cf_cv_prog_CXX_c_o \
18731 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18732 cf_subdirs="$cf_subdirs $cf_subdir"
18737 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
18740 for cf_dir in $SRC_SUBDIRS
18742 if test ! -d $srcdir/$cf_dir ; then
18746 if test -f $cf_dir/Makefile ; then
18749 echo 'libs \' >> Makefile
18750 echo 'install.libs \' >> Makefile
18751 echo 'uninstall.libs ::' >> Makefile
18752 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
18757 if test -f $srcdir/$cf_dir/modules; then
18759 if test -f $srcdir/$cf_dir/headers; then
18760 cat >> Makefile <<CF_EOF
18761 install.includes \\
18762 uninstall.includes \\
18765 if test "$cf_dir" != "c++" ; then
18766 echo 'lint \' >> Makefile
18768 cat >> Makefile <<CF_EOF
18774 uninstall.$cf_dir ::
18775 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
18777 elif test -f $srcdir/$cf_dir/headers; then
18778 cat >> Makefile <<CF_EOF
18783 install.includes \\
18784 uninstall.includes ::
18785 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
18790 cat >> Makefile <<CF_EOF
18792 install.libs uninstall.libs \\
18793 install.data uninstall.data ::
18794 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
18797 if test "x$cf_with_manpages" = xyes; then
18798 cat >> Makefile <<CF_EOF
18802 cd man && \${MAKE} \${CF_MFLAGS} \$@
18806 cat >> Makefile <<CF_EOF
18809 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
18810 rm -f headers.sh headers.sed mk_shared_lib.sh
18811 rm -f edit_man.* man_alias.*
18812 rm -rf \${DIRS_TO_MAKE}
18815 # Special case: tack's manpage lives in its own directory.
18816 if test "x$cf_with_manpages" = xyes; then
18817 if test -d tack ; then
18818 if test -f $srcdir/$tack.h; then
18819 cat >> Makefile <<CF_EOF
18823 cd tack && \${MAKE} \${CF_MFLAGS} \$@
18829 rm -f headers.sed headers.sh
18831 echo creating headers.sh
18832 cat >headers.sh <<CF_EOF
18834 # This shell script is generated by the 'configure' script. It is invoked in a
18835 # subdirectory of the build tree. It generates a sed-script in the parent
18836 # directory that is used to adjust includes for header files that reside in a
18837 # subdirectory of /usr/include, etc.
18839 while test \$# != 3
18841 PRG="\$PRG \$1"; shift
18846 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
18847 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
18848 echo installing \$SRC in \$DST
18851 if test $WITH_CURSES_H = yes; then
18852 cat >>headers.sh <<CF_EOF
18855 END=\`basename \$DST\`
18856 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
18858 NAME=\`basename \$i\`
18859 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
18863 echo "" >> \$TMPSED
18869 cat >>headers.sh <<CF_EOF
18872 END=\`basename \$DST\`
18873 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
18875 NAME=\`basename \$i\`
18876 if test "\$NAME" = "curses.h"
18878 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
18881 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
18885 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
18890 cat >>headers.sh <<CF_EOF
18892 sed -f \$TMPSED \$SRC > \$TMPSRC
18893 NAME=\`basename \$SRC\`
18895 if test $WITH_CURSES_H != yes; then
18896 cat >>headers.sh <<CF_EOF
18897 test "\$NAME" = "curses.h" && NAME=ncurses.h
18900 cat >>headers.sh <<CF_EOF
18901 # Just in case someone gzip'd manpages, remove the conflicting copy.
18902 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
18904 eval \$PRG \$TMPSRC \$DST/\$NAME
18905 rm -f \$TMPSRC \$TMPSED
18908 chmod 0755 headers.sh
18910 for cf_dir in $SRC_SUBDIRS
18912 if test ! -d $srcdir/$cf_dir ; then
18916 if test -f $srcdir/$cf_dir/headers; then
18917 $AWK -f $srcdir/mk-hdr.awk \
18918 subset="$LIB_SUBSETS" \
18919 compat="$WITH_CURSES_H" \
18920 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
18923 if test -f $srcdir/$cf_dir/modules; then
18924 if test "$cf_dir" != "c++" ; then
18925 cat >>$cf_dir/Makefile <<"CF_EOF"
18926 depend : ${AUTO_SRC}
18927 makedepend -- ${CPPFLAGS} -- ${C_SRC}
18929 # DO NOT DELETE THIS LINE -- make depend depends on it.
18940 cat >>$CONFIG_STATUS <<\EOF
18942 { (exit 0); exit 0; }
18944 chmod +x $CONFIG_STATUS
18945 ac_clean_files=$ac_clean_files_save
18947 # configure is writing to config.log, and then calls config.status.
18948 # config.status does its own redirection, appending to config.log.
18949 # Unfortunately, on DOS this fails, as config.log is still kept open
18950 # by configure, so config.status won't be able to write to it; its
18951 # output is simply discarded. So we exec the FD to /dev/null,
18952 # effectively closing config.log, so it can be properly (re)opened and
18953 # appended to by config.status. When coming back to configure, we
18954 # need to make the FD available again.
18955 if test "$no_create" != yes; then
18958 $SHELL $CONFIG_STATUS || ac_cs_success=false
18960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18961 # would make configure fail if this is the last instruction.
18962 $ac_cs_success || { (exit 1); exit 1; }
18964 ${MAKE-make} preinstall