2 # From configure.in Revision: 1.522 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
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-tests suppress build with test-programs
703 --without-curses-h install curses.h as ncurses.h only
704 --with-pkg-config{=path} enable/disable use of pkg-config
705 --enable-pc-files generate and install .pc files for pkg-config
706 --enable-mixed-case tic should assume mixed-case filenames
707 --with-install-prefix prefixes actual install-location ($DESTDIR)
708 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
709 --with-build-cc=XXX the build C compiler ($BUILD_CC)
710 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
711 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
712 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
713 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
714 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
715 Options to Specify the Libraries Built/Used:
716 --disable-libtool-version enable to use libtool's incompatible naming scheme
717 --with-libtool generate libraries with libtool
718 --with-shared generate shared-libraries
719 --with-normal generate normal-libraries (default)
720 --with-debug generate debug-libraries (default)
721 --with-profile generate profile-libraries
722 --with-termlib generate separate terminfo library
723 --with-ticlib generate separate tic library
724 --with-gpm use Alessandro Rubini's GPM library
725 --without-dlsym do not use dlsym() to load GPM dynamically
726 --with-sysmouse use sysmouse (FreeBSD console)
727 --enable-rpath use rpath option when generating shared libraries
728 --disable-relink relink shared libraries during install
729 --with-shlib-version=X Specify rel or abi version for shared libs
730 --disable-rpath-hack don't add rpath options for additional libraries
731 Fine-Tuning Your Configuration:
732 --disable-overwrite leave out the link to -lcurses
733 --disable-database do not use terminfo, only fallbacks/termcap
734 --with-database=XXX specify terminfo source to install
735 --with-hashed-db specify hashed-database library
736 --with-fallbacks=XXX specify list of fallback terminal descriptions
737 --without-xterm-new specify if xterm terminfo should be old version
738 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
739 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
740 --disable-big-core assume machine has little memory
741 --disable-big-strings assume compiler has only standard-size strings
742 --enable-termcap compile in termcap fallback support
743 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
744 --enable-getcap fast termcap load, no xrefs to terminfo
745 --enable-getcap-cache cache translated termcaps in ~/.terminfo
746 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
747 --disable-root-environ restrict environment when running as root
748 --enable-symlinks make tic use symbolic links not hard links
749 --enable-broken_linker compile with broken-linker support code
750 --enable-bsdpad recognize BSD-style prefix padding
751 --enable-widec compile with wide-char/UTF-8 code
752 --disable-lp64 allow chtype to be long (ignore _LP64)
753 --disable-largefile omit support for large files
754 --disable-tparm-varargs compile tparm() without varargs interface
755 --disable-tic-depends link tic library without explicit dependency on ncurses library
756 --with-bool=TYPE override fallback type of bool variable
757 --with-caps=alt compile with alternate Caps file
758 --with-chtype=TYPE override type of chtype
759 --with-ospeed=TYPE override type of ospeed variable
760 --with-mmask-t=TYPE override type of mmask_t
761 --with-ccharw-max=XXX override size CCHARW_MAX
762 --with-rcs-ids compile-in RCS identifiers
763 Options to Specify How Manpages are Installed:
764 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
765 optionally formatted/catonly, e.g., gzip,formatted
766 --with-manpage-renames specify manpage-renaming
767 --with-manpage-aliases specify manpage-aliases using .so
768 --with-manpage-symlinks specify manpage-aliases using symlinks
769 --with-manpage-tbl specify manpage processing with tbl
771 --disable-ext-funcs disable function-extensions
772 --enable-sp-funcs enable experimental SCREEN-extensions
773 --enable-term-driver enable experimental terminal-driver
774 --enable-const compile with extra/non-standard const
775 --enable-ext-colors compile for 256-color support
776 --enable-ext-mouse compile for extended mouse-encoding
777 --enable-no-padding compile with $NCURSES_NO_PADDING code
778 --enable-signed-char compile using signed Boolean's in term.h
779 --enable-sigwinch compile with SIGWINCH handler
780 --enable-tcap-names compile with user-definable terminal capabilities
782 --without-develop disable development options
783 --enable-hard-tabs compile with hard-tabs code
784 --enable-xmc-glitch compile with support for xmc (magic-cookie)
786 --disable-assumed-color do not assume anything about default-colors
787 --disable-hashmap compile without hashmap scrolling-optimization
788 --enable-colorfgbg compile-in experimental $COLORFGBG code
789 --enable-interop compile-in experimental interop bindings
790 --with-pthread use POSIX thread library
791 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
792 --enable-weak-symbols enable weak-symbols for pthreads
793 --enable-reentrant compile with experimental reentrant code
794 --with-wrap-prefix=XXX override prefix used for public variables
795 --enable-safe-sprintf compile with experimental safe-sprintf code
796 --disable-scroll-hints compile without scroll-hints code
797 --enable-wgetch-events compile with experimental wgetch-events code
798 Testing/development Options:
799 --enable-echo build: display "compiling" commands (default)
800 --enable-warnings build: turn on GCC compiler warnings
801 --enable-assertions test: turn on generation of assertion code
802 --with-dmalloc test: use Gray Watson's dmalloc library
803 --with-dbmalloc test: use Conor Cahill's dbmalloc library
804 --with-valgrind test: use valgrind
805 --disable-leaks test: free permanent memory, analyze leaks
806 --enable-expanded test: generate functions for certain macros
807 --disable-macros test: use functions rather than macros
808 --with-trace test: add trace() function to all models of ncurses
809 Ada95 Binding Options:
810 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
811 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
812 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
813 --with-ada-sharedlib=XX build Ada95 shared-library
815 Some influential environment variables:
816 CC C compiler command
817 CFLAGS C compiler flags
818 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
819 nonstandard directory <lib dir>
820 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
821 headers in a nonstandard directory <include dir>
823 CXX C++ compiler command
824 CXXFLAGS C++ compiler flags
825 CXXCPP C++ preprocessor
827 Use these variables to override the choices made by `configure' or to help
828 it to find libraries and programs with nonstandard names/locations.
833 if test "$ac_init_help" = "recursive"; then
834 # If there are subdirs, report their specific --help.
836 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
838 # A "../" for each directory in /$ac_subdir.
839 ac_dots=`echo $ac_subdir |
840 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
843 .) # No --srcdir option. We are building in place.
844 ac_sub_srcdir=$srcdir ;;
845 [\\/]* | ?:[\\/]* ) # Absolute path.
846 ac_sub_srcdir=$srcdir/$ac_subdir ;;
848 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
851 # Check for guested configure; otherwise get Cygnus style configure.
852 if test -f $ac_sub_srcdir/configure.gnu; then
854 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
855 elif test -f $ac_sub_srcdir/configure; then
857 $SHELL $ac_sub_srcdir/configure --help=recursive
858 elif test -f $ac_sub_srcdir/configure.ac ||
859 test -f $ac_sub_srcdir/configure.in; then
863 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
869 test -n "$ac_init_help" && exit 0
870 if $ac_init_version; then
873 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
874 Free Software Foundation, Inc.
875 This configure script is free software; the Free Software Foundation
876 gives unlimited permission to copy, distribute and modify it.
882 This file contains any messages produced by compilers while
883 running configure, to aid debugging if configure makes a mistake.
885 It was created by $as_me, which was
886 generated by GNU Autoconf 2.52.20101002. Invocation command line was
897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
909 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
926 # Keep a trace of the command line.
927 # Strip out --no-create and --no-recursion so they do not pile up.
928 # Also quote any args containing shell meta-characters.
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c) ;;
936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
942 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
945 # Get rid of the leading space.
948 # When interrupted or exit'd, cleanup temporary files, and complete
949 # config.log. We remove comments because anyway the quotes in there
950 # would cause problems or look ugly.
952 # Save into config.log some information that might help in debugging.
954 echo "## ----------------- ##" >&5
955 echo "## Cache variables. ##" >&5
956 echo "## ----------------- ##" >&5
958 # The following way of writing the cache mishandles newlines in values,
961 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
964 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
973 sed "/^$/d" confdefs.h >conftest.log
974 if test -s conftest.log; then
976 echo "## ------------ ##" >&5
977 echo "## confdefs.h. ##" >&5
978 echo "## ------------ ##" >&5
983 test "$ac_signal" != 0 &&
984 echo "$as_me: caught signal $ac_signal" >&5
985 echo "$as_me: exit $exit_status" >&5
986 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
989 for ac_signal in 1 2 13 15; do
990 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
995 rm -rf conftest* confdefs.h
996 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
999 # Let the site file select an alternate cache file if it wants to.
1000 # Prefer explicitly selected file to automatically selected ones.
1001 if test -z "$CONFIG_SITE"; then
1002 if test "x$prefix" != xNONE; then
1003 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1005 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1008 for ac_site_file in $CONFIG_SITE; do
1009 if test -r "$ac_site_file"; then
1010 { echo "$as_me:1010: loading site script $ac_site_file" >&5
1011 echo "$as_me: loading site script $ac_site_file" >&6;}
1012 cat "$ac_site_file" >&5
1017 if test -r "$cache_file"; then
1018 # Some versions of bash will fail to source /dev/null (special
1019 # files actually), so we avoid doing that.
1020 if test -f "$cache_file"; then
1021 { echo "$as_me:1021: loading cache $cache_file" >&5
1022 echo "$as_me: loading cache $cache_file" >&6;}
1024 [\\/]* | ?:[\\/]* ) . $cache_file;;
1025 *) . ./$cache_file;;
1029 { echo "$as_me:1029: creating cache $cache_file" >&5
1030 echo "$as_me: creating cache $cache_file" >&6;}
1034 # Check that the precious variables saved in the cache have kept the same
1036 ac_cache_corrupted=false
1037 for ac_var in `(set) 2>&1 |
1038 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1039 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1040 eval ac_new_set=\$ac_env_${ac_var}_set
1041 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1042 eval ac_new_val="\$ac_env_${ac_var}_value"
1043 case $ac_old_set,$ac_new_set in
1045 { echo "$as_me:1045: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1046 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1047 ac_cache_corrupted=: ;;
1049 { echo "$as_me:1049: error: \`$ac_var' was not set in the previous run" >&5
1050 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1051 ac_cache_corrupted=: ;;
1054 if test "x$ac_old_val" != "x$ac_new_val"; then
1055 { echo "$as_me:1055: error: \`$ac_var' has changed since the previous run:" >&5
1056 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1057 { echo "$as_me:1057: former value: $ac_old_val" >&5
1058 echo "$as_me: former value: $ac_old_val" >&2;}
1059 { echo "$as_me:1059: current value: $ac_new_val" >&5
1060 echo "$as_me: current value: $ac_new_val" >&2;}
1061 ac_cache_corrupted=:
1064 # Pass precious variables to config.status. It doesn't matter if
1065 # we pass some twice (in addition to the command line arguments).
1066 if test "$ac_new_set" = set; then
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1070 ac_configure_args="$ac_configure_args '$ac_arg'"
1072 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1077 if $ac_cache_corrupted; then
1078 { echo "$as_me:1078: error: changes in the environment can compromise the build" >&5
1079 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1080 { { echo "$as_me:1080: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1081 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1082 { (exit 1); exit 1; }; }
1086 ac_cpp='$CPP $CPPFLAGS'
1087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1090 ac_main_return=return
1092 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1093 *c*,-n*) ECHO_N= ECHO_C='
1095 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1096 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1098 echo "#! $SHELL" >conftest.sh
1099 echo "exit 0" >>conftest.sh
1100 chmod +x conftest.sh
1101 if { (echo "$as_me:1101: PATH=\".;.\"; conftest.sh") >&5
1102 (PATH=".;."; conftest.sh) 2>&5
1104 echo "$as_me:1104: \$? = $ac_status" >&5
1105 (exit $ac_status); }; then
1106 ac_path_separator=';'
1110 PATH_SEPARATOR="$ac_path_separator"
1113 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1117 echo "$as_me:1117: checking for egrep" >&5
1118 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1119 if test "${ac_cv_prog_egrep+set}" = set; then
1120 echo $ECHO_N "(cached) $ECHO_C" >&6
1122 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1123 then ac_cv_prog_egrep='grep -E'
1124 else ac_cv_prog_egrep='egrep'
1127 echo "$as_me:1127: result: $ac_cv_prog_egrep" >&5
1128 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1129 EGREP=$ac_cv_prog_egrep
1131 test -z "$EGREP" && { { echo "$as_me:1131: error: No egrep program found" >&5
1132 echo "$as_me: error: No egrep program found" >&2;}
1133 { (exit 1); exit 1; }; }
1135 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1136 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1138 cf_cv_abi_version=${NCURSES_MAJOR}
1139 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1140 cf_cv_timestamp=`date`
1141 echo "$as_me:1141: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1142 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1144 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1146 # Check whether --with-rel-version or --without-rel-version was given.
1147 if test "${with_rel_version+set}" = set; then
1148 withval="$with_rel_version"
1149 { echo "$as_me:1149: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1150 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1151 cf_cv_rel_version=$withval
1154 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1155 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1157 if test -n "$NCURSES_MAJOR" ; then
1158 case $NCURSES_MAJOR in #(vi
1162 { { echo "$as_me:1162: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1163 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1164 { (exit 1); exit 1; }; }
1168 { { echo "$as_me:1168: error: Release major-version value is empty" >&5
1169 echo "$as_me: error: Release major-version value is empty" >&2;}
1170 { (exit 1); exit 1; }; }
1173 if test -n "$NCURSES_MINOR" ; then
1174 case $NCURSES_MINOR in #(vi
1178 { { echo "$as_me:1178: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1179 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1180 { (exit 1); exit 1; }; }
1184 { { echo "$as_me:1184: error: Release minor-version value is empty" >&5
1185 echo "$as_me: error: Release minor-version value is empty" >&2;}
1186 { (exit 1); exit 1; }; }
1189 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1191 # Check whether --with-abi-version or --without-abi-version was given.
1192 if test "${with_abi_version+set}" = set; then
1193 withval="$with_abi_version"
1194 { echo "$as_me:1194: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1195 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1196 cf_cv_abi_version=$withval
1199 if test -n "$cf_cv_abi_version" ; then
1200 case $cf_cv_abi_version in #(vi
1204 { { echo "$as_me:1204: error: ABI version is not a number: $cf_cv_abi_version" >&5
1205 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1206 { (exit 1); exit 1; }; }
1210 { { echo "$as_me:1210: error: ABI version value is empty" >&5
1211 echo "$as_me: error: ABI version value is empty" >&2;}
1212 { (exit 1); exit 1; }; }
1216 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1217 if test -f $ac_dir/install-sh; then
1219 ac_install_sh="$ac_aux_dir/install-sh -c"
1221 elif test -f $ac_dir/install.sh; then
1223 ac_install_sh="$ac_aux_dir/install.sh -c"
1225 elif test -f $ac_dir/shtool; then
1227 ac_install_sh="$ac_aux_dir/shtool install -c"
1231 if test -z "$ac_aux_dir"; then
1232 { { echo "$as_me:1232: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1233 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1234 { (exit 1); exit 1; }; }
1236 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1237 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1238 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1240 # Make sure we can run config.sub.
1241 $ac_config_sub sun4 >/dev/null 2>&1 ||
1242 { { echo "$as_me:1242: error: cannot run $ac_config_sub" >&5
1243 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1244 { (exit 1); exit 1; }; }
1246 echo "$as_me:1246: checking build system type" >&5
1247 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1248 if test "${ac_cv_build+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 ac_cv_build_alias=$build_alias
1252 test -z "$ac_cv_build_alias" &&
1253 ac_cv_build_alias=`$ac_config_guess`
1254 test -z "$ac_cv_build_alias" &&
1255 { { echo "$as_me:1255: error: cannot guess build type; you must specify one" >&5
1256 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1257 { (exit 1); exit 1; }; }
1258 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1260 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1261 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: result: $ac_cv_build" >&5
1265 echo "${ECHO_T}$ac_cv_build" >&6
1267 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1268 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1269 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$as_me:1271: checking host system type" >&5
1272 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1273 if test "${ac_cv_host+set}" = set; then
1274 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 ac_cv_host_alias=$host_alias
1277 test -z "$ac_cv_host_alias" &&
1278 ac_cv_host_alias=$ac_cv_build_alias
1279 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1280 { { echo "$as_me:1280: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1281 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_host" >&5
1286 echo "${ECHO_T}$ac_cv_host" >&6
1288 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1293 echo "$as_me:1293: checking target system type" >&5
1294 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1295 if test "${ac_cv_target+set}" = set; then
1296 echo $ECHO_N "(cached) $ECHO_C" >&6
1298 ac_cv_target_alias=$target_alias
1299 test "x$ac_cv_target_alias" = "x" &&
1300 ac_cv_target_alias=$ac_cv_host_alias
1301 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1302 { { echo "$as_me:1302: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1303 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1304 { (exit 1); exit 1; }; }
1307 echo "$as_me:1307: result: $ac_cv_target" >&5
1308 echo "${ECHO_T}$ac_cv_target" >&6
1309 target=$ac_cv_target
1310 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1311 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1312 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1314 # The aliases save the names the user supplied, while $host etc.
1315 # will get canonicalized.
1316 test -n "$target_alias" &&
1317 test "$program_prefix$program_suffix$program_transform_name" = \
1319 program_prefix=${target_alias}-
1320 system_name="$host_os"
1322 system_name="`(uname -s -r) 2>/dev/null`"
1323 if test -z "$system_name" ; then
1324 system_name="`(hostname) 2>/dev/null`"
1327 test -n "$system_name" && cat >>confdefs.h <<EOF
1328 #define SYSTEM_NAME "$system_name"
1331 if test "${cf_cv_system_name+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 cf_cv_system_name="$system_name"
1337 test -z "$system_name" && system_name="$cf_cv_system_name"
1338 test -n "$cf_cv_system_name" && echo "$as_me:1338: result: Configuring for $cf_cv_system_name" >&5
1339 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1341 if test ".$system_name" != ".$cf_cv_system_name" ; then
1342 echo "$as_me:1342: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1343 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1344 { { echo "$as_me:1344: error: \"Please remove config.cache and try again.\"" >&5
1345 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1346 { (exit 1); exit 1; }; }
1349 # Check whether --with-system-type or --without-system-type was given.
1350 if test "${with_system_type+set}" = set; then
1351 withval="$with_system_type"
1352 { echo "$as_me:1352: WARNING: overriding system type to $withval" >&5
1353 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1354 cf_cv_system_name=$withval
1357 ### Save the given $CFLAGS to allow user-override.
1358 cf_user_CFLAGS="$CFLAGS"
1360 ### Default install-location
1362 echo "$as_me:1362: checking for prefix" >&5
1363 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1364 if test "x$prefix" = "xNONE" ; then
1365 case "$cf_cv_system_name" in
1366 # non-vendor systems don't have a conflict
1367 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1370 *) prefix=$ac_default_prefix
1374 echo "$as_me:1374: result: $prefix" >&5
1375 echo "${ECHO_T}$prefix" >&6
1377 if test "x$prefix" = "xNONE" ; then
1378 echo "$as_me:1378: checking for default include-directory" >&5
1379 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1380 test -n "$verbose" && echo 1>&6
1383 $includedir/ncurses \
1385 $prefix/include/ncurses \
1386 /usr/local/include \
1387 /usr/local/include/ncurses \
1389 /usr/include/ncurses
1391 cf_dir=`eval echo $cf_symbol`
1392 if test -f $cf_dir/curses.h ; then
1393 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1394 includedir="$cf_symbol"
1395 test -n "$verbose" && echo $ac_n " found " 1>&6
1399 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1401 echo "$as_me:1401: result: $includedir" >&5
1402 echo "${ECHO_T}$includedir" >&6
1405 ### Checks for programs.
1407 ac_cpp='$CPP $CPPFLAGS'
1408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1411 ac_main_return=return
1412 if test -n "$ac_tool_prefix"; then
1413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1415 echo "$as_me:1415: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 if test -n "$CC"; then
1421 ac_cv_prog_CC="$CC" # Let the user override the test.
1423 ac_save_IFS=$IFS; IFS=$ac_path_separator
1425 for ac_dir in $ac_dummy; do
1427 test -z "$ac_dir" && ac_dir=.
1428 $as_executable_p "$ac_dir/$ac_word" || continue
1429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1430 echo "$as_me:1430: found $ac_dir/$ac_word" >&5
1437 if test -n "$CC"; then
1438 echo "$as_me:1438: result: $CC" >&5
1439 echo "${ECHO_T}$CC" >&6
1441 echo "$as_me:1441: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1446 if test -z "$ac_cv_prog_CC"; then
1448 # Extract the first word of "gcc", so it can be a program name with args.
1449 set dummy gcc; ac_word=$2
1450 echo "$as_me:1450: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$ac_ct_CC"; then
1456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1458 ac_save_IFS=$IFS; IFS=$ac_path_separator
1460 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 $as_executable_p "$ac_dir/$ac_word" || continue
1464 ac_cv_prog_ac_ct_CC="gcc"
1465 echo "$as_me:1465: found $ac_dir/$ac_word" >&5
1471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1472 if test -n "$ac_ct_CC"; then
1473 echo "$as_me:1473: result: $ac_ct_CC" >&5
1474 echo "${ECHO_T}$ac_ct_CC" >&6
1476 echo "$as_me:1476: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1485 if test -z "$CC"; then
1486 if test -n "$ac_tool_prefix"; then
1487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1488 set dummy ${ac_tool_prefix}cc; ac_word=$2
1489 echo "$as_me:1489: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1497 ac_save_IFS=$IFS; IFS=$ac_path_separator
1499 for ac_dir in $ac_dummy; do
1501 test -z "$ac_dir" && ac_dir=.
1502 $as_executable_p "$ac_dir/$ac_word" || continue
1503 ac_cv_prog_CC="${ac_tool_prefix}cc"
1504 echo "$as_me:1504: found $ac_dir/$ac_word" >&5
1511 if test -n "$CC"; then
1512 echo "$as_me:1512: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1515 echo "$as_me:1515: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$ac_cv_prog_CC"; then
1522 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2
1524 echo "$as_me:1524: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 if test -n "$ac_ct_CC"; then
1530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1532 ac_save_IFS=$IFS; IFS=$ac_path_separator
1534 for ac_dir in $ac_dummy; do
1536 test -z "$ac_dir" && ac_dir=.
1537 $as_executable_p "$ac_dir/$ac_word" || continue
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:1539: found $ac_dir/$ac_word" >&5
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547 echo "$as_me:1547: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1550 echo "$as_me:1550: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1560 if test -z "$CC"; then
1561 # Extract the first word of "cc", so it can be a program name with args.
1562 set dummy cc; ac_word=$2
1563 echo "$as_me:1563: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 if test -n "$CC"; then
1569 ac_cv_prog_CC="$CC" # Let the user override the test.
1572 ac_save_IFS=$IFS; IFS=$ac_path_separator
1574 for ac_dir in $ac_dummy; do
1576 test -z "$ac_dir" && ac_dir=.
1577 $as_executable_p "$ac_dir/$ac_word" || continue
1578 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1583 echo "$as_me:1583: found $ac_dir/$ac_word" >&5
1587 if test $ac_prog_rejected = yes; then
1588 # We found a bogon in the path, so make sure we never use it.
1589 set dummy $ac_cv_prog_CC
1591 if test $# != 0; then
1592 # We chose a different compiler from the bogus one.
1593 # However, it has the same basename, so the bogon will be chosen
1594 # first if we set CC to just the basename; use the full file name.
1596 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1604 if test -n "$CC"; then
1605 echo "$as_me:1605: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1608 echo "$as_me:1608: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:1619: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 ac_save_IFS=$IFS; IFS=$ac_path_separator
1629 for ac_dir in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir=.
1632 $as_executable_p "$ac_dir/$ac_word" || continue
1633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1634 echo "$as_me:1634: found $ac_dir/$ac_word" >&5
1641 if test -n "$CC"; then
1642 echo "$as_me:1642: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:1645: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$CC" && break
1652 if test -z "$CC"; then
1656 # Extract the first word of "$ac_prog", so it can be a program name with args.
1657 set dummy $ac_prog; ac_word=$2
1658 echo "$as_me:1658: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 ac_save_IFS=$IFS; IFS=$ac_path_separator
1668 for ac_dir in $ac_dummy; do
1670 test -z "$ac_dir" && ac_dir=.
1671 $as_executable_p "$ac_dir/$ac_word" || continue
1672 ac_cv_prog_ac_ct_CC="$ac_prog"
1673 echo "$as_me:1673: found $ac_dir/$ac_word" >&5
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:1681: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1684 echo "$as_me:1684: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$ac_ct_CC" && break
1696 test -z "$CC" && { { echo "$as_me:1696: error: no acceptable cc found in \$PATH" >&5
1697 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1698 { (exit 1); exit 1; }; }
1700 # Provide some information about the compiler.
1701 echo "$as_me:1701:" \
1702 "checking for C compiler version" >&5
1703 ac_compiler=`set X $ac_compile; echo $2`
1704 { (eval echo "$as_me:1704: \"$ac_compiler --version </dev/null >&5\"") >&5
1705 (eval $ac_compiler --version </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); }
1714 { (eval echo "$as_me:1714: \"$ac_compiler -V </dev/null >&5\"") >&5
1715 (eval $ac_compiler -V </dev/null >&5) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1720 cat >conftest.$ac_ext <<_ACEOF
1721 #line 1721 "configure"
1722 #include "confdefs.h"
1732 ac_clean_files_save=$ac_clean_files
1733 ac_clean_files="$ac_clean_files a.out a.exe"
1734 # Try to create an executable without -o first, disregard a.out.
1735 # It will help us diagnose broken compilers, and finding out an intuition
1737 echo "$as_me:1737: checking for C compiler default output" >&5
1738 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1739 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1740 if { (eval echo "$as_me:1740: \"$ac_link_default\"") >&5
1741 (eval $ac_link_default) 2>&5
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); }; then
1745 # Find the output, starting from the most likely. This scheme is
1746 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1749 ls a.out conftest 2>/dev/null;
1750 ls a.* conftest.* 2>/dev/null`; do
1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1753 a.out ) # We found the default executable, but exeext='' is most
1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1764 echo "$as_me: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 { { echo "$as_me:1766: error: C compiler cannot create executables" >&5
1767 echo "$as_me: error: C compiler cannot create executables" >&2;}
1768 { (exit 77); exit 77; }; }
1771 ac_exeext=$ac_cv_exeext
1772 echo "$as_me:1772: result: $ac_file" >&5
1773 echo "${ECHO_T}$ac_file" >&6
1775 # Check the compiler produces executables we can run. If not, either
1776 # the compiler is broken, or we cross compile.
1777 echo "$as_me:1777: checking whether the C compiler works" >&5
1778 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1779 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1780 # If not cross compiling, check that we can run a simple program.
1781 if test "$cross_compiling" != yes; then
1782 if { ac_try='./$ac_file'
1783 { (eval echo "$as_me:1783: \"$ac_try\"") >&5
1786 echo "$as_me:1786: \$? = $ac_status" >&5
1787 (exit $ac_status); }; }; then
1790 if test "$cross_compiling" = maybe; then
1793 { { echo "$as_me:1793: error: cannot run C compiled programs.
1794 If you meant to cross compile, use \`--host'." >&5
1795 echo "$as_me: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&2;}
1797 { (exit 1); exit 1; }; }
1801 echo "$as_me:1801: result: yes" >&5
1802 echo "${ECHO_T}yes" >&6
1804 rm -f a.out a.exe conftest$ac_cv_exeext
1805 ac_clean_files=$ac_clean_files_save
1806 # Check the compiler produces executables we can run. If not, either
1807 # the compiler is broken, or we cross compile.
1808 echo "$as_me:1808: checking whether we are cross compiling" >&5
1809 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1810 echo "$as_me:1810: result: $cross_compiling" >&5
1811 echo "${ECHO_T}$cross_compiling" >&6
1813 echo "$as_me:1813: checking for executable suffix" >&5
1814 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1815 if { (eval echo "$as_me:1815: \"$ac_link\"") >&5
1816 (eval $ac_link) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1821 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1822 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 { { echo "$as_me:1834: error: cannot compute EXEEXT: cannot compile and link" >&5
1835 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1836 { (exit 1); exit 1; }; }
1839 rm -f conftest$ac_cv_exeext
1840 echo "$as_me:1840: result: $ac_cv_exeext" >&5
1841 echo "${ECHO_T}$ac_cv_exeext" >&6
1843 rm -f conftest.$ac_ext
1844 EXEEXT=$ac_cv_exeext
1846 echo "$as_me:1846: checking for object suffix" >&5
1847 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1848 if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line 1852 "configure"
1853 #include "confdefs.h"
1863 rm -f conftest.o conftest.obj
1864 if { (eval echo "$as_me:1864: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1867 echo "$as_me:1867: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1877 echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 { { echo "$as_me:1879: error: cannot compute OBJEXT: cannot compile" >&5
1880 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1881 { (exit 1); exit 1; }; }
1884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1886 echo "$as_me:1886: result: $ac_cv_objext" >&5
1887 echo "${ECHO_T}$ac_cv_objext" >&6
1888 OBJEXT=$ac_cv_objext
1890 echo "$as_me:1890: checking whether we are using the GNU C compiler" >&5
1891 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1892 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 cat >conftest.$ac_ext <<_ACEOF
1896 #line 1896 "configure"
1897 #include "confdefs.h"
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1932 echo "$as_me:1932: result: $ac_cv_c_compiler_gnu" >&5
1933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1934 GCC=`test $ac_compiler_gnu = yes && echo yes`
1935 ac_test_CFLAGS=${CFLAGS+set}
1936 ac_save_CFLAGS=$CFLAGS
1938 echo "$as_me:1938: checking whether $CC accepts -g" >&5
1939 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1940 if test "${ac_cv_prog_cc_g+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line 1944 "configure"
1945 #include "confdefs.h"
1955 rm -f conftest.$ac_objext
1956 if { (eval echo "$as_me:1956: \"$ac_compile\"") >&5
1957 (eval $ac_compile) 2>&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); } &&
1961 { ac_try='test -s conftest.$ac_objext'
1962 { (eval echo "$as_me:1962: \"$ac_try\"") >&5
1965 echo "$as_me:1965: \$? = $ac_status" >&5
1966 (exit $ac_status); }; }; then
1969 echo "$as_me: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1973 rm -f conftest.$ac_objext conftest.$ac_ext
1975 echo "$as_me:1975: result: $ac_cv_prog_cc_g" >&5
1976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1977 if test "$ac_test_CFLAGS" = set; then
1978 CFLAGS=$ac_save_CFLAGS
1979 elif test $ac_cv_prog_cc_g = yes; then
1980 if test "$GCC" = yes; then
1986 if test "$GCC" = yes; then
1992 # Some people use a C++ compiler to compile C. Since we use `exit',
1993 # in C++ we need to declare it. In case someone uses the same compiler
1994 # for both compiling C and C++ we need to have the C++ compiler decide
1995 # the declaration of exit, since it's the most demanding environment.
1996 cat >conftest.$ac_ext <<_ACEOF
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>&5
2005 echo "$as_me:2005: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 for ac_declaration in \
2015 '#include <stdlib.h>' \
2016 'extern "C" void std::exit (int) throw (); using std::exit;' \
2017 'extern "C" void std::exit (int); using std::exit;' \
2018 'extern "C" void exit (int) throw ();' \
2019 'extern "C" void exit (int);' \
2022 cat >conftest.$ac_ext <<_ACEOF
2023 #line 2023 "configure"
2024 #include "confdefs.h"
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:2036: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2039 echo "$as_me:2039: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:2042: \"$ac_try\"") >&5
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 rm -f conftest.$ac_objext conftest.$ac_ext
2086 if test -n "$ac_declaration"; then
2087 echo '#ifdef __cplusplus' >>confdefs.h
2088 echo $ac_declaration >>confdefs.h
2089 echo '#endif' >>confdefs.h
2093 echo "$as_me: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 rm -f conftest.$ac_objext conftest.$ac_ext
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102 ac_main_return=return
2105 if test "$GCC" = yes ; then
2106 echo "$as_me:2106: checking version of $CC" >&5
2107 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2108 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2109 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2110 echo "$as_me:2110: result: $GCC_VERSION" >&5
2111 echo "${ECHO_T}$GCC_VERSION" >&6
2115 ac_cpp='$CPP $CPPFLAGS'
2116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119 ac_main_return=return
2120 echo "$as_me:2120: checking how to run the C preprocessor" >&5
2121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2122 # On Suns, sometimes $CPP names a directory.
2123 if test -n "$CPP" && test -d "$CPP"; then
2126 if test -z "$CPP"; then
2127 if test "${ac_cv_prog_CPP+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 # Double quotes because CPP needs to be expanded
2131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2134 for ac_c_preproc_warn_flag in '' yes
2136 # Use a header file that comes with gcc, so configuring glibc
2137 # with a fresh cross-compiler works.
2138 # On the NeXT, cc -E runs the code through the compiler's parser,
2139 # not just through cpp. "Syntax error" is here to catch this case.
2140 cat >conftest.$ac_ext <<_ACEOF
2141 #line 2141 "configure"
2142 #include "confdefs.h"
2146 if { (eval echo "$as_me:2146: \"$ac_cpp conftest.$ac_ext\"") >&5
2147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2149 egrep -v '^ *\+' conftest.er1 >conftest.err
2151 cat conftest.err >&5
2152 echo "$as_me:2152: \$? = $ac_status" >&5
2153 (exit $ac_status); } >/dev/null; then
2154 if test -s conftest.err; then
2155 ac_cpp_err=$ac_c_preproc_warn_flag
2162 if test -z "$ac_cpp_err"; then
2165 echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 # Broken: fails on valid input.
2170 rm -f conftest.err conftest.$ac_ext
2172 # OK, works on sane cases. Now check whether non-existent headers
2173 # can be detected and how.
2174 cat >conftest.$ac_ext <<_ACEOF
2175 #line 2175 "configure"
2176 #include "confdefs.h"
2177 #include <ac_nonexistent.h>
2179 if { (eval echo "$as_me:2179: \"$ac_cpp conftest.$ac_ext\"") >&5
2180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2182 egrep -v '^ *\+' conftest.er1 >conftest.err
2184 cat conftest.err >&5
2185 echo "$as_me:2185: \$? = $ac_status" >&5
2186 (exit $ac_status); } >/dev/null; then
2187 if test -s conftest.err; then
2188 ac_cpp_err=$ac_c_preproc_warn_flag
2195 if test -z "$ac_cpp_err"; then
2196 # Broken: success on invalid input.
2199 echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 # Passes both tests.
2205 rm -f conftest.err conftest.$ac_ext
2208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2209 rm -f conftest.err conftest.$ac_ext
2210 if $ac_preproc_ok; then
2222 echo "$as_me:2222: result: $CPP" >&5
2223 echo "${ECHO_T}$CPP" >&6
2225 for ac_c_preproc_warn_flag in '' yes
2227 # Use a header file that comes with gcc, so configuring glibc
2228 # with a fresh cross-compiler works.
2229 # On the NeXT, cc -E runs the code through the compiler's parser,
2230 # not just through cpp. "Syntax error" is here to catch this case.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #line 2232 "configure"
2233 #include "confdefs.h"
2237 if { (eval echo "$as_me:2237: \"$ac_cpp conftest.$ac_ext\"") >&5
2238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2240 egrep -v '^ *\+' conftest.er1 >conftest.err
2242 cat conftest.err >&5
2243 echo "$as_me:2243: \$? = $ac_status" >&5
2244 (exit $ac_status); } >/dev/null; then
2245 if test -s conftest.err; then
2246 ac_cpp_err=$ac_c_preproc_warn_flag
2253 if test -z "$ac_cpp_err"; then
2256 echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 # Broken: fails on valid input.
2261 rm -f conftest.err conftest.$ac_ext
2263 # OK, works on sane cases. Now check whether non-existent headers
2264 # can be detected and how.
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line 2266 "configure"
2267 #include "confdefs.h"
2268 #include <ac_nonexistent.h>
2270 if { (eval echo "$as_me:2270: \"$ac_cpp conftest.$ac_ext\"") >&5
2271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2273 egrep -v '^ *\+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:2276: \$? = $ac_status" >&5
2277 (exit $ac_status); } >/dev/null; then
2278 if test -s conftest.err; then
2279 ac_cpp_err=$ac_c_preproc_warn_flag
2286 if test -z "$ac_cpp_err"; then
2287 # Broken: success on invalid input.
2290 echo "$as_me: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2292 # Passes both tests.
2296 rm -f conftest.err conftest.$ac_ext
2299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2300 rm -f conftest.err conftest.$ac_ext
2301 if $ac_preproc_ok; then
2304 { { echo "$as_me:2304: error: C preprocessor \"$CPP\" fails sanity check" >&5
2305 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2306 { (exit 1); exit 1; }; }
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 ac_main_return=return
2316 if test $ac_cv_c_compiler_gnu = yes; then
2317 echo "$as_me:2317: checking whether $CC needs -traditional" >&5
2318 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2319 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 ac_pattern="Autoconf.*'x'"
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line 2324 "configure"
2325 #include "confdefs.h"
2327 int Autoconf = TIOCGETP;
2329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2330 egrep "$ac_pattern" >/dev/null 2>&1; then
2331 ac_cv_prog_gcc_traditional=yes
2333 ac_cv_prog_gcc_traditional=no
2337 if test $ac_cv_prog_gcc_traditional = no; then
2338 cat >conftest.$ac_ext <<_ACEOF
2339 #line 2339 "configure"
2340 #include "confdefs.h"
2342 int Autoconf = TCGETA;
2344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2345 egrep "$ac_pattern" >/dev/null 2>&1; then
2346 ac_cv_prog_gcc_traditional=yes
2352 echo "$as_me:2352: result: $ac_cv_prog_gcc_traditional" >&5
2353 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2354 if test $ac_cv_prog_gcc_traditional = yes; then
2355 CC="$CC -traditional"
2359 echo "$as_me:2359: checking whether $CC understands -c and -o together" >&5
2360 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2361 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat > conftest.$ac_ext <<CF_EOF
2369 ${cf_cv_main_return:-return}(0);
2372 # We do the test twice because some compilers refuse to overwrite an
2373 # existing .o file with -o, though they will create one.
2374 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2375 if { (eval echo "$as_me:2375: \"$ac_try\"") >&5
2378 echo "$as_me:2378: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 test -f conftest2.$ac_objext && { (eval echo "$as_me:2380: \"$ac_try\"") >&5
2383 echo "$as_me:2383: \$? = $ac_status" >&5
2384 (exit $ac_status); };
2386 eval cf_cv_prog_CC_c_o=yes
2388 eval cf_cv_prog_CC_c_o=no
2393 if test $cf_cv_prog_CC_c_o = yes; then
2394 echo "$as_me:2394: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6
2397 echo "$as_me:2397: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2401 echo "$as_me:2401: checking for POSIXized ISC" >&5
2402 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2403 if test -d /etc/conf/kconfig.d &&
2404 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2406 echo "$as_me:2406: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6
2408 ISC=yes # If later tests want to check for ISC.
2410 cat >>confdefs.h <<\EOF
2411 #define _POSIX_SOURCE 1
2414 if test "$GCC" = yes; then
2420 echo "$as_me:2420: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2425 echo "$as_me:2425: checking for ${CC:-cc} option to accept ANSI C" >&5
2426 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2427 if test "${cf_cv_ansi_cc+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cf_save_CFLAGS="$CFLAGS"
2433 cf_save_CPPFLAGS="$CPPFLAGS"
2434 # Don't try gcc -ansi; that turns off useful extensions and
2435 # breaks some systems' header files.
2436 # AIX -qlanglvl=ansi
2437 # Ultrix and OSF/1 -std1
2438 # HP-UX -Aa -D_HPUX_SOURCE
2440 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2441 for cf_arg in "-DCC_HAS_PROTOS" \
2446 "-Aa -D_HPUX_SOURCE" \
2453 cf_new_extra_cppflags=
2455 for cf_add_cflags in $cf_arg
2457 case $cf_fix_cppflags in
2459 case $cf_add_cflags in #(vi
2460 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2461 case $cf_add_cflags in
2463 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2465 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2466 && test -z "${cf_tst_cflags}" \
2467 && cf_fix_cppflags=yes
2469 if test $cf_fix_cppflags = yes ; then
2470 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2472 elif test "${cf_tst_cflags}" = "\"'" ; then
2473 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2479 *$cf_add_cflags) #(vi
2482 case $cf_add_cflags in #(vi
2484 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2486 CPPFLAGS=`echo "$CPPFLAGS" | \
2487 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2488 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2492 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2497 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2502 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2504 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2506 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2507 && test -z "${cf_tst_cflags}" \
2508 && cf_fix_cppflags=no
2513 if test -n "$cf_new_cflags" ; then
2515 CFLAGS="$CFLAGS $cf_new_cflags"
2518 if test -n "$cf_new_cppflags" ; then
2520 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2523 if test -n "$cf_new_extra_cppflags" ; then
2525 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2528 cat >conftest.$ac_ext <<_ACEOF
2529 #line 2529 "configure"
2530 #include "confdefs.h"
2532 #ifndef CC_HAS_PROTOS
2533 #if !defined(__STDC__) || (__STDC__ != 1)
2542 int test (int i, double x);
2543 struct s1 {int (*f) (int a);};
2544 struct s2 {int (*f) (double a);};
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:2550: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2553 echo "$as_me:2553: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:2556: \"$ac_try\"") >&5
2559 echo "$as_me:2559: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2561 cf_cv_ansi_cc="$cf_arg"; break
2563 echo "$as_me: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 rm -f conftest.$ac_objext conftest.$ac_ext
2568 CFLAGS="$cf_save_CFLAGS"
2569 CPPFLAGS="$cf_save_CPPFLAGS"
2572 echo "$as_me:2572: result: $cf_cv_ansi_cc" >&5
2573 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2575 if test "$cf_cv_ansi_cc" != "no"; then
2576 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2581 cf_new_extra_cppflags=
2583 for cf_add_cflags in $cf_cv_ansi_cc
2585 case $cf_fix_cppflags in
2587 case $cf_add_cflags in #(vi
2588 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2589 case $cf_add_cflags in
2591 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2593 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2594 && test -z "${cf_tst_cflags}" \
2595 && cf_fix_cppflags=yes
2597 if test $cf_fix_cppflags = yes ; then
2598 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2600 elif test "${cf_tst_cflags}" = "\"'" ; then
2601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2607 *$cf_add_cflags) #(vi
2610 case $cf_add_cflags in #(vi
2612 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2614 CPPFLAGS=`echo "$CPPFLAGS" | \
2615 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2616 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2620 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2625 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2634 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2635 && test -z "${cf_tst_cflags}" \
2636 && cf_fix_cppflags=no
2641 if test -n "$cf_new_cflags" ; then
2643 CFLAGS="$CFLAGS $cf_new_cflags"
2646 if test -n "$cf_new_cppflags" ; then
2648 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2651 if test -n "$cf_new_extra_cppflags" ; then
2653 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2657 cat >>confdefs.h <<\EOF
2658 #define CC_HAS_PROTOS 1
2664 if test "$cf_cv_ansi_cc" = "no"; then
2665 { { echo "$as_me:2665: error: Your compiler does not appear to recognize prototypes.
2666 You have the following choices:
2667 a. adjust your compiler options
2668 b. get an up-to-date compiler
2669 c. use a wrapper such as unproto" >&5
2670 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2671 You have the following choices:
2672 a. adjust your compiler options
2673 b. get an up-to-date compiler
2674 c. use a wrapper such as unproto" >&2;}
2675 { (exit 1); exit 1; }; }
2678 case $cf_cv_system_name in
2680 CFLAGS="$CFLAGS -Zmt"
2681 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2682 CXXFLAGS="$CXXFLAGS -Zmt"
2683 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2684 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2691 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2692 #define PROG_EXT "$PROG_EXT"
2695 if test "$cross_compiling" = yes ; then
2698 case "$cf_cv_system_name" in #(vi
2699 dragonfly*|freebsd*) #(vi
2700 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2702 *) LDPATH=$PATH:/sbin:/usr/sbin
2703 # Extract the first word of "ldconfig", so it can be a program name with args.
2704 set dummy ldconfig; ac_word=$2
2705 echo "$as_me:2705: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2707 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2715 ac_save_IFS=$IFS; IFS=$ac_path_separator
2717 for ac_dir in $ac_dummy; do
2719 test -z "$ac_dir" && ac_dir=.
2720 if $as_executable_p "$ac_dir/$ac_word"; then
2721 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2722 echo "$as_me:2722: found $ac_dir/$ac_word" >&5
2730 LDCONFIG=$ac_cv_path_LDCONFIG
2732 if test -n "$LDCONFIG"; then
2733 echo "$as_me:2733: result: $LDCONFIG" >&5
2734 echo "${ECHO_T}$LDCONFIG" >&6
2736 echo "$as_me:2736: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2744 echo "$as_me:2744: checking if you want to ensure bool is consistent with C++" >&5
2745 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2747 # Check whether --with-cxx or --without-cxx was given.
2748 if test "${with_cxx+set}" = set; then
2750 cf_with_cxx=$withval
2754 echo "$as_me:2754: result: $cf_with_cxx" >&5
2755 echo "${ECHO_T}$cf_with_cxx" >&6
2756 if test "X$cf_with_cxx" = Xno ; then
2760 # with autoconf 2.13, we can change the error to a warning:
2762 ac_cpp='$CXXCPP $CPPFLAGS'
2763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2766 ac_main_return=return
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 echo "$as_me:2772: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2780 ac_save_IFS=$IFS; IFS=$ac_path_separator
2782 for ac_dir in $ac_dummy; do
2784 test -z "$ac_dir" && ac_dir=.
2785 $as_executable_p "$ac_dir/$ac_word" || continue
2786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2787 echo "$as_me:2787: found $ac_dir/$ac_word" >&5
2794 if test -n "$CXX"; then
2795 echo "$as_me:2795: result: $CXX" >&5
2796 echo "${ECHO_T}$CXX" >&6
2798 echo "$as_me:2798: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2802 test -n "$CXX" && break
2805 if test -z "$CXX"; then
2807 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 echo "$as_me:2811: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CXX"; then
2817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819 ac_save_IFS=$IFS; IFS=$ac_path_separator
2821 for ac_dir in $ac_dummy; do
2823 test -z "$ac_dir" && ac_dir=.
2824 $as_executable_p "$ac_dir/$ac_word" || continue
2825 ac_cv_prog_ac_ct_CXX="$ac_prog"
2826 echo "$as_me:2826: found $ac_dir/$ac_word" >&5
2832 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2833 if test -n "$ac_ct_CXX"; then
2834 echo "$as_me:2834: result: $ac_ct_CXX" >&5
2835 echo "${ECHO_T}$ac_ct_CXX" >&6
2837 echo "$as_me:2837: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2841 test -n "$ac_ct_CXX" && break
2843 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2848 # Provide some information about the compiler.
2849 echo "$as_me:2849:" \
2850 "checking for C++ compiler version" >&5
2851 ac_compiler=`set X $ac_compile; echo $2`
2852 { (eval echo "$as_me:2852: \"$ac_compiler --version </dev/null >&5\"") >&5
2853 (eval $ac_compiler --version </dev/null >&5) 2>&5
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (eval echo "$as_me:2857: \"$ac_compiler -v </dev/null >&5\"") >&5
2858 (eval $ac_compiler -v </dev/null >&5) 2>&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862 { (eval echo "$as_me:2862: \"$ac_compiler -V </dev/null >&5\"") >&5
2863 (eval $ac_compiler -V </dev/null >&5) 2>&5
2865 echo "$as_me:2865: \$? = $ac_status" >&5
2866 (exit $ac_status); }
2868 echo "$as_me:2868: checking whether we are using the GNU C++ compiler" >&5
2869 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2870 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 cat >conftest.$ac_ext <<_ACEOF
2874 #line 2874 "configure"
2875 #include "confdefs.h"
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:2889: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>&5
2892 echo "$as_me:2892: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:2895: \"$ac_try\"") >&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2906 rm -f conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2910 echo "$as_me:2910: result: $ac_cv_cxx_compiler_gnu" >&5
2911 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2912 GXX=`test $ac_compiler_gnu = yes && echo yes`
2913 ac_test_CXXFLAGS=${CXXFLAGS+set}
2914 ac_save_CXXFLAGS=$CXXFLAGS
2916 echo "$as_me:2916: checking whether $CXX accepts -g" >&5
2917 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2918 if test "${ac_cv_prog_cxx_g+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line 2922 "configure"
2923 #include "confdefs.h"
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:2934: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>&5
2937 echo "$as_me:2937: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:2940: \"$ac_try\"") >&5
2943 echo "$as_me:2943: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_cv_prog_cxx_g=yes
2947 echo "$as_me: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2951 rm -f conftest.$ac_objext conftest.$ac_ext
2953 echo "$as_me:2953: result: $ac_cv_prog_cxx_g" >&5
2954 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2955 if test "$ac_test_CXXFLAGS" = set; then
2956 CXXFLAGS=$ac_save_CXXFLAGS
2957 elif test $ac_cv_prog_cxx_g = yes; then
2958 if test "$GXX" = yes; then
2964 if test "$GXX" = yes; then
2970 for ac_declaration in \
2972 '#include <stdlib.h>' \
2973 'extern "C" void std::exit (int) throw (); using std::exit;' \
2974 'extern "C" void std::exit (int); using std::exit;' \
2975 'extern "C" void exit (int) throw ();' \
2976 'extern "C" void exit (int);' \
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line 2980 "configure"
2981 #include "confdefs.h"
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:2993: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>&5
2996 echo "$as_me:2996: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:2999: \"$ac_try\"") >&5
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3006 echo "$as_me: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3010 rm -f conftest.$ac_objext conftest.$ac_ext
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line 3012 "configure"
3013 #include "confdefs.h"
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:3024: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>&5
3027 echo "$as_me:3027: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:3030: \"$ac_try\"") >&5
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3037 echo "$as_me: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 rm -f conftest.$ac_objext conftest.$ac_ext
3043 if test -n "$ac_declaration"; then
3044 echo '#ifdef __cplusplus' >>confdefs.h
3045 echo $ac_declaration >>confdefs.h
3046 echo '#endif' >>confdefs.h
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_main_return=return
3056 # autoconf 2.5x removed the error - by hardcoding it to g++.
3057 if test "$CXX" = "g++" ; then
3058 # Extract the first word of "g++", so it can be a program name with args.
3059 set dummy g++; ac_word=$2
3060 echo "$as_me:3060: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_path_CXX+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3070 ac_save_IFS=$IFS; IFS=$ac_path_separator
3072 for ac_dir in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if $as_executable_p "$ac_dir/$ac_word"; then
3076 ac_cv_path_CXX="$ac_dir/$ac_word"
3077 echo "$as_me:3077: found $ac_dir/$ac_word" >&5
3087 if test -n "$CXX"; then
3088 echo "$as_me:3088: result: $CXX" >&5
3089 echo "${ECHO_T}$CXX" >&6
3091 echo "$as_me:3091: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3096 if test "$CXX" = "g++" ; then
3097 { echo "$as_me:3097: WARNING: ignoring hardcoded g++" >&5
3098 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3099 cf_with_cxx=no; CXX=""; GXX="";
3104 if test "$GXX" = yes; then
3105 echo "$as_me:3105: checking version of g++" >&5
3106 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3107 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3108 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3109 echo "$as_me:3109: result: $GXX_VERSION" >&5
3110 echo "${ECHO_T}$GXX_VERSION" >&6
3113 case $GXX_VERSION in
3115 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3117 { echo "$as_me:3117: WARNING: templates do not work" >&5
3118 echo "$as_me: WARNING: templates do not work" >&2;}
3122 echo "$as_me:3122: checking if you want to build C++ binding and demo" >&5
3123 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3125 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3126 if test "${with_cxx_binding+set}" = set; then
3127 withval="$with_cxx_binding"
3128 cf_with_cxx_binding=$withval
3130 cf_with_cxx_binding=$cf_with_cxx
3132 echo "$as_me:3132: result: $cf_with_cxx_binding" >&5
3133 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3135 echo "$as_me:3135: checking if you want to build with Ada95" >&5
3136 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3138 # Check whether --with-ada or --without-ada was given.
3139 if test "${with_ada+set}" = set; then
3141 cf_with_ada=$withval
3145 echo "$as_me:3145: result: $cf_with_ada" >&5
3146 echo "${ECHO_T}$cf_with_ada" >&6
3148 echo "$as_me:3148: checking if you want to install manpages" >&5
3149 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3151 # Check whether --with-manpages or --without-manpages was given.
3152 if test "${with_manpages+set}" = set; then
3153 withval="$with_manpages"
3154 cf_with_manpages=$withval
3156 cf_with_manpages=yes
3158 echo "$as_me:3158: result: $cf_with_manpages" >&5
3159 echo "${ECHO_T}$cf_with_manpages" >&6
3161 echo "$as_me:3161: checking if you want to build programs such as tic" >&5
3162 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3164 # Check whether --with-progs or --without-progs was given.
3165 if test "${with_progs+set}" = set; then
3166 withval="$with_progs"
3167 cf_with_progs=$withval
3171 echo "$as_me:3171: result: $cf_with_progs" >&5
3172 echo "${ECHO_T}$cf_with_progs" >&6
3174 echo "$as_me:3174: checking if you want to build test-programs" >&5
3175 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3177 # Check whether --with-tests or --without-tests was given.
3178 if test "${with_tests+set}" = set; then
3179 withval="$with_tests"
3180 cf_with_tests=$withval
3184 echo "$as_me:3184: result: $cf_with_tests" >&5
3185 echo "${ECHO_T}$cf_with_tests" >&6
3187 echo "$as_me:3187: checking if you wish to install curses.h" >&5
3188 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3190 # Check whether --with-curses-h or --without-curses-h was given.
3191 if test "${with_curses_h+set}" = set; then
3192 withval="$with_curses_h"
3193 with_curses_h=$withval
3197 echo "$as_me:3197: result: $with_curses_h" >&5
3198 echo "${ECHO_T}$with_curses_h" >&6
3200 modules_to_build="ncurses"
3201 if test "X$cf_with_progs" != Xno ; then
3202 modules_to_build="$modules_to_build progs tack"
3204 modules_to_build="$modules_to_build panel menu form"
3206 test "$program_prefix" != NONE &&
3207 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3208 # Use a double $ so make ignores it.
3209 test "$program_suffix" != NONE &&
3210 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3211 # Double any \ or $. echo might interpret backslashes.
3212 # By default was `s,x,x', remove it if useless.
3213 cat <<\_ACEOF >conftest.sed
3214 s/[\\$]/&&/g;s/;s,x,x,$//
3216 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3219 for ac_prog in mawk gawk nawk awk
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 echo "$as_me:3223: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225 if test "${ac_cv_prog_AWK+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if test -n "$AWK"; then
3229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3231 ac_save_IFS=$IFS; IFS=$ac_path_separator
3233 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 $as_executable_p "$ac_dir/$ac_word" || continue
3237 ac_cv_prog_AWK="$ac_prog"
3238 echo "$as_me:3238: found $ac_dir/$ac_word" >&5
3245 if test -n "$AWK"; then
3246 echo "$as_me:3246: result: $AWK" >&5
3247 echo "${ECHO_T}$AWK" >&6
3249 echo "$as_me:3249: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 test -n "$AWK" && break
3256 test -z "$AWK" && { { echo "$as_me:3256: error: No awk program found" >&5
3257 echo "$as_me: error: No awk program found" >&2;}
3258 { (exit 1); exit 1; }; }
3260 echo "$as_me:3260: checking for egrep" >&5
3261 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3262 if test "${ac_cv_prog_egrep+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3266 then ac_cv_prog_egrep='grep -E'
3267 else ac_cv_prog_egrep='egrep'
3270 echo "$as_me:3270: result: $ac_cv_prog_egrep" >&5
3271 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3272 EGREP=$ac_cv_prog_egrep
3274 test -z "$EGREP" && { { echo "$as_me:3274: error: No egrep program found" >&5
3275 echo "$as_me: error: No egrep program found" >&2;}
3276 { (exit 1); exit 1; }; }
3278 # Find a good install program. We prefer a C program (faster),
3279 # so one script is as good as another. But avoid the broken or
3280 # incompatible versions:
3281 # SysV /etc/install, /usr/sbin/install
3282 # SunOS /usr/etc/install
3283 # IRIX /sbin/install
3285 # AmigaOS /C/install, which installs bootblocks on floppy discs
3286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3289 # ./install, which can be erroneously created by make from ./install.sh.
3290 echo "$as_me:3290: checking for a BSD compatible install" >&5
3291 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3292 if test -z "$INSTALL"; then
3293 if test "${ac_cv_path_install+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_save_IFS=$IFS; IFS=$ac_path_separator
3297 for ac_dir in $PATH; do
3299 # Account for people who put trailing slashes in PATH elements.
3301 / | ./ | .// | /cC/* \
3302 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3305 # OSF1 and SCO ODT 3.0 have their own names for install.
3306 # Don't use installbsd from OSF since it installs stuff as root
3308 for ac_prog in ginstall scoinst install; do
3309 if $as_executable_p "$ac_dir/$ac_prog"; then
3310 if test $ac_prog = install &&
3311 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3312 # AIX install. It has an incompatible calling convention.
3314 elif test $ac_prog = install &&
3315 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3316 # program-specific install script used by HP pwplus--don't use.
3319 ac_cv_path_install="$ac_dir/$ac_prog -c"
3329 if test "${ac_cv_path_install+set}" = set; then
3330 INSTALL=$ac_cv_path_install
3332 # As a last resort, use the slow shell script. We don't cache a
3333 # path for INSTALL within a source directory, because that will
3334 # break other packages using the cache if that directory is
3335 # removed, or if the path is relative.
3336 INSTALL=$ac_install_sh
3339 echo "$as_me:3339: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3354 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3355 test -z "$cf_dir" && cf_dir=.
3356 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3360 for ac_prog in tdlint lint alint splint lclint
3362 # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 echo "$as_me:3364: checking for $ac_word" >&5
3365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366 if test "${ac_cv_prog_LINT+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if test -n "$LINT"; then
3370 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3372 ac_save_IFS=$IFS; IFS=$ac_path_separator
3374 for ac_dir in $ac_dummy; do
3376 test -z "$ac_dir" && ac_dir=.
3377 $as_executable_p "$ac_dir/$ac_word" || continue
3378 ac_cv_prog_LINT="$ac_prog"
3379 echo "$as_me:3379: found $ac_dir/$ac_word" >&5
3385 LINT=$ac_cv_prog_LINT
3386 if test -n "$LINT"; then
3387 echo "$as_me:3387: result: $LINT" >&5
3388 echo "${ECHO_T}$LINT" >&6
3390 echo "$as_me:3390: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3394 test -n "$LINT" && break
3397 echo "$as_me:3397: checking whether ln -s works" >&5
3398 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3400 if test "$LN_S" = "ln -s"; then
3401 echo "$as_me:3401: result: yes" >&5
3402 echo "${ECHO_T}yes" >&6
3404 echo "$as_me:3404: result: no, using $LN_S" >&5
3405 echo "${ECHO_T}no, using $LN_S" >&6
3408 echo "$as_me:3408: checking if $LN_S -f options work" >&5
3409 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3411 rm -f conf$$.src conf$$dst
3413 echo first >conf$$.src
3414 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3419 rm -f conf$$.dst conf$$src
3420 echo "$as_me:3420: result: $cf_prog_ln_sf" >&5
3421 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3423 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3425 echo "$as_me:3425: checking for long file names" >&5
3426 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3427 if test "${ac_cv_sys_long_file_names+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 ac_cv_sys_long_file_names=yes
3431 # Test for long file names in all the places we know might matter:
3432 # . the current directory, where building will happen
3433 # $prefix/lib where we will be installing things
3434 # $exec_prefix/lib likewise
3435 # eval it to expand exec_prefix.
3436 # $TMPDIR if set, where it might want to write temporary files
3437 # if $TMPDIR is not set:
3438 # /tmp where it might want to write temporary files
3441 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3444 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3446 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3447 test -d $ac_dir || continue
3448 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3449 ac_xdir=$ac_dir/cf$$
3450 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3451 ac_tf1=$ac_xdir/conftest9012345
3452 ac_tf2=$ac_xdir/conftest9012346
3453 (echo 1 >$ac_tf1) 2>/dev/null
3454 (echo 2 >$ac_tf2) 2>/dev/null
3455 ac_val=`cat $ac_tf1 2>/dev/null`
3456 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3457 ac_cv_sys_long_file_names=no
3458 rm -rf $ac_xdir 2>/dev/null
3461 rm -rf $ac_xdir 2>/dev/null
3464 echo "$as_me:3464: result: $ac_cv_sys_long_file_names" >&5
3465 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3466 if test $ac_cv_sys_long_file_names = yes; then
3468 cat >>confdefs.h <<\EOF
3469 #define HAVE_LONG_FILE_NAMES 1
3474 # if we find pkg-config, check if we should install the ".pc" files.
3476 echo "$as_me:3476: checking if you want to use pkg-config" >&5
3477 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3479 # Check whether --with-pkg-config or --without-pkg-config was given.
3480 if test "${with_pkg_config+set}" = set; then
3481 withval="$with_pkg_config"
3482 cf_pkg_config=$withval
3486 echo "$as_me:3486: result: $cf_pkg_config" >&5
3487 echo "${ECHO_T}$cf_pkg_config" >&6
3489 case $cf_pkg_config in #(vi
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3498 echo "$as_me:3498: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3508 ac_save_IFS=$IFS; IFS=$ac_path_separator
3510 for ac_dir in $ac_dummy; do
3512 test -z "$ac_dir" && ac_dir=.
3513 if $as_executable_p "$ac_dir/$ac_word"; then
3514 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3515 echo "$as_me:3515: found $ac_dir/$ac_word" >&5
3523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3525 if test -n "$PKG_CONFIG"; then
3526 echo "$as_me:3526: result: $PKG_CONFIG" >&5
3527 echo "${ECHO_T}$PKG_CONFIG" >&6
3529 echo "$as_me:3529: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3534 if test -z "$ac_cv_path_PKG_CONFIG"; then
3535 ac_pt_PKG_CONFIG=$PKG_CONFIG
3536 # Extract the first word of "pkg-config", so it can be a program name with args.
3537 set dummy pkg-config; ac_word=$2
3538 echo "$as_me:3538: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 case $ac_pt_PKG_CONFIG in
3545 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3548 ac_save_IFS=$IFS; IFS=$ac_path_separator
3550 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 if $as_executable_p "$ac_dir/$ac_word"; then
3554 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3555 echo "$as_me:3555: found $ac_dir/$ac_word" >&5
3560 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3564 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3566 if test -n "$ac_pt_PKG_CONFIG"; then
3567 echo "$as_me:3567: result: $ac_pt_PKG_CONFIG" >&5
3568 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3570 echo "$as_me:3570: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 PKG_CONFIG=$ac_pt_PKG_CONFIG
3576 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3585 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3586 if test "$PKG_CONFIG" != none ; then
3588 if test "x$prefix" != xNONE; then
3589 cf_path_syntax="$prefix"
3591 cf_path_syntax="$ac_default_prefix"
3594 case ".$PKG_CONFIG" in #(vi
3595 .\$\(*\)*|.\'*\'*) #(vi
3599 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3602 eval PKG_CONFIG="$PKG_CONFIG"
3603 case ".$PKG_CONFIG" in #(vi
3605 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3610 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3613 { { echo "$as_me:3613: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3614 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3615 { (exit 1); exit 1; }; }
3621 if test "$PKG_CONFIG" != no ; then
3622 echo "$as_me:3622: checking if we should install .pc files for $PKG_CONFIG" >&5
3623 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3625 # Leave this as something that can be overridden in the environment.
3626 if test -z "$PKG_CONFIG_LIBDIR" ; then
3627 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3629 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3630 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3632 # Check whether --enable-pc-files or --disable-pc-files was given.
3633 if test "${enable_pc_files+set}" = set; then
3634 enableval="$enable_pc_files"
3635 enable_pc_files=$enableval
3639 echo "$as_me:3639: result: $enable_pc_files" >&5
3640 echo "${ECHO_T}$enable_pc_files" >&6
3642 echo "$as_me:3642: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3644 { echo "$as_me:3644: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3645 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3650 echo "$as_me:3650: checking if we should assume mixed-case filenames" >&5
3651 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3653 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3654 if test "${enable_mixed_case+set}" = set; then
3655 enableval="$enable_mixed_case"
3656 enable_mixedcase=$enableval
3658 enable_mixedcase=auto
3660 echo "$as_me:3660: result: $enable_mixedcase" >&5
3661 echo "${ECHO_T}$enable_mixedcase" >&6
3662 if test "$enable_mixedcase" = "auto" ; then
3664 echo "$as_me:3664: checking if filesystem supports mixed-case filenames" >&5
3665 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3666 if test "${cf_cv_mixedcase+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test "$cross_compiling" = yes ; then
3671 case $target_alias in #(vi
3672 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3680 rm -f conftest CONFTEST
3682 if test -f CONFTEST ; then
3687 rm -f conftest CONFTEST
3691 echo "$as_me:3691: result: $cf_cv_mixedcase" >&5
3692 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3693 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3694 #define MIXEDCASE_FILENAMES 1
3698 cf_cv_mixedcase=$enable_mixedcase
3699 if test "$enable_mixedcase" = "yes" ; then
3700 cat >>confdefs.h <<\EOF
3701 #define MIXEDCASE_FILENAMES 1
3707 # do this after mixed-case option (tags/TAGS is not as important as tic).
3708 echo "$as_me:3708: checking whether ${MAKE-make} sets \${MAKE}" >&5
3709 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3710 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3711 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 cat >conftest.make <<\EOF
3716 @echo 'ac_maketemp="${MAKE}"'
3718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3719 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3720 if test -n "$ac_maketemp"; then
3721 eval ac_cv_prog_make_${ac_make}_set=yes
3723 eval ac_cv_prog_make_${ac_make}_set=no
3727 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3728 echo "$as_me:3728: result: yes" >&5
3729 echo "${ECHO_T}yes" >&6
3732 echo "$as_me:3732: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3734 SET_MAKE="MAKE=${MAKE-make}"
3737 for ac_prog in exctags ctags
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 echo "$as_me:3741: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_CTAGS+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 if test -n "$CTAGS"; then
3747 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3749 ac_save_IFS=$IFS; IFS=$ac_path_separator
3751 for ac_dir in $ac_dummy; do
3753 test -z "$ac_dir" && ac_dir=.
3754 $as_executable_p "$ac_dir/$ac_word" || continue
3755 ac_cv_prog_CTAGS="$ac_prog"
3756 echo "$as_me:3756: found $ac_dir/$ac_word" >&5
3762 CTAGS=$ac_cv_prog_CTAGS
3763 if test -n "$CTAGS"; then
3764 echo "$as_me:3764: result: $CTAGS" >&5
3765 echo "${ECHO_T}$CTAGS" >&6
3767 echo "$as_me:3767: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 test -n "$CTAGS" && break
3774 for ac_prog in exetags etags
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 echo "$as_me:3778: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_ETAGS+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if test -n "$ETAGS"; then
3784 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3786 ac_save_IFS=$IFS; IFS=$ac_path_separator
3788 for ac_dir in $ac_dummy; do
3790 test -z "$ac_dir" && ac_dir=.
3791 $as_executable_p "$ac_dir/$ac_word" || continue
3792 ac_cv_prog_ETAGS="$ac_prog"
3793 echo "$as_me:3793: found $ac_dir/$ac_word" >&5
3799 ETAGS=$ac_cv_prog_ETAGS
3800 if test -n "$ETAGS"; then
3801 echo "$as_me:3801: result: $ETAGS" >&5
3802 echo "${ECHO_T}$ETAGS" >&6
3804 echo "$as_me:3804: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3808 test -n "$ETAGS" && break
3811 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3812 set dummy ${CTAGS:-ctags}; ac_word=$2
3813 echo "$as_me:3813: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -n "$MAKE_LOWER_TAGS"; then
3819 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3821 ac_save_IFS=$IFS; IFS=$ac_path_separator
3823 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 $as_executable_p "$ac_dir/$ac_word" || continue
3827 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3828 echo "$as_me:3828: found $ac_dir/$ac_word" >&5
3832 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3835 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3836 if test -n "$MAKE_LOWER_TAGS"; then
3837 echo "$as_me:3837: result: $MAKE_LOWER_TAGS" >&5
3838 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3840 echo "$as_me:3840: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3844 if test "$cf_cv_mixedcase" = yes ; then
3845 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3846 set dummy ${ETAGS:-etags}; ac_word=$2
3847 echo "$as_me:3847: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if test -n "$MAKE_UPPER_TAGS"; then
3853 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3855 ac_save_IFS=$IFS; IFS=$ac_path_separator
3857 for ac_dir in $ac_dummy; do
3859 test -z "$ac_dir" && ac_dir=.
3860 $as_executable_p "$ac_dir/$ac_word" || continue
3861 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3862 echo "$as_me:3862: found $ac_dir/$ac_word" >&5
3866 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3869 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3870 if test -n "$MAKE_UPPER_TAGS"; then
3871 echo "$as_me:3871: result: $MAKE_UPPER_TAGS" >&5
3872 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3874 echo "$as_me:3874: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3882 if test "$MAKE_UPPER_TAGS" = yes ; then
3888 if test "$MAKE_LOWER_TAGS" = yes ; then
3894 echo "$as_me:3894: checking for makeflags variable" >&5
3895 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3896 if test "${cf_cv_makeflags+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3903 cat >cf_makeflags.tmp <<CF_EOF
3906 @ echo '.$cf_option'
3908 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3909 case "$cf_result" in
3911 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3912 case "$cf_result" in
3913 .*CC=*) cf_cv_makeflags=
3915 *) cf_cv_makeflags=$cf_option
3921 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3925 rm -f cf_makeflags.tmp
3928 echo "$as_me:3928: result: $cf_cv_makeflags" >&5
3929 echo "${ECHO_T}$cf_cv_makeflags" >&6
3931 if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3933 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3934 echo "$as_me:3934: checking for $ac_word" >&5
3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3936 if test "${ac_cv_prog_RANLIB+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 if test -n "$RANLIB"; then
3940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3942 ac_save_IFS=$IFS; IFS=$ac_path_separator
3944 for ac_dir in $ac_dummy; do
3946 test -z "$ac_dir" && ac_dir=.
3947 $as_executable_p "$ac_dir/$ac_word" || continue
3948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3949 echo "$as_me:3949: found $ac_dir/$ac_word" >&5
3955 RANLIB=$ac_cv_prog_RANLIB
3956 if test -n "$RANLIB"; then
3957 echo "$as_me:3957: result: $RANLIB" >&5
3958 echo "${ECHO_T}$RANLIB" >&6
3960 echo "$as_me:3960: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3965 if test -z "$ac_cv_prog_RANLIB"; then
3966 ac_ct_RANLIB=$RANLIB
3967 # Extract the first word of "ranlib", so it can be a program name with args.
3968 set dummy ranlib; ac_word=$2
3969 echo "$as_me:3969: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 if test -n "$ac_ct_RANLIB"; then
3975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3977 ac_save_IFS=$IFS; IFS=$ac_path_separator
3979 for ac_dir in $ac_dummy; do
3981 test -z "$ac_dir" && ac_dir=.
3982 $as_executable_p "$ac_dir/$ac_word" || continue
3983 ac_cv_prog_ac_ct_RANLIB="ranlib"
3984 echo "$as_me:3984: found $ac_dir/$ac_word" >&5
3988 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3992 if test -n "$ac_ct_RANLIB"; then
3993 echo "$as_me:3993: result: $ac_ct_RANLIB" >&5
3994 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3996 echo "$as_me:3996: result: no" >&5
3997 echo "${ECHO_T}no" >&6
4000 RANLIB=$ac_ct_RANLIB
4002 RANLIB="$ac_cv_prog_RANLIB"
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}ld; ac_word=$2
4008 echo "$as_me:4008: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_LD+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if test -n "$LD"; then
4014 ac_cv_prog_LD="$LD" # Let the user override the test.
4016 ac_save_IFS=$IFS; IFS=$ac_path_separator
4018 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 $as_executable_p "$ac_dir/$ac_word" || continue
4022 ac_cv_prog_LD="${ac_tool_prefix}ld"
4023 echo "$as_me:4023: found $ac_dir/$ac_word" >&5
4030 if test -n "$LD"; then
4031 echo "$as_me:4031: result: $LD" >&5
4032 echo "${ECHO_T}$LD" >&6
4034 echo "$as_me:4034: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4039 if test -z "$ac_cv_prog_LD"; then
4041 # Extract the first word of "ld", so it can be a program name with args.
4042 set dummy ld; ac_word=$2
4043 echo "$as_me:4043: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 if test -n "$ac_ct_LD"; then
4049 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4051 ac_save_IFS=$IFS; IFS=$ac_path_separator
4053 for ac_dir in $ac_dummy; do
4055 test -z "$ac_dir" && ac_dir=.
4056 $as_executable_p "$ac_dir/$ac_word" || continue
4057 ac_cv_prog_ac_ct_LD="ld"
4058 echo "$as_me:4058: found $ac_dir/$ac_word" >&5
4062 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4065 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4066 if test -n "$ac_ct_LD"; then
4067 echo "$as_me:4067: result: $ac_ct_LD" >&5
4068 echo "${ECHO_T}$ac_ct_LD" >&6
4070 echo "$as_me:4070: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}ar; ac_word=$2
4082 echo "$as_me:4082: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_AR+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 if test -n "$AR"; then
4088 ac_cv_prog_AR="$AR" # Let the user override the test.
4090 ac_save_IFS=$IFS; IFS=$ac_path_separator
4092 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 $as_executable_p "$ac_dir/$ac_word" || continue
4096 ac_cv_prog_AR="${ac_tool_prefix}ar"
4097 echo "$as_me:4097: found $ac_dir/$ac_word" >&5
4104 if test -n "$AR"; then
4105 echo "$as_me:4105: result: $AR" >&5
4106 echo "${ECHO_T}$AR" >&6
4108 echo "$as_me:4108: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4113 if test -z "$ac_cv_prog_AR"; then
4115 # Extract the first word of "ar", so it can be a program name with args.
4116 set dummy ar; ac_word=$2
4117 echo "$as_me:4117: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -n "$ac_ct_AR"; then
4123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4125 ac_save_IFS=$IFS; IFS=$ac_path_separator
4127 for ac_dir in $ac_dummy; do
4129 test -z "$ac_dir" && ac_dir=.
4130 $as_executable_p "$ac_dir/$ac_word" || continue
4131 ac_cv_prog_ac_ct_AR="ar"
4132 echo "$as_me:4132: found $ac_dir/$ac_word" >&5
4136 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4140 if test -n "$ac_ct_AR"; then
4141 echo "$as_me:4141: result: $ac_ct_AR" >&5
4142 echo "${ECHO_T}$ac_ct_AR" >&6
4144 echo "$as_me:4144: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4153 if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4155 set dummy ${ac_tool_prefix}ar; ac_word=$2
4156 echo "$as_me:4156: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_AR+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$AR"; then
4162 ac_cv_prog_AR="$AR" # Let the user override the test.
4164 ac_save_IFS=$IFS; IFS=$ac_path_separator
4166 for ac_dir in $ac_dummy; do
4168 test -z "$ac_dir" && ac_dir=.
4169 $as_executable_p "$ac_dir/$ac_word" || continue
4170 ac_cv_prog_AR="${ac_tool_prefix}ar"
4171 echo "$as_me:4171: found $ac_dir/$ac_word" >&5
4178 if test -n "$AR"; then
4179 echo "$as_me:4179: result: $AR" >&5
4180 echo "${ECHO_T}$AR" >&6
4182 echo "$as_me:4182: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4187 if test -z "$ac_cv_prog_AR"; then
4189 # Extract the first word of "ar", so it can be a program name with args.
4190 set dummy ar; ac_word=$2
4191 echo "$as_me:4191: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4193 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if test -n "$ac_ct_AR"; then
4197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4199 ac_save_IFS=$IFS; IFS=$ac_path_separator
4201 for ac_dir in $ac_dummy; do
4203 test -z "$ac_dir" && ac_dir=.
4204 $as_executable_p "$ac_dir/$ac_word" || continue
4205 ac_cv_prog_ac_ct_AR="ar"
4206 echo "$as_me:4206: found $ac_dir/$ac_word" >&5
4210 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4214 if test -n "$ac_ct_AR"; then
4215 echo "$as_me:4215: result: $ac_ct_AR" >&5
4216 echo "${ECHO_T}$ac_ct_AR" >&6
4218 echo "$as_me:4218: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4227 echo "$as_me:4227: checking for options to update archives" >&5
4228 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4229 if test "${cf_cv_ar_flags+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 cf_cv_ar_flags=unknown
4234 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4237 # check if $ARFLAGS already contains this choice
4238 if test "x$ARFLAGS" != "x" ; then
4239 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4240 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4246 rm -f conftest.$ac_cv_objext
4249 cat >conftest.$ac_ext <<EOF
4250 #line 4250 "configure"
4251 int testdata[3] = { 123, 456, 789 };
4253 if { (eval echo "$as_me:4253: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>&5
4256 echo "$as_me:4256: \$? = $ac_status" >&5
4257 (exit $ac_status); } ; then
4258 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4259 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4260 if test -f conftest.a ; then
4261 cf_cv_ar_flags=$cf_ar_flags
4265 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4267 echo "${as_me:-configure}:4267: testing cannot compile test-program ..." 1>&5
4272 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4275 echo "$as_me:4275: result: $cf_cv_ar_flags" >&5
4276 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4278 if test -n "$ARFLAGS" ; then
4279 if test -n "$cf_cv_ar_flags" ; then
4280 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4283 ARFLAGS=$cf_cv_ar_flags
4286 echo "$as_me:4286: checking if you have specified an install-prefix" >&5
4287 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4289 # Check whether --with-install-prefix or --without-install-prefix was given.
4290 if test "${with_install_prefix+set}" = set; then
4291 withval="$with_install_prefix"
4292 case "$withval" in #(vi
4295 *) DESTDIR="$withval"
4299 echo "$as_me:4299: result: $DESTDIR" >&5
4300 echo "${ECHO_T}$DESTDIR" >&6
4302 ###############################################################################
4304 # If we're cross-compiling, allow the user to override the tools and their
4305 # options. The configure script is oriented toward identifying the host
4306 # compiler, etc., but we need a build compiler to generate parts of the source.
4308 if test "$cross_compiling" = yes ; then
4310 # defaults that we might want to override
4311 : ${BUILD_CFLAGS:=''}
4312 : ${BUILD_CPPFLAGS:=''}
4313 : ${BUILD_LDFLAGS:=''}
4315 : ${BUILD_EXEEXT:='$x'}
4316 : ${BUILD_OBJEXT:='o'}
4318 # Check whether --with-build-cc or --without-build-cc was given.
4319 if test "${with_build_cc+set}" = set; then
4320 withval="$with_build_cc"
4323 for ac_prog in gcc cc cl
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 echo "$as_me:4327: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$BUILD_CC"; then
4333 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4335 ac_save_IFS=$IFS; IFS=$ac_path_separator
4337 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 $as_executable_p "$ac_dir/$ac_word" || continue
4341 ac_cv_prog_BUILD_CC="$ac_prog"
4342 echo "$as_me:4342: found $ac_dir/$ac_word" >&5
4348 BUILD_CC=$ac_cv_prog_BUILD_CC
4349 if test -n "$BUILD_CC"; then
4350 echo "$as_me:4350: result: $BUILD_CC" >&5
4351 echo "${ECHO_T}$BUILD_CC" >&6
4353 echo "$as_me:4353: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4357 test -n "$BUILD_CC" && break
4361 echo "$as_me:4361: checking for native build C compiler" >&5
4362 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4363 echo "$as_me:4363: result: $BUILD_CC" >&5
4364 echo "${ECHO_T}$BUILD_CC" >&6
4366 echo "$as_me:4366: checking for native build C preprocessor" >&5
4367 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4369 # Check whether --with-build-cpp or --without-build-cpp was given.
4370 if test "${with_build_cpp+set}" = set; then
4371 withval="$with_build_cpp"
4372 BUILD_CPP="$withval"
4374 BUILD_CPP='${BUILD_CC} -E'
4376 echo "$as_me:4376: result: $BUILD_CPP" >&5
4377 echo "${ECHO_T}$BUILD_CPP" >&6
4379 echo "$as_me:4379: checking for native build C flags" >&5
4380 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4382 # Check whether --with-build-cflags or --without-build-cflags was given.
4383 if test "${with_build_cflags+set}" = set; then
4384 withval="$with_build_cflags"
4385 BUILD_CFLAGS="$withval"
4387 echo "$as_me:4387: result: $BUILD_CFLAGS" >&5
4388 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4390 echo "$as_me:4390: checking for native build C preprocessor-flags" >&5
4391 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4393 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4394 if test "${with_build_cppflags+set}" = set; then
4395 withval="$with_build_cppflags"
4396 BUILD_CPPFLAGS="$withval"
4398 echo "$as_me:4398: result: $BUILD_CPPFLAGS" >&5
4399 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4401 echo "$as_me:4401: checking for native build linker-flags" >&5
4402 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4404 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4405 if test "${with_build_ldflags+set}" = set; then
4406 withval="$with_build_ldflags"
4407 BUILD_LDFLAGS="$withval"
4409 echo "$as_me:4409: result: $BUILD_LDFLAGS" >&5
4410 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4412 echo "$as_me:4412: checking for native build linker-libraries" >&5
4413 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4415 # Check whether --with-build-libs or --without-build-libs was given.
4416 if test "${with_build_libs+set}" = set; then
4417 withval="$with_build_libs"
4418 BUILD_LIBS="$withval"
4420 echo "$as_me:4420: result: $BUILD_LIBS" >&5
4421 echo "${ECHO_T}$BUILD_LIBS" >&6
4423 # this assumes we're on Unix.
4427 : ${BUILD_CC:='${CC}'}
4429 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4430 { { echo "$as_me:4430: error: Cross-build requires two compilers.
4431 Use --with-build-cc to specify the native compiler." >&5
4432 echo "$as_me: error: Cross-build requires two compilers.
4433 Use --with-build-cc to specify the native compiler." >&2;}
4434 { (exit 1); exit 1; }; }
4438 : ${BUILD_CC:='${CC}'}
4439 : ${BUILD_CPP:='${CPP}'}
4440 : ${BUILD_CFLAGS:='${CFLAGS}'}
4441 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4442 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4443 : ${BUILD_LIBS:='${LIBS}'}
4444 : ${BUILD_EXEEXT:='$x'}
4445 : ${BUILD_OBJEXT:='o'}
4448 ###############################################################################
4450 ### Options to allow the user to specify the set of libraries which are used.
4451 ### Use "--without-normal --with-shared" to allow the default model to be
4452 ### shared, for example.
4455 echo "$as_me:4455: checking if libtool -version-number should be used" >&5
4456 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4458 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4459 if test "${enable_libtool_version+set}" = set; then
4460 enableval="$enable_libtool_version"
4461 test "$enableval" != no && enableval=yes
4462 if test "$enableval" != "yes" ; then
4463 cf_libtool_version=no
4465 cf_libtool_version=yes
4469 cf_libtool_version=yes
4472 echo "$as_me:4472: result: $cf_libtool_version" >&5
4473 echo "${ECHO_T}$cf_libtool_version" >&6
4475 if test "$cf_libtool_version" = yes ; then
4476 LIBTOOL_VERSION="-version-number"
4478 LIBTOOL_VERSION="-version-info"
4483 # common library maintenance symbols that are convenient for libtool scripts:
4484 LIB_CREATE='${AR} -cr'
4485 LIB_OBJECT='${OBJECTS}'
4489 # symbols used to prop libtool up to enable it to determine what it should be
4497 echo "$as_me:4497: checking if you want to build libraries with libtool" >&5
4498 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4500 # Check whether --with-libtool or --without-libtool was given.
4501 if test "${with_libtool+set}" = set; then
4502 withval="$with_libtool"
4503 with_libtool=$withval
4507 echo "$as_me:4507: result: $with_libtool" >&5
4508 echo "${ECHO_T}$with_libtool" >&6
4509 if test "$with_libtool" != "no"; then
4511 if test "$with_libtool" != "yes" ; then
4513 if test "x$prefix" != xNONE; then
4514 cf_path_syntax="$prefix"
4516 cf_path_syntax="$ac_default_prefix"
4519 case ".$with_libtool" in #(vi
4520 .\$\(*\)*|.\'*\'*) #(vi
4524 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4527 eval with_libtool="$with_libtool"
4528 case ".$with_libtool" in #(vi
4530 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4535 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4538 { { echo "$as_me:4538: error: expected a pathname, not \"$with_libtool\"" >&5
4539 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4540 { (exit 1); exit 1; }; }
4544 LIBTOOL=$with_libtool
4546 # Extract the first word of "libtool", so it can be a program name with args.
4547 set dummy libtool; ac_word=$2
4548 echo "$as_me:4548: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4558 ac_save_IFS=$IFS; IFS=$ac_path_separator
4560 for ac_dir in $ac_dummy; do
4562 test -z "$ac_dir" && ac_dir=.
4563 if $as_executable_p "$ac_dir/$ac_word"; then
4564 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4565 echo "$as_me:4565: found $ac_dir/$ac_word" >&5
4573 LIBTOOL=$ac_cv_path_LIBTOOL
4575 if test -n "$LIBTOOL"; then
4576 echo "$as_me:4576: result: $LIBTOOL" >&5
4577 echo "${ECHO_T}$LIBTOOL" >&6
4579 echo "$as_me:4579: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4584 if test -z "$LIBTOOL" ; then
4585 { { echo "$as_me:4585: error: Cannot find libtool" >&5
4586 echo "$as_me: error: Cannot find libtool" >&2;}
4587 { (exit 1); exit 1; }; }
4589 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4590 LIB_OBJECT='${OBJECTS:.o=.lo}'
4592 LIB_CLEAN='${LIBTOOL} --mode=clean'
4593 LIB_COMPILE='${LIBTOOL} --mode=compile'
4594 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4595 LIB_INSTALL='${LIBTOOL} --mode=install'
4596 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4599 # Show the version of libtool
4600 echo "$as_me:4600: checking version of libtool" >&5
4601 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4603 # Save the version in a cache variable - this is not entirely a good
4604 # thing, but the version string from libtool is very ugly, and for
4605 # bug reports it might be useful to have the original string. "("
4606 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.].*//'`
4607 echo "$as_me:4607: result: $cf_cv_libtool_version" >&5
4608 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4609 if test -z "$cf_cv_libtool_version" ; then
4610 { { echo "$as_me:4610: error: This is not GNU libtool" >&5
4611 echo "$as_me: error: This is not GNU libtool" >&2;}
4612 { (exit 1); exit 1; }; }
4615 # special hack to add -no-undefined (which libtool should do for itself)
4617 case "$cf_cv_system_name" in #(vi
4618 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4619 LT_UNDEF=-no-undefined
4623 # special hack to add --tag option for C++ compiler
4624 case $cf_cv_libtool_version in #(vi
4625 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4626 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4627 LIBTOOL="$LIBTOOL --tag=CC"
4630 LIBTOOL_CXX="$LIBTOOL"
4638 test -z "$LIBTOOL" && ECHO_LT=
4640 if test "$with_libtool" != "no" ; then
4642 cf_list_models="$cf_list_models libtool"
4646 echo "$as_me:4646: checking if you want to build shared libraries" >&5
4647 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4649 # Check whether --with-shared or --without-shared was given.
4650 if test "${with_shared+set}" = set; then
4651 withval="$with_shared"
4652 with_shared=$withval
4656 echo "$as_me:4656: result: $with_shared" >&5
4657 echo "${ECHO_T}$with_shared" >&6
4658 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4660 echo "$as_me:4660: checking if you want to build static libraries" >&5
4661 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4663 # Check whether --with-normal or --without-normal was given.
4664 if test "${with_normal+set}" = set; then
4665 withval="$with_normal"
4666 with_normal=$withval
4670 echo "$as_me:4670: result: $with_normal" >&5
4671 echo "${ECHO_T}$with_normal" >&6
4672 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4674 echo "$as_me:4674: checking if you want to build debug libraries" >&5
4675 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4677 # Check whether --with-debug or --without-debug was given.
4678 if test "${with_debug+set}" = set; then
4679 withval="$with_debug"
4684 echo "$as_me:4684: result: $with_debug" >&5
4685 echo "${ECHO_T}$with_debug" >&6
4686 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4688 echo "$as_me:4688: checking if you want to build profiling libraries" >&5
4689 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4691 # Check whether --with-profile or --without-profile was given.
4692 if test "${with_profile+set}" = set; then
4693 withval="$with_profile"
4694 with_profile=$withval
4698 echo "$as_me:4698: result: $with_profile" >&5
4699 echo "${ECHO_T}$with_profile" >&6
4700 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4704 ###############################################################################
4706 echo "$as_me:4706: checking for specified models" >&5
4707 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4708 test -z "$cf_list_models" && cf_list_models=normal
4709 test "$with_libtool" != "no" && cf_list_models=libtool
4710 echo "$as_me:4710: result: $cf_list_models" >&5
4711 echo "${ECHO_T}$cf_list_models" >&6
4713 ### Use the first model as the default, and save its suffix for use in building
4714 ### up test-applications.
4715 echo "$as_me:4715: checking for default model" >&5
4716 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4717 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4718 echo "$as_me:4718: result: $DFT_LWR_MODEL" >&5
4719 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4721 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4732 case $cf_cv_system_name in #(vi
4739 cf_prefix=$LIB_PREFIX
4741 LIB_PREFIX=$cf_prefix
4745 ###############################################################################
4747 echo "$as_me:4747: checking if you want to build a separate terminfo library" >&5
4748 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4750 # Check whether --with-termlib or --without-termlib was given.
4751 if test "${with_termlib+set}" = set; then
4752 withval="$with_termlib"
4753 with_termlib=$withval
4757 echo "$as_me:4757: result: $with_termlib" >&5
4758 echo "${ECHO_T}$with_termlib" >&6
4760 echo "$as_me:4760: checking if you want to build a separate tic library" >&5
4761 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4763 # Check whether --with-ticlib or --without-ticlib was given.
4764 if test "${with_ticlib+set}" = set; then
4765 withval="$with_ticlib"
4766 with_ticlib=$withval
4770 echo "$as_me:4770: result: $with_ticlib" >&5
4771 echo "${ECHO_T}$with_ticlib" >&6
4773 ### Checks for special libraries, must be done up-front.
4776 echo "$as_me:4776: checking if you want to link with the GPM mouse library" >&5
4777 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4779 # Check whether --with-gpm or --without-gpm was given.
4780 if test "${with_gpm+set}" = set; then
4786 echo "$as_me:4786: result: $with_gpm" >&5
4787 echo "${ECHO_T}$with_gpm" >&6
4789 if test "$with_gpm" != no ; then
4790 echo "$as_me:4790: checking for gpm.h" >&5
4791 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4792 if test "${ac_cv_header_gpm_h+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 cat >conftest.$ac_ext <<_ACEOF
4796 #line 4796 "configure"
4797 #include "confdefs.h"
4800 if { (eval echo "$as_me:4800: \"$ac_cpp conftest.$ac_ext\"") >&5
4801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4803 egrep -v '^ *\+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:4806: \$? = $ac_status" >&5
4807 (exit $ac_status); } >/dev/null; then
4808 if test -s conftest.err; then
4809 ac_cpp_err=$ac_c_preproc_warn_flag
4816 if test -z "$ac_cpp_err"; then
4817 ac_cv_header_gpm_h=yes
4819 echo "$as_me: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 ac_cv_header_gpm_h=no
4823 rm -f conftest.err conftest.$ac_ext
4825 echo "$as_me:4825: result: $ac_cv_header_gpm_h" >&5
4826 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4827 if test $ac_cv_header_gpm_h = yes; then
4829 cat >>confdefs.h <<\EOF
4830 #define HAVE_GPM_H 1
4833 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4834 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4836 echo "${as_me:-configure}:4836: testing assuming we really have GPM library ..." 1>&5
4838 cat >>confdefs.h <<\EOF
4839 #define HAVE_LIBGPM 1
4843 echo "$as_me:4843: checking for Gpm_Open in -lgpm" >&5
4844 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4845 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 ac_check_lib_save_LIBS=$LIBS
4850 cat >conftest.$ac_ext <<_ACEOF
4851 #line 4851 "configure"
4852 #include "confdefs.h"
4854 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4869 rm -f conftest.$ac_objext conftest$ac_exeext
4870 if { (eval echo "$as_me:4870: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>&5
4873 echo "$as_me:4873: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -s conftest$ac_exeext'
4876 { (eval echo "$as_me:4876: \"$ac_try\"") >&5
4879 echo "$as_me:4879: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_lib_gpm_Gpm_Open=yes
4883 echo "$as_me: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 ac_cv_lib_gpm_Gpm_Open=no
4887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4888 LIBS=$ac_check_lib_save_LIBS
4890 echo "$as_me:4890: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4891 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4892 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4896 { { echo "$as_me:4896: error: Cannot link with GPM library" >&5
4897 echo "$as_me: error: Cannot link with GPM library" >&2;}
4898 { (exit 1); exit 1; }; }
4906 test "$with_gpm" != maybe && { echo "$as_me:4906: WARNING: Cannot find GPM header" >&5
4907 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4914 if test "$with_gpm" != no ; then
4915 echo "$as_me:4915: checking if you want to load GPM dynamically" >&5
4916 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4918 # Check whether --with-dlsym or --without-dlsym was given.
4919 if test "${with_dlsym+set}" = set; then
4920 withval="$with_dlsym"
4925 echo "$as_me:4925: result: $with_dlsym" >&5
4926 echo "${ECHO_T}$with_dlsym" >&6
4927 if test "$with_dlsym" = yes ; then
4930 echo "$as_me:4930: checking for dlsym" >&5
4931 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4932 if test "${ac_cv_func_dlsym+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4938 /* System header to define __stub macros and hopefully few prototypes,
4939 which can conflict with char dlsym (); below. */
4941 /* Override any gcc2 internal prototype to avoid an error. */
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4953 /* The GNU C library defines this for functions which it implements
4954 to always fail with ENOSYS. Some functions are actually named
4955 something starting with __ and the normal name is an alias. */
4956 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4966 rm -f conftest.$ac_objext conftest$ac_exeext
4967 if { (eval echo "$as_me:4967: \"$ac_link\"") >&5
4968 (eval $ac_link) 2>&5
4970 echo "$as_me:4970: \$? = $ac_status" >&5
4971 (exit $ac_status); } &&
4972 { ac_try='test -s conftest$ac_exeext'
4973 { (eval echo "$as_me:4973: \"$ac_try\"") >&5
4976 echo "$as_me:4976: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_func_dlsym=yes
4980 echo "$as_me: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4986 echo "$as_me:4986: result: $ac_cv_func_dlsym" >&5
4987 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4988 if test $ac_cv_func_dlsym = yes; then
4993 echo "$as_me:4993: checking for dlsym in -ldl" >&5
4994 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4995 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 ac_check_lib_save_LIBS=$LIBS
5000 cat >conftest.$ac_ext <<_ACEOF
5001 #line 5001 "configure"
5002 #include "confdefs.h"
5004 /* Override any gcc2 internal prototype to avoid an error. */
5008 /* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5019 rm -f conftest.$ac_objext conftest$ac_exeext
5020 if { (eval echo "$as_me:5020: \"$ac_link\"") >&5
5021 (eval $ac_link) 2>&5
5023 echo "$as_me:5023: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -s conftest$ac_exeext'
5026 { (eval echo "$as_me:5026: \"$ac_try\"") >&5
5029 echo "$as_me:5029: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_lib_dl_dlsym=yes
5033 echo "$as_me: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5035 ac_cv_lib_dl_dlsym=no
5037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5038 LIBS=$ac_check_lib_save_LIBS
5040 echo "$as_me:5040: result: $ac_cv_lib_dl_dlsym" >&5
5041 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5042 if test $ac_cv_lib_dl_dlsym = yes; then
5050 if test "$cf_have_dlsym" = yes ; then
5051 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5053 echo "$as_me:5053: checking whether able to link to dl*() functions" >&5
5054 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line 5056 "configure"
5057 #include "confdefs.h"
5064 if ((obj = dlopen("filename", 0)) != 0) {
5065 if (dlsym(obj, "symbolname") == 0) {
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval echo "$as_me:5074: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>&5
5077 echo "$as_me:5077: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:5080: \"$ac_try\"") >&5
5083 echo "$as_me:5083: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5086 cat >>confdefs.h <<\EOF
5087 #define HAVE_LIBDL 1
5091 echo "$as_me: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5094 { { echo "$as_me:5094: error: Cannot link test program for libdl" >&5
5095 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5096 { (exit 1); exit 1; }; }
5098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5099 echo "$as_me:5099: result: ok" >&5
5100 echo "${ECHO_T}ok" >&6
5102 { { echo "$as_me:5102: error: Cannot find dlsym function" >&5
5103 echo "$as_me: error: Cannot find dlsym function" >&2;}
5104 { (exit 1); exit 1; }; }
5107 if test "$with_gpm" != yes ; then
5108 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5110 echo "${as_me:-configure}:5110: testing assuming soname for gpm is $with_gpm ..." 1>&5
5112 cf_cv_gpm_soname="$with_gpm"
5115 echo "$as_me:5115: checking for soname of gpm library" >&5
5116 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5117 if test "${cf_cv_gpm_soname+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 cf_cv_gpm_soname=unknown
5122 if test "$cross_compiling" != yes ; then
5123 cat >conftest.$ac_ext <<CF_EOF
5127 if (Gpm_Open(0,0)) Gpm_Close();
5128 ${cf_cv_main_return:-return}(0);
5131 cf_save_LIBS="$LIBS"
5133 if { (eval echo "$as_me:5133: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>&5
5136 echo "$as_me:5136: \$? = $ac_status" >&5
5137 (exit $ac_status); } ; then
5138 if { (eval echo "$as_me:5138: \"$ac_link\"") >&5
5139 (eval $ac_link) 2>&5
5141 echo "$as_me:5141: \$? = $ac_status" >&5
5142 (exit $ac_status); } ; then
5143 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5144 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5148 LIBS="$cf_save_LIBS"
5152 echo "$as_me:5152: result: $cf_cv_gpm_soname" >&5
5153 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5156 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5157 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5160 SHLIB_LIST="-ldl $SHLIB_LIST"
5162 SHLIB_LIST="-lgpm $SHLIB_LIST"
5163 TEST_LIBS="-lgpm $TEST_LIBS"
5165 cat >>confdefs.h <<\EOF
5166 #define HAVE_LIBGPM 1
5169 echo "$as_me:5169: checking for Gpm_Wgetch in -lgpm" >&5
5170 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5171 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_check_lib_save_LIBS=$LIBS
5176 cat >conftest.$ac_ext <<_ACEOF
5177 #line 5177 "configure"
5178 #include "confdefs.h"
5180 /* Override any gcc2 internal prototype to avoid an error. */
5184 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:5196: \"$ac_link\"") >&5
5197 (eval $ac_link) 2>&5
5199 echo "$as_me:5199: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:5202: \"$ac_try\"") >&5
5205 echo "$as_me:5205: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_lib_gpm_Gpm_Wgetch=yes
5209 echo "$as_me: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 ac_cv_lib_gpm_Gpm_Wgetch=no
5213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 echo "$as_me:5216: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5217 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5218 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5220 echo "$as_me:5220: checking if GPM is weakly bound to curses library" >&5
5221 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5222 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 cf_cv_check_gpm_wgetch=unknown
5227 if test "$cross_compiling" != yes ; then
5229 cat >conftest.$ac_ext <<CF_EOF
5234 ${cf_cv_main_return:-return}(0);
5238 cf_save_LIBS="$LIBS"
5239 # This only works if we can look at the symbol table. If a shared
5240 # library is stripped for install, we cannot use that. So we're forced
5241 # to rely on the static library, noting that some packagers may not
5243 LIBS="-static -lgpm -dynamic $LIBS"
5244 if { (eval echo "$as_me:5244: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>&5
5247 echo "$as_me:5247: \$? = $ac_status" >&5
5248 (exit $ac_status); } ; then
5249 if { (eval echo "$as_me:5249: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:5252: \$? = $ac_status" >&5
5253 (exit $ac_status); } ; then
5254 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5255 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5256 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5260 LIBS="$cf_save_LIBS"
5264 echo "$as_me:5264: result: $cf_cv_check_gpm_wgetch" >&5
5265 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5267 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5268 { echo "$as_me:5268: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5269 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5276 # not everyone has "test -c"
5277 if test -c /dev/sysmouse 2>/dev/null ; then
5278 echo "$as_me:5278: checking if you want to use sysmouse" >&5
5279 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5281 # Check whether --with-sysmouse or --without-sysmouse was given.
5282 if test "${with_sysmouse+set}" = set; then
5283 withval="$with_sysmouse"
5284 cf_with_sysmouse=$withval
5286 cf_with_sysmouse=maybe
5288 if test "$cf_with_sysmouse" != no ; then
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line 5290 "configure"
5291 #include "confdefs.h"
5293 #include <osreldate.h>
5294 #if (__FreeBSD_version >= 400017)
5295 #include <sys/consio.h>
5296 #include <sys/fbio.h>
5298 #include <machine/console.h>
5305 struct mouse_info the_mouse;
5306 ioctl(0, CONS_MOUSECTL, &the_mouse);
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:5313: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>&5
5316 echo "$as_me:5316: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:5319: \"$ac_try\"") >&5
5322 echo "$as_me:5322: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 cf_with_sysmouse=yes
5326 echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5330 rm -f conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:5332: result: $cf_with_sysmouse" >&5
5333 echo "${ECHO_T}$cf_with_sysmouse" >&6
5334 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5335 #define USE_SYSMOUSE 1
5340 if test X"$CC_G_OPT" = X"" ; then
5342 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5345 if test X"$CXX_G_OPT" = X"" ; then
5347 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5350 echo "$as_me:5350: checking for default loader flags" >&5
5351 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5352 case $DFT_LWR_MODEL in
5353 libtool) LD_MODEL='' ;;
5354 normal) LD_MODEL='' ;;
5355 debug) LD_MODEL=$CC_G_OPT ;;
5356 profile) LD_MODEL='-pg';;
5357 shared) LD_MODEL='' ;;
5359 echo "$as_me:5359: result: $LD_MODEL" >&5
5360 echo "${ECHO_T}$LD_MODEL" >&6
5362 case $DFT_LWR_MODEL in
5365 echo "$as_me:5365: checking if rpath option should be used" >&5
5366 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5368 # Check whether --enable-rpath or --disable-rpath was given.
5369 if test "${enable_rpath+set}" = set; then
5370 enableval="$enable_rpath"
5371 cf_cv_enable_rpath=$enableval
5373 cf_cv_enable_rpath=no
5375 echo "$as_me:5375: result: $cf_cv_enable_rpath" >&5
5376 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5378 echo "$as_me:5378: checking if shared libraries should be relinked during install" >&5
5379 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5381 # Check whether --enable-relink or --disable-relink was given.
5382 if test "${enable_relink+set}" = set; then
5383 enableval="$enable_relink"
5384 cf_cv_do_relink=$enableval
5388 echo "$as_me:5388: result: $cf_cv_do_relink" >&5
5389 echo "${ECHO_T}$cf_cv_do_relink" >&6
5394 echo "$as_me:5394: checking for an rpath option" >&5
5395 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5396 case $cf_cv_system_name in #(vi
5398 if test "$GCC" = yes; then
5399 LD_RPATH_OPT="-Wl,-rpath,"
5401 LD_RPATH_OPT="-rpath "
5404 linux*|gnu*|k*bsd*-gnu) #(vi
5405 LD_RPATH_OPT="-Wl,-rpath,"
5407 openbsd[2-9].*) #(vi
5408 LD_RPATH_OPT="-Wl,-rpath,"
5411 LD_RPATH_OPT="-rpath "
5414 LD_RPATH_OPT="-Wl,-rpath,"
5417 LD_RPATH_OPT="-rpath "
5425 echo "$as_me:5425: result: $LD_RPATH_OPT" >&5
5426 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5428 case "x$LD_RPATH_OPT" in #(vi
5430 echo "$as_me:5430: checking if we need a space after rpath option" >&5
5431 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5432 cf_save_LIBS="$LIBS"
5433 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line 5435 "configure"
5436 #include "confdefs.h"
5446 rm -f conftest.$ac_objext conftest$ac_exeext
5447 if { (eval echo "$as_me:5447: \"$ac_link\"") >&5
5448 (eval $ac_link) 2>&5
5450 echo "$as_me:5450: \$? = $ac_status" >&5
5451 (exit $ac_status); } &&
5452 { ac_try='test -s conftest$ac_exeext'
5453 { (eval echo "$as_me:5453: \"$ac_try\"") >&5
5456 echo "$as_me:5456: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5460 echo "$as_me: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5465 LIBS="$cf_save_LIBS"
5466 echo "$as_me:5466: result: $cf_rpath_space" >&5
5467 echo "${ECHO_T}$cf_rpath_space" >&6
5468 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5475 INSTALL_LIB="-m 644"
5477 cf_cv_do_symlinks=no
5479 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5481 echo "$as_me:5481: checking if release/abi version should be used for shared libs" >&5
5482 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5484 # Check whether --with-shlib-version or --without-shlib-version was given.
5485 if test "${with_shlib_version+set}" = set; then
5486 withval="$with_shlib_version"
5487 test -z "$withval" && withval=auto
5488 case $withval in #(vi
5490 cf_cv_shlib_version=auto
5492 rel|abi|auto|no) #(vi
5493 cf_cv_shlib_version=$withval
5496 { { echo "$as_me:5496: error: option value must be one of: rel, abi, auto or no" >&5
5497 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5498 { (exit 1); exit 1; }; }
5503 cf_cv_shlib_version=auto
5505 echo "$as_me:5505: result: $cf_cv_shlib_version" >&5
5506 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5510 # Some less-capable ports of gcc support only -fpic
5512 if test "$GCC" = yes
5514 echo "$as_me:5514: checking which $CC option to use" >&5
5515 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5516 cf_save_CFLAGS="$CFLAGS"
5517 for CC_SHARED_OPTS in -fPIC -fpic ''
5519 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5520 cat >conftest.$ac_ext <<_ACEOF
5521 #line 5521 "configure"
5522 #include "confdefs.h"
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:5533: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>&5
5536 echo "$as_me:5536: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:5539: \"$ac_try\"") >&5
5542 echo "$as_me:5542: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 rm -f conftest.$ac_objext conftest.$ac_ext
5551 echo "$as_me:5551: result: $CC_SHARED_OPTS" >&5
5552 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5553 CFLAGS="$cf_save_CFLAGS"
5556 cf_cv_shlib_version_infix=no
5558 case $cf_cv_system_name in #(vi
5560 if test "$GCC" = yes; then
5562 MK_SHARED_LIB='$(CC) -shared'
5566 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5570 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5571 cf_cv_shlib_version=cygdll
5572 cf_cv_shlib_version_infix=cygdll
5573 cat >mk_shared_lib.sh <<-CF_EOF
5576 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5579 Linking shared library
5580 ** SHARED_LIB \$SHARED_LIB
5581 ** IMPORT_LIB \$IMPORT_LIB
5583 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5585 chmod +x mk_shared_lib.sh
5588 EXTRA_CFLAGS="-no-cpp-precomp"
5589 CC_SHARED_OPTS="-dynamic"
5590 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5591 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5592 cf_cv_shlib_version_infix=yes
5593 echo "$as_me:5593: checking if ld -search_paths_first works" >&5
5594 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5595 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 cf_save_LDFLAGS=$LDFLAGS
5600 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5601 cat >conftest.$ac_ext <<_ACEOF
5602 #line 5602 "configure"
5603 #include "confdefs.h"
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:5614: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>&5
5617 echo "$as_me:5617: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -s conftest$ac_exeext'
5620 { (eval echo "$as_me:5620: \"$ac_try\"") >&5
5623 echo "$as_me:5623: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 cf_cv_ldflags_search_paths_first=yes
5627 echo "$as_me: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5629 cf_cv_ldflags_search_paths_first=no
5631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5632 LDFLAGS=$cf_save_LDFLAGS
5634 echo "$as_me:5634: result: $cf_cv_ldflags_search_paths_first" >&5
5635 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5636 if test $cf_cv_ldflags_search_paths_first = yes; then
5637 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5641 # (tested with gcc 2.7.2 -- I don't have c89)
5642 if test "$GCC" = yes; then
5643 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5646 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5648 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5649 # HP-UX shared libraries must be executable, and should be
5650 # readonly to exploit a quirk in the memory manager.
5651 INSTALL_LIB="-m 555"
5654 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5655 if test "$cf_cv_shlib_version" = rel; then
5656 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5658 cf_shared_soname='`basename `'
5661 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${libdir} -Wl,-h,'$cf_shared_soname' -o '
5664 if test "$cf_cv_enable_rpath" = yes ; then
5665 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5667 # tested with IRIX 5.2 and 'cc'.
5668 if test "$GCC" != yes; then
5669 CC_SHARED_OPTS='-KPIC'
5670 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5672 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5674 cf_cv_rm_so_locs=yes
5676 linux*|gnu*|k*bsd*-gnu) #(vi
5677 if test "$DFT_LWR_MODEL" = "shared" ; then
5678 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5679 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5681 if test "$cf_cv_enable_rpath" = yes ; then
5682 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5685 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5686 if test "$cf_cv_shlib_version" = rel; then
5687 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5689 cf_cv_shared_soname='`basename $@`'
5692 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5694 openbsd[2-9].*) #(vi
5695 if test "$DFT_LWR_MODEL" = "shared" ; then
5696 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5697 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5699 if test "$cf_cv_enable_rpath" = yes ; then
5700 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5702 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5704 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5705 if test "$cf_cv_shlib_version" = rel; then
5706 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5708 cf_cv_shared_soname='`basename $@`'
5711 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5713 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5714 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5715 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5716 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5719 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5720 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5721 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5722 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
5723 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5726 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5727 if test "$cf_cv_shlib_version" = rel; then
5728 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5730 cf_cv_shared_soname='`basename $@`'
5733 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5736 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5737 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5738 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5739 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5740 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5741 if test "$cf_cv_shlib_version" = auto; then
5742 if test -f /usr/libexec/ld.elf_so; then
5743 cf_cv_shlib_version=abi
5745 cf_cv_shlib_version=rel
5749 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5750 if test "$cf_cv_shlib_version" = rel; then
5751 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5753 cf_cv_shared_soname='`basename $@`'
5756 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5758 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5762 # tested with OSF/1 V3.2 and 'cc'
5763 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5764 # link with shared libs).
5765 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5766 case $host_os in #(vi
5768 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5771 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5772 if test "$DFT_LWR_MODEL" = "shared" ; then
5773 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5774 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5776 cf_cv_rm_so_locs=yes
5778 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5779 # tested with osr5.0.5
5780 if test "$GCC" != yes; then
5781 CC_SHARED_OPTS='-belf -KPIC'
5783 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5784 if test "$cf_cv_enable_rpath" = yes ; then
5785 # only way is to set LD_RUN_PATH but no switch for it
5788 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5789 LINK_PROGS='LD_RUN_PATH=${libdir}'
5790 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5793 # tested with SunOS 4.1.1 and gcc 2.7.0
5794 if test "$GCC" != yes; then
5795 CC_SHARED_OPTS='-KPIC'
5797 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5798 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5801 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5802 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5803 if test "$DFT_LWR_MODEL" = "shared" ; then
5804 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5805 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5807 if test "$cf_cv_enable_rpath" = yes ; then
5808 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5811 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5812 if test "$cf_cv_shlib_version" = rel; then
5813 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5815 cf_cv_shared_soname='`basename $@`'
5818 if test "$GCC" != yes; then
5819 cf_save_CFLAGS="$CFLAGS"
5820 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5822 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line 5824 "configure"
5825 #include "confdefs.h"
5835 rm -f conftest.$ac_objext
5836 if { (eval echo "$as_me:5836: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>&5
5839 echo "$as_me:5839: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:5842: \"$ac_try\"") >&5
5845 echo "$as_me:5845: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5849 echo "$as_me: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 rm -f conftest.$ac_objext conftest.$ac_ext
5854 CFLAGS="$cf_save_CFLAGS"
5855 CC_SHARED_OPTS=$cf_shared_opts
5856 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5858 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5861 sysv5uw7*|unix_sv*) #(vi
5862 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5863 if test "$GCC" != yes; then
5864 CC_SHARED_OPTS='-KPIC'
5866 MK_SHARED_LIB='${LD} -d y -G -o $@'
5869 CC_SHARED_OPTS='unknown'
5870 MK_SHARED_LIB='echo unknown'
5874 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5875 case "$cf_cv_shlib_version" in #(vi
5877 case "$MK_SHARED_LIB" in #(vi
5879 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5882 { echo "$as_me:5882: WARNING: ignored --with-shlib-version" >&5
5883 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5889 if test -n "$cf_ld_rpath_opt" ; then
5890 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5893 if test "$CC_SHARED_OPTS" = "unknown"; then
5894 for model in $cf_list_models; do
5895 if test "$model" = "shared"; then
5896 { { echo "$as_me:5896: error: Shared libraries are not supported in this version" >&5
5897 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5898 { (exit 1); exit 1; }; }
5903 ### If we're building with rpath, try to link non-standard libs that way too.
5904 if test "$DFT_LWR_MODEL" = "shared"; then
5906 echo "$as_me:5906: checking if rpath-hack should be disabled" >&5
5907 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
5909 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
5910 if test "${enable_rpath_hack+set}" = set; then
5911 enableval="$enable_rpath_hack"
5912 test "$enableval" != no && enableval=yes
5913 if test "$enableval" != "yes" ; then
5914 cf_disable_rpath_hack=yes
5916 cf_disable_rpath_hack=no
5920 cf_disable_rpath_hack=no
5923 echo "$as_me:5923: result: $cf_disable_rpath_hack" >&5
5924 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
5925 if test "$cf_disable_rpath_hack" = no ; then
5927 echo "$as_me:5927: checking for updated LDFLAGS" >&5
5928 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
5929 if test -n "$LD_RPATH_OPT" ; then
5930 echo "$as_me:5930: result: maybe" >&5
5931 echo "${ECHO_T}maybe" >&6
5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy $ac_prog; ac_word=$2
5937 echo "$as_me:5937: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 if test -n "$cf_ldd_prog"; then
5943 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
5945 ac_save_IFS=$IFS; IFS=$ac_path_separator
5947 for ac_dir in $ac_dummy; do
5949 test -z "$ac_dir" && ac_dir=.
5950 $as_executable_p "$ac_dir/$ac_word" || continue
5951 ac_cv_prog_cf_ldd_prog="$ac_prog"
5952 echo "$as_me:5952: found $ac_dir/$ac_word" >&5
5958 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
5959 if test -n "$cf_ldd_prog"; then
5960 echo "$as_me:5960: result: $cf_ldd_prog" >&5
5961 echo "${ECHO_T}$cf_ldd_prog" >&6
5963 echo "$as_me:5963: result: no" >&5
5964 echo "${ECHO_T}no" >&6
5967 test -n "$cf_ldd_prog" && break
5969 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
5971 cf_rpath_list="/usr/lib /lib"
5972 if test "$cf_ldd_prog" != no
5976 cat >conftest.$ac_ext <<_ACEOF
5977 #line 5977 "configure"
5978 #include "confdefs.h"
5988 rm -f conftest.$ac_objext conftest$ac_exeext
5989 if { (eval echo "$as_me:5989: \"$ac_link\"") >&5
5990 (eval $ac_link) 2>&5
5992 echo "$as_me:5992: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -s conftest$ac_exeext'
5995 { (eval echo "$as_me:5995: \"$ac_try\"") >&5
5998 echo "$as_me:5998: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6001 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6003 echo "$as_me: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6008 # If we passed the link-test, but get a "not found" on a given library,
6009 # this could be due to inept reconfiguration of gcc to make it only
6010 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6011 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6012 # /usr/local libraries.
6013 if test -n "$cf_rpath_oops"
6015 for cf_rpath_src in $cf_rpath_oops
6017 for cf_rpath_dir in \
6022 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6024 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6026 echo "${as_me:-configure}:6026: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6028 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6036 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6038 echo "${as_me:-configure}:6038: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6040 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6042 echo "${as_me:-configure}:6042: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6045 for cf_rpath_src in $LDFLAGS
6047 case $cf_rpath_src in #(vi
6050 # check if this refers to a directory which we will ignore
6052 if test -n "$cf_rpath_list"
6054 for cf_rpath_item in $cf_rpath_list
6056 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6064 if test "$cf_rpath_skip" = no
6066 # transform the option
6067 if test "$LD_RPATH_OPT" = "-R " ; then
6068 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6070 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6073 # if we have not already added this, add it now
6074 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6075 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6077 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6079 echo "${as_me:-configure}:6079: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6081 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6086 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6088 LDFLAGS=$cf_rpath_dst
6090 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6092 echo "${as_me:-configure}:6092: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6094 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6096 echo "${as_me:-configure}:6096: testing ...checking LIBS $LIBS ..." 1>&5
6099 for cf_rpath_src in $LIBS
6101 case $cf_rpath_src in #(vi
6104 # check if this refers to a directory which we will ignore
6106 if test -n "$cf_rpath_list"
6108 for cf_rpath_item in $cf_rpath_list
6110 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6118 if test "$cf_rpath_skip" = no
6120 # transform the option
6121 if test "$LD_RPATH_OPT" = "-R " ; then
6122 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6124 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6127 # if we have not already added this, add it now
6128 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6129 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6131 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6133 echo "${as_me:-configure}:6133: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6135 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6140 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6144 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6146 echo "${as_me:-configure}:6146: testing ...checked LIBS $LIBS ..." 1>&5
6148 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6150 echo "${as_me:-configure}:6150: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6158 ###############################################################################
6160 ### use option --disable-overwrite to leave out the link to -lcurses
6161 echo "$as_me:6161: checking if you wish to install ncurses overwriting curses" >&5
6162 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6164 # Check whether --enable-overwrite or --disable-overwrite was given.
6165 if test "${enable_overwrite+set}" = set; then
6166 enableval="$enable_overwrite"
6167 with_overwrite=$enableval
6169 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6171 echo "$as_me:6171: result: $with_overwrite" >&5
6172 echo "${ECHO_T}$with_overwrite" >&6
6174 echo "$as_me:6174: checking if external terminfo-database is used" >&5
6175 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6177 # Check whether --enable-database or --disable-database was given.
6178 if test "${enable_database+set}" = set; then
6179 enableval="$enable_database"
6180 use_database=$enableval
6184 echo "$as_me:6184: result: $use_database" >&5
6185 echo "${ECHO_T}$use_database" >&6
6187 case $host_os in #(vi
6189 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6192 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6196 case $cf_cv_system_name in
6197 os2*) PATH_SEPARATOR=';' ;;
6198 *) PATH_SEPARATOR=':' ;;
6201 if test "$use_database" != no ; then
6202 cat >>confdefs.h <<\EOF
6203 #define USE_DATABASE 1
6206 echo "$as_me:6206: checking which terminfo source-file will be installed" >&5
6207 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6209 # Check whether --with-database or --without-database was given.
6210 if test "${with_database+set}" = set; then
6211 withval="$with_database"
6212 TERMINFO_SRC=$withval
6214 echo "$as_me:6214: result: $TERMINFO_SRC" >&5
6215 echo "${ECHO_T}$TERMINFO_SRC" >&6
6217 echo "$as_me:6217: checking whether to use hashed database instead of directory/tree" >&5
6218 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6220 # Check whether --with-hashed-db or --without-hashed-db was given.
6221 if test "${with_hashed_db+set}" = set; then
6222 withval="$with_hashed_db"
6227 echo "$as_me:6227: result: $with_hashed_db" >&5
6228 echo "${ECHO_T}$with_hashed_db" >&6
6233 echo "$as_me:6233: checking for list of fallback descriptions" >&5
6234 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6236 # Check whether --with-fallbacks or --without-fallbacks was given.
6237 if test "${with_fallbacks+set}" = set; then
6238 withval="$with_fallbacks"
6239 with_fallback=$withval
6243 echo "$as_me:6243: result: $with_fallback" >&5
6244 echo "${ECHO_T}$with_fallback" >&6
6245 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6247 echo "$as_me:6247: checking if you want modern xterm or antique" >&5
6248 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6250 # Check whether --with-xterm-new or --without-xterm-new was given.
6251 if test "${with_xterm_new+set}" = set; then
6252 withval="$with_xterm_new"
6253 with_xterm_new=$withval
6257 case $with_xterm_new in
6258 no) with_xterm_new=xterm-old;;
6259 *) with_xterm_new=xterm-new;;
6261 echo "$as_me:6261: result: $with_xterm_new" >&5
6262 echo "${ECHO_T}$with_xterm_new" >&6
6263 WHICH_XTERM=$with_xterm_new
6266 if test "$use_database" = no ; then
6267 TERMINFO="${datadir}/terminfo"
6271 echo "$as_me:6271: checking for list of terminfo directories" >&5
6272 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6274 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6275 if test "${with_terminfo_dirs+set}" = set; then
6276 withval="$with_terminfo_dirs"
6279 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6281 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6283 for cf_src_path in $withval
6286 if test "x$prefix" != xNONE; then
6287 cf_path_syntax="$prefix"
6289 cf_path_syntax="$ac_default_prefix"
6292 case ".$cf_src_path" in #(vi
6293 .\$\(*\)*|.\'*\'*) #(vi
6297 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6300 eval cf_src_path="$cf_src_path"
6301 case ".$cf_src_path" in #(vi
6303 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6308 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6311 { { echo "$as_me:6311: error: expected a pathname, not \"$cf_src_path\"" >&5
6312 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6313 { (exit 1); exit 1; }; }
6317 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6318 cf_dst_path="${cf_dst_path}${cf_src_path}"
6322 eval 'TERMINFO_DIRS="$cf_dst_path"'
6324 echo "$as_me:6324: result: $TERMINFO_DIRS" >&5
6325 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6326 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6327 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6330 echo "$as_me:6330: checking for default terminfo directory" >&5
6331 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6333 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6334 if test "${with_default_terminfo_dir+set}" = set; then
6335 withval="$with_default_terminfo_dir"
6338 withval="${TERMINFO:-${datadir}/terminfo}"
6339 fi; if test -n "${datadir}/terminfo" ; then
6341 if test "x$prefix" != xNONE; then
6342 cf_path_syntax="$prefix"
6344 cf_path_syntax="$ac_default_prefix"
6347 case ".$withval" in #(vi
6348 .\$\(*\)*|.\'*\'*) #(vi
6352 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6355 eval withval="$withval"
6356 case ".$withval" in #(vi
6358 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6363 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6366 { { echo "$as_me:6366: error: expected a pathname, not \"$withval\"" >&5
6367 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6368 { (exit 1); exit 1; }; }
6375 echo "$as_me:6375: result: $TERMINFO" >&5
6376 echo "${ECHO_T}$TERMINFO" >&6
6377 cat >>confdefs.h <<EOF
6378 #define TERMINFO "$TERMINFO"
6383 ### use option --disable-big-core to make tic run on small machines
6384 ### We need 4Mb, check if we can allocate 50% more than that.
6385 echo "$as_me:6385: checking if big-core option selected" >&5
6386 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6388 # Check whether --enable-big-core or --disable-big-core was given.
6389 if test "${enable_big_core+set}" = set; then
6390 enableval="$enable_big_core"
6391 with_big_core=$enableval
6393 if test "$cross_compiling" = yes; then
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line 6397 "configure"
6398 #include "confdefs.h"
6403 unsigned long n = 6000000L;
6404 char *s = malloc(n);
6407 ${cf_cv_main_return:-return}(s == 0);
6410 rm -f conftest$ac_exeext
6411 if { (eval echo "$as_me:6411: \"$ac_link\"") >&5
6412 (eval $ac_link) 2>&5
6414 echo "$as_me:6414: \$? = $ac_status" >&5
6415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6416 { (eval echo "$as_me:6416: \"$ac_try\"") >&5
6419 echo "$as_me:6419: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6423 echo "$as_me: program exited with status $ac_status" >&5
6424 echo "$as_me: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6428 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6431 echo "$as_me:6431: result: $with_big_core" >&5
6432 echo "${ECHO_T}$with_big_core" >&6
6433 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6434 #define HAVE_BIG_CORE 1
6437 ### ISO C only guarantees 512-char strings, we have tables which load faster
6438 ### when constructed using "big" strings. More than the C compiler, the awk
6439 ### program is a limit on most vendor UNIX systems. Check that we can build.
6440 echo "$as_me:6440: checking if big-strings option selected" >&5
6441 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6443 # Check whether --enable-big-strings or --disable-big-strings was given.
6444 if test "${enable_big_strings+set}" = set; then
6445 enableval="$enable_big_strings"
6446 with_big_strings=$enableval
6451 eval with_big_strings=no
6454 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
6455 | $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
6456 eval with_big_strings=yes
6458 eval with_big_strings=no
6464 echo "$as_me:6464: result: $with_big_strings" >&5
6465 echo "${ECHO_T}$with_big_strings" >&6
6468 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6470 ### use option --enable-termcap to compile in the termcap fallback support
6471 echo "$as_me:6471: checking if you want termcap-fallback support" >&5
6472 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6474 # Check whether --enable-termcap or --disable-termcap was given.
6475 if test "${enable_termcap+set}" = set; then
6476 enableval="$enable_termcap"
6477 with_termcap=$enableval
6481 echo "$as_me:6481: result: $with_termcap" >&5
6482 echo "${ECHO_T}$with_termcap" >&6
6484 if test "$with_termcap" != "yes" ; then
6485 if test "$use_database" = no ; then
6486 if test -z "$with_fallback" ; then
6487 { { echo "$as_me:6487: error: You have disabled the database w/o specifying fallbacks" >&5
6488 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6489 { (exit 1); exit 1; }; }
6492 cat >>confdefs.h <<\EOF
6493 #define PURE_TERMINFO 1
6498 if test "$with_ticlib" != no ; then
6499 { { echo "$as_me:6499: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6500 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6501 { (exit 1); exit 1; }; }
6504 cat >>confdefs.h <<\EOF
6505 #define USE_TERMCAP 1
6508 echo "$as_me:6508: checking for list of termcap files" >&5
6509 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6511 # Check whether --with-termpath or --without-termpath was given.
6512 if test "${with_termpath+set}" = set; then
6513 withval="$with_termpath"
6516 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6518 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6520 for cf_src_path in $withval
6523 if test "x$prefix" != xNONE; then
6524 cf_path_syntax="$prefix"
6526 cf_path_syntax="$ac_default_prefix"
6529 case ".$cf_src_path" in #(vi
6530 .\$\(*\)*|.\'*\'*) #(vi
6534 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6537 eval cf_src_path="$cf_src_path"
6538 case ".$cf_src_path" in #(vi
6540 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6545 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6548 { { echo "$as_me:6548: error: expected a pathname, not \"$cf_src_path\"" >&5
6549 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6550 { (exit 1); exit 1; }; }
6554 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6555 cf_dst_path="${cf_dst_path}${cf_src_path}"
6559 eval 'TERMPATH="$cf_dst_path"'
6561 echo "$as_me:6561: result: $TERMPATH" >&5
6562 echo "${ECHO_T}$TERMPATH" >&6
6563 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6564 #define TERMPATH "$TERMPATH"
6567 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6568 echo "$as_me:6568: checking if fast termcap-loader is needed" >&5
6569 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6571 # Check whether --enable-getcap or --disable-getcap was given.
6572 if test "${enable_getcap+set}" = set; then
6573 enableval="$enable_getcap"
6574 with_getcap=$enableval
6578 echo "$as_me:6578: result: $with_getcap" >&5
6579 echo "${ECHO_T}$with_getcap" >&6
6580 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6581 #define USE_GETCAP 1
6584 echo "$as_me:6584: checking if translated termcaps will be cached in ~/.terminfo" >&5
6585 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6587 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6588 if test "${enable_getcap_cache+set}" = set; then
6589 enableval="$enable_getcap_cache"
6590 with_getcap_cache=$enableval
6592 with_getcap_cache=no
6594 echo "$as_me:6594: result: $with_getcap_cache" >&5
6595 echo "${ECHO_T}$with_getcap_cache" >&6
6596 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6597 #define USE_GETCAP_CACHE 1
6602 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6603 echo "$as_me:6603: checking if ~/.terminfo is wanted" >&5
6604 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6606 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6607 if test "${enable_home_terminfo+set}" = set; then
6608 enableval="$enable_home_terminfo"
6609 with_home_terminfo=$enableval
6611 with_home_terminfo=yes
6613 echo "$as_me:6613: result: $with_home_terminfo" >&5
6614 echo "${ECHO_T}$with_home_terminfo" >&6
6615 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6616 #define USE_HOME_TERMINFO 1
6619 echo "$as_me:6619: checking if you want to use restricted environment when running as root" >&5
6620 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6622 # Check whether --enable-root-environ or --disable-root-environ was given.
6623 if test "${enable_root_environ+set}" = set; then
6624 enableval="$enable_root_environ"
6625 with_root_environ=$enableval
6627 with_root_environ=yes
6629 echo "$as_me:6629: result: $with_root_environ" >&5
6630 echo "${ECHO_T}$with_root_environ" >&6
6631 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6632 #define USE_ROOT_ENVIRON 1
6635 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6636 ### to reduce storage requirements for the terminfo database.
6642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6643 echo "$as_me:6643: checking for $ac_func" >&5
6644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6645 if eval "test \"\${$as_ac_var+set}\" = set"; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6649 #line 6649 "configure"
6650 #include "confdefs.h"
6651 /* System header to define __stub macros and hopefully few prototypes,
6652 which can conflict with char $ac_func (); below. */
6654 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6666 /* The GNU C library defines this for functions which it implements
6667 to always fail with ENOSYS. Some functions are actually named
6668 something starting with __ and the normal name is an alias. */
6669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (eval echo "$as_me:6680: \"$ac_link\"") >&5
6681 (eval $ac_link) 2>&5
6683 echo "$as_me:6683: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -s conftest$ac_exeext'
6686 { (eval echo "$as_me:6686: \"$ac_try\"") >&5
6689 echo "$as_me:6689: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 eval "$as_ac_var=yes"
6693 echo "$as_me: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6695 eval "$as_ac_var=no"
6697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6699 echo "$as_me:6699: result: `eval echo '${'$as_ac_var'}'`" >&5
6700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6701 if test `eval echo '${'$as_ac_var'}'` = yes; then
6702 cat >>confdefs.h <<EOF
6703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6709 if test "$cross_compiling" = yes ; then
6715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6716 echo "$as_me:6716: checking for $ac_func" >&5
6717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6718 if eval "test \"\${$as_ac_var+set}\" = set"; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 cat >conftest.$ac_ext <<_ACEOF
6722 #line 6722 "configure"
6723 #include "confdefs.h"
6724 /* System header to define __stub macros and hopefully few prototypes,
6725 which can conflict with char $ac_func (); below. */
6727 /* Override any gcc2 internal prototype to avoid an error. */
6731 /* We use char because int might match the return type of a gcc2
6732 builtin and then its argument prototype would still apply. */
6739 /* The GNU C library defines this for functions which it implements
6740 to always fail with ENOSYS. Some functions are actually named
6741 something starting with __ and the normal name is an alias. */
6742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6752 rm -f conftest.$ac_objext conftest$ac_exeext
6753 if { (eval echo "$as_me:6753: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>&5
6756 echo "$as_me:6756: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -s conftest$ac_exeext'
6759 { (eval echo "$as_me:6759: \"$ac_try\"") >&5
6762 echo "$as_me:6762: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 eval "$as_ac_var=yes"
6766 echo "$as_me: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6768 eval "$as_ac_var=no"
6770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6772 echo "$as_me:6772: result: `eval echo '${'$as_ac_var'}'`" >&5
6773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6774 if test `eval echo '${'$as_ac_var'}'` = yes; then
6775 cat >>confdefs.h <<EOF
6776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6783 echo "$as_me:6783: checking if link/symlink functions work" >&5
6784 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6785 if test "${cf_cv_link_funcs+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 for cf_func in link symlink ; do
6791 if test "$cross_compiling" = yes; then
6793 eval 'ac_cv_func_'$cf_func'=error'
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6799 #include <sys/types.h>
6800 #include <sys/stat.h>
6801 #ifdef HAVE_UNISTD_H
6807 char *src = "config.log";
6808 char *dst = "conftest.chk";
6813 fail = ($cf_func("config.log", "conftest.chk") < 0)
6814 || (stat(dst, &dst_sb) < 0)
6815 || (dst_sb.st_mtime != src_sb.st_mtime);
6821 ${cf_cv_main_return:-return} (fail);
6825 rm -f conftest$ac_exeext
6826 if { (eval echo "$as_me:6826: \"$ac_link\"") >&5
6827 (eval $ac_link) 2>&5
6829 echo "$as_me:6829: \$? = $ac_status" >&5
6830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6831 { (eval echo "$as_me:6831: \"$ac_try\"") >&5
6834 echo "$as_me:6834: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6837 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6838 eval 'ac_cv_func_'$cf_func'=yes'
6840 echo "$as_me: program exited with status $ac_status" >&5
6841 echo "$as_me: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6844 eval 'ac_cv_func_'$cf_func'=no'
6846 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6849 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6852 echo "$as_me:6852: result: $cf_cv_link_funcs" >&5
6853 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6854 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6858 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6859 #define HAVE_SYMLINK 1
6867 # soft links (symbolic links) are useful for some systems where hard links do
6868 # not work, or to make it simpler to copy terminfo trees around.
6869 if test "$ac_cv_func_symlink" = yes ; then
6870 echo "$as_me:6870: checking if tic should use symbolic links" >&5
6871 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6873 # Check whether --enable-symlinks or --disable-symlinks was given.
6874 if test "${enable_symlinks+set}" = set; then
6875 enableval="$enable_symlinks"
6876 with_symlinks=$enableval
6880 echo "$as_me:6880: result: $with_symlinks" >&5
6881 echo "${ECHO_T}$with_symlinks" >&6
6884 # If we have hard links and did not choose to use soft links instead, there is
6885 # no reason to make this choice optional - use the hard links.
6886 if test "$with_symlinks" = no ; then
6887 echo "$as_me:6887: checking if tic should use hard links" >&5
6888 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6889 if test "$ac_cv_func_link" = yes ; then
6894 echo "$as_me:6894: result: $with_links" >&5
6895 echo "${ECHO_T}$with_links" >&6
6898 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6902 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6903 #define USE_SYMLINKS 1
6906 ### use option --enable-broken-linker to force on use of broken-linker support
6907 echo "$as_me:6907: checking if you want broken-linker support code" >&5
6908 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6910 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6911 if test "${enable_broken_linker+set}" = set; then
6912 enableval="$enable_broken_linker"
6913 with_broken_linker=$enableval
6915 with_broken_linker=${BROKEN_LINKER:-no}
6917 echo "$as_me:6917: result: $with_broken_linker" >&5
6918 echo "${ECHO_T}$with_broken_linker" >&6
6921 if test "$with_broken_linker" = yes ; then
6922 cat >>confdefs.h <<\EOF
6923 #define BROKEN_LINKER 1
6927 elif test "$DFT_LWR_MODEL" = shared ; then
6928 case $cf_cv_system_name in #(vi
6930 cat >>confdefs.h <<\EOF
6931 #define BROKEN_LINKER 1
6935 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6937 echo "${as_me:-configure}:6937: testing cygwin linker is broken anyway ..." 1>&5
6943 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6944 echo "$as_me:6944: checking if tputs should process BSD-style prefix padding" >&5
6945 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6947 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6948 if test "${enable_bsdpad+set}" = set; then
6949 enableval="$enable_bsdpad"
6950 with_bsdpad=$enableval
6954 echo "$as_me:6954: result: $with_bsdpad" >&5
6955 echo "${ECHO_T}$with_bsdpad" >&6
6956 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6960 ### use option --enable-widec to turn on use of wide-character support
6969 # Check to define _XOPEN_SOURCE "automatically"
6972 cf_POSIX_C_SOURCE=199506L
6975 case $host_os in #(vi
6977 cf_xopen_source="-D_ALL_SOURCE"
6983 cf_xopen_source="-D_APPLE_C_SOURCE"
6986 cf_xopen_source="-D_DARWIN_C_SOURCE"
6988 freebsd*|dragonfly*) #(vi
6989 # 5.x headers associate
6990 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6991 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6992 cf_POSIX_C_SOURCE=200112L
6994 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6997 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7000 cf_xopen_source="-D_HPUX_SOURCE"
7003 cf_xopen_source="-D_SGI_SOURCE"
7005 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7007 echo "$as_me:7007: checking if we must define _GNU_SOURCE" >&5
7008 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7009 if test "${cf_cv_gnu_source+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 cat >conftest.$ac_ext <<_ACEOF
7014 #line 7014 "configure"
7015 #include "confdefs.h"
7016 #include <sys/types.h>
7021 #ifndef _XOPEN_SOURCE
7028 rm -f conftest.$ac_objext
7029 if { (eval echo "$as_me:7029: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>&5
7032 echo "$as_me:7032: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:7035: \"$ac_try\"") >&5
7038 echo "$as_me:7038: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7042 echo "$as_me: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line 7047 "configure"
7048 #include "confdefs.h"
7049 #include <sys/types.h>
7054 #ifdef _XOPEN_SOURCE
7061 rm -f conftest.$ac_objext
7062 if { (eval echo "$as_me:7062: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>&5
7065 echo "$as_me:7065: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -s conftest.$ac_objext'
7068 { (eval echo "$as_me:7068: \"$ac_try\"") >&5
7071 echo "$as_me:7071: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7075 echo "$as_me: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 cf_cv_gnu_source=yes
7079 rm -f conftest.$ac_objext conftest.$ac_ext
7083 rm -f conftest.$ac_objext conftest.$ac_ext
7086 echo "$as_me:7086: result: $cf_cv_gnu_source" >&5
7087 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7088 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7092 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
7095 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7098 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7101 cf_xopen_source="-D_OSF_SOURCE"
7104 cf_xopen_source="-D_QNX_SOURCE"
7107 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7109 solaris2.1[0-9]) #(vi
7110 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7112 solaris2.[1-9]) #(vi
7113 cf_xopen_source="-D__EXTENSIONS__"
7116 echo "$as_me:7116: checking if we should define _XOPEN_SOURCE" >&5
7117 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7118 if test "${cf_cv_xopen_source+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line 7123 "configure"
7124 #include "confdefs.h"
7125 #include <sys/types.h>
7130 #ifndef _XOPEN_SOURCE
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:7138: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7141 echo "$as_me:7141: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:7144: \"$ac_try\"") >&5
7147 echo "$as_me:7147: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 cf_cv_xopen_source=no
7151 echo "$as_me: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7154 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line 7156 "configure"
7157 #include "confdefs.h"
7158 #include <sys/types.h>
7163 #ifdef _XOPEN_SOURCE
7170 rm -f conftest.$ac_objext
7171 if { (eval echo "$as_me:7171: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>&5
7174 echo "$as_me:7174: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -s conftest.$ac_objext'
7177 { (eval echo "$as_me:7177: \"$ac_try\"") >&5
7180 echo "$as_me:7180: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 cf_cv_xopen_source=no
7184 echo "$as_me: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7188 rm -f conftest.$ac_objext conftest.$ac_ext
7192 rm -f conftest.$ac_objext conftest.$ac_ext
7195 echo "$as_me:7195: result: $cf_cv_xopen_source" >&5
7196 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7197 if test "$cf_cv_xopen_source" != no ; then
7199 CFLAGS=`echo "$CFLAGS" | \
7200 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7201 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7203 CPPFLAGS=`echo "$CPPFLAGS" | \
7204 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7205 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7207 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7212 cf_new_extra_cppflags=
7214 for cf_add_cflags in $cf_temp_xopen_source
7216 case $cf_fix_cppflags in
7218 case $cf_add_cflags in #(vi
7219 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7220 case $cf_add_cflags in
7222 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7224 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7225 && test -z "${cf_tst_cflags}" \
7226 && cf_fix_cppflags=yes
7228 if test $cf_fix_cppflags = yes ; then
7229 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7231 elif test "${cf_tst_cflags}" = "\"'" ; then
7232 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7238 *$cf_add_cflags) #(vi
7241 case $cf_add_cflags in #(vi
7243 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7245 CPPFLAGS=`echo "$CPPFLAGS" | \
7246 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7247 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7251 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7256 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7261 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7263 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7265 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7266 && test -z "${cf_tst_cflags}" \
7267 && cf_fix_cppflags=no
7272 if test -n "$cf_new_cflags" ; then
7274 CFLAGS="$CFLAGS $cf_new_cflags"
7277 if test -n "$cf_new_cppflags" ; then
7279 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7282 if test -n "$cf_new_extra_cppflags" ; then
7284 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7289 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7291 cf_save_CFLAGS="$CFLAGS"
7292 cf_save_CPPFLAGS="$CPPFLAGS"
7294 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7295 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7296 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7298 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7299 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7300 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7302 echo "$as_me:7302: checking if we should define _POSIX_C_SOURCE" >&5
7303 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7304 if test "${cf_cv_posix_c_source+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 echo "${as_me:-configure}:7308: testing if the symbol is already defined go no further ..." 1>&5
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line 7311 "configure"
7312 #include "confdefs.h"
7313 #include <sys/types.h>
7318 #ifndef _POSIX_C_SOURCE
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:7326: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>&5
7329 echo "$as_me:7329: \$? = $ac_status" >&5
7330 (exit $ac_status); } &&
7331 { ac_try='test -s conftest.$ac_objext'
7332 { (eval echo "$as_me:7332: \"$ac_try\"") >&5
7335 echo "$as_me:7335: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 cf_cv_posix_c_source=no
7339 echo "$as_me: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 cf_want_posix_source=no
7342 case .$cf_POSIX_C_SOURCE in #(vi
7344 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7347 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7348 cf_want_posix_source=yes
7351 cf_want_posix_source=yes
7354 if test "$cf_want_posix_source" = yes ; then
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7358 #include <sys/types.h>
7363 #ifdef _POSIX_SOURCE
7370 rm -f conftest.$ac_objext
7371 if { (eval echo "$as_me:7371: \"$ac_compile\"") >&5
7372 (eval $ac_compile) 2>&5
7374 echo "$as_me:7374: \$? = $ac_status" >&5
7375 (exit $ac_status); } &&
7376 { ac_try='test -s conftest.$ac_objext'
7377 { (eval echo "$as_me:7377: \"$ac_try\"") >&5
7380 echo "$as_me:7380: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7384 echo "$as_me: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7386 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7388 rm -f conftest.$ac_objext conftest.$ac_ext
7391 echo "${as_me:-configure}:7391: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7393 CFLAGS="$cf_trim_CFLAGS"
7394 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7396 echo "${as_me:-configure}:7396: testing if the second compile does not leave our definition intact error ..." 1>&5
7398 cat >conftest.$ac_ext <<_ACEOF
7399 #line 7399 "configure"
7400 #include "confdefs.h"
7401 #include <sys/types.h>
7406 #ifndef _POSIX_C_SOURCE
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:7414: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>&5
7417 echo "$as_me:7417: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:7420: \"$ac_try\"") >&5
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7427 echo "$as_me: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7429 cf_cv_posix_c_source=no
7431 rm -f conftest.$ac_objext conftest.$ac_ext
7432 CFLAGS="$cf_save_CFLAGS"
7433 CPPFLAGS="$cf_save_CPPFLAGS"
7436 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:7439: result: $cf_cv_posix_c_source" >&5
7440 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7442 if test "$cf_cv_posix_c_source" != no ; then
7443 CFLAGS="$cf_trim_CFLAGS"
7444 CPPFLAGS="$cf_trim_CPPFLAGS"
7449 cf_new_extra_cppflags=
7451 for cf_add_cflags in $cf_cv_posix_c_source
7453 case $cf_fix_cppflags in
7455 case $cf_add_cflags in #(vi
7456 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7457 case $cf_add_cflags in
7459 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7461 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7462 && test -z "${cf_tst_cflags}" \
7463 && cf_fix_cppflags=yes
7465 if test $cf_fix_cppflags = yes ; then
7466 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7468 elif test "${cf_tst_cflags}" = "\"'" ; then
7469 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7475 *$cf_add_cflags) #(vi
7478 case $cf_add_cflags in #(vi
7480 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7482 CPPFLAGS=`echo "$CPPFLAGS" | \
7483 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7484 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7488 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7493 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7498 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7500 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7502 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7503 && test -z "${cf_tst_cflags}" \
7504 && cf_fix_cppflags=no
7509 if test -n "$cf_new_cflags" ; then
7511 CFLAGS="$CFLAGS $cf_new_cflags"
7514 if test -n "$cf_new_cppflags" ; then
7516 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7519 if test -n "$cf_new_extra_cppflags" ; then
7521 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7529 if test -n "$cf_xopen_source" ; then
7534 cf_new_extra_cppflags=
7536 for cf_add_cflags in $cf_xopen_source
7538 case $cf_fix_cppflags in
7540 case $cf_add_cflags in #(vi
7541 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7542 case $cf_add_cflags in
7544 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7546 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7547 && test -z "${cf_tst_cflags}" \
7548 && cf_fix_cppflags=yes
7550 if test $cf_fix_cppflags = yes ; then
7551 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7553 elif test "${cf_tst_cflags}" = "\"'" ; then
7554 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7560 *$cf_add_cflags) #(vi
7563 case $cf_add_cflags in #(vi
7565 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7567 CPPFLAGS=`echo "$CPPFLAGS" | \
7568 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7569 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7573 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7578 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7583 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7585 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7587 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7588 && test -z "${cf_tst_cflags}" \
7589 && cf_fix_cppflags=no
7594 if test -n "$cf_new_cflags" ; then
7596 CFLAGS="$CFLAGS $cf_new_cflags"
7599 if test -n "$cf_new_cppflags" ; then
7601 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7604 if test -n "$cf_new_extra_cppflags" ; then
7606 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7611 # Work around breakage on OS X
7613 echo "$as_me:7613: checking if SIGWINCH is defined" >&5
7614 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
7615 if test "${cf_cv_define_sigwinch+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 cat >conftest.$ac_ext <<_ACEOF
7620 #line 7620 "configure"
7621 #include "confdefs.h"
7623 #include <sys/types.h>
7624 #include <sys/signal.h>
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:7635: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>&5
7638 echo "$as_me:7638: \$? = $ac_status" >&5
7639 (exit $ac_status); } &&
7640 { ac_try='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:7641: \"$ac_try\"") >&5
7644 echo "$as_me:7644: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 cf_cv_define_sigwinch=yes
7648 echo "$as_me: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7650 cat >conftest.$ac_ext <<_ACEOF
7651 #line 7651 "configure"
7652 #include "confdefs.h"
7654 #undef _XOPEN_SOURCE
7655 #undef _POSIX_SOURCE
7656 #undef _POSIX_C_SOURCE
7657 #include <sys/types.h>
7658 #include <sys/signal.h>
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:7669: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>&5
7672 echo "$as_me:7672: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -s conftest.$ac_objext'
7675 { (eval echo "$as_me:7675: \"$ac_try\"") >&5
7678 echo "$as_me:7678: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 cf_cv_define_sigwinch=maybe
7682 echo "$as_me: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 cf_cv_define_sigwinch=no
7686 rm -f conftest.$ac_objext conftest.$ac_ext
7689 rm -f conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:7692: result: $cf_cv_define_sigwinch" >&5
7693 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
7695 if test "$cf_cv_define_sigwinch" = maybe ; then
7696 echo "$as_me:7696: checking for actual SIGWINCH definition" >&5
7697 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7698 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 cf_cv_fixup_sigwinch=unknown
7704 while test $cf_sigwinch != 1
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line 7707 "configure"
7708 #include "confdefs.h"
7710 #undef _XOPEN_SOURCE
7711 #undef _POSIX_SOURCE
7712 #undef _POSIX_C_SOURCE
7713 #include <sys/types.h>
7714 #include <sys/signal.h>
7720 #if SIGWINCH != $cf_sigwinch
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:7729: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>&5
7732 echo "$as_me:7732: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -s conftest.$ac_objext'
7735 { (eval echo "$as_me:7735: \"$ac_try\"") >&5
7738 echo "$as_me:7738: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 cf_cv_fixup_sigwinch=$cf_sigwinch
7743 echo "$as_me: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 rm -f conftest.$ac_objext conftest.$ac_ext
7748 cf_sigwinch=`expr $cf_sigwinch - 1`
7752 echo "$as_me:7752: result: $cf_cv_fixup_sigwinch" >&5
7753 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7755 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7756 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7760 # Checks for CODESET support.
7762 echo "$as_me:7762: checking for nl_langinfo and CODESET" >&5
7763 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7764 if test "${am_cv_langinfo_codeset+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line 7768 "configure"
7769 #include "confdefs.h"
7770 #include <langinfo.h>
7774 char* cs = nl_langinfo(CODESET);
7779 rm -f conftest.$ac_objext conftest$ac_exeext
7780 if { (eval echo "$as_me:7780: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>&5
7783 echo "$as_me:7783: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -s conftest$ac_exeext'
7786 { (eval echo "$as_me:7786: \"$ac_try\"") >&5
7789 echo "$as_me:7789: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 am_cv_langinfo_codeset=yes
7793 echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 am_cv_langinfo_codeset=no
7797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7800 echo "$as_me:7800: result: $am_cv_langinfo_codeset" >&5
7801 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7802 if test $am_cv_langinfo_codeset = yes; then
7804 cat >>confdefs.h <<\EOF
7805 #define HAVE_LANGINFO_CODESET 1
7810 # use these variables to work around a defect in gcc's fixincludes.
7814 echo "$as_me:7814: checking if you want wide-character code" >&5
7815 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7817 # Check whether --enable-widec or --disable-widec was given.
7818 if test "${enable_widec+set}" = set; then
7819 enableval="$enable_widec"
7820 with_widec=$enableval
7824 echo "$as_me:7824: result: $with_widec" >&5
7825 echo "${ECHO_T}$with_widec" >&6
7826 if test "$with_widec" = yes ; then
7827 LIB_SUFFIX="w${LIB_SUFFIX}"
7828 cat >>confdefs.h <<\EOF
7829 #define USE_WIDEC_SUPPORT 1
7832 case "$CFLAGS $CPPFLAGS" in #(vi
7833 *-D_XOPEN_SOURCE=500) #(vi
7837 echo "$as_me:7837: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7838 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7840 #line 7840 "configure"
7841 #include "confdefs.h"
7842 #include <sys/types.h>
7848 #ifndef _XOPEN_SOURCE_EXTENDED
7855 rm -f conftest.$ac_objext
7856 if { (eval echo "$as_me:7856: \"$ac_compile\"") >&5
7857 (eval $ac_compile) 2>&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -s conftest.$ac_objext'
7862 { (eval echo "$as_me:7862: \"$ac_try\"") >&5
7865 echo "$as_me:7865: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7869 echo "$as_me: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7873 rm -f conftest.$ac_objext conftest.$ac_ext
7874 echo "$as_me:7874: result: $cf_result" >&5
7875 echo "${ECHO_T}$cf_result" >&6
7877 if test "$cf_result" = yes ; then
7878 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7879 elif test "x" != "x" ; then
7880 echo "$as_me:7880: checking checking for compatible value versus " >&5
7881 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line 7883 "configure"
7884 #include "confdefs.h"
7885 #include <sys/types.h>
7891 #if _XOPEN_SOURCE_EXTENDED- < 0
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:7899: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>&5
7902 echo "$as_me:7902: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:7905: \"$ac_try\"") >&5
7908 echo "$as_me:7908: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7912 echo "$as_me: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7916 rm -f conftest.$ac_objext conftest.$ac_ext
7917 echo "$as_me:7917: result: $cf_result" >&5
7918 echo "${ECHO_T}$cf_result" >&6
7919 if test "$cf_result" = no ; then
7920 # perhaps we can override it - try...
7921 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7929 NCURSES_CH_T=cchar_t
7931 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7934 echo "$as_me:7934: checking for $ac_func" >&5
7935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7936 if eval "test \"\${$as_ac_var+set}\" = set"; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line 7940 "configure"
7941 #include "confdefs.h"
7942 /* System header to define __stub macros and hopefully few prototypes,
7943 which can conflict with char $ac_func (); below. */
7945 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7957 /* The GNU C library defines this for functions which it implements
7958 to always fail with ENOSYS. Some functions are actually named
7959 something starting with __ and the normal name is an alias. */
7960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:7971: \"$ac_link\"") >&5
7972 (eval $ac_link) 2>&5
7974 echo "$as_me:7974: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:7977: \"$ac_try\"") >&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 eval "$as_ac_var=yes"
7984 echo "$as_me: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 eval "$as_ac_var=no"
7988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7990 echo "$as_me:7990: result: `eval echo '${'$as_ac_var'}'`" >&5
7991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7992 if test `eval echo '${'$as_ac_var'}'` = yes; then
7993 cat >>confdefs.h <<EOF
7994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8000 if test "$ac_cv_func_putwc" != yes ; then
8002 echo "$as_me:8002: checking for multibyte character support" >&5
8003 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8004 if test "${cf_cv_utf8_lib+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 cf_save_LIBS="$LIBS"
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line 8010 "configure"
8011 #include "confdefs.h"
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (eval echo "$as_me:8023: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>&5
8026 echo "$as_me:8026: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -s conftest$ac_exeext'
8029 { (eval echo "$as_me:8029: \"$ac_try\"") >&5
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8036 echo "$as_me: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8040 # will be set on completion of the AC_TRY_LINK below.
8041 cf_cv_header_path_utf8=
8042 cf_cv_library_path_utf8=
8044 echo "${as_me:-configure}:8044: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8046 cf_save_LIBS="$LIBS"
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line 8049 "configure"
8050 #include "confdefs.h"
8052 #include <libutf8.h>
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (eval echo "$as_me:8062: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8065 echo "$as_me:8065: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -s conftest$ac_exeext'
8068 { (eval echo "$as_me:8068: \"$ac_try\"") >&5
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8074 cf_cv_find_linkage_utf8=yes
8075 cf_cv_header_path_utf8=/usr/include
8076 cf_cv_library_path_utf8=/usr/lib
8079 echo "$as_me: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8082 LIBS="-lutf8 $cf_save_LIBS"
8084 cat >conftest.$ac_ext <<_ACEOF
8085 #line 8085 "configure"
8086 #include "confdefs.h"
8088 #include <libutf8.h>
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:8098: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>&5
8101 echo "$as_me:8101: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -s conftest$ac_exeext'
8104 { (eval echo "$as_me:8104: \"$ac_try\"") >&5
8107 echo "$as_me:8107: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8110 cf_cv_find_linkage_utf8=yes
8111 cf_cv_header_path_utf8=/usr/include
8112 cf_cv_library_path_utf8=/usr/lib
8113 cf_cv_library_file_utf8="-lutf8"
8116 echo "$as_me: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8119 cf_cv_find_linkage_utf8=no
8120 LIBS="$cf_save_LIBS"
8122 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8124 echo "${as_me:-configure}:8124: testing find linkage for utf8 library ..." 1>&5
8126 echo "${as_me:-configure}:8126: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8128 cf_save_CPPFLAGS="$CPPFLAGS"
8129 cf_test_CPPFLAGS="$CPPFLAGS"
8133 # collect the current set of include-directories from compiler flags
8134 cf_header_path_list=""
8135 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8136 for cf_header_path in $CPPFLAGS $CFLAGS
8138 case $cf_header_path in #(vi
8140 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8142 test "$cf_header_path" != "NONE" && \
8143 test -d "$cf_header_path" && \
8145 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8146 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8147 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8148 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8149 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8150 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8153 cf_header_path_list="$cf_header_path_list $cf_search"
8159 # add the variations for the package we are looking for
8163 test "/usr" != "$prefix" && \
8165 (test $prefix = NONE || test "/usr" != "$prefix") && {
8166 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8167 test -d /usr/include && cf_search="$cf_search /usr/include"
8168 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8169 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8170 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8171 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8174 test "$prefix" != "NONE" && \
8175 test -d "$prefix" && \
8177 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8178 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8179 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8180 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8181 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8182 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8185 test "/usr/local" != "$prefix" && \
8186 test -d "/usr/local" && \
8187 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8188 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8189 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8190 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8191 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8192 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8193 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8196 test "/opt" != "$prefix" && \
8198 (test $prefix = NONE || test "/opt" != "$prefix") && {
8199 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8200 test -d /opt/include && cf_search="$cf_search /opt/include"
8201 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8202 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8203 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8204 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8207 test "$HOME" != "$prefix" && \
8208 test -d "$HOME" && \
8209 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8210 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8211 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8212 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8213 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8214 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8215 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8218 test "$includedir" != NONE && \
8219 test "$includedir" != "/usr/include" && \
8220 test -d "$includedir" && {
8221 test -d $includedir && cf_search="$cf_search $includedir"
8222 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8225 test "$oldincludedir" != NONE && \
8226 test "$oldincludedir" != "/usr/include" && \
8227 test -d "$oldincludedir" && {
8228 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8229 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8232 cf_search="$cf_search $cf_header_path_list"
8234 for cf_cv_header_path_utf8 in $cf_search
8236 if test -d $cf_cv_header_path_utf8 ; then
8237 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8239 echo "${as_me:-configure}:8239: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8241 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line 8243 "configure"
8244 #include "confdefs.h"
8246 #include <libutf8.h>
8255 rm -f conftest.$ac_objext
8256 if { (eval echo "$as_me:8256: \"$ac_compile\"") >&5
8257 (eval $ac_compile) 2>&5
8259 echo "$as_me:8259: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:8262: \"$ac_try\"") >&5
8265 echo "$as_me:8265: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8268 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8270 echo "${as_me:-configure}:8270: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8272 cf_cv_find_linkage_utf8=maybe
8273 cf_test_CPPFLAGS="$CPPFLAGS"
8276 echo "$as_me: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 CPPFLAGS="$cf_save_CPPFLAGS"
8282 rm -f conftest.$ac_objext conftest.$ac_ext
8286 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8288 echo "${as_me:-configure}:8288: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8290 cf_save_LIBS="$LIBS"
8291 cf_save_LDFLAGS="$LDFLAGS"
8293 if test "$cf_cv_find_linkage_utf8" != yes ; then
8296 cf_library_path_list=""
8297 if test -n "${LDFLAGS}${LIBS}" ; then
8298 for cf_library_path in $LDFLAGS $LIBS
8300 case $cf_library_path in #(vi
8302 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8304 test "$cf_library_path" != "NONE" && \
8305 test -d "$cf_library_path" && \
8307 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8308 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8309 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8310 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8311 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8312 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8315 cf_library_path_list="$cf_library_path_list $cf_search"
8323 test "/usr" != "$prefix" && \
8325 (test $prefix = NONE || test "/usr" != "$prefix") && {
8326 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8327 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8328 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8329 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8330 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8331 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8334 test "$prefix" != "NONE" && \
8335 test -d "$prefix" && \
8337 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8338 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8339 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8340 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8341 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8342 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8345 test "/usr/local" != "$prefix" && \
8346 test -d "/usr/local" && \
8347 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8348 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8349 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8350 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8351 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8352 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8353 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8356 test "/opt" != "$prefix" && \
8358 (test $prefix = NONE || test "/opt" != "$prefix") && {
8359 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8360 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8361 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8362 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8363 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8364 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8367 test "$HOME" != "$prefix" && \
8368 test -d "$HOME" && \
8369 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8370 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8371 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8372 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8373 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8374 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8375 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
8378 cf_search="$cf_library_path_list $cf_search"
8380 for cf_cv_library_path_utf8 in $cf_search
8382 if test -d $cf_cv_library_path_utf8 ; then
8383 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8385 echo "${as_me:-configure}:8385: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8387 CPPFLAGS="$cf_test_CPPFLAGS"
8388 LIBS="-lutf8 $cf_save_LIBS"
8389 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8394 #include <libutf8.h>
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:8404: \"$ac_link\"") >&5
8405 (eval $ac_link) 2>&5
8407 echo "$as_me:8407: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:8410: \"$ac_try\"") >&5
8413 echo "$as_me:8413: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8416 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8418 echo "${as_me:-configure}:8418: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8420 cf_cv_find_linkage_utf8=yes
8421 cf_cv_library_file_utf8="-lutf8"
8424 echo "$as_me: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8427 CPPFLAGS="$cf_save_CPPFLAGS"
8428 LIBS="$cf_save_LIBS"
8429 LDFLAGS="$cf_save_LDFLAGS"
8432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8435 CPPFLAGS="$cf_save_CPPFLAGS"
8436 LDFLAGS="$cf_save_LDFLAGS"
8440 cf_cv_find_linkage_utf8=no
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8449 LIBS="$cf_save_LIBS"
8451 if test "$cf_cv_find_linkage_utf8" = yes ; then
8452 cf_cv_utf8_lib=add-on
8458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8460 echo "$as_me:8460: result: $cf_cv_utf8_lib" >&5
8461 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
8463 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8465 if test "$cf_cv_utf8_lib" = "add-on" ; then
8466 cat >>confdefs.h <<\EOF
8467 #define HAVE_LIBUTF8_H 1
8470 if test -n "$cf_cv_header_path_utf8" ; then
8471 for cf_add_incdir in $cf_cv_header_path_utf8
8473 while test $cf_add_incdir != /usr/include
8475 if test -d $cf_add_incdir
8478 if test -n "$CFLAGS$CPPFLAGS" ; then
8479 # a loop is needed to ensure we can add subdirs of existing dirs
8480 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8481 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8482 cf_have_incdir=yes; break
8487 if test "$cf_have_incdir" = no ; then
8488 if test "$cf_add_incdir" = /usr/local/include ; then
8489 if test "$GCC" = yes
8491 cf_save_CPPFLAGS=$CPPFLAGS
8492 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8493 cat >conftest.$ac_ext <<_ACEOF
8494 #line 8494 "configure"
8495 #include "confdefs.h"
8505 rm -f conftest.$ac_objext
8506 if { (eval echo "$as_me:8506: \"$ac_compile\"") >&5
8507 (eval $ac_compile) 2>&5
8509 echo "$as_me:8509: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -s conftest.$ac_objext'
8512 { (eval echo "$as_me:8512: \"$ac_try\"") >&5
8515 echo "$as_me:8515: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8519 echo "$as_me: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8523 rm -f conftest.$ac_objext conftest.$ac_ext
8524 CPPFLAGS=$cf_save_CPPFLAGS
8529 if test "$cf_have_incdir" = no ; then
8530 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8532 echo "${as_me:-configure}:8532: testing adding $cf_add_incdir to include-path ..." 1>&5
8534 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8536 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8537 test "$cf_top_incdir" = "$cf_add_incdir" && break
8538 cf_add_incdir="$cf_top_incdir"
8547 if test -n "$cf_cv_library_path_utf8" ; then
8548 for cf_add_libdir in $cf_cv_library_path_utf8
8550 if test $cf_add_libdir = /usr/lib ; then
8552 elif test -d $cf_add_libdir
8555 if test -n "$LDFLAGS$LIBS" ; then
8556 # a loop is needed to ensure we can add subdirs of existing dirs
8557 for cf_test_libdir in $LDFLAGS $LIBS ; do
8558 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8559 cf_have_libdir=yes; break
8563 if test "$cf_have_libdir" = no ; then
8564 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8566 echo "${as_me:-configure}:8566: testing adding $cf_add_libdir to library-path ..." 1>&5
8568 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8574 LIBS="$cf_cv_library_file_utf8 $LIBS"
8577 if test "$cf_cv_utf8_lib" != no ; then
8582 # This is needed on Tru64 5.0 to declare mbstate_t
8583 echo "$as_me:8583: checking if we must include wchar.h to declare mbstate_t" >&5
8584 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
8585 if test "${cf_cv_mbstate_t+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8590 #line 8590 "configure"
8591 #include "confdefs.h"
8596 #ifdef HAVE_LIBUTF8_H
8597 #include <libutf8.h>
8607 rm -f conftest.$ac_objext
8608 if { (eval echo "$as_me:8608: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>&5
8611 echo "$as_me:8611: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest.$ac_objext'
8614 { (eval echo "$as_me:8614: \"$ac_try\"") >&5
8617 echo "$as_me:8617: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8621 echo "$as_me: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line 8624 "configure"
8625 #include "confdefs.h"
8631 #ifdef HAVE_LIBUTF8_H
8632 #include <libutf8.h>
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:8643: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>&5
8646 echo "$as_me:8646: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:8649: \"$ac_try\"") >&5
8652 echo "$as_me:8652: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8656 echo "$as_me: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 cf_cv_mbstate_t=unknown
8660 rm -f conftest.$ac_objext conftest.$ac_ext
8662 rm -f conftest.$ac_objext conftest.$ac_ext
8664 echo "$as_me:8664: result: $cf_cv_mbstate_t" >&5
8665 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
8667 if test "$cf_cv_mbstate_t" = yes ; then
8668 cat >>confdefs.h <<\EOF
8669 #define NEED_WCHAR_H 1
8675 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
8676 if test "$cf_cv_mbstate_t" = unknown ; then
8680 # This is needed on Tru64 5.0 to declare wchar_t
8681 echo "$as_me:8681: checking if we must include wchar.h to declare wchar_t" >&5
8682 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
8683 if test "${cf_cv_wchar_t+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line 8688 "configure"
8689 #include "confdefs.h"
8694 #ifdef HAVE_LIBUTF8_H
8695 #include <libutf8.h>
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:8706: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>&5
8709 echo "$as_me:8709: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:8712: \"$ac_try\"") >&5
8715 echo "$as_me:8715: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8719 echo "$as_me: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 cat >conftest.$ac_ext <<_ACEOF
8722 #line 8722 "configure"
8723 #include "confdefs.h"
8729 #ifdef HAVE_LIBUTF8_H
8730 #include <libutf8.h>
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:8741: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>&5
8744 echo "$as_me:8744: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -s conftest.$ac_objext'
8747 { (eval echo "$as_me:8747: \"$ac_try\"") >&5
8750 echo "$as_me:8750: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8754 echo "$as_me: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 cf_cv_wchar_t=unknown
8758 rm -f conftest.$ac_objext conftest.$ac_ext
8760 rm -f conftest.$ac_objext conftest.$ac_ext
8762 echo "$as_me:8762: result: $cf_cv_wchar_t" >&5
8763 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8765 if test "$cf_cv_wchar_t" = yes ; then
8766 cat >>confdefs.h <<\EOF
8767 #define NEED_WCHAR_H 1
8773 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8774 if test "$cf_cv_wchar_t" = unknown ; then
8778 # if we find wchar_t in either place, use substitution to provide a fallback.
8779 if test "$cf_cv_wchar_t" != unknown ; then
8780 NCURSES_OK_WCHAR_T=1
8783 # This is needed on Tru64 5.0 to declare wint_t
8784 echo "$as_me:8784: checking if we must include wchar.h to declare wint_t" >&5
8785 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8786 if test "${cf_cv_wint_t+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 cat >conftest.$ac_ext <<_ACEOF
8791 #line 8791 "configure"
8792 #include "confdefs.h"
8797 #ifdef HAVE_LIBUTF8_H
8798 #include <libutf8.h>
8808 rm -f conftest.$ac_objext
8809 if { (eval echo "$as_me:8809: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>&5
8812 echo "$as_me:8812: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:8815: \"$ac_try\"") >&5
8818 echo "$as_me:8818: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8822 echo "$as_me: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 cat >conftest.$ac_ext <<_ACEOF
8825 #line 8825 "configure"
8826 #include "confdefs.h"
8832 #ifdef HAVE_LIBUTF8_H
8833 #include <libutf8.h>
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:8844: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>&5
8847 echo "$as_me:8847: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -s conftest.$ac_objext'
8850 { (eval echo "$as_me:8850: \"$ac_try\"") >&5
8853 echo "$as_me:8853: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8857 echo "$as_me: failed program was:" >&5
8858 cat conftest.$ac_ext >&5
8859 cf_cv_wint_t=unknown
8861 rm -f conftest.$ac_objext conftest.$ac_ext
8863 rm -f conftest.$ac_objext conftest.$ac_ext
8865 echo "$as_me:8865: result: $cf_cv_wint_t" >&5
8866 echo "${ECHO_T}$cf_cv_wint_t" >&6
8868 if test "$cf_cv_wint_t" = yes ; then
8869 cat >>confdefs.h <<\EOF
8870 #define NEED_WCHAR_H 1
8876 # if we do not find wint_t in either place, use substitution to provide a fallback.
8877 if test "$cf_cv_wint_t" = unknown ; then
8881 # if we find wint_t in either place, use substitution to provide a fallback.
8882 if test "$cf_cv_wint_t" != unknown ; then
8886 if test "$NCURSES_MBSTATE_T" != 0; then
8887 cat >>confdefs.h <<\EOF
8888 #define NEED_MBSTATE_T_DEF 1
8894 ### use option --disable-lp64 to allow long chtype
8895 case $cf_cv_abi_version in
8897 default_with_lp64=no
8900 default_with_lp64=yes
8904 echo "$as_me:8904: checking whether to enable _LP64 definition in curses.h" >&5
8905 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8907 # Check whether --enable-lp64 or --disable-lp64 was given.
8908 if test "${enable_lp64+set}" = set; then
8909 enableval="$enable_lp64"
8910 with_lp64=$enableval
8912 with_lp64=$default_with_lp64
8914 echo "$as_me:8914: result: $with_lp64" >&5
8915 echo "${ECHO_T}$with_lp64" >&6
8917 if test "$with_lp64" = yes ; then
8923 # Check whether --enable-largefile or --disable-largefile was given.
8924 if test "${enable_largefile+set}" = set; then
8925 enableval="$enable_largefile"
8928 if test "$enable_largefile" != no; then
8930 echo "$as_me:8930: checking for special C compiler options needed for large files" >&5
8931 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8932 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 ac_cv_sys_largefile_CC=no
8936 if test "$GCC" != yes; then
8939 # IRIX 6.2 and later do not support large files by default,
8940 # so use the C compiler's -n32 option if that helps.
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line 8942 "configure"
8943 #include "confdefs.h"
8944 #include <sys/types.h>
8945 /* Check that off_t can represent 2**63 - 1 correctly.
8946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8947 since some C++ compilers masquerading as C compilers
8948 incorrectly reject 9223372036854775807. */
8949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8951 && LARGE_OFF_T % 2147483647 == 1)
8961 rm -f conftest.$ac_objext
8962 if { (eval echo "$as_me:8962: \"$ac_compile\"") >&5
8963 (eval $ac_compile) 2>&5
8965 echo "$as_me:8965: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -s conftest.$ac_objext'
8968 { (eval echo "$as_me:8968: \"$ac_try\"") >&5
8971 echo "$as_me:8971: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8975 echo "$as_me: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8978 rm -f conftest.$ac_objext
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:8981: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>&5
8984 echo "$as_me:8984: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:8987: \"$ac_try\"") >&5
8990 echo "$as_me:8990: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_sys_largefile_CC=' -n32'; break
8994 echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8997 rm -f conftest.$ac_objext
9001 rm -f conftest.$ac_ext
9004 echo "$as_me:9004: result: $ac_cv_sys_largefile_CC" >&5
9005 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9006 if test "$ac_cv_sys_largefile_CC" != no; then
9007 CC=$CC$ac_cv_sys_largefile_CC
9010 echo "$as_me:9010: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9011 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9012 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 ac_cv_sys_file_offset_bits=no
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line 9018 "configure"
9019 #include "confdefs.h"
9020 #include <sys/types.h>
9021 /* Check that off_t can represent 2**63 - 1 correctly.
9022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9023 since some C++ compilers masquerading as C compilers
9024 incorrectly reject 9223372036854775807. */
9025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9027 && LARGE_OFF_T % 2147483647 == 1)
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:9038: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>&5
9041 echo "$as_me:9041: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -s conftest.$ac_objext'
9044 { (eval echo "$as_me:9044: \"$ac_try\"") >&5
9047 echo "$as_me:9047: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9051 echo "$as_me: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9054 rm -f conftest.$ac_objext conftest.$ac_ext
9055 cat >conftest.$ac_ext <<_ACEOF
9056 #line 9056 "configure"
9057 #include "confdefs.h"
9058 #define _FILE_OFFSET_BITS 64
9059 #include <sys/types.h>
9060 /* Check that off_t can represent 2**63 - 1 correctly.
9061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9062 since some C++ compilers masquerading as C compilers
9063 incorrectly reject 9223372036854775807. */
9064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9066 && LARGE_OFF_T % 2147483647 == 1)
9076 rm -f conftest.$ac_objext
9077 if { (eval echo "$as_me:9077: \"$ac_compile\"") >&5
9078 (eval $ac_compile) 2>&5
9080 echo "$as_me:9080: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -s conftest.$ac_objext'
9083 { (eval echo "$as_me:9083: \"$ac_try\"") >&5
9086 echo "$as_me:9086: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 ac_cv_sys_file_offset_bits=64; break
9090 echo "$as_me: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9093 rm -f conftest.$ac_objext conftest.$ac_ext
9097 echo "$as_me:9097: result: $ac_cv_sys_file_offset_bits" >&5
9098 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9099 if test "$ac_cv_sys_file_offset_bits" != no; then
9101 cat >>confdefs.h <<EOF
9102 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9107 echo "$as_me:9107: checking for _LARGE_FILES value needed for large files" >&5
9108 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9109 if test "${ac_cv_sys_large_files+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 ac_cv_sys_large_files=no
9114 cat >conftest.$ac_ext <<_ACEOF
9115 #line 9115 "configure"
9116 #include "confdefs.h"
9117 #include <sys/types.h>
9118 /* Check that off_t can represent 2**63 - 1 correctly.
9119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9120 since some C++ compilers masquerading as C compilers
9121 incorrectly reject 9223372036854775807. */
9122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9124 && LARGE_OFF_T % 2147483647 == 1)
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:9135: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>&5
9138 echo "$as_me:9138: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:9141: \"$ac_try\"") >&5
9144 echo "$as_me:9144: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9148 echo "$as_me: failed program was:" >&5
9149 cat conftest.$ac_ext >&5
9151 rm -f conftest.$ac_objext conftest.$ac_ext
9152 cat >conftest.$ac_ext <<_ACEOF
9153 #line 9153 "configure"
9154 #include "confdefs.h"
9155 #define _LARGE_FILES 1
9156 #include <sys/types.h>
9157 /* Check that off_t can represent 2**63 - 1 correctly.
9158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9159 since some C++ compilers masquerading as C compilers
9160 incorrectly reject 9223372036854775807. */
9161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9163 && LARGE_OFF_T % 2147483647 == 1)
9173 rm -f conftest.$ac_objext
9174 if { (eval echo "$as_me:9174: \"$ac_compile\"") >&5
9175 (eval $ac_compile) 2>&5
9177 echo "$as_me:9177: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (eval echo "$as_me:9180: \"$ac_try\"") >&5
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_sys_large_files=1; break
9187 echo "$as_me: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9190 rm -f conftest.$ac_objext conftest.$ac_ext
9194 echo "$as_me:9194: result: $ac_cv_sys_large_files" >&5
9195 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9196 if test "$ac_cv_sys_large_files" != no; then
9198 cat >>confdefs.h <<EOF
9199 #define _LARGE_FILES $ac_cv_sys_large_files
9206 if test "$enable_largefile" != no ; then
9207 echo "$as_me:9207: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9208 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9209 if test "${ac_cv_sys_largefile_source+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 ac_cv_sys_largefile_source=no
9214 cat >conftest.$ac_ext <<_ACEOF
9215 #line 9215 "configure"
9216 #include "confdefs.h"
9226 rm -f conftest.$ac_objext
9227 if { (eval echo "$as_me:9227: \"$ac_compile\"") >&5
9228 (eval $ac_compile) 2>&5
9230 echo "$as_me:9230: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:9233: \"$ac_try\"") >&5
9236 echo "$as_me:9236: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9240 echo "$as_me: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9243 rm -f conftest.$ac_objext conftest.$ac_ext
9244 cat >conftest.$ac_ext <<_ACEOF
9245 #line 9245 "configure"
9246 #include "confdefs.h"
9247 #define _LARGEFILE_SOURCE 1
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:9258: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>&5
9261 echo "$as_me:9261: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -s conftest.$ac_objext'
9264 { (eval echo "$as_me:9264: \"$ac_try\"") >&5
9267 echo "$as_me:9267: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 ac_cv_sys_largefile_source=1; break
9271 echo "$as_me: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9278 echo "$as_me:9278: result: $ac_cv_sys_largefile_source" >&5
9279 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9280 if test "$ac_cv_sys_largefile_source" != no; then
9282 cat >>confdefs.h <<EOF
9283 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9289 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9290 # in glibc 2.1.3, but that breaks too many other things.
9291 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9292 echo "$as_me:9292: checking for fseeko" >&5
9293 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9294 if test "${ac_cv_func_fseeko+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line 9298 "configure"
9299 #include "confdefs.h"
9304 return fseeko && fseeko (stdin, 0, 0);
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (eval echo "$as_me:9310: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>&5
9313 echo "$as_me:9313: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:9316: \"$ac_try\"") >&5
9319 echo "$as_me:9319: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_func_fseeko=yes
9323 echo "$as_me: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9325 ac_cv_func_fseeko=no
9327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9329 echo "$as_me:9329: result: $ac_cv_func_fseeko" >&5
9330 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9331 if test $ac_cv_func_fseeko = yes; then
9333 cat >>confdefs.h <<\EOF
9334 #define HAVE_FSEEKO 1
9339 # Normally we would collect these definitions in the config.h,
9340 # but (like _XOPEN_SOURCE), some environments rely on having these
9341 # defined before any of the system headers are included. Another
9342 # case comes up with C++, e.g., on AIX the compiler compiles the
9343 # header files by themselves before looking at the body files it is
9344 # told to compile. For ncurses, those header files do not include
9346 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9347 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9348 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9350 echo "$as_me:9350: checking whether to use struct dirent64" >&5
9351 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9352 if test "${cf_cv_struct_dirent64+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 #line 9357 "configure"
9358 #include "confdefs.h"
9360 #include <sys/types.h>
9367 /* if transitional largefile support is setup, this is true */
9368 extern struct dirent64 * readdir(DIR *);
9369 struct dirent64 *x = readdir((DIR *)0);
9370 struct dirent *y = readdir((DIR *)0);
9377 rm -f conftest.$ac_objext
9378 if { (eval echo "$as_me:9378: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>&5
9381 echo "$as_me:9381: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:9384: \"$ac_try\"") >&5
9387 echo "$as_me:9387: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 cf_cv_struct_dirent64=yes
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 cf_cv_struct_dirent64=no
9395 rm -f conftest.$ac_objext conftest.$ac_ext
9398 echo "$as_me:9398: result: $cf_cv_struct_dirent64" >&5
9399 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9400 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
9401 #define HAVE_STRUCT_DIRENT64 1
9406 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
9407 echo "$as_me:9407: checking if you want tparm not to use X/Open fixed-parameter list" >&5
9408 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
9410 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
9411 if test "${enable_tparm_varargs+set}" = set; then
9412 enableval="$enable_tparm_varargs"
9413 with_tparm_varargs=$enableval
9415 with_tparm_varargs=yes
9417 echo "$as_me:9417: result: $with_tparm_varargs" >&5
9418 echo "${ECHO_T}$with_tparm_varargs" >&6
9419 NCURSES_TPARM_VARARGS=0
9420 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
9422 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
9423 if test "$with_ticlib" != no ; then
9424 echo "$as_me:9424: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
9425 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
9427 # Check whether --enable-tic-depends or --disable-tic-depends was given.
9428 if test "${enable_tic_depends+set}" = set; then
9429 enableval="$enable_tic_depends"
9430 with_tic_depends=$enableval
9432 with_tic_depends=yes
9434 echo "$as_me:9434: result: $with_tic_depends" >&5
9435 echo "${ECHO_T}$with_tic_depends" >&6
9440 ### use option --with-bool to override bool's type
9441 echo "$as_me:9441: checking for type of bool" >&5
9442 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
9444 # Check whether --with-bool or --without-bool was given.
9445 if test "${with_bool+set}" = set; then
9446 withval="$with_bool"
9447 NCURSES_BOOL="$withval"
9451 echo "$as_me:9451: result: $NCURSES_BOOL" >&5
9452 echo "${ECHO_T}$NCURSES_BOOL" >&6
9454 echo "$as_me:9454: checking for alternate terminal capabilities file" >&5
9455 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
9457 # Check whether --with-caps or --without-caps was given.
9458 if test "${with_caps+set}" = set; then
9459 withval="$with_caps"
9460 TERMINFO_CAPS=Caps.$withval
9464 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
9465 echo "$as_me:9465: result: $TERMINFO_CAPS" >&5
9466 echo "${ECHO_T}$TERMINFO_CAPS" >&6
9468 ### use option --with-chtype to override chtype's type
9469 echo "$as_me:9469: checking for type of chtype" >&5
9470 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
9472 # Check whether --with-chtype or --without-chtype was given.
9473 if test "${with_chtype+set}" = set; then
9474 withval="$with_chtype"
9475 NCURSES_CHTYPE="$withval"
9479 echo "$as_me:9479: result: $NCURSES_CHTYPE" >&5
9480 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
9482 ### use option --with-ospeed to override ospeed's type
9483 echo "$as_me:9483: checking for type of ospeed" >&5
9484 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
9486 # Check whether --with-ospeed or --without-ospeed was given.
9487 if test "${with_ospeed+set}" = set; then
9488 withval="$with_ospeed"
9489 NCURSES_OSPEED="$withval"
9491 NCURSES_OSPEED=short
9493 echo "$as_me:9493: result: $NCURSES_OSPEED" >&5
9494 echo "${ECHO_T}$NCURSES_OSPEED" >&6
9496 ### use option --with-mmask-t to override mmask_t's type
9497 echo "$as_me:9497: checking for type of mmask_t" >&5
9498 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
9500 # Check whether --with-mmask-t or --without-mmask-t was given.
9501 if test "${with_mmask_t+set}" = set; then
9502 withval="$with_mmask_t"
9503 NCURSES_MMASK_T="$withval"
9505 NCURSES_MMASK_T=auto
9507 echo "$as_me:9507: result: $NCURSES_MMASK_T" >&5
9508 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
9510 ### use option --with-ccharw-max to override CCHARW_MAX size
9511 echo "$as_me:9511: checking for size CCHARW_MAX" >&5
9512 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
9514 # Check whether --with-ccharw-max or --without-ccharw-max was given.
9515 if test "${with_ccharw_max+set}" = set; then
9516 withval="$with_ccharw_max"
9517 NCURSES_CCHARW_MAX="$withval"
9519 NCURSES_CCHARW_MAX=5
9521 echo "$as_me:9521: result: $NCURSES_CCHARW_MAX" >&5
9522 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
9524 ### Enable compiling-in rcs id's
9525 echo "$as_me:9525: checking if RCS identifiers should be compiled-in" >&5
9526 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9528 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9529 if test "${with_rcs_ids+set}" = set; then
9530 withval="$with_rcs_ids"
9531 with_rcs_ids=$withval
9535 echo "$as_me:9535: result: $with_rcs_ids" >&5
9536 echo "${ECHO_T}$with_rcs_ids" >&6
9537 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
9538 #define USE_RCS_IDS 1
9541 ###############################################################################
9543 echo "$as_me:9543: checking format of man-pages" >&5
9544 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
9546 # Check whether --with-manpage-format or --without-manpage-format was given.
9547 if test "${with_manpage_format+set}" = set; then
9548 withval="$with_manpage_format"
9549 MANPAGE_FORMAT=$withval
9551 MANPAGE_FORMAT=unknown
9554 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
9555 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
9559 case $MANPAGE_FORMAT in
9561 if test -z "$MANPATH" ; then
9562 MANPATH="/usr/man:/usr/share/man"
9565 # look for the 'date' man-page (it's most likely to be installed!)
9571 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
9572 for cf_dir in $MANPATH; do
9573 test -z "$cf_dir" && cf_dir=/usr/man
9574 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
9576 cf_test=`echo $cf_name | sed -e 's/*//'`
9577 if test "x$cf_test" = "x$cf_name" ; then
9580 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
9581 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
9582 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
9583 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
9597 # if we found a match in either man* or cat*, stop looking
9598 if test -n "$MANPAGE_FORMAT" ; then
9600 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
9601 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
9607 test $cf_found=yes && break
9610 # only check the first directory in $MANPATH where we find manpages
9611 if test -n "$MANPAGE_FORMAT" ; then
9615 # if we did not find the example, just assume it is normal
9616 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
9620 for cf_option in $MANPAGE_FORMAT; do
9621 case $cf_option in #(vi
9622 gzip|compress|BSDI|normal|formatted|catonly)
9625 cf_unknown="$cf_unknown $cf_option"
9632 echo "$as_me:9632: result: $MANPAGE_FORMAT" >&5
9633 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
9634 if test -n "$cf_unknown" ; then
9635 { echo "$as_me:9635: WARNING: Unexpected manpage-format $cf_unknown" >&5
9636 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
9639 echo "$as_me:9639: checking for manpage renaming" >&5
9640 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
9642 # Check whether --with-manpage-renames or --without-manpage-renames was given.
9643 if test "${with_manpage_renames+set}" = set; then
9644 withval="$with_manpage_renames"
9645 MANPAGE_RENAMES=$withval
9650 case ".$MANPAGE_RENAMES" in #(vi
9654 # Debian 'man' program?
9655 if test -f /etc/debian_version ; then
9656 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
9663 if test "$MANPAGE_RENAMES" != no ; then
9664 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
9665 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
9666 elif test ! -f $MANPAGE_RENAMES ; then
9667 { { echo "$as_me:9667: error: not a filename: $MANPAGE_RENAMES" >&5
9668 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
9669 { (exit 1); exit 1; }; }
9672 test ! -d man && mkdir man
9674 # Construct a sed-script to perform renaming within man-pages
9675 if test -n "$MANPAGE_RENAMES" ; then
9676 test ! -d man && mkdir man
9677 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
9681 echo "$as_me:9681: result: $MANPAGE_RENAMES" >&5
9682 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
9684 echo "$as_me:9684: checking if manpage aliases will be installed" >&5
9685 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
9687 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
9688 if test "${with_manpage_aliases+set}" = set; then
9689 withval="$with_manpage_aliases"
9690 MANPAGE_ALIASES=$withval
9695 echo "$as_me:9695: result: $MANPAGE_ALIASES" >&5
9696 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
9698 case "x$LN_S" in #(vi
9708 if test "$MANPAGE_ALIASES" = yes ; then
9709 echo "$as_me:9709: checking if manpage symlinks should be used" >&5
9710 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
9712 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
9713 if test "${with_manpage_symlinks+set}" = set; then
9714 withval="$with_manpage_symlinks"
9715 MANPAGE_SYMLINKS=$withval
9717 MANPAGE_SYMLINKS=$cf_use_symlinks
9720 if test "$$cf_use_symlinks" = no; then
9721 if test "$MANPAGE_SYMLINKS" = yes ; then
9722 { echo "$as_me:9722: WARNING: cannot make symlinks" >&5
9723 echo "$as_me: WARNING: cannot make symlinks" >&2;}
9728 echo "$as_me:9728: result: $MANPAGE_SYMLINKS" >&5
9729 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
9732 echo "$as_me:9732: checking for manpage tbl" >&5
9733 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
9735 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
9736 if test "${with_manpage_tbl+set}" = set; then
9737 withval="$with_manpage_tbl"
9738 MANPAGE_TBL=$withval
9743 echo "$as_me:9743: result: $MANPAGE_TBL" >&5
9744 echo "${ECHO_T}$MANPAGE_TBL" >&6
9746 if test "$prefix" = "NONE" ; then
9747 cf_prefix="$ac_default_prefix"
9752 case "$MANPAGE_FORMAT" in # (vi
9767 test ! -d man && mkdir man
9771 case "$MANPAGE_FORMAT" in #(vi
9774 cf_compress=compress
9782 cf_edit_man=./edit_man.sh
9783 cf_man_alias=`pwd`/man_alias.sed
9785 cat >$cf_edit_man <<CF_EOF
9787 # this script is generated by the configure-script CF_MAN_PAGES macro.
9792 NCURSES_MAJOR="$NCURSES_MAJOR"
9793 NCURSES_MINOR="$NCURSES_MINOR"
9794 NCURSES_PATCH="$NCURSES_PATCH"
9796 NCURSES_OSPEED="$NCURSES_OSPEED"
9797 TERMINFO="$TERMINFO"
9800 INSTALL_DATA="$INSTALL_DATA"
9802 transform="$program_transform_name"
9804 TMP=\${TMPDIR:=/tmp}/man\$\$
9805 trap "rm -f \$TMP" 0 1 2 5 15
9817 top_srcdir=\$srcdir/..
9820 if test "\$form" = normal ; then
9821 if test "$cf_format" = yes ; then
9822 if test "$cf_inboth" = no ; then
9823 sh \$0 format \$verb \$mandir \$srcdir \$*
9827 cf_subdir=\$mandir/man
9828 cf_tables=$MANPAGE_TBL
9830 cf_subdir=\$mandir/cat
9834 # process the list of source-files
9837 *.orig|*.rej) ;; #(vi
9839 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9840 if test \$verb = installing ; then
9841 if test ! -d \$cf_subdir\${section} ; then
9842 mkdir -p \$cf_subdir\$section
9846 # replace variables in man page
9847 if test ! -f $cf_man_alias ; then
9848 cat >>$cf_man_alias <<-CF_EOF2
9849 s,@DATADIR@,\$datadir,g
9850 s,@TERMINFO@,\$TERMINFO,g
9851 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9852 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9853 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9854 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9857 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9859 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9860 cf_name=`echo $cf_name|sed "$program_transform_name"`
9861 cat >>$cf_edit_man <<-CF_EOF
9862 s,@$cf_NAME@,$cf_name,g
9866 cat >>$cf_edit_man <<CF_EOF
9868 echo "...made $cf_man_alias"
9872 cf_source=\`basename \$i\`
9874 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9875 if test ! -f \$inalias ; then
9876 echo .. skipped \$cf_source
9881 if test "$MANPAGE_ALIASES" != no ; then
9882 cat >>$cf_edit_man <<CF_EOF
9883 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9887 if test "$MANPAGE_RENAMES" = no ; then
9888 cat >>$cf_edit_man <<CF_EOF
9889 # perform program transformations for section 1 man pages
9890 if test \$section = 1 ; then
9891 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9893 cf_target=\$cf_subdir\${section}/\$cf_source
9897 cat >>$cf_edit_man <<CF_EOF
9898 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9899 if test -z "\$cf_target" ; then
9900 echo '? missing rename for '\$cf_source
9901 cf_target="\$cf_source"
9903 cf_target="\$cf_subdir\${section}/\${cf_target}"
9908 cat >>$cf_edit_man <<CF_EOF
9909 sed -f $cf_man_alias \\
9912 if test -f $MANPAGE_RENAMES ; then
9913 cat >>$cf_edit_man <<CF_EOF
9914 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9917 cat >>$cf_edit_man <<CF_EOF
9922 cat >>$cf_edit_man <<CF_EOF
9923 if test \$cf_tables = yes ; then
9924 tbl \$TMP >\$TMP.out
9929 if test $with_curses_h != yes ; then
9930 cat >>$cf_edit_man <<CF_EOF
9931 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9936 cat >>$cf_edit_man <<CF_EOF
9937 if test \$form = format ; then
9938 nroff -man \$TMP >\$TMP.out
9943 if test -n "$cf_compress" ; then
9944 cat >>$cf_edit_man <<CF_EOF
9945 if test \$verb = installing ; then
9946 if ( $cf_compress -f \$TMP )
9948 mv \$TMP.$cf_so_strip \$TMP
9951 cf_target="\$cf_target.$cf_so_strip"
9955 case "$MANPAGE_FORMAT" in #(vi
9957 cat >>$cf_edit_man <<CF_EOF
9958 if test \$form = format ; then
9959 # BSDI installs only .0 suffixes in the cat directories
9960 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9966 cat >>$cf_edit_man <<CF_EOF
9967 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9968 if test \$verb = installing ; then
9969 echo \$verb \$cf_target
9970 \$INSTALL_DATA \$TMP \$cf_target
9971 test -d \$cf_subdir\${section} &&
9972 test -n "\$aliases" && (
9973 cd \$cf_subdir\${section} && (
9974 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9975 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9976 cf_target=\`basename \$cf_target\`
9977 for cf_alias in \$aliases
9979 if test \$section = 1 ; then
9980 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9983 if test "$MANPAGE_SYMLINKS" = yes ; then
9984 if test -f \$cf_alias\${suffix} ; then
9985 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9990 echo .. \$verb alias \$cf_alias\${suffix}
9992 case "x$LN_S" in #(vi
9994 cat >>$cf_edit_man <<CF_EOF
9995 $LN_S \$cf_target \$cf_alias\${suffix}
9999 cat >>$cf_edit_man <<CF_EOF
10000 rm -f \$cf_alias\${suffix}
10001 $LN_S \$cf_target \$cf_alias\${suffix}
10005 cat >>$cf_edit_man <<CF_EOF
10006 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10007 echo ".so \$cf_source" >\$TMP
10009 if test -n "$cf_compress" ; then
10010 cat >>$cf_edit_man <<CF_EOF
10011 if test -n "$cf_so_strip" ; then
10012 $cf_compress -f \$TMP
10013 mv \$TMP.$cf_so_strip \$TMP
10017 cat >>$cf_edit_man <<CF_EOF
10018 echo .. \$verb alias \$cf_alias\${suffix}
10019 rm -f \$cf_alias\${suffix}
10020 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10025 elif test \$verb = removing ; then
10026 test -f \$cf_target && (
10027 echo \$verb \$cf_target
10030 test -d \$cf_subdir\${section} &&
10031 test -n "\$aliases" && (
10032 cd \$cf_subdir\${section} && (
10033 for cf_alias in \$aliases
10035 if test \$section = 1 ; then
10036 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10039 echo .. \$verb alias \$cf_alias\${suffix}
10040 rm -f \$cf_alias\${suffix}
10052 if test $cf_inboth = yes ; then
10053 if test \$form != format ; then
10054 sh \$0 format \$verb \$mandir \$srcdir \$*
10060 chmod 755 $cf_edit_man
10062 ###############################################################################
10064 ### Note that some functions (such as const) are normally disabled anyway.
10065 echo "$as_me:10065: checking if you want to build with function extensions" >&5
10066 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10068 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10069 if test "${enable_ext_funcs+set}" = set; then
10070 enableval="$enable_ext_funcs"
10071 with_ext_funcs=$enableval
10075 echo "$as_me:10075: result: $with_ext_funcs" >&5
10076 echo "${ECHO_T}$with_ext_funcs" >&6
10077 if test "$with_ext_funcs" = yes ; then
10078 NCURSES_EXT_FUNCS=1
10079 cat >>confdefs.h <<\EOF
10080 #define HAVE_ASSUME_DEFAULT_COLORS 1
10083 cat >>confdefs.h <<\EOF
10084 #define HAVE_CURSES_VERSION 1
10087 cat >>confdefs.h <<\EOF
10088 #define HAVE_HAS_KEY 1
10091 cat >>confdefs.h <<\EOF
10092 #define HAVE_RESIZETERM 1
10095 cat >>confdefs.h <<\EOF
10096 #define HAVE_RESIZE_TERM 1
10099 cat >>confdefs.h <<\EOF
10100 #define HAVE_TERM_ENTRY_H 1
10103 cat >>confdefs.h <<\EOF
10104 #define HAVE_USE_DEFAULT_COLORS 1
10107 cat >>confdefs.h <<\EOF
10108 #define HAVE_USE_SCREEN 1
10111 cat >>confdefs.h <<\EOF
10112 #define HAVE_USE_WINDOW 1
10115 cat >>confdefs.h <<\EOF
10116 #define HAVE_WRESIZE 1
10119 cat >>confdefs.h <<\EOF
10120 #define NCURSES_EXT_FUNCS 1
10123 GENERATED_EXT_FUNCS=generated
10125 NCURSES_EXT_FUNCS=0
10126 GENERATED_EXT_FUNCS=
10129 echo "$as_me:10129: checking if you want to build with experimental SCREEN extensions" >&5
10130 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10132 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10133 if test "${enable_sp_funcs+set}" = set; then
10134 enableval="$enable_sp_funcs"
10135 with_sp_funcs=$enableval
10139 echo "$as_me:10139: result: $with_sp_funcs" >&5
10140 echo "${ECHO_T}$with_sp_funcs" >&6
10141 if test "$with_sp_funcs" = yes ; then
10143 cat >>confdefs.h <<\EOF
10144 #define NCURSES_SP_FUNCS 1
10147 GENERATED_SP_FUNCS=generated
10150 GENERATED_SP_FUNCS=
10153 echo "$as_me:10153: checking if you want to build with experimental terminal-driver" >&5
10154 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10156 # Check whether --enable-term-driver or --disable-term-driver was given.
10157 if test "${enable_term_driver+set}" = set; then
10158 enableval="$enable_term_driver"
10159 with_term_driver=$enableval
10161 with_term_driver=no
10163 echo "$as_me:10163: result: $with_term_driver" >&5
10164 echo "${ECHO_T}$with_term_driver" >&6
10165 if test "$with_term_driver" = yes ; then
10166 cat >>confdefs.h <<\EOF
10167 #define USE_TERM_DRIVER 1
10170 if test "$with_sp_funcs" != yes ; then
10171 { { echo "$as_me:10171: error: The term-driver option relies upon sp-funcs" >&5
10172 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10173 { (exit 1); exit 1; }; }
10177 ### use option --enable-const to turn on use of const beyond that in XSI.
10178 echo "$as_me:10178: checking for extended use of const keyword" >&5
10179 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10181 # Check whether --enable-const or --disable-const was given.
10182 if test "${enable_const+set}" = set; then
10183 enableval="$enable_const"
10184 with_ext_const=$enableval
10188 echo "$as_me:10188: result: $with_ext_const" >&5
10189 echo "${ECHO_T}$with_ext_const" >&6
10190 NCURSES_CONST='/*nothing*/'
10191 if test "$with_ext_const" = yes ; then
10192 NCURSES_CONST=const
10195 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10196 echo "$as_me:10196: checking if you want to use extended colors" >&5
10197 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10199 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10200 if test "${enable_ext_colors+set}" = set; then
10201 enableval="$enable_ext_colors"
10202 with_ext_colors=$enableval
10206 echo "$as_me:10206: result: $with_ext_colors" >&5
10207 echo "${ECHO_T}$with_ext_colors" >&6
10208 NCURSES_EXT_COLORS=0
10209 if test "$with_ext_colors" = yes ; then
10210 if test "$with_widec" != yes ; then
10211 { { echo "$as_me:10211: error: This option applies only to wide-character library" >&5
10212 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10213 { (exit 1); exit 1; }; }
10215 # cannot be ABI 5 since it changes sizeof(cchar_t)
10217 if test "${with_abi_version+set}" != set; then
10218 case $cf_cv_rel_version in
10220 cf_cv_rel_version=6.0
10221 cf_cv_abi_version=6
10222 { echo "$as_me:10222: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10223 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10229 NCURSES_EXT_COLORS=1
10230 cat >>confdefs.h <<\EOF
10231 #define NCURSES_EXT_COLORS 1
10236 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10237 echo "$as_me:10237: checking if you want to use extended mouse encoding" >&5
10238 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10240 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10241 if test "${enable_ext_mouse+set}" = set; then
10242 enableval="$enable_ext_mouse"
10243 with_ext_mouse=$enableval
10247 echo "$as_me:10247: result: $with_ext_mouse" >&5
10248 echo "${ECHO_T}$with_ext_mouse" >&6
10249 NCURSES_MOUSE_VERSION=1
10250 if test "$with_ext_mouse" = yes ; then
10251 NCURSES_MOUSE_VERSION=2
10253 if test "${with_abi_version+set}" != set; then
10254 case $cf_cv_rel_version in
10256 cf_cv_rel_version=6.0
10257 cf_cv_abi_version=6
10258 { echo "$as_me:10258: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10259 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10266 echo "$as_me:10266: checking if you want \$NCURSES_NO_PADDING code" >&5
10267 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10269 # Check whether --enable-no-padding or --disable-no-padding was given.
10270 if test "${enable_no_padding+set}" = set; then
10271 enableval="$enable_no_padding"
10272 with_no_padding=$enableval
10274 with_no_padding=$with_ext_funcs
10276 echo "$as_me:10276: result: $with_no_padding" >&5
10277 echo "${ECHO_T}$with_no_padding" >&6
10278 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10279 #define NCURSES_NO_PADDING 1
10282 echo "$as_me:10282: checking for ANSI C header files" >&5
10283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10284 if test "${ac_cv_header_stdc+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10290 #include <stdlib.h>
10291 #include <stdarg.h>
10292 #include <string.h>
10296 if { (eval echo "$as_me:10296: \"$ac_cpp conftest.$ac_ext\"") >&5
10297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10299 egrep -v '^ *\+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:10302: \$? = $ac_status" >&5
10303 (exit $ac_status); } >/dev/null; then
10304 if test -s conftest.err; then
10305 ac_cpp_err=$ac_c_preproc_warn_flag
10312 if test -z "$ac_cpp_err"; then
10313 ac_cv_header_stdc=yes
10315 echo "$as_me: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10317 ac_cv_header_stdc=no
10319 rm -f conftest.err conftest.$ac_ext
10321 if test $ac_cv_header_stdc = yes; then
10322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10323 cat >conftest.$ac_ext <<_ACEOF
10324 #line 10324 "configure"
10325 #include "confdefs.h"
10326 #include <string.h>
10329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10330 egrep "memchr" >/dev/null 2>&1; then
10333 ac_cv_header_stdc=no
10339 if test $ac_cv_header_stdc = yes; then
10340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10341 cat >conftest.$ac_ext <<_ACEOF
10342 #line 10342 "configure"
10343 #include "confdefs.h"
10344 #include <stdlib.h>
10347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10348 egrep "free" >/dev/null 2>&1; then
10351 ac_cv_header_stdc=no
10357 if test $ac_cv_header_stdc = yes; then
10358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10359 if test "$cross_compiling" = yes; then
10362 cat >conftest.$ac_ext <<_ACEOF
10363 #line 10363 "configure"
10364 #include "confdefs.h"
10366 #if ((' ' & 0x0FF) == 0x020)
10367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10370 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10371 || ('j' <= (c) && (c) <= 'r') \
10372 || ('s' <= (c) && (c) <= 'z'))
10373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10381 for (i = 0; i < 256; i++)
10382 if (XOR (islower (i), ISLOWER (i))
10383 || toupper (i) != TOUPPER (i))
10384 $ac_main_return(2);
10385 $ac_main_return (0);
10388 rm -f conftest$ac_exeext
10389 if { (eval echo "$as_me:10389: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>&5
10392 echo "$as_me:10392: \$? = $ac_status" >&5
10393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10394 { (eval echo "$as_me:10394: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:10397: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10401 echo "$as_me: program exited with status $ac_status" >&5
10402 echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 ac_cv_header_stdc=no
10406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10410 echo "$as_me:10410: result: $ac_cv_header_stdc" >&5
10411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10412 if test $ac_cv_header_stdc = yes; then
10414 cat >>confdefs.h <<\EOF
10415 #define STDC_HEADERS 1
10420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10423 inttypes.h stdint.h unistd.h
10425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10426 echo "$as_me:10426: checking for $ac_header" >&5
10427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10432 #line 10432 "configure"
10433 #include "confdefs.h"
10434 $ac_includes_default
10435 #include <$ac_header>
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:10438: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>&5
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (eval echo "$as_me:10444: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:10447: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 eval "$as_ac_Header=yes"
10451 echo "$as_me: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10453 eval "$as_ac_Header=no"
10455 rm -f conftest.$ac_objext conftest.$ac_ext
10457 echo "$as_me:10457: result: `eval echo '${'$as_ac_Header'}'`" >&5
10458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10460 cat >>confdefs.h <<EOF
10461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10467 echo "$as_me:10467: checking for signed char" >&5
10468 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
10469 if test "${ac_cv_type_signed_char+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 cat >conftest.$ac_ext <<_ACEOF
10473 #line 10473 "configure"
10474 #include "confdefs.h"
10475 $ac_includes_default
10479 if ((signed char *) 0)
10481 if (sizeof (signed char))
10487 rm -f conftest.$ac_objext
10488 if { (eval echo "$as_me:10488: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>&5
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -s conftest.$ac_objext'
10494 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 ac_cv_type_signed_char=yes
10501 echo "$as_me: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10503 ac_cv_type_signed_char=no
10505 rm -f conftest.$ac_objext conftest.$ac_ext
10507 echo "$as_me:10507: result: $ac_cv_type_signed_char" >&5
10508 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
10510 echo "$as_me:10510: checking size of signed char" >&5
10511 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
10512 if test "${ac_cv_sizeof_signed_char+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 if test "$ac_cv_type_signed_char" = yes; then
10516 if test "$cross_compiling" = yes; then
10517 # Depending upon the size, compute the lo and hi bounds.
10518 cat >conftest.$ac_ext <<_ACEOF
10519 #line 10519 "configure"
10520 #include "confdefs.h"
10521 $ac_includes_default
10525 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
10530 rm -f conftest.$ac_objext
10531 if { (eval echo "$as_me:10531: \"$ac_compile\"") >&5
10532 (eval $ac_compile) 2>&5
10534 echo "$as_me:10534: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -s conftest.$ac_objext'
10537 { (eval echo "$as_me:10537: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:10540: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10544 cat >conftest.$ac_ext <<_ACEOF
10545 #line 10545 "configure"
10546 #include "confdefs.h"
10547 $ac_includes_default
10551 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10556 rm -f conftest.$ac_objext
10557 if { (eval echo "$as_me:10557: \"$ac_compile\"") >&5
10558 (eval $ac_compile) 2>&5
10560 echo "$as_me:10560: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:10563: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:10566: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_hi=$ac_mid; break
10570 echo "$as_me: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10574 rm -f conftest.$ac_objext conftest.$ac_ext
10577 echo "$as_me: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line 10582 "configure"
10583 #include "confdefs.h"
10584 $ac_includes_default
10588 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
10593 rm -f conftest.$ac_objext
10594 if { (eval echo "$as_me:10594: \"$ac_compile\"") >&5
10595 (eval $ac_compile) 2>&5
10597 echo "$as_me:10597: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -s conftest.$ac_objext'
10600 { (eval echo "$as_me:10600: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:10603: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10605 ac_lo=$ac_mid; break
10607 echo "$as_me: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10611 rm -f conftest.$ac_objext conftest.$ac_ext
10614 rm -f conftest.$ac_objext conftest.$ac_ext
10615 # Binary search between lo and hi bounds.
10616 while test "x$ac_lo" != "x$ac_hi"; do
10617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10618 cat >conftest.$ac_ext <<_ACEOF
10619 #line 10619 "configure"
10620 #include "confdefs.h"
10621 $ac_includes_default
10625 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10630 rm -f conftest.$ac_objext
10631 if { (eval echo "$as_me:10631: \"$ac_compile\"") >&5
10632 (eval $ac_compile) 2>&5
10634 echo "$as_me:10634: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -s conftest.$ac_objext'
10637 { (eval echo "$as_me:10637: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10640 echo "$as_me:10640: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10644 echo "$as_me: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10646 ac_lo=`expr $ac_mid + 1`
10648 rm -f conftest.$ac_objext conftest.$ac_ext
10650 ac_cv_sizeof_signed_char=$ac_lo
10652 if test "$cross_compiling" = yes; then
10653 { { echo "$as_me:10653: error: cannot run test program while cross compiling" >&5
10654 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10655 { (exit 1); exit 1; }; }
10657 cat >conftest.$ac_ext <<_ACEOF
10658 #line 10658 "configure"
10659 #include "confdefs.h"
10660 $ac_includes_default
10664 FILE *f = fopen ("conftest.val", "w");
10666 $ac_main_return (1);
10667 fprintf (f, "%d", (sizeof (signed char)));
10673 rm -f conftest$ac_exeext
10674 if { (eval echo "$as_me:10674: \"$ac_link\"") >&5
10675 (eval $ac_link) 2>&5
10677 echo "$as_me:10677: \$? = $ac_status" >&5
10678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10679 { (eval echo "$as_me:10679: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:10682: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_sizeof_signed_char=`cat conftest.val`
10686 echo "$as_me: program exited with status $ac_status" >&5
10687 echo "$as_me: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10695 ac_cv_sizeof_signed_char=0
10698 echo "$as_me:10698: result: $ac_cv_sizeof_signed_char" >&5
10699 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10700 cat >>confdefs.h <<EOF
10701 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10704 if test "$ac_cv_sizeof_signed_char" = 1 ; then
10705 NCURSES_SBOOL="signed char"
10707 NCURSES_SBOOL="char"
10709 echo "$as_me:10709: checking if you want to use signed Boolean array in term.h" >&5
10710 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
10712 # Check whether --enable-signed-char or --disable-signed-char was given.
10713 if test "${enable_signed_char+set}" = set; then
10714 enableval="$enable_signed_char"
10715 with_signed_char=$enableval
10717 with_signed_char=no
10719 echo "$as_me:10719: result: $with_signed_char" >&5
10720 echo "${ECHO_T}$with_signed_char" >&6
10721 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
10723 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
10724 echo "$as_me:10724: checking if you want SIGWINCH handler" >&5
10725 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
10727 # Check whether --enable-sigwinch or --disable-sigwinch was given.
10728 if test "${enable_sigwinch+set}" = set; then
10729 enableval="$enable_sigwinch"
10730 with_sigwinch=$enableval
10732 with_sigwinch=$with_ext_funcs
10734 echo "$as_me:10734: result: $with_sigwinch" >&5
10735 echo "${ECHO_T}$with_sigwinch" >&6
10736 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
10737 #define USE_SIGWINCH 1
10740 ### use option --enable-tcap-names to allow user to define new capabilities
10741 echo "$as_me:10741: checking if you want user-definable terminal capabilities like termcap" >&5
10742 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
10744 # Check whether --enable-tcap-names or --disable-tcap-names was given.
10745 if test "${enable_tcap_names+set}" = set; then
10746 enableval="$enable_tcap_names"
10747 with_tcap_names=$enableval
10749 with_tcap_names=$with_ext_funcs
10751 echo "$as_me:10751: result: $with_tcap_names" >&5
10752 echo "${ECHO_T}$with_tcap_names" >&6
10754 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
10756 ###############################################################################
10757 # These options are relatively safe to experiment with.
10759 echo "$as_me:10759: checking if you want all development code" >&5
10760 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
10762 # Check whether --with-develop or --without-develop was given.
10763 if test "${with_develop+set}" = set; then
10764 withval="$with_develop"
10765 with_develop=$withval
10769 echo "$as_me:10769: result: $with_develop" >&5
10770 echo "${ECHO_T}$with_develop" >&6
10772 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
10773 echo "$as_me:10773: checking if you want hard-tabs code" >&5
10774 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
10776 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
10777 if test "${enable_hard_tabs+set}" = set; then
10778 enableval="$enable_hard_tabs"
10781 enable_hard_tabs=$with_develop
10783 echo "$as_me:10783: result: $enable_hard_tabs" >&5
10784 echo "${ECHO_T}$enable_hard_tabs" >&6
10785 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
10786 #define USE_HARD_TABS 1
10789 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
10790 echo "$as_me:10790: checking if you want limited support for xmc" >&5
10791 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
10793 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
10794 if test "${enable_xmc_glitch+set}" = set; then
10795 enableval="$enable_xmc_glitch"
10798 enable_xmc_glitch=$with_develop
10800 echo "$as_me:10800: result: $enable_xmc_glitch" >&5
10801 echo "${ECHO_T}$enable_xmc_glitch" >&6
10802 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10803 #define USE_XMC_SUPPORT 1
10806 ###############################################################################
10807 # These are just experimental, probably should not be in a package:
10809 echo "$as_me:10809: checking if you do not want to assume colors are white-on-black" >&5
10810 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10812 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10813 if test "${enable_assumed_color+set}" = set; then
10814 enableval="$enable_assumed_color"
10815 with_assumed_color=$enableval
10817 with_assumed_color=yes
10819 echo "$as_me:10819: result: $with_assumed_color" >&5
10820 echo "${ECHO_T}$with_assumed_color" >&6
10821 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10822 #define USE_ASSUMED_COLOR 1
10825 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10826 echo "$as_me:10826: checking if you want hashmap scrolling-optimization code" >&5
10827 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10829 # Check whether --enable-hashmap or --disable-hashmap was given.
10830 if test "${enable_hashmap+set}" = set; then
10831 enableval="$enable_hashmap"
10832 with_hashmap=$enableval
10836 echo "$as_me:10836: result: $with_hashmap" >&5
10837 echo "${ECHO_T}$with_hashmap" >&6
10838 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10839 #define USE_HASHMAP 1
10842 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10843 echo "$as_me:10843: checking if you want colorfgbg code" >&5
10844 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10846 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10847 if test "${enable_colorfgbg+set}" = set; then
10848 enableval="$enable_colorfgbg"
10849 with_colorfgbg=$enableval
10853 echo "$as_me:10853: result: $with_colorfgbg" >&5
10854 echo "${ECHO_T}$with_colorfgbg" >&6
10855 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10856 #define USE_COLORFGBG 1
10859 ### use option --enable-interop to turn on use of bindings used for interop
10860 echo "$as_me:10860: checking if you want interop bindings" >&5
10861 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
10863 # Check whether --enable-interop or --disable-interop was given.
10864 if test "${enable_interop+set}" = set; then
10865 enableval="$enable_interop"
10866 with_exp_interop=$enableval
10868 with_exp_interop=no
10870 echo "$as_me:10870: result: $with_exp_interop" >&5
10871 echo "${ECHO_T}$with_exp_interop" >&6
10873 NCURSES_INTEROP_FUNCS=0
10874 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
10876 # This is still experimental (20080329), but should ultimately be moved to
10877 # the script-block --with-normal, etc.
10879 echo "$as_me:10879: checking if you want to link with the pthread library" >&5
10880 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10882 # Check whether --with-pthread or --without-pthread was given.
10883 if test "${with_pthread+set}" = set; then
10884 withval="$with_pthread"
10885 with_pthread=$withval
10889 echo "$as_me:10889: result: $with_pthread" >&5
10890 echo "${ECHO_T}$with_pthread" >&6
10892 if test "$with_pthread" != no ; then
10893 echo "$as_me:10893: checking for pthread.h" >&5
10894 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10895 if test "${ac_cv_header_pthread_h+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 cat >conftest.$ac_ext <<_ACEOF
10899 #line 10899 "configure"
10900 #include "confdefs.h"
10901 #include <pthread.h>
10903 if { (eval echo "$as_me:10903: \"$ac_cpp conftest.$ac_ext\"") >&5
10904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10906 egrep -v '^ *\+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:10909: \$? = $ac_status" >&5
10910 (exit $ac_status); } >/dev/null; then
10911 if test -s conftest.err; then
10912 ac_cpp_err=$ac_c_preproc_warn_flag
10919 if test -z "$ac_cpp_err"; then
10920 ac_cv_header_pthread_h=yes
10922 echo "$as_me: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10924 ac_cv_header_pthread_h=no
10926 rm -f conftest.err conftest.$ac_ext
10928 echo "$as_me:10928: result: $ac_cv_header_pthread_h" >&5
10929 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10930 if test $ac_cv_header_pthread_h = yes; then
10932 cat >>confdefs.h <<\EOF
10933 #define HAVE_PTHREADS_H 1
10936 echo "$as_me:10936: checking if we can link with the pthread library" >&5
10937 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10938 cf_save_LIBS="$LIBS"
10939 LIBS="-lpthread $LIBS"
10940 cat >conftest.$ac_ext <<_ACEOF
10941 #line 10941 "configure"
10942 #include "confdefs.h"
10944 #include <pthread.h>
10950 int rc = pthread_create(0,0,0,0);
10956 rm -f conftest.$ac_objext conftest$ac_exeext
10957 if { (eval echo "$as_me:10957: \"$ac_link\"") >&5
10958 (eval $ac_link) 2>&5
10960 echo "$as_me:10960: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try='test -s conftest$ac_exeext'
10963 { (eval echo "$as_me:10963: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:10966: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10970 echo "$as_me: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10975 LIBS="$cf_save_LIBS"
10976 echo "$as_me:10976: result: $with_pthread" >&5
10977 echo "${ECHO_T}$with_pthread" >&6
10979 if test "$with_pthread" = yes ; then
10980 LIBS="-lpthread $LIBS"
10981 cat >>confdefs.h <<\EOF
10982 #define HAVE_LIBPTHREADS 1
10986 { { echo "$as_me:10986: error: Cannot link with pthread library" >&5
10987 echo "$as_me: error: Cannot link with pthread library" >&2;}
10988 { (exit 1); exit 1; }; }
10995 if test "x$with_pthread" != xno; then
10996 echo "$as_me:10996: checking for pthread_kill" >&5
10997 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
10998 if test "${ac_cv_func_pthread_kill+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line 11002 "configure"
11003 #include "confdefs.h"
11004 /* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char pthread_kill (); below. */
11006 #include <assert.h>
11007 /* Override any gcc2 internal prototype to avoid an error. */
11011 /* We use char because int might match the return type of a gcc2
11012 builtin and then its argument prototype would still apply. */
11013 char pthread_kill ();
11019 /* The GNU C library defines this for functions which it implements
11020 to always fail with ENOSYS. Some functions are actually named
11021 something starting with __ and the normal name is an alias. */
11022 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (eval echo "$as_me:11033: \"$ac_link\"") >&5
11034 (eval $ac_link) 2>&5
11036 echo "$as_me:11036: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (eval echo "$as_me:11039: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:11042: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 ac_cv_func_pthread_kill=yes
11046 echo "$as_me: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11048 ac_cv_func_pthread_kill=no
11050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11052 echo "$as_me:11052: result: $ac_cv_func_pthread_kill" >&5
11053 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11054 if test $ac_cv_func_pthread_kill = yes; then
11056 echo "$as_me:11056: checking if you want to allow EINTR in wgetch with pthreads" >&5
11057 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11059 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11060 if test "${enable_pthreads_eintr+set}" = set; then
11061 enableval="$enable_pthreads_eintr"
11062 use_pthreads_eintr=$enableval
11064 use_pthreads_eintr=no
11066 echo "$as_me:11066: result: $use_pthreads_eintr" >&5
11067 echo "${ECHO_T}$use_pthreads_eintr" >&6
11068 if test $use_pthreads_eintr = yes ; then
11069 cat >>confdefs.h <<\EOF
11070 #define USE_PTHREADS_EINTR 1
11076 echo "$as_me:11076: checking if you want to use weak-symbols for pthreads" >&5
11077 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11079 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11080 if test "${enable_weak_symbols+set}" = set; then
11081 enableval="$enable_weak_symbols"
11082 use_weak_symbols=$enableval
11084 use_weak_symbols=no
11086 echo "$as_me:11086: result: $use_weak_symbols" >&5
11087 echo "${ECHO_T}$use_weak_symbols" >&6
11088 if test "$use_weak_symbols" = yes ; then
11090 echo "$as_me:11090: checking if $CC supports weak symbols" >&5
11091 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11092 if test "${cf_cv_weak_symbols+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 cat >conftest.$ac_ext <<_ACEOF
11097 #line 11097 "configure"
11098 #include "confdefs.h"
11105 #if defined(__GNUC__)
11106 # if defined __USE_ISOC99
11107 # define _cat_pragma(exp) _Pragma(#exp)
11108 # define _weak_pragma(exp) _cat_pragma(weak name)
11110 # define _weak_pragma(exp)
11112 # define _declare(name) __extension__ extern __typeof__(name) name
11113 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11116 weak_symbol(fopen);
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:11123: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>&5
11126 echo "$as_me:11126: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (eval echo "$as_me:11129: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 cf_cv_weak_symbols=yes
11136 echo "$as_me: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 cf_cv_weak_symbols=no
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11143 echo "$as_me:11143: result: $cf_cv_weak_symbols" >&5
11144 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11147 cf_cv_weak_symbols=no
11150 if test $cf_cv_weak_symbols = yes ; then
11151 cat >>confdefs.h <<\EOF
11152 #define USE_WEAK_SYMBOLS 1
11159 if test "$with_pthread" = "yes" ; then
11160 cat >>confdefs.h <<\EOF
11161 #define USE_PTHREADS 1
11164 enable_reentrant=yes
11165 if test $cf_cv_weak_symbols = yes ; then
11170 # Reentrant code has to be opaque; there's little advantage to making ncurses
11171 # opaque outside of that, so there is no --enable-opaque option. We can use
11172 # this option without --with-pthreads, but this will be always set for
11174 echo "$as_me:11174: checking if you want experimental reentrant code" >&5
11175 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11177 # Check whether --enable-reentrant or --disable-reentrant was given.
11178 if test "${enable_reentrant+set}" = set; then
11179 enableval="$enable_reentrant"
11180 with_reentrant=$enableval
11184 echo "$as_me:11184: result: $with_reentrant" >&5
11185 echo "${ECHO_T}$with_reentrant" >&6
11186 if test "$with_reentrant" = yes ; then
11187 cf_cv_enable_reentrant=1
11188 cf_cv_enable_opaque="NCURSES_INTERNALS"
11191 if test $cf_cv_weak_symbols = yes ; then
11193 # remove pthread library from $LIBS
11194 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11196 TEST_LIBS="-lpthread $TEST_LIBS"
11197 TEST_LIBS2="-lpthread $TEST_LIBS2"
11199 LIB_SUFFIX="t${LIB_SUFFIX}"
11201 cat >>confdefs.h <<\EOF
11202 #define USE_REENTRANT 1
11205 if test "${with_abi_version+set}" != set; then
11206 case $cf_cv_rel_version in
11208 cf_cv_rel_version=6.0
11209 cf_cv_abi_version=6
11210 { echo "$as_me:11210: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11211 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11217 cf_cv_enable_reentrant=0
11218 cf_cv_enable_opaque="NCURSES_OPAQUE"
11220 NCURSES_SIZE_T=short
11223 ### Allow using a different wrap-prefix
11224 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11225 echo "$as_me:11225: checking for prefix used to wrap public variables" >&5
11226 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11228 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11229 if test "${with_wrap_prefix+set}" = set; then
11230 withval="$with_wrap_prefix"
11231 NCURSES_WRAP_PREFIX=$withval
11233 NCURSES_WRAP_PREFIX=_nc_
11235 echo "$as_me:11235: result: $NCURSES_WRAP_PREFIX" >&5
11236 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11238 NCURSES_WRAP_PREFIX=_nc_
11241 cat >>confdefs.h <<EOF
11242 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11245 echo "$as_me:11245: checking if you want experimental safe-sprintf code" >&5
11246 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11248 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11249 if test "${enable_safe_sprintf+set}" = set; then
11250 enableval="$enable_safe_sprintf"
11251 with_safe_sprintf=$enableval
11253 with_safe_sprintf=no
11255 echo "$as_me:11255: result: $with_safe_sprintf" >&5
11256 echo "${ECHO_T}$with_safe_sprintf" >&6
11257 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11258 #define USE_SAFE_SPRINTF 1
11261 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11262 # when hashmap is used scroll hints are useless
11263 if test "$with_hashmap" = no ; then
11264 echo "$as_me:11264: checking if you want to experiment without scrolling-hints code" >&5
11265 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11267 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11268 if test "${enable_scroll_hints+set}" = set; then
11269 enableval="$enable_scroll_hints"
11270 with_scroll_hints=$enableval
11272 with_scroll_hints=yes
11274 echo "$as_me:11274: result: $with_scroll_hints" >&5
11275 echo "${ECHO_T}$with_scroll_hints" >&6
11276 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11277 #define USE_SCROLL_HINTS 1
11282 echo "$as_me:11282: checking if you want experimental wgetch-events code" >&5
11283 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11285 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11286 if test "${enable_wgetch_events+set}" = set; then
11287 enableval="$enable_wgetch_events"
11288 with_wgetch_events=$enableval
11290 with_wgetch_events=no
11292 echo "$as_me:11292: result: $with_wgetch_events" >&5
11293 echo "${ECHO_T}$with_wgetch_events" >&6
11294 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
11295 #define NCURSES_WGETCH_EVENTS 1
11298 ###############################################################################
11300 ### use option --disable-echo to suppress full display compiling commands
11301 echo "$as_me:11301: checking if you want to display full commands during build" >&5
11302 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
11304 # Check whether --enable-echo or --disable-echo was given.
11305 if test "${enable_echo+set}" = set; then
11306 enableval="$enable_echo"
11307 with_echo=$enableval
11311 if test "$with_echo" = yes; then
11314 ECHO_LINK='@ echo linking $@ ... ;'
11315 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11316 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11318 echo "$as_me:11318: result: $with_echo" >&5
11319 echo "${ECHO_T}$with_echo" >&6
11321 ### use option --enable-warnings to turn on all gcc warnings
11322 echo "$as_me:11322: checking if you want to see compiler warnings" >&5
11323 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
11325 # Check whether --enable-warnings or --disable-warnings was given.
11326 if test "${enable_warnings+set}" = set; then
11327 enableval="$enable_warnings"
11328 with_warnings=$enableval
11330 echo "$as_me:11330: result: $with_warnings" >&5
11331 echo "${ECHO_T}$with_warnings" >&6
11333 if test "x$with_warnings" = "xyes"; then
11335 ADAFLAGS="$ADAFLAGS -gnatg"
11339 if test "$GCC" = yes ; then
11342 echo "$as_me:11342: checking if this is really Intel C compiler" >&5
11343 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
11344 cf_save_CFLAGS="$CFLAGS"
11345 CFLAGS="$CFLAGS -no-gcc"
11346 cat >conftest.$ac_ext <<_ACEOF
11347 #line 11347 "configure"
11348 #include "confdefs.h"
11354 #ifdef __INTEL_COMPILER
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:11364: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>&5
11367 echo "$as_me:11367: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (eval echo "$as_me:11370: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:11373: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11376 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11379 echo "$as_me: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11382 rm -f conftest.$ac_objext conftest.$ac_ext
11383 CFLAGS="$cf_save_CFLAGS"
11384 echo "$as_me:11384: result: $INTEL_COMPILER" >&5
11385 echo "${ECHO_T}$INTEL_COMPILER" >&6
11390 cat > conftest.$ac_ext <<EOF
11391 #line 11391 "${as_me:-configure}"
11392 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11395 if test "$INTEL_COMPILER" = yes
11397 # The "-wdXXX" options suppress warnings:
11398 # remark #1419: external declaration in primary source file
11399 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11400 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11401 # remark #193: zero used for undefined preprocessing identifier
11402 # remark #593: variable "curs_sb_left_arrow" was set but never used
11403 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11404 # remark #869: parameter "tw" was never referenced
11405 # remark #981: operands are evaluated in unspecified order
11406 # warning #279: controlling expression is constant
11408 { echo "$as_me:11408: checking for $CC warning options..." >&5
11409 echo "$as_me: checking for $CC warning options..." >&6;}
11410 cf_save_CFLAGS="$CFLAGS"
11411 EXTRA_CFLAGS="-Wall"
11423 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11424 if { (eval echo "$as_me:11424: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>&5
11427 echo "$as_me:11427: \$? = $ac_status" >&5
11428 (exit $ac_status); }; then
11429 test -n "$verbose" && echo "$as_me:11429: result: ... -$cf_opt" >&5
11430 echo "${ECHO_T}... -$cf_opt" >&6
11431 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11434 CFLAGS="$cf_save_CFLAGS"
11436 elif test "$GCC" = yes
11438 { echo "$as_me:11438: checking for $CC warning options..." >&5
11439 echo "$as_me: checking for $CC warning options..." >&6;}
11440 cf_save_CFLAGS="$CFLAGS"
11443 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
11444 for cf_opt in W Wall \
11445 Wbad-function-cast \
11449 Wmissing-declarations \
11450 Wmissing-prototypes \
11454 Wstrict-prototypes \
11455 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
11457 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11458 if { (eval echo "$as_me:11458: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>&5
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 (exit $ac_status); }; then
11463 test -n "$verbose" && echo "$as_me:11463: result: ... -$cf_opt" >&5
11464 echo "${ECHO_T}... -$cf_opt" >&6
11465 case $cf_opt in #(vi
11467 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
11470 case $GCC_VERSION in
11472 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
11474 echo "${as_me:-configure}:11474: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
11480 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11483 CFLAGS="$cf_save_CFLAGS"
11487 if test "$cf_with_cxx" = yes ; then
11491 if test "$GCC" = yes ; then
11494 echo "$as_me:11494: checking if this is really Intel C++ compiler" >&5
11495 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
11496 cf_save_CFLAGS="$CXXFLAGS"
11497 CXXFLAGS="$CXXFLAGS -no-gcc"
11498 cat >conftest.$ac_ext <<_ACEOF
11499 #line 11499 "configure"
11500 #include "confdefs.h"
11506 #ifdef __INTEL_COMPILER
11515 rm -f conftest.$ac_objext
11516 if { (eval echo "$as_me:11516: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>&5
11519 echo "$as_me:11519: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -s conftest.$ac_objext'
11522 { (eval echo "$as_me:11522: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:11525: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 INTEL_CPLUSPLUS=yes
11528 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11531 echo "$as_me: failed program was:" >&5
11532 cat conftest.$ac_ext >&5
11534 rm -f conftest.$ac_objext conftest.$ac_ext
11535 CXXFLAGS="$cf_save_CFLAGS"
11536 echo "$as_me:11536: result: $INTEL_CPLUSPLUS" >&5
11537 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
11543 ac_cpp='$CXXCPP $CPPFLAGS'
11544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11547 ac_main_return=return
11549 cat > conftest.$ac_ext <<EOF
11550 #line 11550 "configure"
11551 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11554 if test "$INTEL_CPLUSPLUS" = yes
11556 # The "-wdXXX" options suppress warnings:
11557 # remark #1419: external declaration in primary source file
11558 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11559 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11560 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11561 # remark #193: zero used for undefined preprocessing identifier
11562 # remark #593: variable "curs_sb_left_arrow" was set but never used
11563 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11564 # remark #869: parameter "tw" was never referenced
11565 # remark #981: operands are evaluated in unspecified order
11566 # warning #269: invalid format string conversion
11568 { echo "$as_me:11568: checking for $CC warning options..." >&5
11569 echo "$as_me: checking for $CC warning options..." >&6;}
11570 cf_save_CXXFLAGS="$CXXFLAGS"
11571 EXTRA_CXXFLAGS="-Wall"
11584 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
11585 if { (eval echo "$as_me:11585: \"$ac_compile\"") >&5
11586 (eval $ac_compile) 2>&5
11588 echo "$as_me:11588: \$? = $ac_status" >&5
11589 (exit $ac_status); }; then
11590 test -n "$verbose" && echo "$as_me:11590: result: ... -$cf_opt" >&5
11591 echo "${ECHO_T}... -$cf_opt" >&6
11592 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11595 CXXFLAGS="$cf_save_CXXFLAGS"
11597 elif test "$GXX" = yes
11599 { echo "$as_me:11599: checking for $CXX warning options..." >&5
11600 echo "$as_me: checking for $CXX warning options..." >&6;}
11601 cf_save_CXXFLAGS="$CXXFLAGS"
11602 EXTRA_CXXFLAGS="-W -Wall"
11603 cf_gxx_extra_warnings=""
11604 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
11605 case "$GCC_VERSION" in
11609 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
11615 Woverloaded-virtual \
11621 Wmissing-prototypes \
11624 Wstrict-prototypes \
11625 Wundef $cf_gxx_extra_warnings Wno-unused
11627 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
11628 if { (eval echo "$as_me:11628: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>&5
11631 echo "$as_me:11631: \$? = $ac_status" >&5
11632 (exit $ac_status); }; then
11633 test -n "$verbose" && echo "$as_me:11633: result: ... -$cf_opt" >&5
11634 echo "${ECHO_T}... -$cf_opt" >&6
11635 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11637 test -n "$verbose" && echo "$as_me:11637: result: ... no -$cf_opt" >&5
11638 echo "${ECHO_T}... no -$cf_opt" >&6
11641 CXXFLAGS="$cf_save_CXXFLAGS"
11646 ac_cpp='$CPP $CPPFLAGS'
11647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11650 ac_main_return=return
11655 if test "$GCC" = yes
11657 cat > conftest.i <<EOF
11659 #define GCC_PRINTF 0
11662 #define GCC_SCANF 0
11664 #ifndef GCC_NORETURN
11665 #define GCC_NORETURN /* nothing */
11668 #define GCC_UNUSED /* nothing */
11671 if test "$GCC" = yes
11673 { echo "$as_me:11673: checking for $CC __attribute__ directives..." >&5
11674 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11676 "${as_me:-configure}"
11677 #include "confdefs.h"
11678 #include "conftest.h"
11679 #include "conftest.i"
11681 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11683 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
11686 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11688 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
11690 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
11691 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
11692 extern void foo(void) GCC_NORETURN;
11693 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
11695 cf_printf_attribute=no
11696 cf_scanf_attribute=no
11697 for cf_attribute in scanf printf unused noreturn
11700 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11702 cf_directive="__attribute__(($cf_attribute))"
11703 echo "checking for $CC $cf_directive" 1>&5
11705 case $cf_attribute in #(vi
11707 cf_printf_attribute=yes
11708 cat >conftest.h <<EOF
11709 #define GCC_$cf_ATTRIBUTE 1
11713 cf_scanf_attribute=yes
11714 cat >conftest.h <<EOF
11715 #define GCC_$cf_ATTRIBUTE 1
11719 cat >conftest.h <<EOF
11720 #define GCC_$cf_ATTRIBUTE $cf_directive
11725 if { (eval echo "$as_me:11725: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>&5
11728 echo "$as_me:11728: \$? = $ac_status" >&5
11729 (exit $ac_status); }; then
11730 test -n "$verbose" && echo "$as_me:11730: result: ... $cf_attribute" >&5
11731 echo "${ECHO_T}... $cf_attribute" >&6
11732 cat conftest.h >>confdefs.h
11733 case $cf_attribute in #(vi
11735 if test "$cf_printf_attribute" = no ; then
11736 cat >>confdefs.h <<EOF
11737 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
11740 cat >>confdefs.h <<EOF
11741 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11746 if test "$cf_scanf_attribute" = no ; then
11747 cat >>confdefs.h <<EOF
11748 #define GCC_SCANFLIKE(fmt,var) /* nothing */
11751 cat >>confdefs.h <<EOF
11752 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11760 fgrep define conftest.i >>confdefs.h
11765 ### use option --enable-assertions to turn on generation of assertion code
11766 echo "$as_me:11766: checking if you want to enable runtime assertions" >&5
11767 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
11769 # Check whether --enable-assertions or --disable-assertions was given.
11770 if test "${enable_assertions+set}" = set; then
11771 enableval="$enable_assertions"
11772 with_assertions=$enableval
11776 echo "$as_me:11776: result: $with_assertions" >&5
11777 echo "${ECHO_T}$with_assertions" >&6
11780 if test "$with_assertions" = no
11782 cat >>confdefs.h <<\EOF
11786 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11789 ADAFLAGS="$ADAFLAGS -gnata"
11794 ### use option --disable-leaks to suppress "permanent" leaks, for testing
11796 echo "$as_me:11796: checking if you want to use dmalloc for testing" >&5
11797 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
11799 # Check whether --with-dmalloc or --without-dmalloc was given.
11800 if test "${with_dmalloc+set}" = set; then
11801 withval="$with_dmalloc"
11802 cat >>confdefs.h <<\EOF
11803 #define USE_DMALLOC 1
11806 : ${with_cflags:=-g}
11807 : ${with_no_leaks:=yes}
11812 echo "$as_me:11812: result: ${with_dmalloc:-no}" >&5
11813 echo "${ECHO_T}${with_dmalloc:-no}" >&6
11815 case .$with_cflags in #(vi
11817 case .$CFLAGS in #(vi
11825 cf_new_extra_cppflags=
11827 for cf_add_cflags in -g
11829 case $cf_fix_cppflags in
11831 case $cf_add_cflags in #(vi
11832 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11833 case $cf_add_cflags in
11835 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11837 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11838 && test -z "${cf_tst_cflags}" \
11839 && cf_fix_cppflags=yes
11841 if test $cf_fix_cppflags = yes ; then
11842 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11844 elif test "${cf_tst_cflags}" = "\"'" ; then
11845 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11850 case "$CPPFLAGS" in
11851 *$cf_add_cflags) #(vi
11854 case $cf_add_cflags in #(vi
11856 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11858 CPPFLAGS=`echo "$CPPFLAGS" | \
11859 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11860 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11864 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11869 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11874 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11876 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11878 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11879 && test -z "${cf_tst_cflags}" \
11880 && cf_fix_cppflags=no
11885 if test -n "$cf_new_cflags" ; then
11887 CFLAGS="$CFLAGS $cf_new_cflags"
11890 if test -n "$cf_new_cppflags" ; then
11892 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11895 if test -n "$cf_new_extra_cppflags" ; then
11897 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11905 if test "$with_dmalloc" = yes ; then
11906 echo "$as_me:11906: checking for dmalloc.h" >&5
11907 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
11908 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11912 #line 11912 "configure"
11913 #include "confdefs.h"
11914 #include <dmalloc.h>
11916 if { (eval echo "$as_me:11916: \"$ac_cpp conftest.$ac_ext\"") >&5
11917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11919 egrep -v '^ *\+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:11922: \$? = $ac_status" >&5
11923 (exit $ac_status); } >/dev/null; then
11924 if test -s conftest.err; then
11925 ac_cpp_err=$ac_c_preproc_warn_flag
11932 if test -z "$ac_cpp_err"; then
11933 ac_cv_header_dmalloc_h=yes
11935 echo "$as_me: failed program was:" >&5
11936 cat conftest.$ac_ext >&5
11937 ac_cv_header_dmalloc_h=no
11939 rm -f conftest.err conftest.$ac_ext
11941 echo "$as_me:11941: result: $ac_cv_header_dmalloc_h" >&5
11942 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
11943 if test $ac_cv_header_dmalloc_h = yes; then
11945 echo "$as_me:11945: checking for dmalloc_debug in -ldmalloc" >&5
11946 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
11947 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-ldmalloc $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line 11953 "configure"
11954 #include "confdefs.h"
11956 /* Override any gcc2 internal prototype to avoid an error. */
11960 /* We use char because int might match the return type of a gcc2
11961 builtin and then its argument prototype would still apply. */
11962 char dmalloc_debug ();
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (eval echo "$as_me:11972: \"$ac_link\"") >&5
11973 (eval $ac_link) 2>&5
11975 echo "$as_me:11975: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (eval echo "$as_me:11978: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:11981: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_cv_lib_dmalloc_dmalloc_debug=yes
11985 echo "$as_me: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 ac_cv_lib_dmalloc_dmalloc_debug=no
11989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11992 echo "$as_me:11992: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11993 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11994 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11995 cat >>confdefs.h <<EOF
11996 #define HAVE_LIBDMALLOC 1
11999 LIBS="-ldmalloc $LIBS"
12007 echo "$as_me:12007: checking if you want to use dbmalloc for testing" >&5
12008 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12010 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12011 if test "${with_dbmalloc+set}" = set; then
12012 withval="$with_dbmalloc"
12013 cat >>confdefs.h <<\EOF
12014 #define USE_DBMALLOC 1
12017 : ${with_cflags:=-g}
12018 : ${with_no_leaks:=yes}
12023 echo "$as_me:12023: result: ${with_dbmalloc:-no}" >&5
12024 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12026 case .$with_cflags in #(vi
12028 case .$CFLAGS in #(vi
12036 cf_new_extra_cppflags=
12038 for cf_add_cflags in -g
12040 case $cf_fix_cppflags in
12042 case $cf_add_cflags in #(vi
12043 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12044 case $cf_add_cflags in
12046 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12048 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12049 && test -z "${cf_tst_cflags}" \
12050 && cf_fix_cppflags=yes
12052 if test $cf_fix_cppflags = yes ; then
12053 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12055 elif test "${cf_tst_cflags}" = "\"'" ; then
12056 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12061 case "$CPPFLAGS" in
12062 *$cf_add_cflags) #(vi
12065 case $cf_add_cflags in #(vi
12067 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12069 CPPFLAGS=`echo "$CPPFLAGS" | \
12070 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12071 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12075 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12080 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12085 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12087 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12089 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12090 && test -z "${cf_tst_cflags}" \
12091 && cf_fix_cppflags=no
12096 if test -n "$cf_new_cflags" ; then
12098 CFLAGS="$CFLAGS $cf_new_cflags"
12101 if test -n "$cf_new_cppflags" ; then
12103 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12106 if test -n "$cf_new_extra_cppflags" ; then
12108 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12116 if test "$with_dbmalloc" = yes ; then
12117 echo "$as_me:12117: checking for dbmalloc.h" >&5
12118 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12119 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 cat >conftest.$ac_ext <<_ACEOF
12123 #line 12123 "configure"
12124 #include "confdefs.h"
12125 #include <dbmalloc.h>
12127 if { (eval echo "$as_me:12127: \"$ac_cpp conftest.$ac_ext\"") >&5
12128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12130 egrep -v '^ *\+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:12133: \$? = $ac_status" >&5
12134 (exit $ac_status); } >/dev/null; then
12135 if test -s conftest.err; then
12136 ac_cpp_err=$ac_c_preproc_warn_flag
12143 if test -z "$ac_cpp_err"; then
12144 ac_cv_header_dbmalloc_h=yes
12146 echo "$as_me: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12148 ac_cv_header_dbmalloc_h=no
12150 rm -f conftest.err conftest.$ac_ext
12152 echo "$as_me:12152: result: $ac_cv_header_dbmalloc_h" >&5
12153 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
12154 if test $ac_cv_header_dbmalloc_h = yes; then
12156 echo "$as_me:12156: checking for debug_malloc in -ldbmalloc" >&5
12157 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
12158 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 ac_check_lib_save_LIBS=$LIBS
12162 LIBS="-ldbmalloc $LIBS"
12163 cat >conftest.$ac_ext <<_ACEOF
12164 #line 12164 "configure"
12165 #include "confdefs.h"
12167 /* Override any gcc2 internal prototype to avoid an error. */
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173 char debug_malloc ();
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (eval echo "$as_me:12183: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>&5
12186 echo "$as_me:12186: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:12189: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:12192: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_dbmalloc_debug_malloc=yes
12196 echo "$as_me: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12198 ac_cv_lib_dbmalloc_debug_malloc=no
12200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12203 echo "$as_me:12203: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
12204 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
12205 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
12206 cat >>confdefs.h <<EOF
12207 #define HAVE_LIBDBMALLOC 1
12210 LIBS="-ldbmalloc $LIBS"
12218 echo "$as_me:12218: checking if you want to use valgrind for testing" >&5
12219 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
12221 # Check whether --with-valgrind or --without-valgrind was given.
12222 if test "${with_valgrind+set}" = set; then
12223 withval="$with_valgrind"
12224 cat >>confdefs.h <<\EOF
12225 #define USE_VALGRIND 1
12228 : ${with_cflags:=-g}
12229 : ${with_no_leaks:=yes}
12234 echo "$as_me:12234: result: ${with_valgrind:-no}" >&5
12235 echo "${ECHO_T}${with_valgrind:-no}" >&6
12237 case .$with_cflags in #(vi
12239 case .$CFLAGS in #(vi
12247 cf_new_extra_cppflags=
12249 for cf_add_cflags in -g
12251 case $cf_fix_cppflags in
12253 case $cf_add_cflags in #(vi
12254 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12255 case $cf_add_cflags in
12257 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12259 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12260 && test -z "${cf_tst_cflags}" \
12261 && cf_fix_cppflags=yes
12263 if test $cf_fix_cppflags = yes ; then
12264 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12266 elif test "${cf_tst_cflags}" = "\"'" ; then
12267 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12272 case "$CPPFLAGS" in
12273 *$cf_add_cflags) #(vi
12276 case $cf_add_cflags in #(vi
12278 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12280 CPPFLAGS=`echo "$CPPFLAGS" | \
12281 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12282 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12286 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12291 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12296 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12298 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12300 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12301 && test -z "${cf_tst_cflags}" \
12302 && cf_fix_cppflags=no
12307 if test -n "$cf_new_cflags" ; then
12309 CFLAGS="$CFLAGS $cf_new_cflags"
12312 if test -n "$cf_new_cppflags" ; then
12314 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12317 if test -n "$cf_new_extra_cppflags" ; then
12319 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12327 echo "$as_me:12327: checking if you want to perform memory-leak testing" >&5
12328 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
12330 # Check whether --enable-leaks or --disable-leaks was given.
12331 if test "${enable_leaks+set}" = set; then
12332 enableval="$enable_leaks"
12333 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
12335 : ${with_no_leaks:=no}
12337 echo "$as_me:12337: result: $with_no_leaks" >&5
12338 echo "${ECHO_T}$with_no_leaks" >&6
12340 if test "$with_no_leaks" = yes ; then
12341 cat >>confdefs.h <<\EOF
12345 cat >>confdefs.h <<\EOF
12346 #define YY_NO_LEAKS 1
12351 cat >>confdefs.h <<\EOF
12352 #define HAVE_NC_ALLOC_H 1
12355 ### use option --enable-expanded to generate certain macros as functions
12357 # Check whether --enable-expanded or --disable-expanded was given.
12358 if test "${enable_expanded+set}" = set; then
12359 enableval="$enable_expanded"
12360 test "$enableval" = yes && cat >>confdefs.h <<\EOF
12361 #define NCURSES_EXPANDED 1
12366 ### use option --disable-macros to suppress macros in favor of functions
12368 # Check whether --enable-macros or --disable-macros was given.
12369 if test "${enable_macros+set}" = set; then
12370 enableval="$enable_macros"
12371 test "$enableval" = no && cat >>confdefs.h <<\EOF
12372 #define NCURSES_NOMACROS 1
12377 # Normally we only add trace() to the debug-library. Allow this to be
12378 # extended to all models of the ncurses library:
12380 case "$CFLAGS $CPPFLAGS" in
12386 echo "$as_me:12386: checking whether to add trace feature to all models" >&5
12387 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
12389 # Check whether --with-trace or --without-trace was given.
12390 if test "${with_trace+set}" = set; then
12391 withval="$with_trace"
12392 cf_with_trace=$withval
12394 cf_with_trace=$cf_all_traces
12396 echo "$as_me:12396: result: $cf_with_trace" >&5
12397 echo "${ECHO_T}$cf_with_trace" >&6
12399 if test "$cf_with_trace" = yes ; then
12406 cf_new_extra_cppflags=
12408 for cf_add_cflags in -DTRACE
12410 case $cf_fix_cppflags in
12412 case $cf_add_cflags in #(vi
12413 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12414 case $cf_add_cflags in
12416 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12418 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12419 && test -z "${cf_tst_cflags}" \
12420 && cf_fix_cppflags=yes
12422 if test $cf_fix_cppflags = yes ; then
12423 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12425 elif test "${cf_tst_cflags}" = "\"'" ; then
12426 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12431 case "$CPPFLAGS" in
12432 *$cf_add_cflags) #(vi
12435 case $cf_add_cflags in #(vi
12437 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12439 CPPFLAGS=`echo "$CPPFLAGS" | \
12440 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12441 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12445 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12450 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12455 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12457 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12459 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12460 && test -z "${cf_tst_cflags}" \
12461 && cf_fix_cppflags=no
12466 if test -n "$cf_new_cflags" ; then
12468 CFLAGS="$CFLAGS $cf_new_cflags"
12471 if test -n "$cf_new_cppflags" ; then
12473 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12476 if test -n "$cf_new_extra_cppflags" ; then
12478 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12486 ### Checks for libraries.
12487 case $cf_cv_system_name in #(vi
12491 echo "$as_me:12491: checking for gettimeofday" >&5
12492 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
12493 if test "${ac_cv_func_gettimeofday+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 cat >conftest.$ac_ext <<_ACEOF
12497 #line 12497 "configure"
12498 #include "confdefs.h"
12499 /* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char gettimeofday (); below. */
12501 #include <assert.h>
12502 /* Override any gcc2 internal prototype to avoid an error. */
12506 /* We use char because int might match the return type of a gcc2
12507 builtin and then its argument prototype would still apply. */
12508 char gettimeofday ();
12514 /* The GNU C library defines this for functions which it implements
12515 to always fail with ENOSYS. Some functions are actually named
12516 something starting with __ and the normal name is an alias. */
12517 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:12528: \"$ac_link\"") >&5
12529 (eval $ac_link) 2>&5
12531 echo "$as_me:12531: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (eval echo "$as_me:12534: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:12537: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_func_gettimeofday=yes
12541 echo "$as_me: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 ac_cv_func_gettimeofday=no
12545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12547 echo "$as_me:12547: result: $ac_cv_func_gettimeofday" >&5
12548 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
12549 if test $ac_cv_func_gettimeofday = yes; then
12550 cat >>confdefs.h <<\EOF
12551 #define HAVE_GETTIMEOFDAY 1
12556 echo "$as_me:12556: checking for gettimeofday in -lbsd" >&5
12557 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
12558 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 ac_check_lib_save_LIBS=$LIBS
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line 12564 "configure"
12565 #include "confdefs.h"
12567 /* Override any gcc2 internal prototype to avoid an error. */
12571 /* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573 char gettimeofday ();
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (eval echo "$as_me:12583: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>&5
12586 echo "$as_me:12586: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -s conftest$ac_exeext'
12589 { (eval echo "$as_me:12589: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12592 echo "$as_me:12592: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_cv_lib_bsd_gettimeofday=yes
12596 echo "$as_me: failed program was:" >&5
12597 cat conftest.$ac_ext >&5
12598 ac_cv_lib_bsd_gettimeofday=no
12600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12601 LIBS=$ac_check_lib_save_LIBS
12603 echo "$as_me:12603: result: $ac_cv_lib_bsd_gettimeofday" >&5
12604 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
12605 if test $ac_cv_lib_bsd_gettimeofday = yes; then
12606 cat >>confdefs.h <<\EOF
12607 #define HAVE_GETTIMEOFDAY 1
12617 echo "$as_me:12617: checking if -lm needed for math functions" >&5
12618 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
12619 if test "${cf_cv_need_libm+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 cat >conftest.$ac_ext <<_ACEOF
12624 #line 12624 "configure"
12625 #include "confdefs.h"
12633 double x = rand(); printf("result = %g\n", sin(x))
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (eval echo "$as_me:12639: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>&5
12642 echo "$as_me:12642: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (eval echo "$as_me:12645: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:12648: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12652 echo "$as_me: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
12654 cf_cv_need_libm=yes
12656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12658 echo "$as_me:12658: result: $cf_cv_need_libm" >&5
12659 echo "${ECHO_T}$cf_cv_need_libm" >&6
12660 if test "$cf_cv_need_libm" = yes
12665 ### Checks for header files.
12666 echo "$as_me:12666: checking for ANSI C header files" >&5
12667 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12668 if test "${ac_cv_header_stdc+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12672 #line 12672 "configure"
12673 #include "confdefs.h"
12674 #include <stdlib.h>
12675 #include <stdarg.h>
12676 #include <string.h>
12680 if { (eval echo "$as_me:12680: \"$ac_cpp conftest.$ac_ext\"") >&5
12681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12683 egrep -v '^ *\+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:12686: \$? = $ac_status" >&5
12687 (exit $ac_status); } >/dev/null; then
12688 if test -s conftest.err; then
12689 ac_cpp_err=$ac_c_preproc_warn_flag
12696 if test -z "$ac_cpp_err"; then
12697 ac_cv_header_stdc=yes
12699 echo "$as_me: failed program was:" >&5
12700 cat conftest.$ac_ext >&5
12701 ac_cv_header_stdc=no
12703 rm -f conftest.err conftest.$ac_ext
12705 if test $ac_cv_header_stdc = yes; then
12706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12707 cat >conftest.$ac_ext <<_ACEOF
12708 #line 12708 "configure"
12709 #include "confdefs.h"
12710 #include <string.h>
12713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12714 egrep "memchr" >/dev/null 2>&1; then
12717 ac_cv_header_stdc=no
12723 if test $ac_cv_header_stdc = yes; then
12724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12725 cat >conftest.$ac_ext <<_ACEOF
12726 #line 12726 "configure"
12727 #include "confdefs.h"
12728 #include <stdlib.h>
12731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12732 egrep "free" >/dev/null 2>&1; then
12735 ac_cv_header_stdc=no
12741 if test $ac_cv_header_stdc = yes; then
12742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12743 if test "$cross_compiling" = yes; then
12746 cat >conftest.$ac_ext <<_ACEOF
12747 #line 12747 "configure"
12748 #include "confdefs.h"
12750 #if ((' ' & 0x0FF) == 0x020)
12751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12754 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12755 || ('j' <= (c) && (c) <= 'r') \
12756 || ('s' <= (c) && (c) <= 'z'))
12757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12765 for (i = 0; i < 256; i++)
12766 if (XOR (islower (i), ISLOWER (i))
12767 || toupper (i) != TOUPPER (i))
12768 $ac_main_return(2);
12769 $ac_main_return (0);
12772 rm -f conftest$ac_exeext
12773 if { (eval echo "$as_me:12773: \"$ac_link\"") >&5
12774 (eval $ac_link) 2>&5
12776 echo "$as_me:12776: \$? = $ac_status" >&5
12777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12778 { (eval echo "$as_me:12778: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:12781: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12785 echo "$as_me: program exited with status $ac_status" >&5
12786 echo "$as_me: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12788 ac_cv_header_stdc=no
12790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12794 echo "$as_me:12794: result: $ac_cv_header_stdc" >&5
12795 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12796 if test $ac_cv_header_stdc = yes; then
12798 cat >>confdefs.h <<\EOF
12799 #define STDC_HEADERS 1
12804 ac_header_dirent=no
12805 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12806 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12807 echo "$as_me:12807: checking for $ac_hdr that defines DIR" >&5
12808 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 cat >conftest.$ac_ext <<_ACEOF
12813 #line 12813 "configure"
12814 #include "confdefs.h"
12815 #include <sys/types.h>
12827 rm -f conftest.$ac_objext
12828 if { (eval echo "$as_me:12828: \"$ac_compile\"") >&5
12829 (eval $ac_compile) 2>&5
12831 echo "$as_me:12831: \$? = $ac_status" >&5
12832 (exit $ac_status); } &&
12833 { ac_try='test -s conftest.$ac_objext'
12834 { (eval echo "$as_me:12834: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12837 echo "$as_me:12837: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 eval "$as_ac_Header=yes"
12841 echo "$as_me: failed program was:" >&5
12842 cat conftest.$ac_ext >&5
12843 eval "$as_ac_Header=no"
12845 rm -f conftest.$ac_objext conftest.$ac_ext
12847 echo "$as_me:12847: result: `eval echo '${'$as_ac_Header'}'`" >&5
12848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12850 cat >>confdefs.h <<EOF
12851 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12854 ac_header_dirent=$ac_hdr; break
12858 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12859 if test $ac_header_dirent = dirent.h; then
12860 echo "$as_me:12860: checking for opendir in -ldir" >&5
12861 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
12862 if test "${ac_cv_lib_dir_opendir+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_check_lib_save_LIBS=$LIBS
12867 cat >conftest.$ac_ext <<_ACEOF
12868 #line 12868 "configure"
12869 #include "confdefs.h"
12871 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (eval echo "$as_me:12887: \"$ac_link\"") >&5
12888 (eval $ac_link) 2>&5
12890 echo "$as_me:12890: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -s conftest$ac_exeext'
12893 { (eval echo "$as_me:12893: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:12896: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_lib_dir_opendir=yes
12900 echo "$as_me: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 ac_cv_lib_dir_opendir=no
12904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 echo "$as_me:12907: result: $ac_cv_lib_dir_opendir" >&5
12908 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
12909 if test $ac_cv_lib_dir_opendir = yes; then
12914 echo "$as_me:12914: checking for opendir in -lx" >&5
12915 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
12916 if test "${ac_cv_lib_x_opendir+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 ac_check_lib_save_LIBS=$LIBS
12921 cat >conftest.$ac_ext <<_ACEOF
12922 #line 12922 "configure"
12923 #include "confdefs.h"
12925 /* Override any gcc2 internal prototype to avoid an error. */
12929 /* We use char because int might match the return type of a gcc2
12930 builtin and then its argument prototype would still apply. */
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (eval echo "$as_me:12941: \"$ac_link\"") >&5
12942 (eval $ac_link) 2>&5
12944 echo "$as_me:12944: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -s conftest$ac_exeext'
12947 { (eval echo "$as_me:12947: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12950 echo "$as_me:12950: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_cv_lib_x_opendir=yes
12954 echo "$as_me: failed program was:" >&5
12955 cat conftest.$ac_ext >&5
12956 ac_cv_lib_x_opendir=no
12958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 echo "$as_me:12961: result: $ac_cv_lib_x_opendir" >&5
12962 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12963 if test $ac_cv_lib_x_opendir = yes; then
12969 echo "$as_me:12969: checking whether time.h and sys/time.h may both be included" >&5
12970 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12971 if test "${ac_cv_header_time+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line 12975 "configure"
12976 #include "confdefs.h"
12977 #include <sys/types.h>
12978 #include <sys/time.h>
12984 if ((struct tm *) 0)
12990 rm -f conftest.$ac_objext
12991 if { (eval echo "$as_me:12991: \"$ac_compile\"") >&5
12992 (eval $ac_compile) 2>&5
12994 echo "$as_me:12994: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -s conftest.$ac_objext'
12997 { (eval echo "$as_me:12997: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:13000: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_header_time=yes
13004 echo "$as_me: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13006 ac_cv_header_time=no
13008 rm -f conftest.$ac_objext conftest.$ac_ext
13010 echo "$as_me:13010: result: $ac_cv_header_time" >&5
13011 echo "${ECHO_T}$ac_cv_header_time" >&6
13012 if test $ac_cv_header_time = yes; then
13014 cat >>confdefs.h <<\EOF
13015 #define TIME_WITH_SYS_TIME 1
13022 cf_regex_libs="regex re"
13023 case $host_os in #(vi
13025 cf_regex_libs="regex.dll $cf_regex_libs"
13029 echo "$as_me:13029: checking for regcomp" >&5
13030 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13031 if test "${ac_cv_func_regcomp+set}" = set; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 cat >conftest.$ac_ext <<_ACEOF
13035 #line 13035 "configure"
13036 #include "confdefs.h"
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char regcomp (); below. */
13039 #include <assert.h>
13040 /* Override any gcc2 internal prototype to avoid an error. */
13044 /* We use char because int might match the return type of a gcc2
13045 builtin and then its argument prototype would still apply. */
13052 /* The GNU C library defines this for functions which it implements
13053 to always fail with ENOSYS. Some functions are actually named
13054 something starting with __ and the normal name is an alias. */
13055 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (eval echo "$as_me:13066: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>&5
13069 echo "$as_me:13069: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try='test -s conftest$ac_exeext'
13072 { (eval echo "$as_me:13072: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:13075: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_func_regcomp=yes
13079 echo "$as_me: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13081 ac_cv_func_regcomp=no
13083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13085 echo "$as_me:13085: result: $ac_cv_func_regcomp" >&5
13086 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13087 if test $ac_cv_func_regcomp = yes; then
13088 cf_regex_func=regcomp
13091 for cf_regex_lib in $cf_regex_libs
13093 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
13094 echo "$as_me:13094: checking for regcomp in -l$cf_regex_lib" >&5
13095 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
13096 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-l$cf_regex_lib $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13102 #line 13102 "configure"
13103 #include "confdefs.h"
13105 /* Override any gcc2 internal prototype to avoid an error. */
13109 /* We use char because int might match the return type of a gcc2
13110 builtin and then its argument prototype would still apply. */
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:13121: \"$ac_link\"") >&5
13122 (eval $ac_link) 2>&5
13124 echo "$as_me:13124: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (eval echo "$as_me:13127: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:13130: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 eval "$as_ac_Lib=yes"
13134 echo "$as_me: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13136 eval "$as_ac_Lib=no"
13138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13141 echo "$as_me:13141: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13142 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13143 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13145 LIBS="-l$cf_regex_lib $LIBS"
13146 cf_regex_func=regcomp
13154 if test "$cf_regex_func" = no ; then
13155 echo "$as_me:13155: checking for compile" >&5
13156 echo $ECHO_N "checking for compile... $ECHO_C" >&6
13157 if test "${ac_cv_func_compile+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 cat >conftest.$ac_ext <<_ACEOF
13161 #line 13161 "configure"
13162 #include "confdefs.h"
13163 /* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char compile (); below. */
13165 #include <assert.h>
13166 /* Override any gcc2 internal prototype to avoid an error. */
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13178 /* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined (__stub_compile) || defined (__stub___compile)
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (eval echo "$as_me:13192: \"$ac_link\"") >&5
13193 (eval $ac_link) 2>&5
13195 echo "$as_me:13195: \$? = $ac_status" >&5
13196 (exit $ac_status); } &&
13197 { ac_try='test -s conftest$ac_exeext'
13198 { (eval echo "$as_me:13198: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13201 echo "$as_me:13201: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_func_compile=yes
13205 echo "$as_me: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 ac_cv_func_compile=no
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13211 echo "$as_me:13211: result: $ac_cv_func_compile" >&5
13212 echo "${ECHO_T}$ac_cv_func_compile" >&6
13213 if test $ac_cv_func_compile = yes; then
13214 cf_regex_func=compile
13217 echo "$as_me:13217: checking for compile in -lgen" >&5
13218 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
13219 if test "${ac_cv_lib_gen_compile+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 ac_check_lib_save_LIBS=$LIBS
13224 cat >conftest.$ac_ext <<_ACEOF
13225 #line 13225 "configure"
13226 #include "confdefs.h"
13228 /* Override any gcc2 internal prototype to avoid an error. */
13232 /* We use char because int might match the return type of a gcc2
13233 builtin and then its argument prototype would still apply. */
13243 rm -f conftest.$ac_objext conftest$ac_exeext
13244 if { (eval echo "$as_me:13244: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>&5
13247 echo "$as_me:13247: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -s conftest$ac_exeext'
13250 { (eval echo "$as_me:13250: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 echo "$as_me:13253: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
13255 ac_cv_lib_gen_compile=yes
13257 echo "$as_me: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13259 ac_cv_lib_gen_compile=no
13261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13264 echo "$as_me:13264: result: $ac_cv_lib_gen_compile" >&5
13265 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
13266 if test $ac_cv_lib_gen_compile = yes; then
13269 cf_regex_func=compile
13276 if test "$cf_regex_func" = no ; then
13277 { echo "$as_me:13277: WARNING: cannot find regular expression library" >&5
13278 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
13281 echo "$as_me:13281: checking for regular-expression headers" >&5
13282 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
13283 if test "${cf_cv_regex_hdrs+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 cf_cv_regex_hdrs=no
13288 case $cf_regex_func in #(vi
13290 for cf_regex_hdr in regexp.h regexpr.h
13292 cat >conftest.$ac_ext <<_ACEOF
13293 #line 13293 "configure"
13294 #include "confdefs.h"
13295 #include <$cf_regex_hdr>
13300 char *p = compile("", "", "", 0);
13301 int x = step("", "");
13307 rm -f conftest.$ac_objext conftest$ac_exeext
13308 if { (eval echo "$as_me:13308: \"$ac_link\"") >&5
13309 (eval $ac_link) 2>&5
13311 echo "$as_me:13311: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:13314: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:13317: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13320 cf_cv_regex_hdrs=$cf_regex_hdr
13324 echo "$as_me: failed program was:" >&5
13325 cat conftest.$ac_ext >&5
13327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13331 for cf_regex_hdr in regex.h
13333 cat >conftest.$ac_ext <<_ACEOF
13334 #line 13334 "configure"
13335 #include "confdefs.h"
13336 #include <sys/types.h>
13337 #include <$cf_regex_hdr>
13343 int x = regcomp(p, "", 0);
13344 int y = regexec(p, "", 0, 0, 0);
13351 rm -f conftest.$ac_objext conftest$ac_exeext
13352 if { (eval echo "$as_me:13352: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13355 echo "$as_me:13355: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -s conftest$ac_exeext'
13358 { (eval echo "$as_me:13358: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13361 echo "$as_me:13361: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13364 cf_cv_regex_hdrs=$cf_regex_hdr
13368 echo "$as_me: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13377 echo "$as_me:13377: result: $cf_cv_regex_hdrs" >&5
13378 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
13380 case $cf_cv_regex_hdrs in #(vi
13381 no) { echo "$as_me:13381: WARNING: no regular expression header found" >&5
13382 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
13383 regex.h) cat >>confdefs.h <<\EOF
13384 #define HAVE_REGEX_H_FUNCS 1
13387 regexp.h) cat >>confdefs.h <<\EOF
13388 #define HAVE_REGEXP_H_FUNCS 1
13391 regexpr.h) cat >>confdefs.h <<\EOF
13392 #define HAVE_REGEXPR_H_FUNCS 1
13416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13417 echo "$as_me:13417: checking for $ac_header" >&5
13418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 cat >conftest.$ac_ext <<_ACEOF
13423 #line 13423 "configure"
13424 #include "confdefs.h"
13425 #include <$ac_header>
13427 if { (eval echo "$as_me:13427: \"$ac_cpp conftest.$ac_ext\"") >&5
13428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13430 egrep -v '^ *\+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:13433: \$? = $ac_status" >&5
13434 (exit $ac_status); } >/dev/null; then
13435 if test -s conftest.err; then
13436 ac_cpp_err=$ac_c_preproc_warn_flag
13443 if test -z "$ac_cpp_err"; then
13444 eval "$as_ac_Header=yes"
13446 echo "$as_me: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 eval "$as_ac_Header=no"
13450 rm -f conftest.err conftest.$ac_ext
13452 echo "$as_me:13452: result: `eval echo '${'$as_ac_Header'}'`" >&5
13453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13455 cat >>confdefs.h <<EOF
13456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13462 for ac_header in unistd.h getopt.h
13464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13465 echo "$as_me:13465: checking for $ac_header" >&5
13466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 cat >conftest.$ac_ext <<_ACEOF
13471 #line 13471 "configure"
13472 #include "confdefs.h"
13473 #include <$ac_header>
13475 if { (eval echo "$as_me:13475: \"$ac_cpp conftest.$ac_ext\"") >&5
13476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13478 egrep -v '^ *\+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:13481: \$? = $ac_status" >&5
13482 (exit $ac_status); } >/dev/null; then
13483 if test -s conftest.err; then
13484 ac_cpp_err=$ac_c_preproc_warn_flag
13491 if test -z "$ac_cpp_err"; then
13492 eval "$as_ac_Header=yes"
13494 echo "$as_me: failed program was:" >&5
13495 cat conftest.$ac_ext >&5
13496 eval "$as_ac_Header=no"
13498 rm -f conftest.err conftest.$ac_ext
13500 echo "$as_me:13500: result: `eval echo '${'$as_ac_Header'}'`" >&5
13501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13503 cat >>confdefs.h <<EOF
13504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13510 echo "$as_me:13510: checking for header declaring getopt variables" >&5
13511 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
13512 if test "${cf_cv_getopt_header+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 cf_cv_getopt_header=none
13517 for cf_header in stdio.h stdlib.h unistd.h getopt.h
13519 cat >conftest.$ac_ext <<_ACEOF
13520 #line 13520 "configure"
13521 #include "confdefs.h"
13523 #include <$cf_header>
13527 int x = optind; char *y = optarg
13532 rm -f conftest.$ac_objext
13533 if { (eval echo "$as_me:13533: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>&5
13536 echo "$as_me:13536: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
13538 { ac_try='test -s conftest.$ac_objext'
13539 { (eval echo "$as_me:13539: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:13542: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 cf_cv_getopt_header=$cf_header
13547 echo "$as_me: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13550 rm -f conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:13554: result: $cf_cv_getopt_header" >&5
13555 echo "${ECHO_T}$cf_cv_getopt_header" >&6
13556 if test $cf_cv_getopt_header != none ; then
13557 cat >>confdefs.h <<\EOF
13558 #define HAVE_GETOPT_HEADER 1
13563 # check for ISC (this may also define _POSIX_SOURCE)
13564 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
13565 if test "$ISC" = yes ; then
13567 echo "$as_me:13567: checking for main in -lcposix" >&5
13568 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
13569 if test "${ac_cv_lib_cposix_main+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 ac_check_lib_save_LIBS=$LIBS
13573 LIBS="-lcposix $LIBS"
13574 cat >conftest.$ac_ext <<_ACEOF
13575 #line 13575 "configure"
13576 #include "confdefs.h"
13586 rm -f conftest.$ac_objext conftest$ac_exeext
13587 if { (eval echo "$as_me:13587: \"$ac_link\"") >&5
13588 (eval $ac_link) 2>&5
13590 echo "$as_me:13590: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:13593: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:13596: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_lib_cposix_main=yes
13600 echo "$as_me: failed program was:" >&5
13601 cat conftest.$ac_ext >&5
13602 ac_cv_lib_cposix_main=no
13604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13605 LIBS=$ac_check_lib_save_LIBS
13607 echo "$as_me:13607: result: $ac_cv_lib_cposix_main" >&5
13608 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
13609 if test $ac_cv_lib_cposix_main = yes; then
13610 cat >>confdefs.h <<EOF
13611 #define HAVE_LIBCPOSIX 1
13614 LIBS="-lcposix $LIBS"
13618 echo "$as_me:13618: checking for bzero in -linet" >&5
13619 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
13620 if test "${ac_cv_lib_inet_bzero+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 ac_check_lib_save_LIBS=$LIBS
13624 LIBS="-linet $LIBS"
13625 cat >conftest.$ac_ext <<_ACEOF
13626 #line 13626 "configure"
13627 #include "confdefs.h"
13629 /* Override any gcc2 internal prototype to avoid an error. */
13633 /* We use char because int might match the return type of a gcc2
13634 builtin and then its argument prototype would still apply. */
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (eval echo "$as_me:13645: \"$ac_link\"") >&5
13646 (eval $ac_link) 2>&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:13651: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:13654: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_lib_inet_bzero=yes
13658 echo "$as_me: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 ac_cv_lib_inet_bzero=no
13662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13663 LIBS=$ac_check_lib_save_LIBS
13665 echo "$as_me:13665: result: $ac_cv_lib_inet_bzero" >&5
13666 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
13667 if test $ac_cv_lib_inet_bzero = yes; then
13668 LIBS="-linet $LIBS"
13672 echo "$as_me:13672: checking if sys/time.h works with sys/select.h" >&5
13673 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13674 if test "${cf_cv_sys_time_select+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 cat >conftest.$ac_ext <<_ACEOF
13679 #line 13679 "configure"
13680 #include "confdefs.h"
13682 #include <sys/types.h>
13683 #ifdef HAVE_SYS_TIME_H
13684 #include <sys/time.h>
13686 #ifdef HAVE_SYS_SELECT_H
13687 #include <sys/select.h>
13698 rm -f conftest.$ac_objext
13699 if { (eval echo "$as_me:13699: \"$ac_compile\"") >&5
13700 (eval $ac_compile) 2>&5
13702 echo "$as_me:13702: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -s conftest.$ac_objext'
13705 { (eval echo "$as_me:13705: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:13708: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 cf_cv_sys_time_select=yes
13712 echo "$as_me: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13714 cf_cv_sys_time_select=no
13716 rm -f conftest.$ac_objext conftest.$ac_ext
13720 echo "$as_me:13720: result: $cf_cv_sys_time_select" >&5
13721 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13722 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13723 #define HAVE_SYS_TIME_SELECT 1
13726 ### checks for compiler characteristics
13728 ac_cpp='$CPP $CPPFLAGS'
13729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13732 ac_main_return=return
13734 echo "$as_me:13734: checking for $CC option to accept ANSI C" >&5
13735 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13736 if test "${ac_cv_prog_cc_stdc+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 ac_cv_prog_cc_stdc=no
13741 cat >conftest.$ac_ext <<_ACEOF
13742 #line 13742 "configure"
13743 #include "confdefs.h"
13744 #include <stdarg.h>
13746 #include <sys/types.h>
13747 #include <sys/stat.h>
13748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13749 struct buf { int x; };
13750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13751 static char *e (p, i)
13757 static char *f (char * (*g) (char **, int), char **p, ...)
13762 s = g (p, va_arg (v,int));
13766 int test (int i, double x);
13767 struct s1 {int (*f) (int a);};
13768 struct s2 {int (*f) (double a);};
13769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13780 # Don't try gcc -ansi; that turns off useful extensions and
13781 # breaks some systems' header files.
13782 # AIX -qlanglvl=ansi
13783 # Ultrix and OSF/1 -std1
13784 # HP-UX 10.20 and later -Ae
13785 # HP-UX older versions -Aa -D_HPUX_SOURCE
13786 # SVR4 -Xc -D__EXTENSIONS__
13787 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13789 CC="$ac_save_CC $ac_arg"
13790 rm -f conftest.$ac_objext
13791 if { (eval echo "$as_me:13791: \"$ac_compile\"") >&5
13792 (eval $ac_compile) 2>&5
13794 echo "$as_me:13794: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:13797: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13800 echo "$as_me:13800: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_cv_prog_cc_stdc=$ac_arg
13805 echo "$as_me: failed program was:" >&5
13806 cat conftest.$ac_ext >&5
13808 rm -f conftest.$ac_objext
13810 rm -f conftest.$ac_ext conftest.$ac_objext
13815 case "x$ac_cv_prog_cc_stdc" in
13817 echo "$as_me:13817: result: none needed" >&5
13818 echo "${ECHO_T}none needed" >&6 ;;
13820 echo "$as_me:13820: result: $ac_cv_prog_cc_stdc" >&5
13821 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13822 CC="$CC $ac_cv_prog_cc_stdc" ;;
13825 echo "$as_me:13825: checking for an ANSI C-conforming const" >&5
13826 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13827 if test "${ac_cv_c_const+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 cat >conftest.$ac_ext <<_ACEOF
13831 #line 13831 "configure"
13832 #include "confdefs.h"
13837 /* FIXME: Include the comments suggested by Paul. */
13838 #ifndef __cplusplus
13839 /* Ultrix mips cc rejects this. */
13840 typedef int charset[2];
13842 /* SunOS 4.1.1 cc rejects this. */
13843 char const *const *ccp;
13845 /* NEC SVR4.0.2 mips cc rejects this. */
13846 struct point {int x, y;};
13847 static struct point const zero = {0,0};
13848 /* AIX XL C 1.02.0.0 rejects this.
13849 It does not let you subtract one const X* pointer from another in
13850 an arm of an if-expression whose if-part is not a constant
13852 const char *g = "string";
13853 ccp = &g + (g ? g-g : 0);
13854 /* HPUX 7.0 cc rejects these. */
13857 ccp = (char const *const *) p;
13858 { /* SCO 3.2v4 cc rejects this. */
13860 char const *s = 0 ? (char *) 0 : (char const *) 0;
13864 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13865 int x[] = {25, 17};
13866 const int *foo = &x[0];
13869 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13870 typedef const int *iptr;
13874 { /* AIX XL C 1.02.0.0 rejects this saying
13875 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13876 struct s { int j; const int *ap[3]; };
13877 struct s *b; b->j = 5;
13879 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13880 const int foo = 10;
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:13889: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13892 echo "$as_me:13892: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:13895: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:13898: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13902 echo "$as_me: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13906 rm -f conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me:13908: result: $ac_cv_c_const" >&5
13909 echo "${ECHO_T}$ac_cv_c_const" >&6
13910 if test $ac_cv_c_const = no; then
13912 cat >>confdefs.h <<\EOF
13918 echo "$as_me:13918: checking for inline" >&5
13919 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13920 if test "${ac_cv_c_inline+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 for ac_kw in inline __inline__ __inline; do
13925 cat >conftest.$ac_ext <<_ACEOF
13926 #line 13926 "configure"
13927 #include "confdefs.h"
13928 #ifndef __cplusplus
13929 static $ac_kw int static_foo () {return 0; }
13930 $ac_kw int foo () {return 0; }
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:13935: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>&5
13938 echo "$as_me:13938: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:13941: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:13944: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_c_inline=$ac_kw; break
13948 echo "$as_me: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13951 rm -f conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:13955: result: $ac_cv_c_inline" >&5
13956 echo "${ECHO_T}$ac_cv_c_inline" >&6
13957 case $ac_cv_c_inline in
13960 cat >>confdefs.h <<\EOF
13964 *) cat >>confdefs.h <<EOF
13965 #define inline $ac_cv_c_inline
13971 if test "$ac_cv_c_inline" != no ; then
13972 NCURSES_INLINE=inline
13973 if test "$INTEL_COMPILER" = yes
13976 elif test "$GCC" = yes
13978 echo "$as_me:13978: checking if $CC supports options to tune inlining" >&5
13979 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
13980 if test "${cf_cv_gcc_inline+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 cf_save_CFLAGS=$CFLAGS
13985 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
13986 cat >conftest.$ac_ext <<_ACEOF
13987 #line 13987 "configure"
13988 #include "confdefs.h"
13989 inline int foo(void) { return 1; }
13993 ${cf_cv_main_return:-return} foo()
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:13999: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14002 echo "$as_me:14002: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:14005: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:14008: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 cf_cv_gcc_inline=yes
14012 echo "$as_me: failed program was:" >&5
14013 cat conftest.$ac_ext >&5
14014 cf_cv_gcc_inline=no
14016 rm -f conftest.$ac_objext conftest.$ac_ext
14017 CFLAGS=$cf_save_CFLAGS
14020 echo "$as_me:14020: result: $cf_cv_gcc_inline" >&5
14021 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14022 if test "$cf_cv_gcc_inline" = yes ; then
14027 cf_new_extra_cppflags=
14029 for cf_add_cflags in --param max-inline-insns-single=1200
14031 case $cf_fix_cppflags in
14033 case $cf_add_cflags in #(vi
14034 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14035 case $cf_add_cflags in
14037 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14039 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14040 && test -z "${cf_tst_cflags}" \
14041 && cf_fix_cppflags=yes
14043 if test $cf_fix_cppflags = yes ; then
14044 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14046 elif test "${cf_tst_cflags}" = "\"'" ; then
14047 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14052 case "$CPPFLAGS" in
14053 *$cf_add_cflags) #(vi
14056 case $cf_add_cflags in #(vi
14058 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14060 CPPFLAGS=`echo "$CPPFLAGS" | \
14061 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14062 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14066 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14071 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14076 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14078 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14080 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14081 && test -z "${cf_tst_cflags}" \
14082 && cf_fix_cppflags=no
14087 if test -n "$cf_new_cflags" ; then
14089 CFLAGS="$CFLAGS $cf_new_cflags"
14092 if test -n "$cf_new_cppflags" ; then
14094 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14097 if test -n "$cf_new_extra_cppflags" ; then
14099 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14106 echo "$as_me:14106: checking for signal global datatype" >&5
14107 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
14108 if test "${cf_cv_sig_atomic_t+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 "volatile sig_atomic_t" \
14117 cat >conftest.$ac_ext <<_ACEOF
14118 #line 14118 "configure"
14119 #include "confdefs.h"
14121 #include <sys/types.h>
14122 #include <signal.h>
14127 static void handler(int sig)
14134 signal(SIGINT, handler);
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:14141: \"$ac_compile\"") >&5
14142 (eval $ac_compile) 2>&5
14144 echo "$as_me:14144: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -s conftest.$ac_objext'
14147 { (eval echo "$as_me:14147: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:14150: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 cf_cv_sig_atomic_t=$cf_type
14154 echo "$as_me: failed program was:" >&5
14155 cat conftest.$ac_ext >&5
14156 cf_cv_sig_atomic_t=no
14158 rm -f conftest.$ac_objext conftest.$ac_ext
14159 test "$cf_cv_sig_atomic_t" != no && break
14164 echo "$as_me:14164: result: $cf_cv_sig_atomic_t" >&5
14165 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
14166 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
14167 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
14170 if test $NCURSES_CHTYPE = auto ; then
14172 echo "$as_me:14172: checking for type of chtype" >&5
14173 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14174 if test "${cf_cv_typeof_chtype+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 if test "$cross_compiling" = yes; then
14179 cf_cv_typeof_chtype=long
14181 cat >conftest.$ac_ext <<_ACEOF
14182 #line 14182 "configure"
14183 #include "confdefs.h"
14185 #define WANT_BITS 31
14189 FILE *fp = fopen("cf_test.out", "w");
14191 char *result = "long";
14192 if (sizeof(unsigned long) > sizeof(unsigned int)) {
14195 for (n = 0; n < WANT_BITS; n++) {
14198 if (y != 1 || x == 0) {
14204 * If x is nonzero, an int is big enough for the bits
14207 result = (x != 0) ? "int" : "long";
14212 ${cf_cv_main_return:-return}(0);
14216 rm -f conftest$ac_exeext
14217 if { (eval echo "$as_me:14217: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>&5
14220 echo "$as_me:14220: \$? = $ac_status" >&5
14221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14222 { (eval echo "$as_me:14222: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:14225: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 cf_cv_typeof_chtype=`cat cf_test.out`
14229 echo "$as_me: program exited with status $ac_status" >&5
14230 echo "$as_me: failed program was:" >&5
14231 cat conftest.$ac_ext >&5
14232 cf_cv_typeof_chtype=long
14234 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14240 echo "$as_me:14240: result: $cf_cv_typeof_chtype" >&5
14241 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
14243 cat >>confdefs.h <<EOF
14244 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
14248 cf_cv_typeof_chtype=$NCURSES_CHTYPE
14250 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
14252 echo "$as_me:14252: checking if unsigned literals are legal" >&5
14253 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
14254 if test "${cf_cv_unsigned_literals+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 cat >conftest.$ac_ext <<_ACEOF
14259 #line 14259 "configure"
14260 #include "confdefs.h"
14265 long x = 1L + 1UL + 1U + 1
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:14271: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14274 echo "$as_me:14274: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:14277: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:14280: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 cf_cv_unsigned_literals=yes
14284 echo "$as_me: failed program was:" >&5
14285 cat conftest.$ac_ext >&5
14286 cf_cv_unsigned_literals=no
14288 rm -f conftest.$ac_objext conftest.$ac_ext
14292 echo "$as_me:14292: result: $cf_cv_unsigned_literals" >&5
14293 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
14296 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
14297 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
14299 if test $NCURSES_MMASK_T = auto ; then
14300 cf_cv_typeof_mmask_t=long
14302 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
14304 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
14306 ### Checks for external-data
14308 echo "$as_me:14308: checking if external errno is declared" >&5
14309 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
14310 if test "${cf_cv_dcl_errno+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 cat >conftest.$ac_ext <<_ACEOF
14315 #line 14315 "configure"
14316 #include "confdefs.h"
14318 #ifdef HAVE_STDLIB_H
14319 #include <stdlib.h>
14322 #include <sys/types.h>
14327 int x = (int) errno
14332 rm -f conftest.$ac_objext
14333 if { (eval echo "$as_me:14333: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>&5
14336 echo "$as_me:14336: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (eval echo "$as_me:14339: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:14342: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 cf_cv_dcl_errno=yes
14346 echo "$as_me: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14350 rm -f conftest.$ac_objext conftest.$ac_ext
14353 echo "$as_me:14353: result: $cf_cv_dcl_errno" >&5
14354 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
14356 if test "$cf_cv_dcl_errno" = no ; then
14358 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14360 cat >>confdefs.h <<EOF
14361 #define $cf_result 1
14366 # It's possible (for near-UNIX clones) that the data doesn't exist
14368 echo "$as_me:14368: checking if external errno exists" >&5
14369 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
14370 if test "${cf_cv_have_errno+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 cat >conftest.$ac_ext <<_ACEOF
14375 #line 14375 "configure"
14376 #include "confdefs.h"
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (eval echo "$as_me:14390: \"$ac_link\"") >&5
14391 (eval $ac_link) 2>&5
14393 echo "$as_me:14393: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -s conftest$ac_exeext'
14396 { (eval echo "$as_me:14396: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:14399: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 cf_cv_have_errno=yes
14403 echo "$as_me: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 cf_cv_have_errno=no
14407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14410 echo "$as_me:14410: result: $cf_cv_have_errno" >&5
14411 echo "${ECHO_T}$cf_cv_have_errno" >&6
14413 if test "$cf_cv_have_errno" = yes ; then
14415 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14417 cat >>confdefs.h <<EOF
14418 #define $cf_result 1
14423 echo "$as_me:14423: checking if data-only library module links" >&5
14424 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
14425 if test "${cf_cv_link_dataonly+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 cat >conftest.$ac_ext <<EOF
14431 #line 14431 "configure"
14432 int testdata[3] = { 123, 456, 789 };
14434 if { (eval echo "$as_me:14434: \"$ac_compile\"") >&5
14435 (eval $ac_compile) 2>&5
14437 echo "$as_me:14437: \$? = $ac_status" >&5
14438 (exit $ac_status); } ; then
14439 mv conftest.o data.o && \
14440 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
14442 rm -f conftest.$ac_ext data.o
14443 cat >conftest.$ac_ext <<EOF
14444 #line 14444 "configure"
14448 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
14450 extern int testdata[3];
14451 return testdata[0] == 123
14452 && testdata[1] == 456
14453 && testdata[2] == 789;
14457 if { (eval echo "$as_me:14457: \"$ac_compile\"") >&5
14458 (eval $ac_compile) 2>&5
14460 echo "$as_me:14460: \$? = $ac_status" >&5
14461 (exit $ac_status); }; then
14462 mv conftest.o func.o && \
14463 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
14465 rm -f conftest.$ac_ext func.o
14466 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
14467 cf_saveLIBS="$LIBS"
14468 LIBS="conftest.a $LIBS"
14469 if test "$cross_compiling" = yes; then
14470 cf_cv_link_dataonly=unknown
14472 cat >conftest.$ac_ext <<_ACEOF
14473 #line 14473 "configure"
14474 #include "confdefs.h"
14478 extern int testfunc();
14479 ${cf_cv_main_return:-return} (!testfunc());
14483 rm -f conftest$ac_exeext
14484 if { (eval echo "$as_me:14484: \"$ac_link\"") >&5
14485 (eval $ac_link) 2>&5
14487 echo "$as_me:14487: \$? = $ac_status" >&5
14488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14489 { (eval echo "$as_me:14489: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:14492: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 cf_cv_link_dataonly=yes
14496 echo "$as_me: program exited with status $ac_status" >&5
14497 echo "$as_me: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14499 cf_cv_link_dataonly=no
14501 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14503 LIBS="$cf_saveLIBS"
14507 echo "$as_me:14507: result: $cf_cv_link_dataonly" >&5
14508 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
14510 if test "$cf_cv_link_dataonly" = no ; then
14511 cat >>confdefs.h <<\EOF
14512 #define BROKEN_LINKER 1
14518 ### Checks for library functions.
14541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14542 echo "$as_me:14542: checking for $ac_func" >&5
14543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14544 if eval "test \"\${$as_ac_var+set}\" = set"; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 cat >conftest.$ac_ext <<_ACEOF
14548 #line 14548 "configure"
14549 #include "confdefs.h"
14550 /* System header to define __stub macros and hopefully few prototypes,
14551 which can conflict with char $ac_func (); below. */
14552 #include <assert.h>
14553 /* Override any gcc2 internal prototype to avoid an error. */
14557 /* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14565 /* The GNU C library defines this for functions which it implements
14566 to always fail with ENOSYS. Some functions are actually named
14567 something starting with __ and the normal name is an alias. */
14568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (eval echo "$as_me:14579: \"$ac_link\"") >&5
14580 (eval $ac_link) 2>&5
14582 echo "$as_me:14582: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
14584 { ac_try='test -s conftest$ac_exeext'
14585 { (eval echo "$as_me:14585: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:14588: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 eval "$as_ac_var=yes"
14592 echo "$as_me: failed program was:" >&5
14593 cat conftest.$ac_ext >&5
14594 eval "$as_ac_var=no"
14596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14598 echo "$as_me:14598: result: `eval echo '${'$as_ac_var'}'`" >&5
14599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14600 if test `eval echo '${'$as_ac_var'}'` = yes; then
14601 cat >>confdefs.h <<EOF
14602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14608 if test "$with_getcap" = "yes" ; then
14610 echo "$as_me:14610: checking for terminal-capability database functions" >&5
14611 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
14612 if test "${cf_cv_cgetent+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line 14617 "configure"
14618 #include "confdefs.h"
14620 #include <stdlib.h>
14627 char *db_array = temp;
14628 cgetent(&buf, /* int *, */ &db_array, "vt100");
14629 cgetcap(buf, "tc", '=');
14630 cgetmatch(buf, "tc");
14636 rm -f conftest.$ac_objext conftest$ac_exeext
14637 if { (eval echo "$as_me:14637: \"$ac_link\"") >&5
14638 (eval $ac_link) 2>&5
14640 echo "$as_me:14640: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (eval echo "$as_me:14643: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:14646: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14650 echo "$as_me: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14658 echo "$as_me:14658: result: $cf_cv_cgetent" >&5
14659 echo "${ECHO_T}$cf_cv_cgetent" >&6
14660 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
14661 #define HAVE_BSD_CGETENT 1
14666 echo "$as_me:14666: checking for isascii" >&5
14667 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
14668 if test "${cf_cv_have_isascii+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14673 #line 14673 "configure"
14674 #include "confdefs.h"
14679 int x = isascii(' ')
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (eval echo "$as_me:14685: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>&5
14688 echo "$as_me:14688: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (eval echo "$as_me:14691: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:14694: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 cf_cv_have_isascii=yes
14698 echo "$as_me: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14700 cf_cv_have_isascii=no
14702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14705 echo "$as_me:14705: result: $cf_cv_have_isascii" >&5
14706 echo "${ECHO_T}$cf_cv_have_isascii" >&6
14707 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
14708 #define HAVE_ISASCII 1
14711 if test "$ac_cv_func_sigaction" = yes; then
14712 echo "$as_me:14712: checking whether sigaction needs _POSIX_SOURCE" >&5
14713 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
14714 cat >conftest.$ac_ext <<_ACEOF
14715 #line 14715 "configure"
14716 #include "confdefs.h"
14718 #include <sys/types.h>
14719 #include <signal.h>
14723 struct sigaction act
14728 rm -f conftest.$ac_objext
14729 if { (eval echo "$as_me:14729: \"$ac_compile\"") >&5
14730 (eval $ac_compile) 2>&5
14732 echo "$as_me:14732: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -s conftest.$ac_objext'
14735 { (eval echo "$as_me:14735: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14738 echo "$as_me:14738: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }; then
14742 echo "$as_me: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14745 cat >conftest.$ac_ext <<_ACEOF
14746 #line 14746 "configure"
14747 #include "confdefs.h"
14749 #define _POSIX_SOURCE
14750 #include <sys/types.h>
14751 #include <signal.h>
14755 struct sigaction act
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:14761: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>&5
14764 echo "$as_me:14764: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try='test -s conftest.$ac_objext'
14767 { (eval echo "$as_me:14767: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:14770: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14773 cat >>confdefs.h <<\EOF
14774 #define _POSIX_SOURCE 1
14778 echo "$as_me: failed program was:" >&5
14779 cat conftest.$ac_ext >&5
14782 rm -f conftest.$ac_objext conftest.$ac_ext
14784 rm -f conftest.$ac_objext conftest.$ac_ext
14785 echo "$as_me:14785: result: $sigact_bad" >&5
14786 echo "${ECHO_T}$sigact_bad" >&6
14789 echo "$as_me:14789: checking if nanosleep really works" >&5
14790 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
14791 if test "${cf_cv_func_nanosleep+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 if test "$cross_compiling" = yes; then
14796 cf_cv_func_nanosleep=unknown
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line 14799 "configure"
14800 #include "confdefs.h"
14806 #ifdef HAVE_SYS_TIME_H
14807 #include <sys/time.h>
14811 struct timespec ts1, ts2;
14814 ts1.tv_nsec = 750000000;
14818 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
14819 ${cf_cv_main_return:-return}(code != 0);
14823 rm -f conftest$ac_exeext
14824 if { (eval echo "$as_me:14824: \"$ac_link\"") >&5
14825 (eval $ac_link) 2>&5
14827 echo "$as_me:14827: \$? = $ac_status" >&5
14828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14829 { (eval echo "$as_me:14829: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:14832: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 cf_cv_func_nanosleep=yes
14836 echo "$as_me: program exited with status $ac_status" >&5
14837 echo "$as_me: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 cf_cv_func_nanosleep=no
14841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14844 echo "$as_me:14844: result: $cf_cv_func_nanosleep" >&5
14845 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
14847 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
14848 #define HAVE_NANOSLEEP 1
14857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14858 echo "$as_me:14858: checking for $ac_header" >&5
14859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 cat >conftest.$ac_ext <<_ACEOF
14864 #line 14864 "configure"
14865 #include "confdefs.h"
14866 #include <$ac_header>
14868 if { (eval echo "$as_me:14868: \"$ac_cpp conftest.$ac_ext\"") >&5
14869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14871 egrep -v '^ *\+' conftest.er1 >conftest.err
14873 cat conftest.err >&5
14874 echo "$as_me:14874: \$? = $ac_status" >&5
14875 (exit $ac_status); } >/dev/null; then
14876 if test -s conftest.err; then
14877 ac_cpp_err=$ac_c_preproc_warn_flag
14884 if test -z "$ac_cpp_err"; then
14885 eval "$as_ac_Header=yes"
14887 echo "$as_me: failed program was:" >&5
14888 cat conftest.$ac_ext >&5
14889 eval "$as_ac_Header=no"
14891 rm -f conftest.err conftest.$ac_ext
14893 echo "$as_me:14893: result: `eval echo '${'$as_ac_Header'}'`" >&5
14894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14896 cat >>confdefs.h <<EOF
14897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14903 if test "$ISC" = yes ; then
14905 for ac_header in sys/termio.h
14907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14908 echo "$as_me:14908: checking for $ac_header" >&5
14909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 cat >conftest.$ac_ext <<_ACEOF
14914 #line 14914 "configure"
14915 #include "confdefs.h"
14916 #include <$ac_header>
14918 if { (eval echo "$as_me:14918: \"$ac_cpp conftest.$ac_ext\"") >&5
14919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14921 egrep -v '^ *\+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:14924: \$? = $ac_status" >&5
14925 (exit $ac_status); } >/dev/null; then
14926 if test -s conftest.err; then
14927 ac_cpp_err=$ac_c_preproc_warn_flag
14934 if test -z "$ac_cpp_err"; then
14935 eval "$as_ac_Header=yes"
14937 echo "$as_me: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 eval "$as_ac_Header=no"
14941 rm -f conftest.err conftest.$ac_ext
14943 echo "$as_me:14943: result: `eval echo '${'$as_ac_Header'}'`" >&5
14944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14946 cat >>confdefs.h <<EOF
14947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14954 if test "$ac_cv_header_termios_h" = yes ; then
14955 case "$CFLAGS $CPPFLAGS" in
14957 termios_bad=dunno ;;
14958 *) termios_bad=maybe ;;
14960 if test "$termios_bad" = maybe ; then
14961 echo "$as_me:14961: checking whether termios.h needs _POSIX_SOURCE" >&5
14962 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
14963 cat >conftest.$ac_ext <<_ACEOF
14964 #line 14964 "configure"
14965 #include "confdefs.h"
14966 #include <termios.h>
14970 struct termios foo; int x = foo.c_iflag
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:14976: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>&5
14979 echo "$as_me:14979: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:14982: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14985 echo "$as_me:14985: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14989 echo "$as_me: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14992 cat >conftest.$ac_ext <<_ACEOF
14993 #line 14993 "configure"
14994 #include "confdefs.h"
14996 #define _POSIX_SOURCE
14997 #include <termios.h>
15001 struct termios foo; int x = foo.c_iflag
15006 rm -f conftest.$ac_objext
15007 if { (eval echo "$as_me:15007: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>&5
15010 echo "$as_me:15010: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
15012 { ac_try='test -s conftest.$ac_objext'
15013 { (eval echo "$as_me:15013: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:15016: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15018 termios_bad=unknown
15020 echo "$as_me: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 termios_bad=yes cat >>confdefs.h <<\EOF
15023 #define _POSIX_SOURCE 1
15027 rm -f conftest.$ac_objext conftest.$ac_ext
15030 rm -f conftest.$ac_objext conftest.$ac_ext
15031 echo "$as_me:15031: result: $termios_bad" >&5
15032 echo "${ECHO_T}$termios_bad" >&6
15036 echo "$as_me:15036: checking for tcgetattr" >&5
15037 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
15038 if test "${cf_cv_have_tcgetattr+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 cat >conftest.$ac_ext <<_ACEOF
15043 #line 15043 "configure"
15044 #include "confdefs.h"
15046 #include <sys/types.h>
15047 #ifdef HAVE_UNISTD_H
15048 #include <unistd.h>
15050 #ifdef HAVE_TERMIOS_H
15051 #include <termios.h>
15052 #define TTY struct termios
15054 #ifdef HAVE_TERMIO_H
15055 #include <termio.h>
15056 #define TTY struct termio
15065 tcgetattr(1, &foo);
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (eval echo "$as_me:15071: \"$ac_link\"") >&5
15072 (eval $ac_link) 2>&5
15074 echo "$as_me:15074: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -s conftest$ac_exeext'
15077 { (eval echo "$as_me:15077: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15080 echo "$as_me:15080: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15082 cf_cv_have_tcgetattr=yes
15084 echo "$as_me: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 cf_cv_have_tcgetattr=no
15088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15090 echo "$as_me:15090: result: $cf_cv_have_tcgetattr" >&5
15091 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
15092 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
15093 #define HAVE_TCGETATTR 1
15096 echo "$as_me:15096: checking for vsscanf function or workaround" >&5
15097 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
15098 if test "${cf_cv_func_vsscanf+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line 15103 "configure"
15104 #include "confdefs.h"
15106 #include <stdarg.h>
15113 vsscanf("from", "%d", ap)
15118 rm -f conftest.$ac_objext conftest$ac_exeext
15119 if { (eval echo "$as_me:15119: \"$ac_link\"") >&5
15120 (eval $ac_link) 2>&5
15122 echo "$as_me:15122: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
15124 { ac_try='test -s conftest$ac_exeext'
15125 { (eval echo "$as_me:15125: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:15128: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 cf_cv_func_vsscanf=vsscanf
15132 echo "$as_me: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15135 cat >conftest.$ac_ext <<_ACEOF
15136 #line 15136 "configure"
15137 #include "confdefs.h"
15139 #include <stdarg.h>
15146 char *str = "from";
15148 strbuf._flag = _IOREAD;
15149 strbuf._ptr = strbuf._base = (unsigned char *) str;
15150 strbuf._cnt = strlen(str);
15151 strbuf._file = _NFILE;
15152 return (vfscanf(&strbuf, "%d", ap))
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:15158: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15161 echo "$as_me:15161: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -s conftest$ac_exeext'
15164 { (eval echo "$as_me:15164: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15167 echo "$as_me:15167: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 cf_cv_func_vsscanf=vfscanf
15171 echo "$as_me: failed program was:" >&5
15172 cat conftest.$ac_ext >&5
15174 cat >conftest.$ac_ext <<_ACEOF
15175 #line 15175 "configure"
15176 #include "confdefs.h"
15178 #include <stdarg.h>
15185 char *str = "from";
15187 strbuf._flag = _IOREAD;
15188 strbuf._ptr = strbuf._base = (unsigned char *) str;
15189 strbuf._cnt = strlen(str);
15190 strbuf._file = _NFILE;
15191 return (_doscan(&strbuf, "%d", ap))
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:15197: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>&5
15200 echo "$as_me:15200: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -s conftest$ac_exeext'
15203 { (eval echo "$as_me:15203: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:15206: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 cf_cv_func_vsscanf=_doscan
15210 echo "$as_me: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15213 cf_cv_func_vsscanf=no
15215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15221 echo "$as_me:15221: result: $cf_cv_func_vsscanf" >&5
15222 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
15224 case $cf_cv_func_vsscanf in #(vi
15225 vsscanf) cat >>confdefs.h <<\EOF
15226 #define HAVE_VSSCANF 1
15229 vfscanf) cat >>confdefs.h <<\EOF
15230 #define HAVE_VFSCANF 1
15233 _doscan) cat >>confdefs.h <<\EOF
15234 #define HAVE__DOSCAN 1
15239 echo "$as_me:15239: checking for working mkstemp" >&5
15240 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
15241 if test "${cf_cv_func_mkstemp+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 if test "$cross_compiling" = yes; then
15247 echo "$as_me:15247: checking for mkstemp" >&5
15248 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
15249 if test "${ac_cv_func_mkstemp+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 cat >conftest.$ac_ext <<_ACEOF
15253 #line 15253 "configure"
15254 #include "confdefs.h"
15255 /* System header to define __stub macros and hopefully few prototypes,
15256 which can conflict with char mkstemp (); below. */
15257 #include <assert.h>
15258 /* Override any gcc2 internal prototype to avoid an error. */
15262 /* We use char because int might match the return type of a gcc2
15263 builtin and then its argument prototype would still apply. */
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
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 ac_cv_func_mkstemp=yes
15297 echo "$as_me: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15299 ac_cv_func_mkstemp=no
15301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15303 echo "$as_me:15303: result: $ac_cv_func_mkstemp" >&5
15304 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
15307 cat >conftest.$ac_ext <<_ACEOF
15308 #line 15308 "configure"
15309 #include "confdefs.h"
15311 #include <sys/types.h>
15312 #include <stdlib.h>
15314 #include <string.h>
15315 #include <sys/stat.h>
15318 char *tmpl = "conftestXXXXXX";
15326 for (n = 0; n < 2; ++n) {
15327 strcpy(name[n], tmpl);
15328 if ((fd = mkstemp(name[n])) >= 0) {
15329 if (!strcmp(name[n], tmpl)
15330 || stat(name[n], &sb) != 0
15331 || (sb.st_mode & S_IFMT) != S_IFREG
15332 || (sb.st_mode & 077) != 0) {
15339 && !strcmp(name[0], name[1]))
15341 ${cf_cv_main_return:-return}(result);
15345 rm -f conftest$ac_exeext
15346 if { (eval echo "$as_me:15346: \"$ac_link\"") >&5
15347 (eval $ac_link) 2>&5
15349 echo "$as_me:15349: \$? = $ac_status" >&5
15350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15351 { (eval echo "$as_me:15351: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:15354: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 cf_cv_func_mkstemp=yes
15359 echo "$as_me: program exited with status $ac_status" >&5
15360 echo "$as_me: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15362 cf_cv_func_mkstemp=no
15365 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15369 echo "$as_me:15369: result: $cf_cv_func_mkstemp" >&5
15370 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
15371 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
15372 cat >>confdefs.h <<\EOF
15373 #define HAVE_MKSTEMP 1
15378 # setup for prototype of fallback for vsscanf()
15380 if test "$cf_cv_func_vsscanf" = vsscanf ; then
15386 if test "$cross_compiling" = yes ; then
15387 { echo "$as_me:15387: WARNING: cross compiling: assume setvbuf params not reversed" >&5
15388 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
15390 echo "$as_me:15390: checking whether setvbuf arguments are reversed" >&5
15391 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
15392 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 if test "$cross_compiling" = yes; then
15396 { { echo "$as_me:15396: error: cannot run test program while cross compiling" >&5
15397 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15398 { (exit 1); exit 1; }; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 #line 15401 "configure"
15402 #include "confdefs.h"
15404 /* If setvbuf has the reversed format, exit 0. */
15408 /* This call has the arguments reversed.
15409 A reversed system may check and see that the address of main
15410 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
15411 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
15412 $ac_main_return(1);
15413 putc('\r', stdout);
15414 $ac_main_return(0); /* Non-reversed systems segv here. */
15417 rm -f conftest$ac_exeext
15418 if { (eval echo "$as_me:15418: \"$ac_link\"") >&5
15419 (eval $ac_link) 2>&5
15421 echo "$as_me:15421: \$? = $ac_status" >&5
15422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15423 { (eval echo "$as_me:15423: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:15426: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_cv_func_setvbuf_reversed=yes
15430 echo "$as_me: program exited with status $ac_status" >&5
15431 echo "$as_me: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15433 ac_cv_func_setvbuf_reversed=no
15435 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15437 rm -f core core.* *.core
15439 echo "$as_me:15439: result: $ac_cv_func_setvbuf_reversed" >&5
15440 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
15441 if test $ac_cv_func_setvbuf_reversed = yes; then
15443 cat >>confdefs.h <<\EOF
15444 #define SETVBUF_REVERSED 1
15450 echo "$as_me:15450: checking return type of signal handlers" >&5
15451 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15452 if test "${ac_cv_type_signal+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 cat >conftest.$ac_ext <<_ACEOF
15456 #line 15456 "configure"
15457 #include "confdefs.h"
15458 #include <sys/types.h>
15459 #include <signal.h>
15464 extern "C" void (*signal (int, void (*)(int)))(int);
15466 void (*signal ()) ();
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:15478: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>&5
15481 echo "$as_me:15481: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:15484: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:15487: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_type_signal=void
15491 echo "$as_me: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 ac_cv_type_signal=int
15495 rm -f conftest.$ac_objext conftest.$ac_ext
15497 echo "$as_me:15497: result: $ac_cv_type_signal" >&5
15498 echo "${ECHO_T}$ac_cv_type_signal" >&6
15500 cat >>confdefs.h <<EOF
15501 #define RETSIGTYPE $ac_cv_type_signal
15504 echo "$as_me:15504: checking for type sigaction_t" >&5
15505 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
15506 if test "${cf_cv_type_sigaction+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 cat >conftest.$ac_ext <<_ACEOF
15511 #line 15511 "configure"
15512 #include "confdefs.h"
15514 #include <signal.h>
15523 rm -f conftest.$ac_objext
15524 if { (eval echo "$as_me:15524: \"$ac_compile\"") >&5
15525 (eval $ac_compile) 2>&5
15527 echo "$as_me:15527: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
15529 { ac_try='test -s conftest.$ac_objext'
15530 { (eval echo "$as_me:15530: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15533 echo "$as_me:15533: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 cf_cv_type_sigaction=yes
15537 echo "$as_me: failed program was:" >&5
15538 cat conftest.$ac_ext >&5
15539 cf_cv_type_sigaction=no
15541 rm -f conftest.$ac_objext conftest.$ac_ext
15544 echo "$as_me:15544: result: $cf_cv_type_sigaction" >&5
15545 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
15546 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
15547 #define HAVE_TYPE_SIGACTION 1
15550 echo "$as_me:15550: checking declaration of size-change" >&5
15551 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
15552 if test "${cf_cv_sizechange+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 cf_cv_sizechange=unknown
15557 cf_save_CPPFLAGS="$CPPFLAGS"
15559 for cf_opts in "" "NEED_PTEM_H"
15562 CPPFLAGS="$cf_save_CPPFLAGS"
15563 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
15564 cat >conftest.$ac_ext <<_ACEOF
15565 #line 15565 "configure"
15566 #include "confdefs.h"
15567 #include <sys/types.h>
15568 #ifdef HAVE_TERMIOS_H
15569 #include <termios.h>
15571 #ifdef HAVE_TERMIO_H
15572 #include <termio.h>
15576 /* This is a workaround for SCO: they neglected to define struct winsize in
15577 * termios.h -- it's only in termio.h and ptem.h
15579 #include <sys/stream.h>
15580 #include <sys/ptem.h>
15582 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
15583 #include <sys/ioctl.h>
15591 struct ttysize win; /* FIXME: what system is this? */
15592 int y = win.ts_lines;
15593 int x = win.ts_cols;
15596 struct winsize win;
15597 int y = win.ws_row;
15598 int x = win.ws_col;
15600 no TIOCGSIZE or TIOCGWINSZ
15601 #endif /* TIOCGWINSZ */
15602 #endif /* TIOCGSIZE */
15608 rm -f conftest.$ac_objext
15609 if { (eval echo "$as_me:15609: \"$ac_compile\"") >&5
15610 (eval $ac_compile) 2>&5
15612 echo "$as_me:15612: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -s conftest.$ac_objext'
15615 { (eval echo "$as_me:15615: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15618 echo "$as_me:15618: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 cf_cv_sizechange=yes
15622 echo "$as_me: failed program was:" >&5
15623 cat conftest.$ac_ext >&5
15624 cf_cv_sizechange=no
15626 rm -f conftest.$ac_objext conftest.$ac_ext
15628 CPPFLAGS="$cf_save_CPPFLAGS"
15629 if test "$cf_cv_sizechange" = yes ; then
15630 echo "size-change succeeded ($cf_opts)" >&5
15631 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
15637 echo "$as_me:15637: result: $cf_cv_sizechange" >&5
15638 echo "${ECHO_T}$cf_cv_sizechange" >&6
15639 if test "$cf_cv_sizechange" != no ; then
15640 cat >>confdefs.h <<\EOF
15641 #define HAVE_SIZECHANGE 1
15644 case $cf_cv_sizechange in #(vi
15646 cat >>confdefs.h <<EOF
15647 #define $cf_cv_sizechange 1
15654 echo "$as_me:15654: checking for memmove" >&5
15655 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
15656 if test "${ac_cv_func_memmove+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 cat >conftest.$ac_ext <<_ACEOF
15660 #line 15660 "configure"
15661 #include "confdefs.h"
15662 /* System header to define __stub macros and hopefully few prototypes,
15663 which can conflict with char memmove (); below. */
15664 #include <assert.h>
15665 /* Override any gcc2 internal prototype to avoid an error. */
15669 /* We use char because int might match the return type of a gcc2
15670 builtin and then its argument prototype would still apply. */
15677 /* The GNU C library defines this for functions which it implements
15678 to always fail with ENOSYS. Some functions are actually named
15679 something starting with __ and the normal name is an alias. */
15680 #if defined (__stub_memmove) || defined (__stub___memmove)
15690 rm -f conftest.$ac_objext conftest$ac_exeext
15691 if { (eval echo "$as_me:15691: \"$ac_link\"") >&5
15692 (eval $ac_link) 2>&5
15694 echo "$as_me:15694: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
15696 { ac_try='test -s conftest$ac_exeext'
15697 { (eval echo "$as_me:15697: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:15700: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_cv_func_memmove=yes
15704 echo "$as_me: failed program was:" >&5
15705 cat conftest.$ac_ext >&5
15706 ac_cv_func_memmove=no
15708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15710 echo "$as_me:15710: result: $ac_cv_func_memmove" >&5
15711 echo "${ECHO_T}$ac_cv_func_memmove" >&6
15712 if test $ac_cv_func_memmove = yes; then
15716 echo "$as_me:15716: checking for bcopy" >&5
15717 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
15718 if test "${ac_cv_func_bcopy+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 cat >conftest.$ac_ext <<_ACEOF
15722 #line 15722 "configure"
15723 #include "confdefs.h"
15724 /* System header to define __stub macros and hopefully few prototypes,
15725 which can conflict with char bcopy (); below. */
15726 #include <assert.h>
15727 /* Override any gcc2 internal prototype to avoid an error. */
15731 /* We use char because int might match the return type of a gcc2
15732 builtin and then its argument prototype would still apply. */
15739 /* The GNU C library defines this for functions which it implements
15740 to always fail with ENOSYS. Some functions are actually named
15741 something starting with __ and the normal name is an alias. */
15742 #if defined (__stub_bcopy) || defined (__stub___bcopy)
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (eval echo "$as_me:15753: \"$ac_link\"") >&5
15754 (eval $ac_link) 2>&5
15756 echo "$as_me:15756: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -s conftest$ac_exeext'
15759 { (eval echo "$as_me:15759: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:15762: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_cv_func_bcopy=yes
15766 echo "$as_me: failed program was:" >&5
15767 cat conftest.$ac_ext >&5
15768 ac_cv_func_bcopy=no
15770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15772 echo "$as_me:15772: result: $ac_cv_func_bcopy" >&5
15773 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
15774 if test $ac_cv_func_bcopy = yes; then
15776 echo "$as_me:15776: checking if bcopy does overlapping moves" >&5
15777 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
15778 if test "${cf_cv_good_bcopy+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 if test "$cross_compiling" = yes; then
15783 cf_cv_good_bcopy=unknown
15785 cat >conftest.$ac_ext <<_ACEOF
15786 #line 15786 "configure"
15787 #include "confdefs.h"
15790 static char data[] = "abcdefghijklmnopqrstuwwxyz";
15792 bcopy(data, temp, sizeof(data));
15793 bcopy(temp+10, temp, 15);
15794 bcopy(temp+5, temp+15, 10);
15795 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
15799 rm -f conftest$ac_exeext
15800 if { (eval echo "$as_me:15800: \"$ac_link\"") >&5
15801 (eval $ac_link) 2>&5
15803 echo "$as_me:15803: \$? = $ac_status" >&5
15804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805 { (eval echo "$as_me:15805: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:15808: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 cf_cv_good_bcopy=yes
15812 echo "$as_me: program exited with status $ac_status" >&5
15813 echo "$as_me: failed program was:" >&5
15814 cat conftest.$ac_ext >&5
15815 cf_cv_good_bcopy=no
15817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15821 echo "$as_me:15821: result: $cf_cv_good_bcopy" >&5
15822 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
15825 cf_cv_good_bcopy=no
15828 if test "$cf_cv_good_bcopy" = yes ; then
15829 cat >>confdefs.h <<\EOF
15830 #define USE_OK_BCOPY 1
15834 cat >>confdefs.h <<\EOF
15835 #define USE_MY_MEMMOVE 1
15842 echo "$as_me:15842: checking if poll really works" >&5
15843 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
15844 if test "${cf_cv_working_poll+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 if test "$cross_compiling" = yes; then
15849 cf_cv_working_poll=unknown
15851 cat >conftest.$ac_ext <<_ACEOF
15852 #line 15852 "configure"
15853 #include "confdefs.h"
15859 #include <sys/poll.h>
15862 struct pollfd myfds;
15866 myfds.events = POLLIN;
15868 ret = poll(&myfds, 1, 100);
15869 ${cf_cv_main_return:-return}(ret != 0);
15872 rm -f conftest$ac_exeext
15873 if { (eval echo "$as_me:15873: \"$ac_link\"") >&5
15874 (eval $ac_link) 2>&5
15876 echo "$as_me:15876: \$? = $ac_status" >&5
15877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15878 { (eval echo "$as_me:15878: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:15881: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15883 cf_cv_working_poll=yes
15885 echo "$as_me: program exited with status $ac_status" >&5
15886 echo "$as_me: failed program was:" >&5
15887 cat conftest.$ac_ext >&5
15888 cf_cv_working_poll=no
15890 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15893 echo "$as_me:15893: result: $cf_cv_working_poll" >&5
15894 echo "${ECHO_T}$cf_cv_working_poll" >&6
15895 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
15896 #define HAVE_WORKING_POLL 1
15899 echo "$as_me:15899: checking for va_copy" >&5
15900 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
15901 if test "${cf_cv_have_va_copy+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 cat >conftest.$ac_ext <<_ACEOF
15906 #line 15906 "configure"
15907 #include "confdefs.h"
15909 #include <stdarg.h>
15915 static va_list dst;
15916 static va_list src;
15922 rm -f conftest.$ac_objext conftest$ac_exeext
15923 if { (eval echo "$as_me:15923: \"$ac_link\"") >&5
15924 (eval $ac_link) 2>&5
15926 echo "$as_me:15926: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
15928 { ac_try='test -s conftest$ac_exeext'
15929 { (eval echo "$as_me:15929: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:15932: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 cf_cv_have_va_copy=yes
15936 echo "$as_me: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15938 cf_cv_have_va_copy=no
15940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15942 echo "$as_me:15942: result: $cf_cv_have_va_copy" >&5
15943 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
15945 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
15946 #define HAVE_VA_COPY 1
15949 echo "$as_me:15949: checking for __va_copy" >&5
15950 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
15951 if test "${cf_cv_have___va_copy+set}" = set; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 cat >conftest.$ac_ext <<_ACEOF
15956 #line 15956 "configure"
15957 #include "confdefs.h"
15959 #include <stdarg.h>
15965 static va_list dst;
15966 static va_list src;
15967 __va_copy(dst, src)
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (eval echo "$as_me:15973: \"$ac_link\"") >&5
15974 (eval $ac_link) 2>&5
15976 echo "$as_me:15976: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
15978 { ac_try='test -s conftest$ac_exeext'
15979 { (eval echo "$as_me:15979: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15982 echo "$as_me:15982: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15984 cf_cv_have___va_copy=yes
15986 echo "$as_me: failed program was:" >&5
15987 cat conftest.$ac_ext >&5
15988 cf_cv_have___va_copy=no
15990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15992 echo "$as_me:15992: result: $cf_cv_have___va_copy" >&5
15993 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
15995 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
15996 #define HAVE___VA_COPY 1
15999 echo "$as_me:15999: checking for pid_t" >&5
16000 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16001 if test "${ac_cv_type_pid_t+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 cat >conftest.$ac_ext <<_ACEOF
16005 #line 16005 "configure"
16006 #include "confdefs.h"
16007 $ac_includes_default
16013 if (sizeof (pid_t))
16019 rm -f conftest.$ac_objext
16020 if { (eval echo "$as_me:16020: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>&5
16023 echo "$as_me:16023: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (eval echo "$as_me:16026: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16029 echo "$as_me:16029: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_type_pid_t=yes
16033 echo "$as_me: failed program was:" >&5
16034 cat conftest.$ac_ext >&5
16035 ac_cv_type_pid_t=no
16037 rm -f conftest.$ac_objext conftest.$ac_ext
16039 echo "$as_me:16039: result: $ac_cv_type_pid_t" >&5
16040 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16041 if test $ac_cv_type_pid_t = yes; then
16045 cat >>confdefs.h <<EOF
16051 for ac_header in unistd.h vfork.h
16053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16054 echo "$as_me:16054: checking for $ac_header" >&5
16055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 cat >conftest.$ac_ext <<_ACEOF
16060 #line 16060 "configure"
16061 #include "confdefs.h"
16062 #include <$ac_header>
16064 if { (eval echo "$as_me:16064: \"$ac_cpp conftest.$ac_ext\"") >&5
16065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16067 egrep -v '^ *\+' conftest.er1 >conftest.err
16069 cat conftest.err >&5
16070 echo "$as_me:16070: \$? = $ac_status" >&5
16071 (exit $ac_status); } >/dev/null; then
16072 if test -s conftest.err; then
16073 ac_cpp_err=$ac_c_preproc_warn_flag
16080 if test -z "$ac_cpp_err"; then
16081 eval "$as_ac_Header=yes"
16083 echo "$as_me: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16085 eval "$as_ac_Header=no"
16087 rm -f conftest.err conftest.$ac_ext
16089 echo "$as_me:16089: result: `eval echo '${'$as_ac_Header'}'`" >&5
16090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16092 cat >>confdefs.h <<EOF
16093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16099 for ac_func in fork vfork
16101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16102 echo "$as_me:16102: checking for $ac_func" >&5
16103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16104 if eval "test \"\${$as_ac_var+set}\" = set"; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line 16108 "configure"
16109 #include "confdefs.h"
16110 /* System header to define __stub macros and hopefully few prototypes,
16111 which can conflict with char $ac_func (); below. */
16112 #include <assert.h>
16113 /* Override any gcc2 internal prototype to avoid an error. */
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (eval echo "$as_me:16139: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>&5
16142 echo "$as_me:16142: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -s conftest$ac_exeext'
16145 { (eval echo "$as_me:16145: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:16148: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 eval "$as_ac_var=yes"
16152 echo "$as_me: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 eval "$as_ac_var=no"
16156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16158 echo "$as_me:16158: result: `eval echo '${'$as_ac_var'}'`" >&5
16159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16160 if test `eval echo '${'$as_ac_var'}'` = yes; then
16161 cat >>confdefs.h <<EOF
16162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16168 ac_cv_func_fork_works=$ac_cv_func_fork
16169 if test "x$ac_cv_func_fork" = xyes; then
16170 echo "$as_me:16170: checking for working fork" >&5
16171 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16172 if test "${ac_cv_func_fork_works+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 if test "$cross_compiling" = yes; then
16176 ac_cv_func_fork_works=cross
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* By Rüdiger Kuhlmann. */
16180 #include <sys/types.h>
16182 # include <unistd.h>
16184 /* Some systems only have a dummy stub for fork() */
16188 $ac_main_return (1);
16189 $ac_main_return (0);
16192 rm -f conftest$ac_exeext
16193 if { (eval echo "$as_me:16193: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16198 { (eval echo "$as_me:16198: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:16201: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_func_fork_works=yes
16205 echo "$as_me: program exited with status $ac_status" >&5
16206 echo "$as_me: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16208 ac_cv_func_fork_works=no
16210 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16213 echo "$as_me:16213: result: $ac_cv_func_fork_works" >&5
16214 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16217 if test "x$ac_cv_func_fork_works" = xcross; then
16219 *-*-amigaos* | *-*-msdosdjgpp*)
16220 # Override, as these systems have only a dummy fork() stub
16221 ac_cv_func_fork_works=no
16224 ac_cv_func_fork_works=yes
16227 { echo "$as_me:16227: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
16228 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
16230 ac_cv_func_vfork_works=$ac_cv_func_vfork
16231 if test "x$ac_cv_func_vfork" = xyes; then
16232 echo "$as_me:16232: checking for working vfork" >&5
16233 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16234 if test "${ac_cv_func_vfork_works+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 if test "$cross_compiling" = yes; then
16238 ac_cv_func_vfork_works=cross
16240 cat >conftest.$ac_ext <<_ACEOF
16241 #line 16241 "configure"
16242 #include "confdefs.h"
16243 /* Thanks to Paul Eggert for this test. */
16245 #include <sys/types.h>
16246 #include <sys/stat.h>
16248 # include <unistd.h>
16251 # include <vfork.h>
16253 /* On some sparc systems, changes by the child to local and incoming
16254 argument registers are propagated back to the parent. The compiler
16255 is told about this with #include <vfork.h>, but some compilers
16256 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16257 static variable whose address is put into a register that is
16258 clobbered by the vfork. */
16261 sparc_address_test (int arg)
16263 sparc_address_test (arg) int arg;
16266 static pid_t child;
16284 pid_t parent = getpid ();
16287 sparc_address_test ();
16292 /* Here is another test for sparc vfork register problems. This
16293 test uses lots of local variables, at least as many local
16294 variables as main has allocated so far including compiler
16295 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16296 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16297 reuse the register of parent for one of the local variables,
16298 since it will think that parent can't possibly be used any more
16299 in this routine. Assigning to the local variable will thus
16300 munge parent in the parent process. */
16302 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16303 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16304 /* Convince the compiler that p..p7 are live; otherwise, it might
16305 use the same hardware register for all 8 local variables. */
16306 if (p != p1 || p != p2 || p != p3 || p != p4
16307 || p != p5 || p != p6 || p != p7)
16310 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16311 from child file descriptors. If the child closes a descriptor
16312 before it execs or exits, this munges the parent's descriptor
16313 as well. Test for this by closing stdout in the child. */
16314 _exit(close(fileno(stdout)) != 0);
16319 while (wait(&status) != child)
16322 /* Was there some problem with vforking? */
16325 /* Did the child fail? (This shouldn't happen.) */
16328 /* Did the vfork/compiler bug occur? */
16329 || parent != getpid()
16331 /* Did the file descriptor bug occur? */
16332 || fstat(fileno(stdout), &st) != 0
16337 rm -f conftest$ac_exeext
16338 if { (eval echo "$as_me:16338: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16341 echo "$as_me:16341: \$? = $ac_status" >&5
16342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16343 { (eval echo "$as_me:16343: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:16346: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_cv_func_vfork_works=yes
16350 echo "$as_me: program exited with status $ac_status" >&5
16351 echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 ac_cv_func_vfork_works=no
16355 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16358 echo "$as_me:16358: result: $ac_cv_func_vfork_works" >&5
16359 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16362 if test "x$ac_cv_func_fork_works" = xcross; then
16363 ac_cv_func_vfork_works=ac_cv_func_vfork
16364 { echo "$as_me:16364: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
16365 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
16368 if test "x$ac_cv_func_vfork_works" = xyes; then
16370 cat >>confdefs.h <<\EOF
16371 #define HAVE_WORKING_VFORK 1
16376 cat >>confdefs.h <<\EOF
16381 if test "x$ac_cv_func_fork_works" = xyes; then
16383 cat >>confdefs.h <<\EOF
16384 #define HAVE_WORKING_FORK 1
16389 # special check for test/ditto.c
16391 echo "$as_me:16391: checking for openpty in -lutil" >&5
16392 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16393 if test "${ac_cv_lib_util_openpty+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 ac_check_lib_save_LIBS=$LIBS
16397 LIBS="-lutil $LIBS"
16398 cat >conftest.$ac_ext <<_ACEOF
16399 #line 16399 "configure"
16400 #include "confdefs.h"
16402 /* Override any gcc2 internal prototype to avoid an error. */
16406 /* We use char because int might match the return type of a gcc2
16407 builtin and then its argument prototype would still apply. */
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (eval echo "$as_me:16418: \"$ac_link\"") >&5
16419 (eval $ac_link) 2>&5
16421 echo "$as_me:16421: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -s conftest$ac_exeext'
16424 { (eval echo "$as_me:16424: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16427 echo "$as_me:16427: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_cv_lib_util_openpty=yes
16431 echo "$as_me: failed program was:" >&5
16432 cat conftest.$ac_ext >&5
16433 ac_cv_lib_util_openpty=no
16435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16436 LIBS=$ac_check_lib_save_LIBS
16438 echo "$as_me:16438: result: $ac_cv_lib_util_openpty" >&5
16439 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16440 if test $ac_cv_lib_util_openpty = yes; then
16446 echo "$as_me:16446: checking for openpty header" >&5
16447 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16448 if test "${cf_cv_func_openpty+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16452 cf_save_LIBS="$LIBS"
16453 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
16454 for cf_header in pty.h libutil.h util.h
16456 cat >conftest.$ac_ext <<_ACEOF
16457 #line 16457 "configure"
16458 #include "confdefs.h"
16460 #include <$cf_header>
16466 int x = openpty((int *)0, (int *)0, (char *)0,
16467 (struct termios *)0, (struct winsize *)0);
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (eval echo "$as_me:16474: \"$ac_link\"") >&5
16475 (eval $ac_link) 2>&5
16477 echo "$as_me:16477: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -s conftest$ac_exeext'
16480 { (eval echo "$as_me:16480: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16483 echo "$as_me:16483: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16486 cf_cv_func_openpty=$cf_header
16490 echo "$as_me: failed program was:" >&5
16491 cat conftest.$ac_ext >&5
16493 cf_cv_func_openpty=no
16496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16498 LIBS="$cf_save_LIBS"
16501 echo "$as_me:16501: result: $cf_cv_func_openpty" >&5
16502 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16504 if test "$cf_cv_func_openpty" != no ; then
16505 cat >>confdefs.h <<EOF
16506 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16509 cat >>confdefs.h <<\EOF
16510 #define USE_XTERM_PTY 1
16513 if test "$cf_cv_lib_util" = yes ; then
16514 TEST_LIBS="-lutil $TEST_LIBS"
16518 if test "$with_hashed_db" != no ; then
16519 cat >>confdefs.h <<\EOF
16520 #define USE_HASHED_DB 1
16523 case $with_hashed_db in #(vi
16527 if test -d "$with_hashed_db" ; then
16529 if test -n "$with_hashed_db/include" ; then
16530 for cf_add_incdir in $with_hashed_db/include
16532 while test $cf_add_incdir != /usr/include
16534 if test -d $cf_add_incdir
16537 if test -n "$CFLAGS$CPPFLAGS" ; then
16538 # a loop is needed to ensure we can add subdirs of existing dirs
16539 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16540 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16541 cf_have_incdir=yes; break
16546 if test "$cf_have_incdir" = no ; then
16547 if test "$cf_add_incdir" = /usr/local/include ; then
16548 if test "$GCC" = yes
16550 cf_save_CPPFLAGS=$CPPFLAGS
16551 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line 16553 "configure"
16554 #include "confdefs.h"
16564 rm -f conftest.$ac_objext
16565 if { (eval echo "$as_me:16565: \"$ac_compile\"") >&5
16566 (eval $ac_compile) 2>&5
16568 echo "$as_me:16568: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -s conftest.$ac_objext'
16571 { (eval echo "$as_me:16571: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16574 echo "$as_me:16574: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16578 echo "$as_me: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16582 rm -f conftest.$ac_objext conftest.$ac_ext
16583 CPPFLAGS=$cf_save_CPPFLAGS
16588 if test "$cf_have_incdir" = no ; then
16589 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16591 echo "${as_me:-configure}:16591: testing adding $cf_add_incdir to include-path ..." 1>&5
16593 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16595 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16596 test "$cf_top_incdir" = "$cf_add_incdir" && break
16597 cf_add_incdir="$cf_top_incdir"
16606 if test -n "$with_hashed_db/lib" ; then
16607 for cf_add_libdir in $with_hashed_db/lib
16609 if test $cf_add_libdir = /usr/lib ; then
16611 elif test -d $cf_add_libdir
16614 if test -n "$LDFLAGS$LIBS" ; then
16615 # a loop is needed to ensure we can add subdirs of existing dirs
16616 for cf_test_libdir in $LDFLAGS $LIBS ; do
16617 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
16618 cf_have_libdir=yes; break
16622 if test "$cf_have_libdir" = no ; then
16623 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
16625 echo "${as_me:-configure}:16625: testing adding $cf_add_libdir to library-path ..." 1>&5
16627 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
16636 echo "$as_me:16636: checking for db.h" >&5
16637 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
16638 if test "${ac_cv_header_db_h+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16642 #line 16642 "configure"
16643 #include "confdefs.h"
16646 if { (eval echo "$as_me:16646: \"$ac_cpp conftest.$ac_ext\"") >&5
16647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16649 egrep -v '^ *\+' conftest.er1 >conftest.err
16651 cat conftest.err >&5
16652 echo "$as_me:16652: \$? = $ac_status" >&5
16653 (exit $ac_status); } >/dev/null; then
16654 if test -s conftest.err; then
16655 ac_cpp_err=$ac_c_preproc_warn_flag
16662 if test -z "$ac_cpp_err"; then
16663 ac_cv_header_db_h=yes
16665 echo "$as_me: failed program was:" >&5
16666 cat conftest.$ac_ext >&5
16667 ac_cv_header_db_h=no
16669 rm -f conftest.err conftest.$ac_ext
16671 echo "$as_me:16671: result: $ac_cv_header_db_h" >&5
16672 echo "${ECHO_T}$ac_cv_header_db_h" >&6
16673 if test $ac_cv_header_db_h = yes; then
16675 echo "$as_me:16675: checking for version of db" >&5
16676 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
16677 if test "${cf_cv_hashed_db_version+set}" = set; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 cf_cv_hashed_db_version=unknown
16683 for cf_db_version in 1 2 3 4 5
16686 echo "${as_me:-configure}:16686: testing checking for db version $cf_db_version ..." 1>&5
16688 cat >conftest.$ac_ext <<_ACEOF
16689 #line 16689 "configure"
16690 #include "confdefs.h"
16692 $ac_includes_default
16695 #ifdef DB_VERSION_MAJOR
16696 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
16697 #if $cf_db_version == DB_VERSION_MAJOR
16703 #if $cf_db_version == 1
16704 /* ok: assuming this is DB 1.8.5 */
16718 rm -f conftest.$ac_objext
16719 if { (eval echo "$as_me:16719: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>&5
16722 echo "$as_me:16722: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -s conftest.$ac_objext'
16725 { (eval echo "$as_me:16725: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:16728: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16731 cf_cv_hashed_db_version=$cf_db_version
16735 echo "$as_me: failed program was:" >&5
16736 cat conftest.$ac_ext >&5
16738 rm -f conftest.$ac_objext conftest.$ac_ext
16742 echo "$as_me:16742: result: $cf_cv_hashed_db_version" >&5
16743 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
16745 if test "$cf_cv_hashed_db_version" = unknown ; then
16746 { { echo "$as_me:16746: error: Cannot determine version of db" >&5
16747 echo "$as_me: error: Cannot determine version of db" >&2;}
16748 { (exit 1); exit 1; }; }
16751 echo "$as_me:16751: checking for db libraries" >&5
16752 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
16753 if test "${cf_cv_hashed_db_libs+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 cf_cv_hashed_db_libs=unknown
16758 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
16760 cf_save_libs="$LIBS"
16761 if test -n "$cf_db_libs"; then
16762 LIBS="-l$cf_db_libs $LIBS"
16765 echo "${as_me:-configure}:16765: testing checking for library "$cf_db_libs" ..." 1>&5
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line 16768 "configure"
16769 #include "confdefs.h"
16771 $ac_includes_default
16778 char *path = "/tmp/foo";
16779 #ifdef DB_VERSION_MAJOR
16780 #if DB_VERSION_MAJOR >= 4
16782 db_create(&result, NULL, 0);
16783 result->open(result,
16790 #elif DB_VERSION_MAJOR >= 3
16792 db_create(&result, NULL, 0);
16793 result->open(result,
16799 #elif DB_VERSION_MAJOR >= 2
16808 #endif /* DB_VERSION_MAJOR */
16810 DB *result = dbopen(path,
16816 ${cf_cv_main_return:-return}(result != 0)
16822 rm -f conftest.$ac_objext conftest$ac_exeext
16823 if { (eval echo "$as_me:16823: \"$ac_link\"") >&5
16824 (eval $ac_link) 2>&5
16826 echo "$as_me:16826: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -s conftest$ac_exeext'
16829 { (eval echo "$as_me:16829: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16832 echo "$as_me:16832: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16835 if test -n "$cf_db_libs" ; then
16836 cf_cv_hashed_db_libs=$cf_db_libs
16838 cf_cv_hashed_db_libs=default
16840 LIBS="$cf_save_libs"
16844 echo "$as_me: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16848 LIBS="$cf_save_libs"
16852 echo "$as_me:16852: result: $cf_cv_hashed_db_libs" >&5
16853 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
16855 if test "$cf_cv_hashed_db_libs" = unknown ; then
16856 { { echo "$as_me:16856: error: Cannot determine library for db" >&5
16857 echo "$as_me: error: Cannot determine library for db" >&2;}
16858 { (exit 1); exit 1; }; }
16859 elif test "$cf_cv_hashed_db_libs" != default ; then
16860 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
16866 { { echo "$as_me:16866: error: Cannot find db.h" >&5
16867 echo "$as_me: error: Cannot find db.h" >&2;}
16868 { (exit 1); exit 1; }; }
16874 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
16875 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16876 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16879 # Just in case, check if the C compiler has a bool type.
16881 echo "$as_me:16881: checking if we should include stdbool.h" >&5
16882 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
16884 if test "${cf_cv_header_stdbool_h+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 cat >conftest.$ac_ext <<_ACEOF
16889 #line 16889 "configure"
16890 #include "confdefs.h"
16900 rm -f conftest.$ac_objext
16901 if { (eval echo "$as_me:16901: \"$ac_compile\"") >&5
16902 (eval $ac_compile) 2>&5
16904 echo "$as_me:16904: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -s conftest.$ac_objext'
16907 { (eval echo "$as_me:16907: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16910 echo "$as_me:16910: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 cf_cv_header_stdbool_h=0
16914 echo "$as_me: failed program was:" >&5
16915 cat conftest.$ac_ext >&5
16916 cat >conftest.$ac_ext <<_ACEOF
16917 #line 16917 "configure"
16918 #include "confdefs.h"
16921 #include <stdbool.h>
16932 rm -f conftest.$ac_objext
16933 if { (eval echo "$as_me:16933: \"$ac_compile\"") >&5
16934 (eval $ac_compile) 2>&5
16936 echo "$as_me:16936: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
16938 { ac_try='test -s conftest.$ac_objext'
16939 { (eval echo "$as_me:16939: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16942 echo "$as_me:16942: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 cf_cv_header_stdbool_h=1
16946 echo "$as_me: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 cf_cv_header_stdbool_h=0
16950 rm -f conftest.$ac_objext conftest.$ac_ext
16952 rm -f conftest.$ac_objext conftest.$ac_ext
16955 if test "$cf_cv_header_stdbool_h" = 1
16956 then echo "$as_me:16956: result: yes" >&5
16957 echo "${ECHO_T}yes" >&6
16958 else echo "$as_me:16958: result: no" >&5
16959 echo "${ECHO_T}no" >&6
16962 echo "$as_me:16962: checking for builtin bool type" >&5
16963 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
16965 if test "${cf_cv_cc_bool_type+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 cat >conftest.$ac_ext <<_ACEOF
16970 #line 16970 "configure"
16971 #include "confdefs.h"
16974 #include <sys/types.h>
16984 rm -f conftest.$ac_objext
16985 if { (eval echo "$as_me:16985: \"$ac_compile\"") >&5
16986 (eval $ac_compile) 2>&5
16988 echo "$as_me:16988: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -s conftest.$ac_objext'
16991 { (eval echo "$as_me:16991: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:16994: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 cf_cv_cc_bool_type=1
16998 echo "$as_me: failed program was:" >&5
16999 cat conftest.$ac_ext >&5
17000 cf_cv_cc_bool_type=0
17002 rm -f conftest.$ac_objext conftest.$ac_ext
17006 if test "$cf_cv_cc_bool_type" = 1
17007 then echo "$as_me:17007: result: yes" >&5
17008 echo "${ECHO_T}yes" >&6
17009 else echo "$as_me:17009: result: no" >&5
17010 echo "${ECHO_T}no" >&6
17013 # Check for C++ compiler characteristics (and ensure that it's there!)
17014 if test -n "$CXX" ; then
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17020 ac_main_return=return
17022 if test -n "$GXX" ; then
17023 case $cf_cv_system_name in #(vi
17025 cf_stdcpp_libname=stdcpp
17028 cf_stdcpp_libname=stdc++
17031 echo "$as_me:17031: checking for library $cf_stdcpp_libname" >&5
17032 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
17033 if test "${cf_cv_libstdcpp+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 LIBS="-l$cf_stdcpp_libname $LIBS"
17039 cat >conftest.$ac_ext <<_ACEOF
17040 #line 17040 "configure"
17041 #include "confdefs.h"
17043 #include <strstream.h>
17049 strstreambuf foo(buf, sizeof(buf))
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (eval echo "$as_me:17056: \"$ac_link\"") >&5
17057 (eval $ac_link) 2>&5
17059 echo "$as_me:17059: \$? = $ac_status" >&5
17060 (exit $ac_status); } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (eval echo "$as_me:17062: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:17065: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 cf_cv_libstdcpp=yes
17069 echo "$as_me: failed program was:" >&5
17070 cat conftest.$ac_ext >&5
17073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17077 echo "$as_me:17077: result: $cf_cv_libstdcpp" >&5
17078 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
17079 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
17082 echo "$as_me:17082: checking whether $CXX understands -c and -o together" >&5
17083 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
17084 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 cat > conftest.$ac_ext <<CF_EOF
17092 ${cf_cv_main_return:-return}(0);
17095 # We do the test twice because some compilers refuse to overwrite an
17096 # existing .o file with -o, though they will create one.
17097 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17098 if { (eval echo "$as_me:17098: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17101 echo "$as_me:17101: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 test -f conftest2.$ac_objext && { (eval echo "$as_me:17103: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17106 echo "$as_me:17106: \$? = $ac_status" >&5
17107 (exit $ac_status); };
17109 eval cf_cv_prog_CXX_c_o=yes
17111 eval cf_cv_prog_CXX_c_o=no
17116 if test $cf_cv_prog_CXX_c_o = yes; then
17117 echo "$as_me:17117: result: yes" >&5
17118 echo "${ECHO_T}yes" >&6
17120 echo "$as_me:17120: result: no" >&5
17121 echo "${ECHO_T}no" >&6
17124 case $GXX_VERSION in
17130 cf_cxx_library=unknown
17131 case $cf_cv_system_name in #(vi
17139 if test "$GXX" = yes; then
17140 echo "$as_me:17140: checking for lib$cf_gpp_libname" >&5
17141 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
17143 LIBS="-l$cf_gpp_libname $LIBS"
17144 cat >conftest.$ac_ext <<_ACEOF
17145 #line 17145 "configure"
17146 #include "confdefs.h"
17148 #include <$cf_gpp_libname/builtin.h>
17153 two_arg_error_handler_t foo2 = lib_error_handler
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (eval echo "$as_me:17159: \"$ac_link\"") >&5
17160 (eval $ac_link) 2>&5
17162 echo "$as_me:17162: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (eval echo "$as_me:17165: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17168 echo "$as_me:17168: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17171 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
17172 if test "$cf_gpp_libname" = cpp ; then
17173 cat >>confdefs.h <<\EOF
17174 #define HAVE_GPP_BUILTIN_H 1
17178 cat >>confdefs.h <<\EOF
17179 #define HAVE_GXX_BUILTIN_H 1
17184 echo "$as_me: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17186 cat >conftest.$ac_ext <<_ACEOF
17187 #line 17187 "configure"
17188 #include "confdefs.h"
17190 #include <builtin.h>
17195 two_arg_error_handler_t foo2 = lib_error_handler
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (eval echo "$as_me:17201: \"$ac_link\"") >&5
17202 (eval $ac_link) 2>&5
17204 echo "$as_me:17204: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -s conftest$ac_exeext'
17207 { (eval echo "$as_me:17207: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:17210: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17213 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
17214 cat >>confdefs.h <<\EOF
17215 #define HAVE_BUILTIN_H 1
17219 echo "$as_me: failed program was:" >&5
17220 cat conftest.$ac_ext >&5
17223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17227 echo "$as_me:17227: result: $cf_cxx_library" >&5
17228 echo "${ECHO_T}$cf_cxx_library" >&6
17238 ac_cpp='$CXXCPP $CPPFLAGS'
17239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17242 ac_main_return=return
17243 echo "$as_me:17243: checking how to run the C++ preprocessor" >&5
17244 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17245 if test -z "$CXXCPP"; then
17246 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 # Double quotes because CXXCPP needs to be expanded
17250 for CXXCPP in "$CXX -E" "/lib/cpp"
17252 ac_preproc_ok=false
17253 for ac_cxx_preproc_warn_flag in '' yes
17255 # Use a header file that comes with gcc, so configuring glibc
17256 # with a fresh cross-compiler works.
17257 # On the NeXT, cc -E runs the code through the compiler's parser,
17258 # not just through cpp. "Syntax error" is here to catch this case.
17259 cat >conftest.$ac_ext <<_ACEOF
17260 #line 17260 "configure"
17261 #include "confdefs.h"
17262 #include <assert.h>
17265 if { (eval echo "$as_me:17265: \"$ac_cpp conftest.$ac_ext\"") >&5
17266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17268 egrep -v '^ *\+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:17271: \$? = $ac_status" >&5
17272 (exit $ac_status); } >/dev/null; then
17273 if test -s conftest.err; then
17274 ac_cpp_err=$ac_cxx_preproc_warn_flag
17281 if test -z "$ac_cpp_err"; then
17284 echo "$as_me: failed program was:" >&5
17285 cat conftest.$ac_ext >&5
17286 # Broken: fails on valid input.
17289 rm -f conftest.err conftest.$ac_ext
17291 # OK, works on sane cases. Now check whether non-existent headers
17292 # can be detected and how.
17293 cat >conftest.$ac_ext <<_ACEOF
17294 #line 17294 "configure"
17295 #include "confdefs.h"
17296 #include <ac_nonexistent.h>
17298 if { (eval echo "$as_me:17298: \"$ac_cpp conftest.$ac_ext\"") >&5
17299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17301 egrep -v '^ *\+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:17304: \$? = $ac_status" >&5
17305 (exit $ac_status); } >/dev/null; then
17306 if test -s conftest.err; then
17307 ac_cpp_err=$ac_cxx_preproc_warn_flag
17314 if test -z "$ac_cpp_err"; then
17315 # Broken: success on invalid input.
17318 echo "$as_me: failed program was:" >&5
17319 cat conftest.$ac_ext >&5
17320 # Passes both tests.
17324 rm -f conftest.err conftest.$ac_ext
17327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17328 rm -f conftest.err conftest.$ac_ext
17329 if $ac_preproc_ok; then
17334 ac_cv_prog_CXXCPP=$CXXCPP
17337 CXXCPP=$ac_cv_prog_CXXCPP
17339 ac_cv_prog_CXXCPP=$CXXCPP
17341 echo "$as_me:17341: result: $CXXCPP" >&5
17342 echo "${ECHO_T}$CXXCPP" >&6
17343 ac_preproc_ok=false
17344 for ac_cxx_preproc_warn_flag in '' yes
17346 # Use a header file that comes with gcc, so configuring glibc
17347 # with a fresh cross-compiler works.
17348 # On the NeXT, cc -E runs the code through the compiler's parser,
17349 # not just through cpp. "Syntax error" is here to catch this case.
17350 cat >conftest.$ac_ext <<_ACEOF
17351 #line 17351 "configure"
17352 #include "confdefs.h"
17353 #include <assert.h>
17356 if { (eval echo "$as_me:17356: \"$ac_cpp conftest.$ac_ext\"") >&5
17357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17359 egrep -v '^ *\+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:17362: \$? = $ac_status" >&5
17363 (exit $ac_status); } >/dev/null; then
17364 if test -s conftest.err; then
17365 ac_cpp_err=$ac_cxx_preproc_warn_flag
17372 if test -z "$ac_cpp_err"; then
17375 echo "$as_me: failed program was:" >&5
17376 cat conftest.$ac_ext >&5
17377 # Broken: fails on valid input.
17380 rm -f conftest.err conftest.$ac_ext
17382 # OK, works on sane cases. Now check whether non-existent headers
17383 # can be detected and how.
17384 cat >conftest.$ac_ext <<_ACEOF
17385 #line 17385 "configure"
17386 #include "confdefs.h"
17387 #include <ac_nonexistent.h>
17389 if { (eval echo "$as_me:17389: \"$ac_cpp conftest.$ac_ext\"") >&5
17390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17392 egrep -v '^ *\+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:17395: \$? = $ac_status" >&5
17396 (exit $ac_status); } >/dev/null; then
17397 if test -s conftest.err; then
17398 ac_cpp_err=$ac_cxx_preproc_warn_flag
17405 if test -z "$ac_cpp_err"; then
17406 # Broken: success on invalid input.
17409 echo "$as_me: failed program was:" >&5
17410 cat conftest.$ac_ext >&5
17411 # Passes both tests.
17415 rm -f conftest.err conftest.$ac_ext
17418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17419 rm -f conftest.err conftest.$ac_ext
17420 if $ac_preproc_ok; then
17423 { { echo "$as_me:17423: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
17424 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
17425 { (exit 1); exit 1; }; }
17429 ac_cpp='$CXXCPP $CPPFLAGS'
17430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17433 ac_main_return=return
17435 for ac_header in iostream typeinfo
17437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17438 echo "$as_me:17438: checking for $ac_header" >&5
17439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 cat >conftest.$ac_ext <<_ACEOF
17444 #line 17444 "configure"
17445 #include "confdefs.h"
17446 #include <$ac_header>
17448 if { (eval echo "$as_me:17448: \"$ac_cpp conftest.$ac_ext\"") >&5
17449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17451 egrep -v '^ *\+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:17454: \$? = $ac_status" >&5
17455 (exit $ac_status); } >/dev/null; then
17456 if test -s conftest.err; then
17457 ac_cpp_err=$ac_cxx_preproc_warn_flag
17464 if test -z "$ac_cpp_err"; then
17465 eval "$as_ac_Header=yes"
17467 echo "$as_me: failed program was:" >&5
17468 cat conftest.$ac_ext >&5
17469 eval "$as_ac_Header=no"
17471 rm -f conftest.err conftest.$ac_ext
17473 echo "$as_me:17473: result: `eval echo '${'$as_ac_Header'}'`" >&5
17474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17476 cat >>confdefs.h <<EOF
17477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17483 if test x"$ac_cv_header_iostream" = xyes ; then
17484 echo "$as_me:17484: checking if iostream uses std-namespace" >&5
17485 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
17486 cat >conftest.$ac_ext <<_ACEOF
17487 #line 17487 "configure"
17488 #include "confdefs.h"
17490 #include <iostream>
17497 cerr << "testing" << endl;
17503 rm -f conftest.$ac_objext
17504 if { (eval echo "$as_me:17504: \"$ac_compile\"") >&5
17505 (eval $ac_compile) 2>&5
17507 echo "$as_me:17507: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -s conftest.$ac_objext'
17510 { (eval echo "$as_me:17510: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:17513: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 cf_iostream_namespace=yes
17517 echo "$as_me: failed program was:" >&5
17518 cat conftest.$ac_ext >&5
17519 cf_iostream_namespace=no
17521 rm -f conftest.$ac_objext conftest.$ac_ext
17522 echo "$as_me:17522: result: $cf_iostream_namespace" >&5
17523 echo "${ECHO_T}$cf_iostream_namespace" >&6
17524 if test "$cf_iostream_namespace" = yes ; then
17525 cat >>confdefs.h <<\EOF
17526 #define IOSTREAM_NAMESPACE 1
17532 echo "$as_me:17532: checking if we should include stdbool.h" >&5
17533 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17535 if test "${cf_cv_header_stdbool_h+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 cat >conftest.$ac_ext <<_ACEOF
17540 #line 17540 "configure"
17541 #include "confdefs.h"
17551 rm -f conftest.$ac_objext
17552 if { (eval echo "$as_me:17552: \"$ac_compile\"") >&5
17553 (eval $ac_compile) 2>&5
17555 echo "$as_me:17555: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -s conftest.$ac_objext'
17558 { (eval echo "$as_me:17558: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:17561: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 cf_cv_header_stdbool_h=0
17565 echo "$as_me: failed program was:" >&5
17566 cat conftest.$ac_ext >&5
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line 17568 "configure"
17569 #include "confdefs.h"
17572 #include <stdbool.h>
17583 rm -f conftest.$ac_objext
17584 if { (eval echo "$as_me:17584: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>&5
17587 echo "$as_me:17587: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:17590: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:17593: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 cf_cv_header_stdbool_h=1
17597 echo "$as_me: failed program was:" >&5
17598 cat conftest.$ac_ext >&5
17599 cf_cv_header_stdbool_h=0
17601 rm -f conftest.$ac_objext conftest.$ac_ext
17603 rm -f conftest.$ac_objext conftest.$ac_ext
17606 if test "$cf_cv_header_stdbool_h" = 1
17607 then echo "$as_me:17607: result: yes" >&5
17608 echo "${ECHO_T}yes" >&6
17609 else echo "$as_me:17609: result: no" >&5
17610 echo "${ECHO_T}no" >&6
17613 echo "$as_me:17613: checking for builtin bool type" >&5
17614 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17616 if test "${cf_cv_builtin_bool+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 cat >conftest.$ac_ext <<_ACEOF
17621 #line 17621 "configure"
17622 #include "confdefs.h"
17625 #include <sys/types.h>
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:17636: \"$ac_compile\"") >&5
17637 (eval $ac_compile) 2>&5
17639 echo "$as_me:17639: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
17641 { ac_try='test -s conftest.$ac_objext'
17642 { (eval echo "$as_me:17642: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17645 echo "$as_me:17645: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 cf_cv_builtin_bool=1
17649 echo "$as_me: failed program was:" >&5
17650 cat conftest.$ac_ext >&5
17651 cf_cv_builtin_bool=0
17653 rm -f conftest.$ac_objext conftest.$ac_ext
17657 if test "$cf_cv_builtin_bool" = 1
17658 then echo "$as_me:17658: result: yes" >&5
17659 echo "${ECHO_T}yes" >&6
17660 else echo "$as_me:17660: result: no" >&5
17661 echo "${ECHO_T}no" >&6
17664 echo "$as_me:17664: checking for size of bool" >&5
17665 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17666 if test "${cf_cv_type_of_bool+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 if test "$cross_compiling" = yes; then
17672 cf_cv_type_of_bool=unknown
17674 cat >conftest.$ac_ext <<_ACEOF
17675 #line 17675 "configure"
17676 #include "confdefs.h"
17678 #include <stdlib.h>
17681 #if defined(__cplusplus)
17683 #ifdef HAVE_GXX_BUILTIN_H
17684 #include <g++/builtin.h>
17685 #elif HAVE_GPP_BUILTIN_H
17686 #include <gpp/builtin.h>
17687 #elif HAVE_BUILTIN_H
17688 #include <builtin.h>
17693 #if $cf_cv_header_stdbool_h
17694 #include <stdbool.h>
17701 FILE *fp = fopen("cf_test.out", "w");
17704 if ((bool)(-x) >= 0)
17705 fputs("unsigned ", fp);
17706 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17707 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17708 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17709 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17712 ${cf_cv_main_return:-return}(0);
17716 rm -f conftest$ac_exeext
17717 if { (eval echo "$as_me:17717: \"$ac_link\"") >&5
17718 (eval $ac_link) 2>&5
17720 echo "$as_me:17720: \$? = $ac_status" >&5
17721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17722 { (eval echo "$as_me:17722: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:17725: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 cf_cv_type_of_bool=`cat cf_test.out`
17728 if test -z "$cf_cv_type_of_bool"; then
17729 cf_cv_type_of_bool=unknown
17732 echo "$as_me: program exited with status $ac_status" >&5
17733 echo "$as_me: failed program was:" >&5
17734 cat conftest.$ac_ext >&5
17735 cf_cv_type_of_bool=unknown
17737 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17743 echo "$as_me:17743: result: $cf_cv_type_of_bool" >&5
17744 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17745 if test "$cf_cv_type_of_bool" = unknown ; then
17746 case .$NCURSES_BOOL in #(vi
17747 .auto|.) NCURSES_BOOL=unsigned;;
17749 { echo "$as_me:17749: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17750 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17751 cf_cv_type_of_bool=$NCURSES_BOOL
17754 echo "$as_me:17754: checking for special defines needed for etip.h" >&5
17755 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
17756 cf_save_CXXFLAGS="$CXXFLAGS"
17758 for cf_math in "" MATH_H
17760 for cf_excp in "" MATH_EXCEPTION
17762 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
17763 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
17764 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
17765 cat >conftest.$ac_ext <<_ACEOF
17766 #line 17766 "configure"
17767 #include "confdefs.h"
17769 #include <etip.h.in>
17779 rm -f conftest.$ac_objext
17780 if { (eval echo "$as_me:17780: \"$ac_compile\"") >&5
17781 (eval $ac_compile) 2>&5
17783 echo "$as_me:17783: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -s conftest.$ac_objext'
17786 { (eval echo "$as_me:17786: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:17789: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17792 test -n "$cf_math" && cat >>confdefs.h <<EOF
17793 #define ETIP_NEEDS_${cf_math} 1
17796 test -n "$cf_excp" && cat >>confdefs.h <<EOF
17797 #define ETIP_NEEDS_${cf_excp} 1
17800 cf_result="$cf_math $cf_excp"
17804 echo "$as_me: failed program was:" >&5
17805 cat conftest.$ac_ext >&5
17807 rm -f conftest.$ac_objext conftest.$ac_ext
17810 echo "$as_me:17810: result: $cf_result" >&5
17811 echo "${ECHO_T}$cf_result" >&6
17812 CXXFLAGS="$cf_save_CXXFLAGS"
17814 if test -n "$CXX"; then
17815 echo "$as_me:17815: checking if $CXX accepts parameter initialization" >&5
17816 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
17817 if test "${cf_cv_cpp_param_init+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 ac_cpp='$CXXCPP $CPPFLAGS'
17823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17826 ac_main_return=return
17828 if test "$cross_compiling" = yes; then
17829 cf_cv_cpp_param_init=unknown
17831 cat >conftest.$ac_ext <<_ACEOF
17832 #line 17832 "configure"
17833 #include "confdefs.h"
17843 TEST::TEST(int x = 1) // some compilers do not like second initializer
17850 rm -f conftest$ac_exeext
17851 if { (eval echo "$as_me:17851: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>&5
17854 echo "$as_me:17854: \$? = $ac_status" >&5
17855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17856 { (eval echo "$as_me:17856: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:17859: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 cf_cv_cpp_param_init=yes
17863 echo "$as_me: program exited with status $ac_status" >&5
17864 echo "$as_me: failed program was:" >&5
17865 cat conftest.$ac_ext >&5
17866 cf_cv_cpp_param_init=no
17868 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17871 ac_cpp='$CXXCPP $CPPFLAGS'
17872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17875 ac_main_return=return
17878 echo "$as_me:17878: result: $cf_cv_cpp_param_init" >&5
17879 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
17881 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
17882 #define CPP_HAS_PARAM_INIT 1
17885 if test -n "$CXX"; then
17887 echo "$as_me:17887: checking if $CXX accepts static_cast" >&5
17888 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
17889 if test "${cf_cv_cpp_static_cast+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 ac_cpp='$CXXCPP $CPPFLAGS'
17895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17898 ac_main_return=return
17900 cat >conftest.$ac_ext <<_ACEOF
17901 #line 17901 "configure"
17902 #include "confdefs.h"
17907 NCursesPanel(int nlines,
17917 template<class T> class NCursesUserPanel : public NCursesPanel
17920 NCursesUserPanel (int nlines,
17924 const T* p_UserData = static_cast<T*>(0))
17925 : NCursesPanel (nlines, ncols, begin_y, begin_x)
17928 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
17932 virtual ~NCursesUserPanel() {};
17939 const char* p_UserData = static_cast<char*>(0)
17944 rm -f conftest.$ac_objext
17945 if { (eval echo "$as_me:17945: \"$ac_compile\"") >&5
17946 (eval $ac_compile) 2>&5
17948 echo "$as_me:17948: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (eval echo "$as_me:17951: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 echo "$as_me:17954: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 cf_cv_cpp_static_cast=yes
17958 echo "$as_me: failed program was:" >&5
17959 cat conftest.$ac_ext >&5
17960 cf_cv_cpp_static_cast=no
17962 rm -f conftest.$ac_objext conftest.$ac_ext
17965 ac_cpp='$CXXCPP $CPPFLAGS'
17966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17969 ac_main_return=return
17972 echo "$as_me:17972: result: $cf_cv_cpp_static_cast" >&5
17973 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
17977 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
17978 #define CPP_HAS_STATIC_CAST 1
17982 CXX_ARFLAGS='$(ARFLAGS)'
17983 case $cf_cv_system_name in #(vi
17985 if test "$GXX" != yes ; then
17987 CXX_ARFLAGS='-ar -o'
17991 CXXLDFLAGS="-u main"
17994 if test "$GXX" != yes ; then
17996 CXX_ARFLAGS='-xar -o'
18003 cf_cv_builtin_bool=1
18005 # Just because we are not configuring against C++ right now does not
18006 # mean that a user will not want to use C++. Some distributors disable
18007 # the C++ portion of this configuration as a shortcut (or just to avoid
18008 # compiling the demo in the c++ directory). So we need a reasonable
18009 # default for the 'bool' type.
18011 # Caveat: since the storage of the bool type is not standardized, it
18014 if test "$NCURSES_BOOL" != auto ; then
18015 cf_cv_type_of_bool=$NCURSES_BOOL
18016 cf_cv_header_stdbool_h=0
18018 if test "$cf_cv_header_stdbool_h" = 1 ; then
18020 echo "$as_me:18020: checking for size of bool" >&5
18021 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18022 if test "${cf_cv_type_of_bool+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 if test "$cross_compiling" = yes; then
18028 cf_cv_type_of_bool=unknown
18030 cat >conftest.$ac_ext <<_ACEOF
18031 #line 18031 "configure"
18032 #include "confdefs.h"
18034 #include <stdlib.h>
18037 #if defined(__cplusplus)
18039 #ifdef HAVE_GXX_BUILTIN_H
18040 #include <g++/builtin.h>
18041 #elif HAVE_GPP_BUILTIN_H
18042 #include <gpp/builtin.h>
18043 #elif HAVE_BUILTIN_H
18044 #include <builtin.h>
18049 #if $cf_cv_header_stdbool_h
18050 #include <stdbool.h>
18057 FILE *fp = fopen("cf_test.out", "w");
18060 if ((bool)(-x) >= 0)
18061 fputs("unsigned ", fp);
18062 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18063 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18064 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18065 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18068 ${cf_cv_main_return:-return}(0);
18072 rm -f conftest$ac_exeext
18073 if { (eval echo "$as_me:18073: \"$ac_link\"") >&5
18074 (eval $ac_link) 2>&5
18076 echo "$as_me:18076: \$? = $ac_status" >&5
18077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18078 { (eval echo "$as_me:18078: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18081 echo "$as_me:18081: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 cf_cv_type_of_bool=`cat cf_test.out`
18084 if test -z "$cf_cv_type_of_bool"; then
18085 cf_cv_type_of_bool=unknown
18088 echo "$as_me: program exited with status $ac_status" >&5
18089 echo "$as_me: failed program was:" >&5
18090 cat conftest.$ac_ext >&5
18091 cf_cv_type_of_bool=unknown
18093 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18099 echo "$as_me:18099: result: $cf_cv_type_of_bool" >&5
18100 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18101 if test "$cf_cv_type_of_bool" = unknown ; then
18102 case .$NCURSES_BOOL in #(vi
18103 .auto|.) NCURSES_BOOL=unsigned;;
18105 { echo "$as_me:18105: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18106 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18107 cf_cv_type_of_bool=$NCURSES_BOOL
18111 echo "$as_me:18111: checking for fallback type of bool" >&5
18112 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
18113 case "$host_cpu" in #(vi
18114 i?86) cf_cv_type_of_bool=char ;; #(vi
18115 *) cf_cv_type_of_bool=int ;;
18117 echo "$as_me:18117: result: $cf_cv_type_of_bool" >&5
18118 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18123 # If the C compiler did not declare bool, and we did not determine that the C++
18124 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
18125 # ncurses library use the same type as C++ bool. Note that this allows one to
18126 # specify the type of bool in a configure-script option and postpone
18127 # integration with the C++ compiler provided that the types are compatible.
18129 if test $cf_cv_cc_bool_type = 1
18131 # oops: C has a bool. Unlikely, but C++ could differ.
18133 elif test $cf_cv_builtin_bool = 0
18138 # this is the normal case
18139 USE_CXX_BOOL='defined(__cplusplus)'
18142 if test -f "${srcdir}/Ada95/Makefile.in" ; then
18144 if test "$cf_with_ada" != "no" ; then
18145 if test "$with_libtool" != "no"; then
18146 { echo "$as_me:18146: WARNING: libtool does not support Ada - disabling feature" >&5
18147 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
18152 if test "$cf_with_ada" != "no" ; then
18154 cf_ada_make=gnatmake
18155 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
18156 set dummy $cf_ada_make; ac_word=$2
18157 echo "$as_me:18157: checking for $ac_word" >&5
18158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18159 if test "${ac_cv_prog_gnat_exists+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18162 if test -n "$gnat_exists"; then
18163 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
18165 ac_save_IFS=$IFS; IFS=$ac_path_separator
18167 for ac_dir in $ac_dummy; do
18169 test -z "$ac_dir" && ac_dir=.
18170 $as_executable_p "$ac_dir/$ac_word" || continue
18171 ac_cv_prog_gnat_exists="yes"
18172 echo "$as_me:18172: found $ac_dir/$ac_word" >&5
18176 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
18179 gnat_exists=$ac_cv_prog_gnat_exists
18180 if test -n "$gnat_exists"; then
18181 echo "$as_me:18181: result: $gnat_exists" >&5
18182 echo "${ECHO_T}$gnat_exists" >&6
18184 echo "$as_me:18184: result: no" >&5
18185 echo "${ECHO_T}no" >&6
18188 if test "$ac_cv_prog_gnat_exists" = no; then
18192 echo "$as_me:18192: checking for gnat version" >&5
18193 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
18194 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
18195 grep '[0-9].[0-9][0-9]*' |\
18196 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
18197 echo "$as_me:18197: result: $cf_gnat_version" >&5
18198 echo "${ECHO_T}$cf_gnat_version" >&6
18200 case $cf_gnat_version in #(vi
18201 3.1[1-9]*|3.[2-9]*|[4-9].*) #(vi
18202 cf_cv_prog_gnat_correct=yes
18205 { echo "$as_me:18205: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
18206 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
18207 cf_cv_prog_gnat_correct=no
18211 # Extract the first word of "m4", so it can be a program name with args.
18212 set dummy m4; ac_word=$2
18213 echo "$as_me:18213: checking for $ac_word" >&5
18214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18215 if test "${ac_cv_prog_M4_exists+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18218 if test -n "$M4_exists"; then
18219 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
18221 ac_save_IFS=$IFS; IFS=$ac_path_separator
18223 for ac_dir in $ac_dummy; do
18225 test -z "$ac_dir" && ac_dir=.
18226 $as_executable_p "$ac_dir/$ac_word" || continue
18227 ac_cv_prog_M4_exists="yes"
18228 echo "$as_me:18228: found $ac_dir/$ac_word" >&5
18232 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
18235 M4_exists=$ac_cv_prog_M4_exists
18236 if test -n "$M4_exists"; then
18237 echo "$as_me:18237: result: $M4_exists" >&5
18238 echo "${ECHO_T}$M4_exists" >&6
18240 echo "$as_me:18240: result: no" >&5
18241 echo "${ECHO_T}no" >&6
18244 if test "$ac_cv_prog_M4_exists" = no; then
18245 cf_cv_prog_gnat_correct=no
18246 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
18248 if test "$cf_cv_prog_gnat_correct" = yes; then
18249 echo "$as_me:18249: checking if GNAT works" >&5
18250 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
18252 rm -rf conftest* *~conftest*
18253 cat >>conftest.ads <<CF_EOF
18254 procedure conftest;
18256 cat >>conftest.adb <<CF_EOF
18259 procedure conftest is
18261 Text_IO.Put ("Hello World");
18263 GNAT.OS_Lib.OS_Exit (0);
18266 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18267 if ( ./conftest 1>&5 2>&1 ) ; then
18268 cf_cv_prog_gnat_correct=yes
18270 cf_cv_prog_gnat_correct=no
18273 cf_cv_prog_gnat_correct=no
18275 rm -rf conftest* *~conftest*
18277 echo "$as_me:18277: result: $cf_cv_prog_gnat_correct" >&5
18278 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
18282 if test "$cf_cv_prog_gnat_correct" = yes; then
18284 ADAFLAGS="$ADAFLAGS -gnatpn"
18286 # make ADAFLAGS consistent with CFLAGS
18290 ADAFLAGS="$ADAFLAGS -g"
18297 ADAFLAGS="$ADAFLAGS -O3"
18302 echo "$as_me:18302: checking if GNAT supports generics" >&5
18303 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
18304 case $cf_gnat_version in #(vi
18305 3.[1-9]*|[4-9].*) #(vi
18306 cf_gnat_generics=yes
18309 cf_gnat_generics=no
18312 echo "$as_me:18312: result: $cf_gnat_generics" >&5
18313 echo "${ECHO_T}$cf_gnat_generics" >&6
18315 if test "$cf_gnat_generics" = yes
18317 cf_compile_generics=generics
18318 cf_generic_objects="\${GENOBJS}"
18320 cf_compile_generics=
18321 cf_generic_objects=
18324 echo "$as_me:18324: checking if GNAT supports SIGINT" >&5
18325 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
18326 if test "${cf_cv_gnat_sigint+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 rm -rf conftest* *~conftest*
18331 cat >>conftest.ads <<CF_EOF
18332 with Ada.Interrupts.Names;
18334 package ConfTest is
18336 pragma Warnings (Off); -- the next pragma exists since 3.11p
18337 pragma Unreserve_All_Interrupts;
18338 pragma Warnings (On);
18340 protected Process is
18342 function Continue return Boolean;
18343 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
18345 Done : Boolean := False;
18350 cat >>conftest.adb <<CF_EOF
18351 package body ConfTest is
18352 protected body Process is
18357 function Continue return Boolean is
18364 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18365 cf_cv_gnat_sigint=yes
18367 cf_cv_gnat_sigint=no
18369 rm -rf conftest* *~conftest*
18372 echo "$as_me:18372: result: $cf_cv_gnat_sigint" >&5
18373 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
18375 if test $cf_cv_gnat_sigint = yes ; then
18378 USE_GNAT_SIGINT="#"
18381 echo "$as_me:18381: checking if GNAT pragma Unreferenced works" >&5
18382 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
18383 if test "${cf_cv_pragma_unreferenced+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 rm -rf conftest* *~conftest*
18388 cat >>conftest.ads <<CF_EOF
18389 procedure conftest;
18391 cat >>conftest.adb <<CF_EOF
18394 procedure conftest is
18396 pragma Unreferenced (test);
18399 Text_IO.Put ("Hello World");
18401 GNAT.OS_Lib.OS_Exit (0);
18404 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18405 cf_cv_pragma_unreferenced=yes
18407 cf_cv_pragma_unreferenced=no
18409 rm -rf conftest* *~conftest*
18412 echo "$as_me:18412: result: $cf_cv_pragma_unreferenced" >&5
18413 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
18415 # if the pragma is supported, use it (needed in the Trace code).
18416 if test $cf_cv_pragma_unreferenced = yes ; then
18422 cf_gnat_libraries=no
18423 cf_gnat_projects=no
18425 echo "$as_me:18425: checking if GNAT supports project files" >&5
18426 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
18427 case $cf_gnat_version in #(vi
18431 case $cf_cv_system_name in #(vi
18435 mkdir conftest.src conftest.bin conftest.lib
18437 rm -rf conftest* *~conftest*
18438 cat >>library.gpr <<CF_EOF
18440 Kind := External ("LIB_KIND");
18441 for Library_Name use "ConfTest";
18442 for Object_Dir use ".";
18443 for Library_ALI_Dir use External("LIBRARY_DIR");
18444 for Library_Version use External ("SONAME");
18445 for Library_Kind use Kind;
18446 for Library_Dir use External("BUILD_DIR");
18447 Source_Dir := External ("SOURCE_DIR");
18448 for Source_Dirs use (Source_Dir);
18449 package Compiler is
18450 for Default_Switches ("Ada") use
18454 "-gnatVa", -- All validity checks
18455 "-gnatwa"); -- Activate all optional errors
18459 cat >>confpackage.ads <<CF_EOF
18460 package ConfPackage is
18461 procedure conftest;
18464 cat >>confpackage.adb <<CF_EOF
18466 package body ConfPackage is
18467 procedure conftest is
18469 Text_IO.Put ("Hello World");
18474 if ( $cf_ada_make $ADAFLAGS \
18476 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
18477 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
18478 -XSOURCE_DIR=`pwd` \
18479 -XSONAME=libConfTest.so.1 \
18480 -XLIB_KIND=static 1>&5 2>&1 ) ; then
18481 cf_gnat_projects=yes
18484 if test -f conftest.lib/confpackage.ali
18486 cf_gnat_libraries=yes
18488 rm -rf conftest* *~conftest*
18493 echo "$as_me:18493: result: $cf_gnat_projects" >&5
18494 echo "${ECHO_T}$cf_gnat_projects" >&6
18496 if test $cf_gnat_projects = yes
18498 echo "$as_me:18498: checking if GNAT supports libraries" >&5
18499 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
18500 echo "$as_me:18500: result: $cf_gnat_libraries" >&5
18501 echo "${ECHO_T}$cf_gnat_libraries" >&6
18504 if test "$cf_gnat_projects" = yes
18506 USE_OLD_MAKERULES="#"
18507 USE_GNAT_PROJECTS=""
18509 USE_OLD_MAKERULES=""
18510 USE_GNAT_PROJECTS="#"
18513 if test "$cf_gnat_libraries" = yes
18515 USE_GNAT_LIBRARIES=""
18517 USE_GNAT_LIBRARIES="#"
18520 echo "$as_me:18520: checking for ada-compiler" >&5
18521 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
18523 # Check whether --with-ada-compiler or --without-ada-compiler was given.
18524 if test "${with_ada_compiler+set}" = set; then
18525 withval="$with_ada_compiler"
18526 cf_ada_compiler=$withval
18528 cf_ada_compiler=gnatmake
18531 echo "$as_me:18531: result: $cf_ada_compiler" >&5
18532 echo "${ECHO_T}$cf_ada_compiler" >&6
18534 cf_ada_package=terminal_interface
18536 echo "$as_me:18536: checking for ada-include" >&5
18537 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
18539 # Check whether --with-ada-include or --without-ada-include was given.
18540 if test "${with_ada_include+set}" = set; then
18541 withval="$with_ada_include"
18544 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
18545 fi; if test -n "$prefix/share/ada/adainclude" ; then
18547 if test "x$prefix" != xNONE; then
18548 cf_path_syntax="$prefix"
18550 cf_path_syntax="$ac_default_prefix"
18553 case ".$withval" in #(vi
18554 .\$\(*\)*|.\'*\'*) #(vi
18558 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18560 .\${*prefix}*) #(vi
18561 eval withval="$withval"
18562 case ".$withval" in #(vi
18564 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18569 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18572 { { echo "$as_me:18572: error: expected a pathname, not \"$withval\"" >&5
18573 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18574 { (exit 1); exit 1; }; }
18579 ADA_INCLUDE="$withval"
18581 echo "$as_me:18581: result: $ADA_INCLUDE" >&5
18582 echo "${ECHO_T}$ADA_INCLUDE" >&6
18584 echo "$as_me:18584: checking for ada-objects" >&5
18585 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
18587 # Check whether --with-ada-objects or --without-ada-objects was given.
18588 if test "${with_ada_objects+set}" = set; then
18589 withval="$with_ada_objects"
18592 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
18593 fi; if test -n "$prefix/lib/ada/adalib" ; then
18595 if test "x$prefix" != xNONE; then
18596 cf_path_syntax="$prefix"
18598 cf_path_syntax="$ac_default_prefix"
18601 case ".$withval" in #(vi
18602 .\$\(*\)*|.\'*\'*) #(vi
18606 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18608 .\${*prefix}*) #(vi
18609 eval withval="$withval"
18610 case ".$withval" in #(vi
18612 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18617 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18620 { { echo "$as_me:18620: error: expected a pathname, not \"$withval\"" >&5
18621 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18622 { (exit 1); exit 1; }; }
18627 ADA_OBJECTS="$withval"
18629 echo "$as_me:18629: result: $ADA_OBJECTS" >&5
18630 echo "${ECHO_T}$ADA_OBJECTS" >&6
18632 echo "$as_me:18632: checking if an Ada95 shared-library should be built" >&5
18633 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
18635 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
18636 if test "${with_ada_sharedlib+set}" = set; then
18637 withval="$with_ada_sharedlib"
18638 with_ada_sharedlib=$withval
18640 with_ada_sharedlib=no
18642 echo "$as_me:18642: result: $with_ada_sharedlib" >&5
18643 echo "${ECHO_T}$with_ada_sharedlib" >&6
18645 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
18646 MAKE_ADA_SHAREDLIB="#"
18648 if test "x$with_ada_sharedlib" != xno
18650 MAKE_ADA_SHAREDLIB=
18651 if test "x$with_ada_sharedlib" != xyes
18653 ADA_SHAREDLIB="$with_ada_sharedlib"
18663 ### Construct the ncurses library-subsets, if any, from this set of keywords:
18664 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
18666 ### ticlib modules may be a separate library, otherwise contained in termlib.
18667 ### termlib modules may be a separate library, otherwise contained in ncurses.
18669 ### The of "+" or " " between the tokens controls the way the script
18670 ### chooses to split module lists into libraries.
18672 ### (see CF_LIB_RULES).
18673 echo "$as_me:18673: checking for library subsets" >&5
18674 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
18677 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
18678 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
18679 if test "$with_ticlib" != no ; then
18680 LIB_SUBSETS="${LIB_SUBSETS} "
18682 LIB_SUBSETS="${LIB_SUBSETS}+"
18686 LIB_SUBSETS="${LIB_SUBSETS}termlib"
18687 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
18689 if test "$with_termlib" != no ; then
18690 LIB_SUBSETS="${LIB_SUBSETS} "
18692 LIB_SUBSETS="${LIB_SUBSETS}+"
18695 LIB_SUBSETS="${LIB_SUBSETS}base"
18697 # Most term-driver calls are to tinfo, but some like init_pair are to the
18698 # base library (so it resides in base).
18699 if test "$with_term_driver" != no ; then
18700 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
18701 case $cf_cv_system_name in #(vi
18703 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
18706 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
18711 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
18712 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
18714 echo "$as_me:18714: result: $LIB_SUBSETS" >&5
18715 echo "${ECHO_T}$LIB_SUBSETS" >&6
18717 ### Construct the list of include-directories to be generated
18719 CPPFLAGS="$CPPFLAGS -I. -I../include"
18720 if test "$srcdir" != "."; then
18721 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
18723 if test "$GCC" != yes; then
18724 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18725 elif test "$includedir" != "/usr/include"; then
18726 if test "$includedir" = '${prefix}/include' ; then
18727 if test $prefix != /usr ; then
18728 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18731 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18735 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
18736 if test "$srcdir" != "."; then
18737 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
18739 if test "$GCC" != yes; then
18740 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18741 elif test "$includedir" != "/usr/include"; then
18742 if test "$includedir" = '${prefix}/include' ; then
18743 if test $prefix != /usr ; then
18744 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18747 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18751 ### Build up pieces for makefile rules
18752 echo "$as_me:18752: checking default library suffix" >&5
18753 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
18755 case $DFT_LWR_MODEL in
18756 libtool) DFT_ARG_SUFFIX='' ;;
18757 normal) DFT_ARG_SUFFIX='' ;;
18758 debug) DFT_ARG_SUFFIX='_g' ;;
18759 profile) DFT_ARG_SUFFIX='_p' ;;
18760 shared) DFT_ARG_SUFFIX='' ;;
18762 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
18763 echo "$as_me:18763: result: $DFT_ARG_SUFFIX" >&5
18764 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
18766 echo "$as_me:18766: checking default library-dependency suffix" >&5
18767 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
18769 case $DFT_LWR_MODEL in #(vi
18771 DFT_LIB_SUFFIX='.la'
18772 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18775 DFT_LIB_SUFFIX='.a'
18776 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18779 DFT_LIB_SUFFIX='_g.a'
18780 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18783 DFT_LIB_SUFFIX='_p.a'
18784 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18787 case $cf_cv_system_name in
18789 DFT_LIB_SUFFIX='.a'
18790 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18793 DFT_LIB_SUFFIX='.dll'
18794 DFT_DEP_SUFFIX='.dll.a'
18797 DFT_LIB_SUFFIX='.dylib'
18798 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18803 DFT_LIB_SUFFIX='.so'
18804 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18807 DFT_LIB_SUFFIX='.sl'
18808 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18812 *) DFT_LIB_SUFFIX='.so'
18813 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18817 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
18818 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
18819 echo "$as_me:18819: result: $DFT_DEP_SUFFIX" >&5
18820 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
18822 echo "$as_me:18822: checking default object directory" >&5
18823 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
18825 case $DFT_LWR_MODEL in
18826 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
18827 normal) DFT_OBJ_SUBDIR='objects' ;;
18828 debug) DFT_OBJ_SUBDIR='obj_g' ;;
18829 profile) DFT_OBJ_SUBDIR='obj_p' ;;
18831 case $cf_cv_system_name in #(vi
18833 DFT_OBJ_SUBDIR='objects' ;;
18835 DFT_OBJ_SUBDIR='obj_s' ;;
18838 echo "$as_me:18838: result: $DFT_OBJ_SUBDIR" >&5
18839 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
18841 # libtool thinks it can make c++ shared libraries (perhaps only g++)
18842 if test "$cf_with_cxx" = yes ; then
18843 echo "$as_me:18843: checking c++ library-dependency suffix" >&5
18844 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
18845 if test "$with_libtool" != "no"; then
18846 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
18849 case normal in #(vi
18851 CXX_LIB_SUFFIX='.la'
18852 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18855 CXX_LIB_SUFFIX='.a'
18856 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18859 CXX_LIB_SUFFIX='_g.a'
18860 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18863 CXX_LIB_SUFFIX='_p.a'
18864 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18867 case $cf_cv_system_name in
18869 CXX_LIB_SUFFIX='.a'
18870 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18873 CXX_LIB_SUFFIX='.dll'
18874 CXX_DEP_SUFFIX='.dll.a'
18877 CXX_LIB_SUFFIX='.dylib'
18878 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18883 CXX_LIB_SUFFIX='.so'
18884 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18887 CXX_LIB_SUFFIX='.sl'
18888 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18892 *) CXX_LIB_SUFFIX='.so'
18893 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18897 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
18898 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
18900 echo "$as_me:18900: result: $CXX_LIB_SUFFIX" >&5
18901 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
18905 # do not want -ldl in build except as needed for -lncurses dependency
18906 if test "$with_dlsym" = yes ; then
18907 if test $DFT_LWR_MODEL = shared || \
18908 test $DFT_LWR_MODEL = libtool ; then
18910 # remove dl library from $LIBS
18911 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18915 ### Set up low-level terminfo dependencies for makefiles.
18917 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
18918 # do not need libdl
18920 if test "$with_dlsym" = yes ; then
18922 # remove dl library from $SHLIB_LIST
18923 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18927 if test "$with_ticlib" != no ; then
18929 if test "$with_ticlib" != yes ; then
18930 TICS_NAME=$with_ticlib
18931 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18932 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18933 TICS_LIB_SUFFIX="${with_ticlib}"
18935 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
18936 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
18937 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
18939 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
18941 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18944 if test "$with_termlib" != no ; then
18946 if test "$with_termlib" != yes ; then
18947 TINFO_NAME=$with_termlib
18948 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18949 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18950 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18951 TINFO_LIB_SUFFIX="${with_termlib}"
18953 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18954 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
18955 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
18956 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
18959 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18960 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18961 if test "$DFT_LWR_MODEL" = "libtool"; then
18962 TEST_ARGS="${TEST_DEPS}"
18963 TEST_ARG2="${TEST_DEP2}"
18964 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18965 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
18966 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
18968 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
18969 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
18970 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18971 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18972 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18975 # the next lines are needed for linking libtic over libncurses
18976 TINFO_NAME=${LIB_NAME}
18977 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18978 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
18979 if test "$with_tic_depends" = yes ; then
18980 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18982 TICS_LIST="$SHLIB_LIST"
18985 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18988 if test "$DFT_LWR_MODEL" = shared ; then
18989 case $cf_cv_system_name in #(vi
18991 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
18997 if test "$with_dlsym" = yes ; then
18999 # remove dl library from $TICS_LIST
19000 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19004 if test "$DFT_LWR_MODEL" = "libtool"; then
19009 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
19011 case $DFT_LWR_MODEL in
19012 normal|debug|profile)
19014 if test "$GCC" = yes ; then
19015 case $cf_cv_system_name in #(
19016 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
19020 *) #( normally, except when broken
19021 LDFLAGS_STATIC=-static
19022 LDFLAGS_SHARED=-dynamic
19026 case $cf_cv_system_name in #(
19027 aix[456]*) #( from ld manpage
19028 LDFLAGS_STATIC=-bstatic
19029 LDFLAGS_SHARED=-bdynamic
19031 hpux*) #( from ld manpage for hpux10.20, hpux11.11
19032 # We could also use just "archive" and "shared".
19033 LDFLAGS_STATIC=-Wl,-a,archive_shared
19034 LDFLAGS_SHARED=-Wl,-a,shared_archive
19036 irix*) #( from ld manpage IRIX64
19037 LDFLAGS_STATIC=-Bstatic
19038 LDFLAGS_SHARED=-Bdynamic
19040 osf[45]*) #( from ld manpage osf4.0d, osf5.1
19041 # alternative "-oldstyle_liblookup" (not in cc manpage)
19042 LDFLAGS_STATIC=-noso
19043 LDFLAGS_SHARED=-so_archive
19046 LDFLAGS_STATIC=-Bstatic
19047 LDFLAGS_SHARED=-Bdynamic
19052 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
19054 echo "$as_me:19054: checking if linker supports switching between static/dynamic" >&5
19055 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
19057 rm -f libconftest.a
19058 cat >conftest.$ac_ext <<EOF
19059 #line 19059 "configure"
19061 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
19063 if { (eval echo "$as_me:19063: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>&5
19066 echo "$as_me:19066: \$? = $ac_status" >&5
19067 (exit $ac_status); } ; then
19068 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
19069 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
19073 cf_save_LIBS="$LIBS"
19075 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
19076 cat >conftest.$ac_ext <<_ACEOF
19077 #line 19077 "configure"
19078 #include "confdefs.h"
19080 #line 19080 "configure"
19082 int cf_ldflags_static(FILE *fp);
19088 return cf_ldflags_static(stdin);
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:19095: \"$ac_link\"") >&5
19096 (eval $ac_link) 2>&5
19098 echo "$as_me:19098: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -s conftest$ac_exeext'
19101 { (eval echo "$as_me:19101: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:19104: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 cf_ldflags_static=yes
19108 echo "$as_me: failed program was:" >&5
19109 cat conftest.$ac_ext >&5
19110 cf_ldflags_static=no
19112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19114 rm -f libconftest.*
19115 LIBS="$cf_save_LIBS"
19117 echo "$as_me:19117: result: $cf_ldflags_static" >&5
19118 echo "${ECHO_T}$cf_ldflags_static" >&6
19120 if test $cf_ldflags_static != yes
19133 echo "$as_me:19133: checking where we will install curses.h" >&5
19134 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
19135 test "$with_overwrite" = no && \
19136 test "x$includedir" = 'x${prefix}/include' && \
19137 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
19138 echo "$as_me:19138: result: $includedir" >&5
19139 echo "${ECHO_T}$includedir" >&6
19141 ### Resolve a conflict between normal and wide-curses by forcing applications
19142 ### that will need libutf8 to add it to their configure script.
19143 if test "$with_overwrite" != no ; then
19144 if test "$NCURSES_LIBUTF8" = 1 ; then
19145 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
19146 { echo "$as_me:19146: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
19147 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
19150 WITH_OVERWRITE=$with_overwrite
19152 # used to separate tack out of the tree
19155 ### predefined stuff for the test programs
19156 cat >>confdefs.h <<\EOF
19157 #define HAVE_SLK_COLOR 1
19160 ### Construct the list of subdirectories for which we'll customize makefiles
19161 ### with the appropriate compile-rules.
19163 echo "$as_me:19163: checking for src modules" >&5
19164 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
19166 # dependencies and linker-arguments for test-programs
19167 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
19168 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
19169 if test "$DFT_LWR_MODEL" = "libtool"; then
19170 TEST_ARGS="${TEST_DEPS}"
19171 TEST_ARG2="${TEST_DEP2}"
19173 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
19174 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
19178 for cf_dir in $modules_to_build
19180 if test -f $srcdir/$cf_dir/modules; then
19182 # We may/may not have tack in the distribution, though the
19184 if test $cf_dir = tack ; then
19185 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
19190 if test -z "$cf_cv_src_modules"; then
19191 cf_cv_src_modules=$cf_dir
19193 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
19196 # Make the ncurses_cfg.h file record the library interface files as
19197 # well. These are header files that are the same name as their
19198 # directory. Ncurses is the only library that does not follow
19200 if test $cf_dir = tack ; then
19202 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
19204 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19206 cat >>confdefs.h <<EOF
19207 #define HAVE_${cf_have_include}_H 1
19210 cat >>confdefs.h <<EOF
19211 #define HAVE_LIB${cf_have_include} 1
19214 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
19215 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
19216 if test "$DFT_LWR_MODEL" = "libtool"; then
19217 TEST_ARGS="${TEST_DEPS}"
19218 TEST_ARG2="${TEST_DEP2}"
19220 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
19221 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
19226 echo "$as_me:19226: result: $cf_cv_src_modules" >&5
19227 echo "${ECHO_T}$cf_cv_src_modules" >&6
19229 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
19230 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
19233 if test "x$cf_with_manpages" != xno ; then
19234 SRC_SUBDIRS="$SRC_SUBDIRS man"
19236 SRC_SUBDIRS="$SRC_SUBDIRS include"
19237 for cf_dir in $cf_cv_src_modules
19239 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
19241 if test "x$cf_with_tests" != "xno" ; then
19242 SRC_SUBDIRS="$SRC_SUBDIRS test"
19244 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
19245 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
19248 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
19249 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
19250 ADA_SUBDIRS="gen src"
19251 if test "x$cf_with_tests" != "xno" ; then
19252 ADA_SUBDIRS="$ADA_SUBDIRS samples"
19257 for cf_dir in $SRC_SUBDIRS
19259 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
19262 if test -n "$ADA_SUBDIRS"; then
19263 for cf_dir in $ADA_SUBDIRS
19265 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
19270 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
19271 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
19272 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
19276 for cf_item in $cf_list_models
19280 libtool) cf_subdir='obj_lo' ;;
19281 normal) cf_subdir='objects' ;;
19282 debug) cf_subdir='obj_g' ;;
19283 profile) cf_subdir='obj_p' ;;
19285 case $cf_cv_system_name in #(vi
19287 cf_subdir='objects' ;;
19289 cf_subdir='obj_s' ;;
19293 for cf_item2 in $DIRS_TO_MAKE
19295 test $cf_item2 = $cf_subdir && break
19297 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
19299 for cf_dir in $DIRS_TO_MAKE
19301 test ! -d $cf_dir && mkdir $cf_dir
19304 # symbols that differ when compiling Ada95 by itself.
19305 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
19307 # values to use as strings
19308 cat >>confdefs.h <<EOF
19309 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
19312 cat >>confdefs.h <<EOF
19313 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
19316 ### Now that we're done running tests, add the compiler-warnings, if any
19321 cf_new_extra_cppflags=
19323 for cf_add_cflags in $EXTRA_CFLAGS
19325 case $cf_fix_cppflags in
19327 case $cf_add_cflags in #(vi
19328 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
19329 case $cf_add_cflags in
19331 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19333 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
19334 && test -z "${cf_tst_cflags}" \
19335 && cf_fix_cppflags=yes
19337 if test $cf_fix_cppflags = yes ; then
19338 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19340 elif test "${cf_tst_cflags}" = "\"'" ; then
19341 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19346 case "$CPPFLAGS" in
19347 *$cf_add_cflags) #(vi
19350 case $cf_add_cflags in #(vi
19352 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19354 CPPFLAGS=`echo "$CPPFLAGS" | \
19355 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19356 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19360 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
19365 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
19370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19372 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19374 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
19375 && test -z "${cf_tst_cflags}" \
19376 && cf_fix_cppflags=no
19381 if test -n "$cf_new_cflags" ; then
19383 CFLAGS="$CFLAGS $cf_new_cflags"
19386 if test -n "$cf_new_cppflags" ; then
19388 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
19391 if test -n "$cf_new_extra_cppflags" ; then
19393 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
19396 ### Define substitutions for header files to avoid name-pollution
19398 if test "$cf_cv_have_tcgetattr" = yes ; then
19404 if test "$ac_cv_header_termio_h" = yes ; then
19410 if test "$ac_cv_header_termios_h" = yes ; then
19416 ################################################################################
19417 test "$use_database" = yes && \
19418 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
19420 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
19421 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
19423 if test x"$enable_pc_files" = xyes ; then \
19424 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
19430 # Extract the first word of "tic", so it can be a program name with args.
19431 set dummy tic; ac_word=$2
19432 echo "$as_me:19432: checking for $ac_word" >&5
19433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19434 if test "${ac_cv_path_TIC_PATH+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
19442 ac_save_IFS=$IFS; IFS=$ac_path_separator
19443 ac_dummy="$PATH:/usr/local/ncurses/bin"
19444 for ac_dir in $ac_dummy; do
19446 test -z "$ac_dir" && ac_dir=.
19447 if $as_executable_p "$ac_dir/$ac_word"; then
19448 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
19449 echo "$as_me:19449: found $ac_dir/$ac_word" >&5
19454 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
19458 TIC_PATH=$ac_cv_path_TIC_PATH
19460 if test -n "$TIC_PATH"; then
19461 echo "$as_me:19461: result: $TIC_PATH" >&5
19462 echo "${ECHO_T}$TIC_PATH" >&6
19464 echo "$as_me:19464: result: no" >&5
19465 echo "${ECHO_T}no" >&6
19468 if test -n "$FALLBACK_LIST"
19470 if test "$TIC_PATH" = unknown
19472 { echo "$as_me:19472: WARNING: no tic program found for fallbacks" >&5
19473 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
19477 if test "x$cf_with_tests" != xno ; then
19483 ADAHTML_DIR=../../doc/html/ada
19486 case $cf_cv_system_name in #(vi
19488 SUB_SCRIPTS="mk-dlls.sh"
19492 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_SCRIPTS $SUB_MAKEFILES Makefile"
19493 ac_config_commands="$ac_config_commands default"
19494 cat >confcache <<\_ACEOF
19495 # This file is a shell script that caches the results of configure
19496 # tests run on this system so they can be shared between configure
19497 # scripts and configure runs, see configure's option --config-cache.
19498 # It is not useful on other systems. If it contains results you don't
19499 # want to keep, you may remove or edit it.
19501 # config.status only pays attention to the cache file if you give it
19502 # the --recheck option to rerun configure.
19504 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19506 # following values.
19510 # The following way of writing the cache mishandles newlines in values,
19511 # but we know of no workaround that is simple, portable, and efficient.
19512 # So, don't put newlines in cache variables' values.
19513 # Ultrix sh set writes to stderr and can't be redirected directly,
19514 # and sets the high bit in the cache file unless we assign to the vars.
19517 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19519 # `set' does not quote correctly, so add quotes (double-quote
19520 # substitution turns \\\\ into \\, and sed turns \\ into \).
19523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19526 # `set' quotes correctly as required by POSIX, so do not add quotes.
19528 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19537 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19539 if cmp -s $cache_file confcache; then :; else
19540 if test -w $cache_file; then
19541 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19542 cat confcache >$cache_file
19544 echo "not updating unwritable cache $cache_file"
19549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19550 # Let make expand exec_prefix.
19551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19553 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19555 # trailing colons and then remove the whole line if VPATH becomes empty
19556 # (actually we leave an empty line to preserve line numbers).
19557 if test "x$srcdir" = x.; then
19558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19559 s/:*\$(srcdir):*/:/;
19560 s/:*\${srcdir}:*/:/;
19562 s/^\([^=]*=[ ]*\):*/\1/;
19568 DEFS=-DHAVE_CONFIG_H
19570 : ${CONFIG_STATUS=./config.status}
19571 ac_clean_files_save=$ac_clean_files
19572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19573 { echo "$as_me:19573: creating $CONFIG_STATUS" >&5
19574 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19575 cat >$CONFIG_STATUS <<_ACEOF
19577 # Generated automatically by configure.
19578 # Run this file to recreate the current configuration.
19579 # Compiler output produced by configure, useful for debugging
19580 # configure, is in config.log if it exists.
19583 SHELL=\${CONFIG_SHELL-$SHELL}
19584 ac_cs_invocation="\$0 \$@"
19588 cat >>$CONFIG_STATUS <<\_ACEOF
19589 # Be Bourne compatible
19590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19593 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19597 # Name of the executable.
19598 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19600 if expr a : '\(a\)' >/dev/null 2>&1; then
19606 rm -f conf$$ conf$$.exe conf$$.file
19608 if ln -s conf$$.file conf$$ 2>/dev/null; then
19609 # We could just check for DJGPP; but this test a) works b) is more generic
19610 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19611 if test -f conf$$.exe; then
19612 # Don't use ln at all; we don't have any links
19617 elif ln conf$$.file conf$$ 2>/dev/null; then
19622 rm -f conf$$ conf$$.exe conf$$.file
19624 as_executable_p="test -f"
19626 # Support unset when possible.
19627 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19634 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19635 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19636 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19637 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19638 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19639 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19640 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19641 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19644 # We need space, tab and new line, in precisely that order.
19650 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19656 # Files that config.status was made for.
19657 if test -n "$ac_config_files"; then
19658 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19661 if test -n "$ac_config_headers"; then
19662 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19665 if test -n "$ac_config_links"; then
19666 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19669 if test -n "$ac_config_commands"; then
19670 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19673 cat >>$CONFIG_STATUS <<\EOF
19676 \`$as_me' instantiates files from templates according to the
19677 current configuration.
19679 Usage: $0 [OPTIONS] [FILE]...
19681 -h, --help print this help, then exit
19682 -V, --version print version number, then exit
19683 -d, --debug don't remove temporary files
19684 --recheck update $as_me by reconfiguring in the same conditions
19685 --file=FILE[:TEMPLATE]
19686 instantiate the configuration file FILE
19687 --header=FILE[:TEMPLATE]
19688 instantiate the configuration header FILE
19690 Configuration files:
19693 Configuration headers:
19696 Configuration commands:
19699 Report bugs to <dickey@invisible-island.net>."
19702 cat >>$CONFIG_STATUS <<EOF
19705 configured by $0, generated by GNU Autoconf 2.52.20101002,
19706 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19708 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19709 Free Software Foundation, Inc.
19710 This config.status script is free software; the Free Software Foundation
19711 gives unlimited permission to copy, distribute and modify it."
19716 cat >>$CONFIG_STATUS <<\EOF
19717 # If no file are specified by the user, then we need to provide default
19718 # value. By we need to know if files were specified by the user.
19724 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19725 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19727 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19731 *) # This is not an option, so the user has probably given explicit
19733 ac_need_defaults=false;;
19737 # Handling of the options.
19739 cat >>$CONFIG_STATUS <<EOF
19740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19741 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19742 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19744 cat >>$CONFIG_STATUS <<\EOF
19745 --version | --vers* | -V )
19746 echo "$ac_cs_version"; exit 0 ;;
19748 # Conflict between --help and --header
19749 { { echo "$as_me:19749: error: ambiguous option: $1
19750 Try \`$0 --help' for more information." >&5
19751 echo "$as_me: error: ambiguous option: $1
19752 Try \`$0 --help' for more information." >&2;}
19753 { (exit 1); exit 1; }; };;
19754 --help | --hel | -h )
19755 echo "$ac_cs_usage"; exit 0 ;;
19756 --debug | --d* | -d )
19758 --file | --fil | --fi | --f )
19760 CONFIG_FILES="$CONFIG_FILES $1"
19761 ac_need_defaults=false;;
19762 --header | --heade | --head | --hea )
19764 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19765 ac_need_defaults=false;;
19767 # This is an error.
19768 -*) { { echo "$as_me:19768: error: unrecognized option: $1
19769 Try \`$0 --help' for more information." >&5
19770 echo "$as_me: error: unrecognized option: $1
19771 Try \`$0 --help' for more information." >&2;}
19772 { (exit 1); exit 1; }; } ;;
19774 *) ac_config_targets="$ac_config_targets $1" ;;
19783 ## ----------------------- ##
19784 ## Running config.status. ##
19785 ## ----------------------- ##
19787 This file was extended by $as_me 2.52.20101002, executed with
19788 CONFIG_FILES = $CONFIG_FILES
19789 CONFIG_HEADERS = $CONFIG_HEADERS
19790 CONFIG_LINKS = $CONFIG_LINKS
19791 CONFIG_COMMANDS = $CONFIG_COMMANDS
19792 > $ac_cs_invocation
19793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19798 cat >>$CONFIG_STATUS <<EOF
19800 # INIT-COMMANDS section.
19803 ### Special initialization commands, used to pass information from the
19804 ### configuration-run into config.status
19807 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
19808 DFT_LWR_MODEL="$DFT_LWR_MODEL"
19809 ECHO_LINK="$ECHO_LINK"
19810 LDCONFIG="$LDCONFIG"
19811 LIBTOOL_VERSION="$LIBTOOL_VERSION"
19812 LIB_NAME="$LIB_NAME"
19813 LIB_SUBSETS="$LIB_SUBSETS"
19814 LIB_SUFFIX="$LIB_SUFFIX"
19815 LIB_TRACING="$LIB_TRACING"
19817 MAKE_TERMINFO="$MAKE_TERMINFO"
19818 NCURSES_MAJOR="$NCURSES_MAJOR"
19819 NCURSES_MINOR="$NCURSES_MINOR"
19820 NCURSES_OSPEED="$NCURSES_OSPEED"
19821 NCURSES_PATCH="$NCURSES_PATCH"
19822 SRC_SUBDIRS="$SRC_SUBDIRS"
19823 TERMINFO="$TERMINFO"
19824 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
19825 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
19826 TICS_NAME="$TICS_NAME"
19827 TIC_PATH="$TIC_PATH"
19828 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
19829 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
19830 TINFO_NAME="$TINFO_NAME"
19831 TINFO_SUFFIX="$TINFO_SUFFIX"
19832 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
19833 WITH_CURSES_H="$with_curses_h"
19834 WITH_ECHO="$with_echo"
19835 WITH_OVERWRITE="$with_overwrite"
19836 cf_LIST_MODELS="$cf_list_models"
19837 cf_cv_abi_version="$cf_cv_abi_version"
19838 cf_cv_do_relink="$cf_cv_do_relink"
19839 cf_cv_do_symlinks="$cf_cv_do_symlinks"
19840 cf_cv_enable_lp64="$cf_cv_enable_lp64"
19841 cf_cv_enable_opaque="$cf_cv_enable_opaque"
19842 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
19843 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
19844 cf_cv_rel_version="$cf_cv_rel_version"
19845 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
19846 cf_cv_shared_soname='$cf_cv_shared_soname'
19847 cf_cv_shlib_version="$cf_cv_shlib_version"
19848 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
19849 cf_cv_system_name="$cf_cv_system_name"
19850 cf_with_ada="$cf_with_ada"
19851 cf_with_cxx_binding="$cf_with_cxx_binding"
19852 cf_with_manpages="$cf_with_manpages"
19853 cf_with_tests="$cf_with_tests"
19859 cat >>$CONFIG_STATUS <<\EOF
19860 for ac_config_target in $ac_config_targets
19862 case "$ac_config_target" in
19863 # Handling of arguments.
19864 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
19865 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
19866 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
19867 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
19868 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
19869 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
19870 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
19871 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19872 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19873 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
19874 *) { { echo "$as_me:19874: error: invalid argument: $ac_config_target" >&5
19875 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19876 { (exit 1); exit 1; }; };;
19880 # If the user did not use the arguments to specify the items to instantiate,
19881 # then the envvar interface is used. Set only those that are not.
19882 # We use the long form for the default assignment because of an extremely
19883 # bizarre bug on SunOS 4.1.3.
19884 if $ac_need_defaults; then
19885 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19886 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19890 # Create a temporary directory, and hook for its removal unless debugging.
19893 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19894 trap '{ (exit 1); exit 1; }' 1 2 13 15
19897 # Create a (secure) tmp directory for tmp files.
19900 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19901 test -n "$tmp" && test -d "$tmp"
19904 tmp=$TMPDIR/cs$$-$RANDOM
19905 (umask 077 && mkdir $tmp)
19908 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19909 { (exit 1); exit 1; }
19914 cat >>$CONFIG_STATUS <<EOF
19917 # CONFIG_FILES section.
19920 # No need to generate the scripts if there are no CONFIG_FILES.
19921 # This happens for instance when ./config.status config.h
19922 if test -n "\$CONFIG_FILES"; then
19923 # Protect against being on the right side of a sed subst in config.status.
19924 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19925 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19926 s,@SHELL@,$SHELL,;t t
19927 s,@exec_prefix@,$exec_prefix,;t t
19928 s,@prefix@,$prefix,;t t
19929 s,@program_transform_name@,$program_transform_name,;t t
19930 s,@bindir@,$bindir,;t t
19931 s,@sbindir@,$sbindir,;t t
19932 s,@libexecdir@,$libexecdir,;t t
19933 s,@datadir@,$datadir,;t t
19934 s,@sysconfdir@,$sysconfdir,;t t
19935 s,@sharedstatedir@,$sharedstatedir,;t t
19936 s,@localstatedir@,$localstatedir,;t t
19937 s,@libdir@,$libdir,;t t
19938 s,@includedir@,$includedir,;t t
19939 s,@oldincludedir@,$oldincludedir,;t t
19940 s,@infodir@,$infodir,;t t
19941 s,@mandir@,$mandir,;t t
19942 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19943 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19944 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19945 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19946 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19947 s,@build_alias@,$build_alias,;t t
19948 s,@host_alias@,$host_alias,;t t
19949 s,@target_alias@,$target_alias,;t t
19950 s,@ECHO_C@,$ECHO_C,;t t
19951 s,@ECHO_N@,$ECHO_N,;t t
19952 s,@ECHO_T@,$ECHO_T,;t t
19953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19954 s,@DEFS@,$DEFS,;t t
19955 s,@LIBS@,$LIBS,;t t
19956 s,@top_builddir@,$top_builddir,;t t
19957 s,@EGREP@,$EGREP,;t t
19958 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
19959 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
19960 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
19961 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19962 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19963 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
19964 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
19965 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
19966 s,@build@,$build,;t t
19967 s,@build_cpu@,$build_cpu,;t t
19968 s,@build_vendor@,$build_vendor,;t t
19969 s,@build_os@,$build_os,;t t
19970 s,@host@,$host,;t t
19971 s,@host_cpu@,$host_cpu,;t t
19972 s,@host_vendor@,$host_vendor,;t t
19973 s,@host_os@,$host_os,;t t
19974 s,@target@,$target,;t t
19975 s,@target_cpu@,$target_cpu,;t t
19976 s,@target_vendor@,$target_vendor,;t t
19977 s,@target_os@,$target_os,;t t
19979 s,@CFLAGS@,$CFLAGS,;t t
19980 s,@LDFLAGS@,$LDFLAGS,;t t
19981 s,@CPPFLAGS@,$CPPFLAGS,;t t
19982 s,@ac_ct_CC@,$ac_ct_CC,;t t
19983 s,@EXEEXT@,$EXEEXT,;t t
19984 s,@OBJEXT@,$OBJEXT,;t t
19986 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19987 s,@PROG_EXT@,$PROG_EXT,;t t
19988 s,@LDCONFIG@,$LDCONFIG,;t t
19990 s,@CXXFLAGS@,$CXXFLAGS,;t t
19991 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19993 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19994 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19995 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19996 s,@LINT@,$LINT,;t t
19997 s,@LINT_OPTS@,$LINT_OPTS,;t t
19998 s,@LN_S@,$LN_S,;t t
19999 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20000 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20001 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
20002 s,@SET_MAKE@,$SET_MAKE,;t t
20003 s,@CTAGS@,$CTAGS,;t t
20004 s,@ETAGS@,$ETAGS,;t t
20005 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
20006 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
20007 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
20008 s,@RANLIB@,$RANLIB,;t t
20009 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20011 s,@ac_ct_LD@,$ac_ct_LD,;t t
20013 s,@ac_ct_AR@,$ac_ct_AR,;t t
20014 s,@ARFLAGS@,$ARFLAGS,;t t
20015 s,@DESTDIR@,$DESTDIR,;t t
20016 s,@BUILD_CC@,$BUILD_CC,;t t
20017 s,@BUILD_CPP@,$BUILD_CPP,;t t
20018 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20019 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20020 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20021 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
20022 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20023 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
20024 s,@cf_list_models@,$cf_list_models,;t t
20025 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
20026 s,@LIBTOOL@,$LIBTOOL,;t t
20027 s,@LT_UNDEF@,$LT_UNDEF,;t t
20028 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
20029 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
20030 s,@LIB_CREATE@,$LIB_CREATE,;t t
20031 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
20032 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
20033 s,@LIB_PREP@,$LIB_PREP,;t t
20034 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
20035 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
20036 s,@LIB_LINK@,$LIB_LINK,;t t
20037 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
20038 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
20039 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
20040 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
20041 s,@TICS_NAME@,$TICS_NAME,;t t
20042 s,@TINFO_NAME@,$TINFO_NAME,;t t
20043 s,@LIB_NAME@,$LIB_NAME,;t t
20044 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
20045 s,@CC_G_OPT@,$CC_G_OPT,;t t
20046 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
20047 s,@LD_MODEL@,$LD_MODEL,;t t
20048 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
20049 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
20050 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
20051 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
20052 s,@LINK_PROGS@,$LINK_PROGS,;t t
20053 s,@LINK_TESTS@,$LINK_TESTS,;t t
20054 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
20055 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20056 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
20057 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
20058 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
20059 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
20060 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
20061 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
20062 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
20063 s,@TERMINFO@,$TERMINFO,;t t
20064 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
20065 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
20066 s,@TERMPATH@,$TERMPATH,;t t
20067 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
20068 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
20069 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
20070 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
20071 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
20072 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
20073 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
20074 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
20075 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
20076 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
20077 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
20078 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
20079 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
20080 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
20081 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
20082 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
20083 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
20084 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
20085 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
20086 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
20087 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
20088 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
20089 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
20090 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
20091 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
20092 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
20093 s,@PTHREAD@,$PTHREAD,;t t
20094 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
20095 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
20096 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
20097 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
20098 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
20099 s,@ECHO_LINK@,$ECHO_LINK,;t t
20100 s,@ADAFLAGS@,$ADAFLAGS,;t t
20101 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
20102 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
20103 s,@ADA_TRACE@,$ADA_TRACE,;t t
20104 s,@MATH_LIB@,$MATH_LIB,;t t
20105 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
20106 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
20107 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
20108 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
20109 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
20110 s,@TEST_LIBS@,$TEST_LIBS,;t t
20111 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
20112 s,@CXXCPP@,$CXXCPP,;t t
20113 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
20114 s,@CXX_AR@,$CXX_AR,;t t
20115 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
20116 s,@CXXLIBS@,$CXXLIBS,;t t
20117 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
20118 s,@gnat_exists@,$gnat_exists,;t t
20119 s,@M4_exists@,$M4_exists,;t t
20120 s,@cf_ada_make@,$cf_ada_make,;t t
20121 s,@cf_compile_generics@,$cf_compile_generics,;t t
20122 s,@cf_generic_objects@,$cf_generic_objects,;t t
20123 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
20124 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
20125 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
20126 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
20127 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
20128 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
20129 s,@cf_ada_package@,$cf_ada_package,;t t
20130 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
20131 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
20132 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
20133 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
20134 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
20135 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
20136 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
20137 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
20138 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
20139 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
20140 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
20141 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
20142 s,@TICS_ARGS@,$TICS_ARGS,;t t
20143 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
20144 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
20145 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
20146 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
20147 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
20148 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
20149 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
20150 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
20151 s,@TICS_LIST@,$TICS_LIST,;t t
20152 s,@TINFO_LIST@,$TINFO_LIST,;t t
20153 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
20154 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
20155 s,@TEST_ARGS@,$TEST_ARGS,;t t
20156 s,@TEST_DEPS@,$TEST_DEPS,;t t
20157 s,@TEST_ARG2@,$TEST_ARG2,;t t
20158 s,@TEST_DEP2@,$TEST_DEP2,;t t
20159 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
20160 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
20161 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
20162 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
20163 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
20164 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
20165 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
20166 s,@cross_compiling@,$cross_compiling,;t t
20167 s,@TIC_PATH@,$TIC_PATH,;t t
20168 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
20169 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
20174 cat >>$CONFIG_STATUS <<\EOF
20175 # Split the substitutions into bite-sized pieces for seds with
20176 # small command number limits, like on Digital OSF/1 and HP-UX.
20177 ac_max_sed_lines=48
20178 ac_sed_frag=1 # Number of current file.
20179 ac_beg=1 # First line for current file.
20180 ac_end=$ac_max_sed_lines # Line after last line for current file.
20183 while $ac_more_lines; do
20184 if test $ac_beg -gt 1; then
20185 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20187 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20189 if test ! -s $tmp/subs.frag; then
20190 ac_more_lines=false
20192 # The purpose of the label and of the branching condition is to
20193 # speed up the sed processing (if there are no `@' at all, there
20194 # is no need to browse any of the substitutions).
20195 # These are the two extra sed commands mentioned above.
20197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20198 if test -z "$ac_sed_cmds"; then
20199 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20201 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20203 ac_sed_frag=`expr $ac_sed_frag + 1`
20205 ac_end=`expr $ac_end + $ac_max_sed_lines`
20208 if test -z "$ac_sed_cmds"; then
20211 fi # test -n "$CONFIG_FILES"
20214 cat >>$CONFIG_STATUS <<\EOF
20215 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20218 - | *:- | *:-:* ) # input from stdin
20220 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20221 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20222 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20224 * ) ac_file_in=$ac_file.in ;;
20227 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20228 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20229 X"$ac_file" : 'X\(//\)[^/]' \| \
20230 X"$ac_file" : 'X\(//\)$' \| \
20231 X"$ac_file" : 'X\(/\)' \| \
20232 . : '\(.\)' 2>/dev/null ||
20234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20236 /^X\(\/\/\)$/{ s//\1/; q; }
20237 /^X\(\/\).*/{ s//\1/; q; }
20239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20240 { case "$ac_dir" in
20241 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20245 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20246 case $as_mkdir_dir in
20247 # Skip DOS drivespec
20248 ?:) as_incr_dir=$as_mkdir_dir ;;
20250 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20251 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20256 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
20257 # A "../" for each directory in $ac_dir_suffix.
20258 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
20260 ac_dir_suffix= ac_dots=
20265 if test -z "$ac_dots"; then
20268 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
20270 [\\/]* | ?:[\\/]* )
20271 ac_srcdir=$srcdir$ac_dir_suffix;
20272 ac_top_srcdir=$srcdir ;;
20273 *) # Relative path.
20274 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
20275 ac_top_srcdir=$ac_dots$srcdir ;;
20279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20280 *) ac_INSTALL=$ac_dots$INSTALL ;;
20283 if test x"$ac_file" != x-; then
20284 { echo "$as_me:20284: creating $ac_file" >&5
20285 echo "$as_me: creating $ac_file" >&6;}
20288 # Let's still pretend it is `configure' which instantiates (i.e., don't
20289 # use $as_me), people would be surprised to read:
20290 # /* config.h. Generated automatically by config.status. */
20291 configure_input="Generated automatically from `echo $ac_file_in |
20292 sed 's,.*/,,'` by configure."
20294 # First look for the input files in the build tree, otherwise in the
20296 ac_file_inputs=`IFS=:
20297 for f in $ac_file_in; do
20299 -) echo $tmp/stdin ;;
20301 # Absolute (can't be DOS-style, as IFS=:)
20302 test -f "$f" || { { echo "$as_me:20302: error: cannot find input file: $f" >&5
20303 echo "$as_me: error: cannot find input file: $f" >&2;}
20304 { (exit 1); exit 1; }; }
20307 if test -f "$f"; then
20310 elif test -f "$srcdir/$f"; then
20315 { { echo "$as_me:20315: error: cannot find input file: $f" >&5
20316 echo "$as_me: error: cannot find input file: $f" >&2;}
20317 { (exit 1); exit 1; }; }
20320 done` || { (exit 1); exit 1; }
20322 cat >>$CONFIG_STATUS <<EOF
20326 cat >>$CONFIG_STATUS <<\EOF
20328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20329 s,@configure_input@,$configure_input,;t t
20330 s,@srcdir@,$ac_srcdir,;t t
20331 s,@top_srcdir@,$ac_top_srcdir,;t t
20332 s,@INSTALL@,$ac_INSTALL,;t t
20333 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20335 if test x"$ac_file" != x-; then
20336 mv $tmp/out $ac_file
20344 cat >>$CONFIG_STATUS <<\EOF
20347 # CONFIG_HEADER section.
20350 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20351 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20353 # ac_d sets the value in "#define NAME VALUE" lines.
20354 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20355 ac_dB='[ ].*$,\1#\2'
20358 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20359 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20360 ac_iB='\([ ]\),\1#\2define\3'
20363 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20364 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20365 ac_uB='$,\1#\2define\3'
20369 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20370 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20372 - | *:- | *:-:* ) # input from stdin
20374 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20375 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20376 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20377 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20378 * ) ac_file_in=$ac_file.in ;;
20381 test x"$ac_file" != x- && { echo "$as_me:20381: creating $ac_file" >&5
20382 echo "$as_me: creating $ac_file" >&6;}
20384 # First look for the input files in the build tree, otherwise in the
20386 ac_file_inputs=`IFS=:
20387 for f in $ac_file_in; do
20389 -) echo $tmp/stdin ;;
20391 # Absolute (can't be DOS-style, as IFS=:)
20392 test -f "$f" || { { echo "$as_me:20392: error: cannot find input file: $f" >&5
20393 echo "$as_me: error: cannot find input file: $f" >&2;}
20394 { (exit 1); exit 1; }; }
20397 if test -f "$f"; then
20400 elif test -f "$srcdir/$f"; then
20405 { { echo "$as_me:20405: error: cannot find input file: $f" >&5
20406 echo "$as_me: error: cannot find input file: $f" >&2;}
20407 { (exit 1); exit 1; }; }
20410 done` || { (exit 1); exit 1; }
20411 # Remove the trailing spaces.
20412 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20416 # Transform confdefs.h into a list of #define's. We won't use it as a sed
20417 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
20418 # be either 'cat' or 'sort'.
20419 cat confdefs.h | uniq >conftest.vals
20421 # Break up conftest.vals because some shells have a limit on
20422 # the size of here documents, and old seds have small limits too.
20424 rm -f conftest.tail
20425 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
20426 while grep . conftest.vals >/dev/null
20428 # Write chunks of a limited-size here document to conftest.frag.
20429 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
20430 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
20431 echo 'CEOF' >> $CONFIG_STATUS
20432 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20433 rm -f conftest.vals
20434 mv conftest.tail conftest.vals
20436 rm -f conftest.vals
20438 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
20440 echo ' cat >> conftest.edit <<CEOF
20441 /@DEFS@/r conftest.frag
20444 sed -f conftest.edit $tmp/in > $tmp/out
20446 mv $tmp/out $tmp/in
20447 rm -f conftest.edit conftest.frag
20448 ' >> $CONFIG_STATUS
20450 cat >>$CONFIG_STATUS <<\EOF
20451 # Let's still pretend it is `configure' which instantiates (i.e., don't
20452 # use $as_me), people would be surprised to read:
20453 # /* config.h. Generated automatically by config.status. */
20454 if test x"$ac_file" = x-; then
20455 echo "/* Generated automatically by configure. */" >$tmp/config.h
20457 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
20459 cat $tmp/in >>$tmp/config.h
20461 if test x"$ac_file" != x-; then
20462 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20463 { echo "$as_me:20463: $ac_file is unchanged" >&5
20464 echo "$as_me: $ac_file is unchanged" >&6;}
20466 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20467 X"$ac_file" : 'X\(//\)[^/]' \| \
20468 X"$ac_file" : 'X\(//\)$' \| \
20469 X"$ac_file" : 'X\(/\)' \| \
20470 . : '\(.\)' 2>/dev/null ||
20472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20474 /^X\(\/\/\)$/{ s//\1/; q; }
20475 /^X\(\/\).*/{ s//\1/; q; }
20477 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20478 { case "$ac_dir" in
20479 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20483 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20484 case $as_mkdir_dir in
20485 # Skip DOS drivespec
20486 ?:) as_incr_dir=$as_mkdir_dir ;;
20488 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20489 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20496 mv $tmp/config.h $ac_file
20500 rm -f $tmp/config.h
20504 cat >>$CONFIG_STATUS <<\EOF
20506 # CONFIG_COMMANDS section.
20508 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20509 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20510 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20514 if test "x$cf_with_tests" != xno ; then
20518 if test ! -d $srcdir/$cf_dir; then
20520 elif test -f $srcdir/$cf_dir/programs; then
20521 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
20527 case $cf_cv_system_name in #(vi
20531 *) LIB_PREFIX='lib'
20534 cf_prefix=$LIB_PREFIX
20536 if test $cf_cv_shlib_version = cygdll ; then
20537 TINFO_NAME=$TINFO_ARG_SUFFIX
20541 if test -n "$TINFO_SUFFIX" ; then
20542 case $TINFO_SUFFIX in
20544 TINFO_NAME="${TINFO_NAME}tw"
20545 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
20548 TINFO_NAME="${TINFO_NAME}t"
20549 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
20552 TINFO_NAME="${TINFO_NAME}w"
20553 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
20558 for cf_dir in $SRC_SUBDIRS
20560 if test ! -d $srcdir/$cf_dir ; then
20562 elif test -f $srcdir/$cf_dir/modules; then
20566 for cf_item in $cf_LIST_MODELS
20569 case $cf_item in #(vi
20572 cf_depsuf=$cf_suffix
20576 cf_depsuf=$cf_suffix
20580 cf_depsuf=$cf_suffix
20584 cf_depsuf=$cf_suffix
20587 case $cf_cv_system_name in
20590 cf_depsuf=$cf_suffix
20598 cf_depsuf=$cf_suffix
20604 cf_depsuf=$cf_suffix
20608 cf_depsuf=$cf_suffix
20613 cf_depsuf=$cf_suffix
20617 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20618 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20620 if test $cf_item = shared ; then
20621 if test "$cf_cv_do_symlinks" = yes ; then
20622 case "$cf_cv_shlib_version" in #(vi
20624 case "$cf_cv_system_name" in #(vi
20626 case .${LIB_SUFFIX} in
20628 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20629 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
20632 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20633 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
20636 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20637 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
20640 cf_suffix='.${REL_VERSION}'"$cf_suffix"
20644 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
20648 case "$cf_cv_system_name" in #(vi
20650 case .${LIB_SUFFIX} in
20652 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20653 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
20656 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20657 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
20660 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20661 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
20664 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
20668 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
20673 # cygwin needs import library, and has unique naming convention
20674 # use autodetected ${cf_prefix} for import lib and static lib, but
20675 # use 'cyg' prefix for shared lib.
20676 if test $cf_cv_shlib_version = cygdll ; then
20677 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
20678 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
20682 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
20685 if test $cf_dir = ncurses ; then
20686 cf_subsets="$LIB_SUBSETS"
20687 cf_r_parts="$cf_subsets"
20688 cf_liblist="$LIBS_TO_MAKE"
20690 while test -n "$cf_r_parts"
20692 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
20693 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
20694 if test "$cf_l_parts" != "$cf_r_parts" ; then
20696 case $cf_l_parts in #(vi
20698 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
20701 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
20707 if test -n "$cf_item"; then
20708 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
20715 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
20718 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
20719 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
20720 $cf_dir/Makefile >$cf_dir/Makefile.out
20721 mv $cf_dir/Makefile.out $cf_dir/Makefile
20723 $AWK -f $srcdir/mk-0th.awk \
20724 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
20725 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20727 for cf_subset in $cf_subsets
20730 for cf_item in $cf_LIST_MODELS
20732 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
20734 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20736 case $cf_item in #(vi
20739 cf_depsuf=$cf_suffix
20743 cf_depsuf=$cf_suffix
20747 cf_depsuf=$cf_suffix
20751 cf_depsuf=$cf_suffix
20754 case $cf_cv_system_name in
20757 cf_depsuf=$cf_suffix
20765 cf_depsuf=$cf_suffix
20771 cf_depsuf=$cf_suffix
20775 cf_depsuf=$cf_suffix
20780 cf_depsuf=$cf_suffix
20784 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20785 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20788 libtool) cf_subdir='obj_lo' ;;
20789 normal) cf_subdir='objects' ;;
20790 debug) cf_subdir='obj_g' ;;
20791 profile) cf_subdir='obj_p' ;;
20793 case $cf_cv_system_name in #(vi
20795 cf_subdir='objects' ;;
20797 cf_subdir='obj_s' ;;
20801 # Test for case where we build libtinfo with a different name.
20803 if test $cf_dir = ncurses ; then
20806 cf_libname=${cf_libname}$LIB_SUFFIX
20809 cf_libname=$TINFO_LIB_SUFFIX
20812 cf_libname=$TICS_LIB_SUFFIX
20816 cf_libname=${cf_libname}$LIB_SUFFIX
20818 if test -n "${DFT_ARG_SUFFIX}" ; then
20819 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
20820 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
20823 # These dependencies really are for development, not
20824 # builds, but they are useful in porting, too.
20825 cf_depend="../include/ncurses_cfg.h"
20826 if test "$srcdir" = "."; then
20829 cf_reldir="\${srcdir}"
20832 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
20833 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
20834 elif test -f $srcdir/$cf_dir/curses.priv.h; then
20835 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
20839 old_cf_suffix="$cf_suffix"
20840 if test "$cf_cv_shlib_version_infix" = yes ; then
20841 if test -n "$LIB_SUFFIX" ; then
20842 case $LIB_SUFFIX in
20844 cf_libname=`echo $cf_libname | sed 's/tw$//'`
20845 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20849 cf_libname=`echo $cf_libname | sed 's/t$//'`
20850 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20854 cf_libname=`echo $cf_libname | sed 's/w$//'`
20855 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20862 $AWK -f $srcdir/mk-1st.awk \
20863 name=${cf_libname}${cf_dir_suffix} \
20864 traces=$LIB_TRACING \
20867 prefix=$cf_prefix \
20868 suffix=$cf_suffix \
20869 subset=$cf_subset \
20871 TermlibRoot=$TINFO_NAME \
20872 TermlibSuffix=$TINFO_SUFFIX \
20873 ShlibVer=$cf_cv_shlib_version \
20874 ShlibVerInfix=$cf_cv_shlib_version_infix \
20875 ReLink=${cf_cv_do_relink:-no} \
20876 DoLinks=$cf_cv_do_symlinks \
20877 rmSoLocs=$cf_cv_rm_so_locs \
20878 ldconfig="$LDCONFIG" \
20879 overwrite=$WITH_OVERWRITE \
20880 depend="$cf_depend" \
20882 libtool_version="$LIBTOOL_VERSION" \
20883 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20885 cf_suffix="$old_cf_suffix"
20887 for cf_subdir2 in $cf_subdirs lib
20889 test $cf_subdir = $cf_subdir2 && break
20891 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
20892 $AWK -f $srcdir/mk-2nd.awk \
20894 traces=$LIB_TRACING \
20897 subset=$cf_subset \
20900 crenames=$cf_cv_prog_CC_c_o \
20901 cxxrenames=$cf_cv_prog_CXX_c_o \
20902 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20903 cf_subdirs="$cf_subdirs $cf_subdir"
20908 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
20911 for cf_dir in $SRC_SUBDIRS
20913 if test ! -d $srcdir/$cf_dir ; then
20917 if test -f $cf_dir/Makefile ; then
20920 echo 'libs \' >> Makefile
20921 echo 'install.libs \' >> Makefile
20922 echo 'uninstall.libs ::' >> Makefile
20923 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
20928 if test -f $srcdir/$cf_dir/modules; then
20930 if test -f $srcdir/$cf_dir/headers; then
20931 cat >> Makefile <<CF_EOF
20932 install.includes \\
20933 uninstall.includes \\
20936 if test "$cf_dir" != "c++" ; then
20937 echo 'lint \' >> Makefile
20939 cat >> Makefile <<CF_EOF
20945 uninstall.$cf_dir ::
20946 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20948 elif test -f $srcdir/$cf_dir/headers; then
20949 cat >> Makefile <<CF_EOF
20954 install.includes \\
20955 uninstall.includes ::
20956 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20961 cat >> Makefile <<CF_EOF
20963 install.libs uninstall.libs \\
20964 install.data uninstall.data ::
20965 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
20968 if test "x$cf_with_manpages" = xyes; then
20969 cat >> Makefile <<CF_EOF
20973 cd man && \${MAKE} \${CF_MFLAGS} \$@
20977 cat >> Makefile <<CF_EOF
20980 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
20981 rm -f headers.sh headers.sed mk_shared_lib.sh
20982 rm -f edit_man.* man_alias.*
20983 rm -rf \${DIRS_TO_MAKE}
20986 # Special case: tack's manpage lives in its own directory.
20987 if test "x$cf_with_manpages" = xyes; then
20988 if test -d tack ; then
20989 if test -f $srcdir/$tack.h; then
20990 cat >> Makefile <<CF_EOF
20994 cd tack && \${MAKE} \${CF_MFLAGS} \$@
21000 rm -f headers.sed headers.sh
21002 echo creating headers.sh
21003 cat >headers.sh <<CF_EOF
21005 # This shell script is generated by the 'configure' script. It is invoked in a
21006 # subdirectory of the build tree. It generates a sed-script in the parent
21007 # directory that is used to adjust includes for header files that reside in a
21008 # subdirectory of /usr/include, etc.
21010 while test \$# != 3
21012 PRG="\$PRG \$1"; shift
21017 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
21018 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
21019 echo installing \$SRC in \$DST
21022 if test $WITH_CURSES_H = yes; then
21023 cat >>headers.sh <<CF_EOF
21026 END=\`basename \$DST\`
21027 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
21029 NAME=\`basename \$i\`
21030 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
21034 echo "" >> \$TMPSED
21040 cat >>headers.sh <<CF_EOF
21043 END=\`basename \$DST\`
21044 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
21046 NAME=\`basename \$i\`
21047 if test "\$NAME" = "curses.h"
21049 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
21052 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
21056 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
21061 cat >>headers.sh <<CF_EOF
21063 sed -f \$TMPSED \$SRC > \$TMPSRC
21064 NAME=\`basename \$SRC\`
21066 if test $WITH_CURSES_H != yes; then
21067 cat >>headers.sh <<CF_EOF
21068 test "\$NAME" = "curses.h" && NAME=ncurses.h
21071 cat >>headers.sh <<CF_EOF
21072 # Just in case someone gzip'd manpages, remove the conflicting copy.
21073 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
21075 eval \$PRG \$TMPSRC \$DST/\$NAME
21076 rm -f \$TMPSRC \$TMPSED
21079 chmod 0755 headers.sh
21081 for cf_dir in $SRC_SUBDIRS
21083 if test ! -d $srcdir/$cf_dir ; then
21087 if test -f $srcdir/$cf_dir/headers; then
21088 $AWK -f $srcdir/mk-hdr.awk \
21089 subset="$LIB_SUBSETS" \
21090 compat="$WITH_CURSES_H" \
21091 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
21094 if test -f $srcdir/$cf_dir/modules; then
21095 if test "$cf_dir" != "c++" ; then
21096 cat >>$cf_dir/Makefile <<"CF_EOF"
21097 depend : ${AUTO_SRC}
21098 makedepend -- ${CPPFLAGS} -- ${C_SRC}
21100 # DO NOT DELETE THIS LINE -- make depend depends on it.
21106 if test "x$cf_with_ada" != xno ; then
21107 if test -z "$USE_OLD_MAKERULES" ; then
21108 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
21116 cat >>$CONFIG_STATUS <<\EOF
21118 { (exit 0); exit 0; }
21120 chmod +x $CONFIG_STATUS
21121 ac_clean_files=$ac_clean_files_save
21123 # configure is writing to config.log, and then calls config.status.
21124 # config.status does its own redirection, appending to config.log.
21125 # Unfortunately, on DOS this fails, as config.log is still kept open
21126 # by configure, so config.status won't be able to write to it; its
21127 # output is simply discarded. So we exec the FD to /dev/null,
21128 # effectively closing config.log, so it can be properly (re)opened and
21129 # appended to by config.status. When coming back to configure, we
21130 # need to make the FD available again.
21131 if test "$no_create" != yes; then
21134 $SHELL $CONFIG_STATUS || ac_cs_success=false
21136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21137 # would make configure fail if this is the last instruction.
21138 $ac_cs_success || { (exit 1); exit 1; }
21140 ${MAKE:-make} preinstall