2 # From configure.in Revision: 1.526 .
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 --with-pkg-config-libdir=XXX use given directory for installing pc-files
706 --enable-pc-files generate and install .pc files for pkg-config
707 --enable-mixed-case tic should assume mixed-case filenames
708 --with-install-prefix prefixes actual install-location ($DESTDIR)
709 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
710 --with-build-cc=XXX the build C compiler ($BUILD_CC)
711 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
712 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
713 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
714 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
715 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
716 Options to Specify the Libraries Built/Used:
717 --disable-libtool-version enable to use libtool's incompatible naming scheme
718 --with-libtool generate libraries with libtool
719 --with-shared generate shared-libraries
720 --with-normal generate normal-libraries (default)
721 --with-debug generate debug-libraries (default)
722 --with-profile generate profile-libraries
723 --with-termlib generate separate terminfo library
724 --with-ticlib generate separate tic library
725 --with-gpm use Alessandro Rubini's GPM library
726 --without-dlsym do not use dlsym() to load GPM dynamically
727 --with-sysmouse use sysmouse (FreeBSD console)
728 --enable-rpath use rpath option when generating shared libraries
729 --disable-relink relink shared libraries during install
730 --with-shlib-version=X Specify rel or abi version for shared libs
731 --disable-rpath-hack don't add rpath options for additional libraries
732 Fine-Tuning Your Configuration:
733 --disable-overwrite leave out the link to -lcurses
734 --disable-database do not use terminfo, only fallbacks/termcap
735 --with-database=XXX specify terminfo source to install
736 --with-hashed-db specify hashed-database library
737 --with-fallbacks=XXX specify list of fallback terminal descriptions
738 --without-xterm-new specify if xterm terminfo should be old version
739 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
740 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
741 --disable-big-core assume machine has little memory
742 --disable-big-strings assume compiler has only standard-size strings
743 --enable-termcap compile in termcap fallback support
744 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
745 --enable-getcap fast termcap load, no xrefs to terminfo
746 --enable-getcap-cache cache translated termcaps in ~/.terminfo
747 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
748 --disable-root-environ restrict environment when running as root
749 --enable-symlinks make tic use symbolic links not hard links
750 --enable-broken_linker compile with broken-linker support code
751 --enable-bsdpad recognize BSD-style prefix padding
752 --enable-widec compile with wide-char/UTF-8 code
753 --disable-lp64 allow chtype to be long (ignore _LP64)
754 --disable-largefile omit support for large files
755 --disable-tparm-varargs compile tparm() without varargs interface
756 --disable-tic-depends link tic library without explicit dependency on ncurses library
757 --with-bool=TYPE override fallback type of bool variable
758 --with-caps=alt compile with alternate Caps file
759 --with-chtype=TYPE override type of chtype
760 --with-ospeed=TYPE override type of ospeed variable
761 --with-mmask-t=TYPE override type of mmask_t
762 --with-ccharw-max=XXX override size CCHARW_MAX
763 --with-rcs-ids compile-in RCS identifiers
764 Options to Specify How Manpages are Installed:
765 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
766 optionally formatted/catonly, e.g., gzip,formatted
767 --with-manpage-renames specify manpage-renaming
768 --with-manpage-aliases specify manpage-aliases using .so
769 --with-manpage-symlinks specify manpage-aliases using symlinks
770 --with-manpage-tbl specify manpage processing with tbl
772 --disable-ext-funcs disable function-extensions
773 --enable-sp-funcs enable experimental SCREEN-extensions
774 --enable-term-driver enable experimental terminal-driver
775 --enable-const compile with extra/non-standard const
776 --enable-ext-colors compile for 256-color support
777 --enable-ext-mouse compile for extended mouse-encoding
778 --enable-no-padding compile with $NCURSES_NO_PADDING code
779 --enable-signed-char compile using signed Boolean's in term.h
780 --enable-sigwinch compile with SIGWINCH handler
781 --enable-tcap-names compile with user-definable terminal capabilities
783 --without-develop disable development options
784 --enable-hard-tabs compile with hard-tabs code
785 --enable-xmc-glitch compile with support for xmc (magic-cookie)
787 --disable-assumed-color do not assume anything about default-colors
788 --disable-hashmap compile without hashmap scrolling-optimization
789 --enable-colorfgbg compile-in experimental $COLORFGBG code
790 --enable-interop compile-in experimental interop bindings
791 --with-pthread use POSIX thread library
792 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
793 --enable-weak-symbols enable weak-symbols for pthreads
794 --enable-reentrant compile with experimental reentrant code
795 --with-wrap-prefix=XXX override prefix used for public variables
796 --enable-safe-sprintf compile with experimental safe-sprintf code
797 --disable-scroll-hints compile without scroll-hints code
798 --enable-wgetch-events compile with experimental wgetch-events code
799 Testing/development Options:
800 --enable-echo build: display "compiling" commands (default)
801 --enable-warnings build: turn on GCC compiler warnings
802 --enable-assertions test: turn on generation of assertion code
803 --with-dmalloc test: use Gray Watson's dmalloc library
804 --with-dbmalloc test: use Conor Cahill's dbmalloc library
805 --with-valgrind test: use valgrind
806 --disable-leaks test: free permanent memory, analyze leaks
807 --enable-expanded test: generate functions for certain macros
808 --disable-macros test: use functions rather than macros
809 --with-trace test: add trace() function to all models of ncurses
810 Ada95 Binding Options:
811 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
812 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
813 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
814 --with-ada-sharedlib=XX build Ada95 shared-library
816 Some influential environment variables:
817 CC C compiler command
818 CFLAGS C compiler flags
819 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
820 nonstandard directory <lib dir>
821 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
822 headers in a nonstandard directory <include dir>
824 CXX C++ compiler command
825 CXXFLAGS C++ compiler flags
826 CXXCPP C++ preprocessor
828 Use these variables to override the choices made by `configure' or to help
829 it to find libraries and programs with nonstandard names/locations.
834 if test "$ac_init_help" = "recursive"; then
835 # If there are subdirs, report their specific --help.
837 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
839 # A "../" for each directory in /$ac_subdir.
840 ac_dots=`echo $ac_subdir |
841 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
844 .) # No --srcdir option. We are building in place.
845 ac_sub_srcdir=$srcdir ;;
846 [\\/]* | ?:[\\/]* ) # Absolute path.
847 ac_sub_srcdir=$srcdir/$ac_subdir ;;
849 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
852 # Check for guested configure; otherwise get Cygnus style configure.
853 if test -f $ac_sub_srcdir/configure.gnu; then
855 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
856 elif test -f $ac_sub_srcdir/configure; then
858 $SHELL $ac_sub_srcdir/configure --help=recursive
859 elif test -f $ac_sub_srcdir/configure.ac ||
860 test -f $ac_sub_srcdir/configure.in; then
864 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
870 test -n "$ac_init_help" && exit 0
871 if $ac_init_version; then
874 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
875 Free Software Foundation, Inc.
876 This configure script is free software; the Free Software Foundation
877 gives unlimited permission to copy, distribute and modify it.
883 This file contains any messages produced by compilers while
884 running configure, to aid debugging if configure makes a mistake.
886 It was created by $as_me, which was
887 generated by GNU Autoconf 2.52.20101002. Invocation command line was
898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
910 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
927 # Keep a trace of the command line.
928 # Strip out --no-create and --no-recursion so they do not pile up.
929 # Also quote any args containing shell meta-characters.
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c) ;;
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
939 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
940 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
941 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
943 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
946 # Get rid of the leading space.
949 # When interrupted or exit'd, cleanup temporary files, and complete
950 # config.log. We remove comments because anyway the quotes in there
951 # would cause problems or look ugly.
953 # Save into config.log some information that might help in debugging.
955 echo "## ----------------- ##" >&5
956 echo "## Cache variables. ##" >&5
957 echo "## ----------------- ##" >&5
959 # The following way of writing the cache mishandles newlines in values,
962 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
965 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
970 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
974 sed "/^$/d" confdefs.h >conftest.log
975 if test -s conftest.log; then
977 echo "## ------------ ##" >&5
978 echo "## confdefs.h. ##" >&5
979 echo "## ------------ ##" >&5
984 test "$ac_signal" != 0 &&
985 echo "$as_me: caught signal $ac_signal" >&5
986 echo "$as_me: exit $exit_status" >&5
987 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
990 for ac_signal in 1 2 13 15; do
991 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
996 rm -rf conftest* confdefs.h
997 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1000 # Let the site file select an alternate cache file if it wants to.
1001 # Prefer explicitly selected file to automatically selected ones.
1002 if test -z "$CONFIG_SITE"; then
1003 if test "x$prefix" != xNONE; then
1004 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1006 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1009 for ac_site_file in $CONFIG_SITE; do
1010 if test -r "$ac_site_file"; then
1011 { echo "$as_me:1011: loading site script $ac_site_file" >&5
1012 echo "$as_me: loading site script $ac_site_file" >&6;}
1013 cat "$ac_site_file" >&5
1018 if test -r "$cache_file"; then
1019 # Some versions of bash will fail to source /dev/null (special
1020 # files actually), so we avoid doing that.
1021 if test -f "$cache_file"; then
1022 { echo "$as_me:1022: loading cache $cache_file" >&5
1023 echo "$as_me: loading cache $cache_file" >&6;}
1025 [\\/]* | ?:[\\/]* ) . $cache_file;;
1026 *) . ./$cache_file;;
1030 { echo "$as_me:1030: creating cache $cache_file" >&5
1031 echo "$as_me: creating cache $cache_file" >&6;}
1035 # Check that the precious variables saved in the cache have kept the same
1037 ac_cache_corrupted=false
1038 for ac_var in `(set) 2>&1 |
1039 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1041 eval ac_new_set=\$ac_env_${ac_var}_set
1042 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1043 eval ac_new_val="\$ac_env_${ac_var}_value"
1044 case $ac_old_set,$ac_new_set in
1046 { echo "$as_me:1046: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1047 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1048 ac_cache_corrupted=: ;;
1050 { echo "$as_me:1050: error: \`$ac_var' was not set in the previous run" >&5
1051 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1055 if test "x$ac_old_val" != "x$ac_new_val"; then
1056 { echo "$as_me:1056: error: \`$ac_var' has changed since the previous run:" >&5
1057 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1058 { echo "$as_me:1058: former value: $ac_old_val" >&5
1059 echo "$as_me: former value: $ac_old_val" >&2;}
1060 { echo "$as_me:1060: current value: $ac_new_val" >&5
1061 echo "$as_me: current value: $ac_new_val" >&2;}
1062 ac_cache_corrupted=:
1065 # Pass precious variables to config.status. It doesn't matter if
1066 # we pass some twice (in addition to the command line arguments).
1067 if test "$ac_new_set" = set; then
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1071 ac_configure_args="$ac_configure_args '$ac_arg'"
1073 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1078 if $ac_cache_corrupted; then
1079 { echo "$as_me:1079: error: changes in the environment can compromise the build" >&5
1080 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1081 { { echo "$as_me:1081: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1082 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1083 { (exit 1); exit 1; }; }
1087 ac_cpp='$CPP $CPPFLAGS'
1088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1091 ac_main_return=return
1093 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1094 *c*,-n*) ECHO_N= ECHO_C='
1096 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1097 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1099 echo "#! $SHELL" >conftest.sh
1100 echo "exit 0" >>conftest.sh
1101 chmod +x conftest.sh
1102 if { (echo "$as_me:1102: PATH=\".;.\"; conftest.sh") >&5
1103 (PATH=".;."; conftest.sh) 2>&5
1105 echo "$as_me:1105: \$? = $ac_status" >&5
1106 (exit $ac_status); }; then
1107 ac_path_separator=';'
1111 PATH_SEPARATOR="$ac_path_separator"
1114 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1118 echo "$as_me:1118: checking for egrep" >&5
1119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1120 if test "${ac_cv_prog_egrep+set}" = set; then
1121 echo $ECHO_N "(cached) $ECHO_C" >&6
1123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1124 then ac_cv_prog_egrep='grep -E'
1125 else ac_cv_prog_egrep='egrep'
1128 echo "$as_me:1128: result: $ac_cv_prog_egrep" >&5
1129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1130 EGREP=$ac_cv_prog_egrep
1132 test -z "$EGREP" && { { echo "$as_me:1132: error: No egrep program found" >&5
1133 echo "$as_me: error: No egrep program found" >&2;}
1134 { (exit 1); exit 1; }; }
1136 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1138 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1139 cf_cv_abi_version=${NCURSES_MAJOR}
1140 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1141 cf_cv_timestamp=`date`
1142 echo "$as_me:1142: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1143 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1145 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1147 # Check whether --with-rel-version or --without-rel-version was given.
1148 if test "${with_rel_version+set}" = set; then
1149 withval="$with_rel_version"
1150 { echo "$as_me:1150: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1151 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1152 cf_cv_rel_version=$withval
1155 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1156 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1158 if test -n "$NCURSES_MAJOR" ; then
1159 case $NCURSES_MAJOR in #(vi
1163 { { echo "$as_me:1163: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1164 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1165 { (exit 1); exit 1; }; }
1169 { { echo "$as_me:1169: error: Release major-version value is empty" >&5
1170 echo "$as_me: error: Release major-version value is empty" >&2;}
1171 { (exit 1); exit 1; }; }
1174 if test -n "$NCURSES_MINOR" ; then
1175 case $NCURSES_MINOR in #(vi
1179 { { echo "$as_me:1179: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1180 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1181 { (exit 1); exit 1; }; }
1185 { { echo "$as_me:1185: error: Release minor-version value is empty" >&5
1186 echo "$as_me: error: Release minor-version value is empty" >&2;}
1187 { (exit 1); exit 1; }; }
1190 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1192 # Check whether --with-abi-version or --without-abi-version was given.
1193 if test "${with_abi_version+set}" = set; then
1194 withval="$with_abi_version"
1195 { echo "$as_me:1195: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1196 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1197 cf_cv_abi_version=$withval
1200 if test -n "$cf_cv_abi_version" ; then
1201 case $cf_cv_abi_version in #(vi
1205 { { echo "$as_me:1205: error: ABI version is not a number: $cf_cv_abi_version" >&5
1206 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1207 { (exit 1); exit 1; }; }
1211 { { echo "$as_me:1211: error: ABI version value is empty" >&5
1212 echo "$as_me: error: ABI version value is empty" >&2;}
1213 { (exit 1); exit 1; }; }
1217 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1218 if test -f $ac_dir/install-sh; then
1220 ac_install_sh="$ac_aux_dir/install-sh -c"
1222 elif test -f $ac_dir/install.sh; then
1224 ac_install_sh="$ac_aux_dir/install.sh -c"
1226 elif test -f $ac_dir/shtool; then
1228 ac_install_sh="$ac_aux_dir/shtool install -c"
1232 if test -z "$ac_aux_dir"; then
1233 { { echo "$as_me:1233: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1234 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1235 { (exit 1); exit 1; }; }
1237 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1238 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1239 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1241 # Make sure we can run config.sub.
1242 $ac_config_sub sun4 >/dev/null 2>&1 ||
1243 { { echo "$as_me:1243: error: cannot run $ac_config_sub" >&5
1244 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1245 { (exit 1); exit 1; }; }
1247 echo "$as_me:1247: checking build system type" >&5
1248 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1249 if test "${ac_cv_build+set}" = set; then
1250 echo $ECHO_N "(cached) $ECHO_C" >&6
1252 ac_cv_build_alias=$build_alias
1253 test -z "$ac_cv_build_alias" &&
1254 ac_cv_build_alias=`$ac_config_guess`
1255 test -z "$ac_cv_build_alias" &&
1256 { { echo "$as_me:1256: error: cannot guess build type; you must specify one" >&5
1257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1258 { (exit 1); exit 1; }; }
1259 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1260 { { echo "$as_me:1260: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1261 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1262 { (exit 1); exit 1; }; }
1265 echo "$as_me:1265: result: $ac_cv_build" >&5
1266 echo "${ECHO_T}$ac_cv_build" >&6
1268 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1272 echo "$as_me:1272: checking host system type" >&5
1273 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1274 if test "${ac_cv_host+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 ac_cv_host_alias=$host_alias
1278 test -z "$ac_cv_host_alias" &&
1279 ac_cv_host_alias=$ac_cv_build_alias
1280 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1281 { { echo "$as_me:1281: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1282 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1283 { (exit 1); exit 1; }; }
1286 echo "$as_me:1286: result: $ac_cv_host" >&5
1287 echo "${ECHO_T}$ac_cv_host" >&6
1289 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1290 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1291 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1294 echo "$as_me:1294: checking target system type" >&5
1295 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1296 if test "${ac_cv_target+set}" = set; then
1297 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 ac_cv_target_alias=$target_alias
1300 test "x$ac_cv_target_alias" = "x" &&
1301 ac_cv_target_alias=$ac_cv_host_alias
1302 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1303 { { echo "$as_me:1303: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1304 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1305 { (exit 1); exit 1; }; }
1308 echo "$as_me:1308: result: $ac_cv_target" >&5
1309 echo "${ECHO_T}$ac_cv_target" >&6
1310 target=$ac_cv_target
1311 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1312 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1313 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1315 # The aliases save the names the user supplied, while $host etc.
1316 # will get canonicalized.
1317 test -n "$target_alias" &&
1318 test "$program_prefix$program_suffix$program_transform_name" = \
1320 program_prefix=${target_alias}-
1321 system_name="$host_os"
1323 system_name="`(uname -s -r) 2>/dev/null`"
1324 if test -z "$system_name" ; then
1325 system_name="`(hostname) 2>/dev/null`"
1328 test -n "$system_name" && cat >>confdefs.h <<EOF
1329 #define SYSTEM_NAME "$system_name"
1332 if test "${cf_cv_system_name+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 cf_cv_system_name="$system_name"
1338 test -z "$system_name" && system_name="$cf_cv_system_name"
1339 test -n "$cf_cv_system_name" && echo "$as_me:1339: result: Configuring for $cf_cv_system_name" >&5
1340 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1342 if test ".$system_name" != ".$cf_cv_system_name" ; then
1343 echo "$as_me:1343: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1344 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1345 { { echo "$as_me:1345: error: \"Please remove config.cache and try again.\"" >&5
1346 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1347 { (exit 1); exit 1; }; }
1350 # Check whether --with-system-type or --without-system-type was given.
1351 if test "${with_system_type+set}" = set; then
1352 withval="$with_system_type"
1353 { echo "$as_me:1353: WARNING: overriding system type to $withval" >&5
1354 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1355 cf_cv_system_name=$withval
1358 ### Save the given $CFLAGS to allow user-override.
1359 cf_user_CFLAGS="$CFLAGS"
1361 ### Default install-location
1363 echo "$as_me:1363: checking for prefix" >&5
1364 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1365 if test "x$prefix" = "xNONE" ; then
1366 case "$cf_cv_system_name" in
1367 # non-vendor systems don't have a conflict
1368 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1371 *) prefix=$ac_default_prefix
1375 echo "$as_me:1375: result: $prefix" >&5
1376 echo "${ECHO_T}$prefix" >&6
1378 if test "x$prefix" = "xNONE" ; then
1379 echo "$as_me:1379: checking for default include-directory" >&5
1380 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1381 test -n "$verbose" && echo 1>&6
1384 $includedir/ncurses \
1386 $prefix/include/ncurses \
1387 /usr/local/include \
1388 /usr/local/include/ncurses \
1390 /usr/include/ncurses
1392 cf_dir=`eval echo $cf_symbol`
1393 if test -f $cf_dir/curses.h ; then
1394 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1395 includedir="$cf_symbol"
1396 test -n "$verbose" && echo $ac_n " found " 1>&6
1400 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1402 echo "$as_me:1402: result: $includedir" >&5
1403 echo "${ECHO_T}$includedir" >&6
1406 ### Checks for programs.
1408 ac_cpp='$CPP $CPPFLAGS'
1409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1412 ac_main_return=return
1413 if test -n "$ac_tool_prefix"; then
1414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1416 echo "$as_me:1416: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 if test -n "$CC"; then
1422 ac_cv_prog_CC="$CC" # Let the user override the test.
1424 ac_save_IFS=$IFS; IFS=$ac_path_separator
1426 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 $as_executable_p "$ac_dir/$ac_word" || continue
1430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1431 echo "$as_me:1431: found $ac_dir/$ac_word" >&5
1438 if test -n "$CC"; then
1439 echo "$as_me:1439: result: $CC" >&5
1440 echo "${ECHO_T}$CC" >&6
1442 echo "$as_me:1442: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1447 if test -z "$ac_cv_prog_CC"; then
1449 # Extract the first word of "gcc", so it can be a program name with args.
1450 set dummy gcc; ac_word=$2
1451 echo "$as_me:1451: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 if test -n "$ac_ct_CC"; then
1457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1459 ac_save_IFS=$IFS; IFS=$ac_path_separator
1461 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 $as_executable_p "$ac_dir/$ac_word" || continue
1465 ac_cv_prog_ac_ct_CC="gcc"
1466 echo "$as_me:1466: found $ac_dir/$ac_word" >&5
1472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473 if test -n "$ac_ct_CC"; then
1474 echo "$as_me:1474: result: $ac_ct_CC" >&5
1475 echo "${ECHO_T}$ac_ct_CC" >&6
1477 echo "$as_me:1477: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1486 if test -z "$CC"; then
1487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}cc; ac_word=$2
1490 echo "$as_me:1490: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1498 ac_save_IFS=$IFS; IFS=$ac_path_separator
1500 for ac_dir in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir=.
1503 $as_executable_p "$ac_dir/$ac_word" || continue
1504 ac_cv_prog_CC="${ac_tool_prefix}cc"
1505 echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1512 if test -n "$CC"; then
1513 echo "$as_me:1513: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1516 echo "$as_me:1516: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1521 if test -z "$ac_cv_prog_CC"; then
1523 # Extract the first word of "cc", so it can be a program name with args.
1524 set dummy cc; ac_word=$2
1525 echo "$as_me:1525: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 if test -n "$ac_ct_CC"; then
1531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1533 ac_save_IFS=$IFS; IFS=$ac_path_separator
1535 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 $as_executable_p "$ac_dir/$ac_word" || continue
1539 ac_cv_prog_ac_ct_CC="cc"
1540 echo "$as_me:1540: found $ac_dir/$ac_word" >&5
1546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547 if test -n "$ac_ct_CC"; then
1548 echo "$as_me:1548: result: $ac_ct_CC" >&5
1549 echo "${ECHO_T}$ac_ct_CC" >&6
1551 echo "$as_me:1551: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1561 if test -z "$CC"; then
1562 # Extract the first word of "cc", so it can be a program name with args.
1563 set dummy cc; ac_word=$2
1564 echo "$as_me:1564: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$CC"; then
1570 ac_cv_prog_CC="$CC" # Let the user override the test.
1573 ac_save_IFS=$IFS; IFS=$ac_path_separator
1575 for ac_dir in $ac_dummy; do
1577 test -z "$ac_dir" && ac_dir=.
1578 $as_executable_p "$ac_dir/$ac_word" || continue
1579 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1580 ac_prog_rejected=yes
1584 echo "$as_me:1584: found $ac_dir/$ac_word" >&5
1588 if test $ac_prog_rejected = yes; then
1589 # We found a bogon in the path, so make sure we never use it.
1590 set dummy $ac_cv_prog_CC
1592 if test $# != 0; then
1593 # We chose a different compiler from the bogus one.
1594 # However, it has the same basename, so the bogon will be chosen
1595 # first if we set CC to just the basename; use the full file name.
1597 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1605 if test -n "$CC"; then
1606 echo "$as_me:1606: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1609 echo "$as_me:1609: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1614 if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620 echo "$as_me:1620: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 ac_save_IFS=$IFS; IFS=$ac_path_separator
1630 for ac_dir in $ac_dummy; do
1632 test -z "$ac_dir" && ac_dir=.
1633 $as_executable_p "$ac_dir/$ac_word" || continue
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:1635: found $ac_dir/$ac_word" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:1643: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:1646: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1650 test -n "$CC" && break
1653 if test -z "$CC"; then
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy $ac_prog; ac_word=$2
1659 echo "$as_me:1659: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 ac_save_IFS=$IFS; IFS=$ac_path_separator
1669 for ac_dir in $ac_dummy; do
1671 test -z "$ac_dir" && ac_dir=.
1672 $as_executable_p "$ac_dir/$ac_word" || continue
1673 ac_cv_prog_ac_ct_CC="$ac_prog"
1674 echo "$as_me:1674: found $ac_dir/$ac_word" >&5
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682 echo "$as_me:1682: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1685 echo "$as_me:1685: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$ac_ct_CC" && break
1697 test -z "$CC" && { { echo "$as_me:1697: error: no acceptable cc found in \$PATH" >&5
1698 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1699 { (exit 1); exit 1; }; }
1701 # Provide some information about the compiler.
1702 echo "$as_me:1702:" \
1703 "checking for C compiler version" >&5
1704 ac_compiler=`set X $ac_compile; echo $2`
1705 { (eval echo "$as_me:1705: \"$ac_compiler --version </dev/null >&5\"") >&5
1706 (eval $ac_compiler --version </dev/null >&5) 2>&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710 { (eval echo "$as_me:1710: \"$ac_compiler -v </dev/null >&5\"") >&5
1711 (eval $ac_compiler -v </dev/null >&5) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:1715: \"$ac_compiler -V </dev/null >&5\"") >&5
1716 (eval $ac_compiler -V </dev/null >&5) 2>&5
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1721 cat >conftest.$ac_ext <<_ACEOF
1722 #line 1722 "configure"
1723 #include "confdefs.h"
1733 ac_clean_files_save=$ac_clean_files
1734 ac_clean_files="$ac_clean_files a.out a.exe"
1735 # Try to create an executable without -o first, disregard a.out.
1736 # It will help us diagnose broken compilers, and finding out an intuition
1738 echo "$as_me:1738: checking for C compiler default output" >&5
1739 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1740 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741 if { (eval echo "$as_me:1741: \"$ac_link_default\"") >&5
1742 (eval $ac_link_default) 2>&5
1744 echo "$as_me:1744: \$? = $ac_status" >&5
1745 (exit $ac_status); }; then
1746 # Find the output, starting from the most likely. This scheme is
1747 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1749 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1750 ls a.out conftest 2>/dev/null;
1751 ls a.* conftest.* 2>/dev/null`; do
1753 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1754 a.out ) # We found the default executable, but exeext='' is most
1757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1765 echo "$as_me: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 { { echo "$as_me:1767: error: C compiler cannot create executables" >&5
1768 echo "$as_me: error: C compiler cannot create executables" >&2;}
1769 { (exit 77); exit 77; }; }
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:1773: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1776 # Check the compiler produces executables we can run. If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:1778: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1791 if test "$cross_compiling" = maybe; then
1794 { { echo "$as_me:1794: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&5
1796 echo "$as_me: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&2;}
1798 { (exit 1); exit 1; }; }
1802 echo "$as_me:1802: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1805 rm -f a.out a.exe conftest$ac_cv_exeext
1806 ac_clean_files=$ac_clean_files_save
1807 # Check the compiler produces executables we can run. If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:1809: checking whether we are cross compiling" >&5
1810 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811 echo "$as_me:1811: result: $cross_compiling" >&5
1812 echo "${ECHO_T}$cross_compiling" >&6
1814 echo "$as_me:1814: checking for executable suffix" >&5
1815 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1816 if { (eval echo "$as_me:1816: \"$ac_link\"") >&5
1817 (eval $ac_link) 2>&5
1819 echo "$as_me:1819: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823 # work properly (i.e., refer to `conftest.exe'), while it won't with
1825 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1827 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 { { echo "$as_me:1835: error: cannot compute EXEEXT: cannot compile and link" >&5
1836 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest$ac_cv_exeext
1841 echo "$as_me:1841: result: $ac_cv_exeext" >&5
1842 echo "${ECHO_T}$ac_cv_exeext" >&6
1844 rm -f conftest.$ac_ext
1845 EXEEXT=$ac_cv_exeext
1847 echo "$as_me:1847: checking for object suffix" >&5
1848 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1849 if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line 1853 "configure"
1854 #include "confdefs.h"
1864 rm -f conftest.o conftest.obj
1865 if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); }; then
1870 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1872 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1873 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 { { echo "$as_me:1880: error: cannot compute OBJEXT: cannot compile" >&5
1881 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1882 { (exit 1); exit 1; }; }
1885 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1887 echo "$as_me:1887: result: $ac_cv_objext" >&5
1888 echo "${ECHO_T}$ac_cv_objext" >&6
1889 OBJEXT=$ac_cv_objext
1891 echo "$as_me:1891: checking whether we are using the GNU C compiler" >&5
1892 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 cat >conftest.$ac_ext <<_ACEOF
1897 #line 1897 "configure"
1898 #include "confdefs.h"
1911 rm -f conftest.$ac_objext
1912 if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -s conftest.$ac_objext'
1918 { (eval echo "$as_me:1918: \"$ac_try\"") >&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); }; }; then
1925 echo "$as_me: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1929 rm -f conftest.$ac_objext conftest.$ac_ext
1930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1933 echo "$as_me:1933: result: $ac_cv_c_compiler_gnu" >&5
1934 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1935 GCC=`test $ac_compiler_gnu = yes && echo yes`
1936 ac_test_CFLAGS=${CFLAGS+set}
1937 ac_save_CFLAGS=$CFLAGS
1939 echo "$as_me:1939: checking whether $CC accepts -g" >&5
1940 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1941 if test "${ac_cv_prog_cc_g+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 cat >conftest.$ac_ext <<_ACEOF
1945 #line 1945 "configure"
1946 #include "confdefs.h"
1956 rm -f conftest.$ac_objext
1957 if { (eval echo "$as_me:1957: \"$ac_compile\"") >&5
1958 (eval $ac_compile) 2>&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); } &&
1962 { ac_try='test -s conftest.$ac_objext'
1963 { (eval echo "$as_me:1963: \"$ac_try\"") >&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); }; }; then
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1974 rm -f conftest.$ac_objext conftest.$ac_ext
1976 echo "$as_me:1976: result: $ac_cv_prog_cc_g" >&5
1977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1978 if test "$ac_test_CFLAGS" = set; then
1979 CFLAGS=$ac_save_CFLAGS
1980 elif test $ac_cv_prog_cc_g = yes; then
1981 if test "$GCC" = yes; then
1987 if test "$GCC" = yes; then
1993 # Some people use a C++ compiler to compile C. Since we use `exit',
1994 # in C++ we need to declare it. In case someone uses the same compiler
1995 # for both compiling C and C++ we need to have the C++ compiler decide
1996 # the declaration of exit, since it's the most demanding environment.
1997 cat >conftest.$ac_ext <<_ACEOF
2002 rm -f conftest.$ac_objext
2003 if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:2009: \"$ac_try\"") >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 for ac_declaration in \
2016 '#include <stdlib.h>' \
2017 'extern "C" void std::exit (int) throw (); using std::exit;' \
2018 'extern "C" void std::exit (int); using std::exit;' \
2019 'extern "C" void exit (int) throw ();' \
2020 'extern "C" void exit (int);' \
2023 cat >conftest.$ac_ext <<_ACEOF
2024 #line 2024 "configure"
2025 #include "confdefs.h"
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:2037: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2040 echo "$as_me:2040: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:2043: \"$ac_try\"") >&5
2046 echo "$as_me:2046: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 echo "$as_me: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 cat >conftest.$ac_ext <<_ACEOF
2056 #line 2056 "configure"
2057 #include "confdefs.h"
2067 rm -f conftest.$ac_objext
2068 if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); } &&
2073 { ac_try='test -s conftest.$ac_objext'
2074 { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2077 echo "$as_me:2077: \$? = $ac_status" >&5
2078 (exit $ac_status); }; }; then
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2087 if test -n "$ac_declaration"; then
2088 echo '#ifdef __cplusplus' >>confdefs.h
2089 echo $ac_declaration >>confdefs.h
2090 echo '#endif' >>confdefs.h
2094 echo "$as_me: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2097 rm -f conftest.$ac_objext conftest.$ac_ext
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103 ac_main_return=return
2106 if test "$GCC" = yes ; then
2107 echo "$as_me:2107: checking version of $CC" >&5
2108 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2109 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2110 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2111 echo "$as_me:2111: result: $GCC_VERSION" >&5
2112 echo "${ECHO_T}$GCC_VERSION" >&6
2116 ac_cpp='$CPP $CPPFLAGS'
2117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 ac_main_return=return
2121 echo "$as_me:2121: checking how to run the C preprocessor" >&5
2122 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2123 # On Suns, sometimes $CPP names a directory.
2124 if test -n "$CPP" && test -d "$CPP"; then
2127 if test -z "$CPP"; then
2128 if test "${ac_cv_prog_CPP+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 # Double quotes because CPP needs to be expanded
2132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2135 for ac_c_preproc_warn_flag in '' yes
2137 # Use a header file that comes with gcc, so configuring glibc
2138 # with a fresh cross-compiler works.
2139 # On the NeXT, cc -E runs the code through the compiler's parser,
2140 # not just through cpp. "Syntax error" is here to catch this case.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #line 2142 "configure"
2143 #include "confdefs.h"
2147 if { (eval echo "$as_me:2147: \"$ac_cpp conftest.$ac_ext\"") >&5
2148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2150 egrep -v '^ *\+' conftest.er1 >conftest.err
2152 cat conftest.err >&5
2153 echo "$as_me:2153: \$? = $ac_status" >&5
2154 (exit $ac_status); } >/dev/null; then
2155 if test -s conftest.err; then
2156 ac_cpp_err=$ac_c_preproc_warn_flag
2163 if test -z "$ac_cpp_err"; then
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 # Broken: fails on valid input.
2171 rm -f conftest.err conftest.$ac_ext
2173 # OK, works on sane cases. Now check whether non-existent headers
2174 # can be detected and how.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line 2176 "configure"
2177 #include "confdefs.h"
2178 #include <ac_nonexistent.h>
2180 if { (eval echo "$as_me:2180: \"$ac_cpp conftest.$ac_ext\"") >&5
2181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2183 egrep -v '^ *\+' conftest.er1 >conftest.err
2185 cat conftest.err >&5
2186 echo "$as_me:2186: \$? = $ac_status" >&5
2187 (exit $ac_status); } >/dev/null; then
2188 if test -s conftest.err; then
2189 ac_cpp_err=$ac_c_preproc_warn_flag
2196 if test -z "$ac_cpp_err"; then
2197 # Broken: success on invalid input.
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 # Passes both tests.
2206 rm -f conftest.err conftest.$ac_ext
2209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2210 rm -f conftest.err conftest.$ac_ext
2211 if $ac_preproc_ok; then
2223 echo "$as_me:2223: result: $CPP" >&5
2224 echo "${ECHO_T}$CPP" >&6
2226 for ac_c_preproc_warn_flag in '' yes
2228 # Use a header file that comes with gcc, so configuring glibc
2229 # with a fresh cross-compiler works.
2230 # On the NeXT, cc -E runs the code through the compiler's parser,
2231 # not just through cpp. "Syntax error" is here to catch this case.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line 2233 "configure"
2234 #include "confdefs.h"
2238 if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2241 egrep -v '^ *\+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:2244: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_c_preproc_warn_flag
2254 if test -z "$ac_cpp_err"; then
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 # Broken: fails on valid input.
2262 rm -f conftest.err conftest.$ac_ext
2264 # OK, works on sane cases. Now check whether non-existent headers
2265 # can be detected and how.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 #line 2267 "configure"
2268 #include "confdefs.h"
2269 #include <ac_nonexistent.h>
2271 if { (eval echo "$as_me:2271: \"$ac_cpp conftest.$ac_ext\"") >&5
2272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2274 egrep -v '^ *\+' conftest.er1 >conftest.err
2276 cat conftest.err >&5
2277 echo "$as_me:2277: \$? = $ac_status" >&5
2278 (exit $ac_status); } >/dev/null; then
2279 if test -s conftest.err; then
2280 ac_cpp_err=$ac_c_preproc_warn_flag
2287 if test -z "$ac_cpp_err"; then
2288 # Broken: success on invalid input.
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 # Passes both tests.
2297 rm -f conftest.err conftest.$ac_ext
2300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2301 rm -f conftest.err conftest.$ac_ext
2302 if $ac_preproc_ok; then
2305 { { echo "$as_me:2305: error: C preprocessor \"$CPP\" fails sanity check" >&5
2306 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2307 { (exit 1); exit 1; }; }
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 ac_main_return=return
2317 if test $ac_cv_c_compiler_gnu = yes; then
2318 echo "$as_me:2318: checking whether $CC needs -traditional" >&5
2319 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2320 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 ac_pattern="Autoconf.*'x'"
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2328 int Autoconf = TIOCGETP;
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "$ac_pattern" >/dev/null 2>&1; then
2332 ac_cv_prog_gcc_traditional=yes
2334 ac_cv_prog_gcc_traditional=no
2338 if test $ac_cv_prog_gcc_traditional = no; then
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line 2340 "configure"
2341 #include "confdefs.h"
2343 int Autoconf = TCGETA;
2345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2346 egrep "$ac_pattern" >/dev/null 2>&1; then
2347 ac_cv_prog_gcc_traditional=yes
2353 echo "$as_me:2353: result: $ac_cv_prog_gcc_traditional" >&5
2354 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2355 if test $ac_cv_prog_gcc_traditional = yes; then
2356 CC="$CC -traditional"
2360 echo "$as_me:2360: checking whether $CC understands -c and -o together" >&5
2361 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2362 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat > conftest.$ac_ext <<CF_EOF
2370 ${cf_cv_main_return:-return}(0);
2373 # We do the test twice because some compilers refuse to overwrite an
2374 # existing .o file with -o, though they will create one.
2375 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2376 if { (eval echo "$as_me:2376: \"$ac_try\"") >&5
2379 echo "$as_me:2379: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 test -f conftest2.$ac_objext && { (eval echo "$as_me:2381: \"$ac_try\"") >&5
2384 echo "$as_me:2384: \$? = $ac_status" >&5
2385 (exit $ac_status); };
2387 eval cf_cv_prog_CC_c_o=yes
2389 eval cf_cv_prog_CC_c_o=no
2394 if test $cf_cv_prog_CC_c_o = yes; then
2395 echo "$as_me:2395: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2398 echo "$as_me:2398: result: no" >&5
2399 echo "${ECHO_T}no" >&6
2402 echo "$as_me:2402: checking for POSIXized ISC" >&5
2403 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2404 if test -d /etc/conf/kconfig.d &&
2405 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2407 echo "$as_me:2407: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6
2409 ISC=yes # If later tests want to check for ISC.
2411 cat >>confdefs.h <<\EOF
2412 #define _POSIX_SOURCE 1
2415 if test "$GCC" = yes; then
2421 echo "$as_me:2421: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2426 # This should have been defined by AC_PROG_CC
2429 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2430 # into CC. This will not help with broken scripts that wrap the compiler with
2431 # options, but eliminates a more common category of user confusion.
2432 echo "$as_me:2432: checking \$CC variable" >&5
2433 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2436 echo "$as_me:2436: result: broken" >&5
2437 echo "${ECHO_T}broken" >&6
2438 { echo "$as_me:2438: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2439 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2441 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2442 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2447 cf_new_extra_cppflags=
2449 for cf_add_cflags in $cf_flags
2451 case $cf_fix_cppflags in
2453 case $cf_add_cflags in #(vi
2454 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2455 case $cf_add_cflags in
2457 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2459 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2460 && test -z "${cf_tst_cflags}" \
2461 && cf_fix_cppflags=yes
2463 if test $cf_fix_cppflags = yes ; then
2464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2466 elif test "${cf_tst_cflags}" = "\"'" ; then
2467 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2473 *$cf_add_cflags) #(vi
2476 case $cf_add_cflags in #(vi
2478 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2480 CPPFLAGS=`echo "$CPPFLAGS" | \
2481 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2482 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2486 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2491 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2496 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2498 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2500 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2501 && test -z "${cf_tst_cflags}" \
2502 && cf_fix_cppflags=no
2507 if test -n "$cf_new_cflags" ; then
2509 CFLAGS="$CFLAGS $cf_new_cflags"
2512 if test -n "$cf_new_cppflags" ; then
2514 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2517 if test -n "$cf_new_extra_cppflags" ; then
2519 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2524 echo "$as_me:2524: result: ok" >&5
2525 echo "${ECHO_T}ok" >&6
2529 echo "$as_me:2529: checking for ${CC:-cc} option to accept ANSI C" >&5
2530 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2531 if test "${cf_cv_ansi_cc+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 cf_save_CFLAGS="$CFLAGS"
2537 cf_save_CPPFLAGS="$CPPFLAGS"
2538 # Don't try gcc -ansi; that turns off useful extensions and
2539 # breaks some systems' header files.
2540 # AIX -qlanglvl=ansi
2541 # Ultrix and OSF/1 -std1
2542 # HP-UX -Aa -D_HPUX_SOURCE
2544 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2545 for cf_arg in "-DCC_HAS_PROTOS" \
2550 "-Aa -D_HPUX_SOURCE" \
2557 cf_new_extra_cppflags=
2559 for cf_add_cflags in $cf_arg
2561 case $cf_fix_cppflags in
2563 case $cf_add_cflags in #(vi
2564 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2565 case $cf_add_cflags in
2567 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2569 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2570 && test -z "${cf_tst_cflags}" \
2571 && cf_fix_cppflags=yes
2573 if test $cf_fix_cppflags = yes ; then
2574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2576 elif test "${cf_tst_cflags}" = "\"'" ; then
2577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2583 *$cf_add_cflags) #(vi
2586 case $cf_add_cflags in #(vi
2588 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2590 CPPFLAGS=`echo "$CPPFLAGS" | \
2591 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2592 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2596 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2601 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2606 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2608 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2610 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2611 && test -z "${cf_tst_cflags}" \
2612 && cf_fix_cppflags=no
2617 if test -n "$cf_new_cflags" ; then
2619 CFLAGS="$CFLAGS $cf_new_cflags"
2622 if test -n "$cf_new_cppflags" ; then
2624 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2627 if test -n "$cf_new_extra_cppflags" ; then
2629 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line 2633 "configure"
2634 #include "confdefs.h"
2636 #ifndef CC_HAS_PROTOS
2637 #if !defined(__STDC__) || (__STDC__ != 1)
2646 int test (int i, double x);
2647 struct s1 {int (*f) (int a);};
2648 struct s2 {int (*f) (double a);};
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:2654: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:2660: \"$ac_try\"") >&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 cf_cv_ansi_cc="$cf_arg"; break
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 rm -f conftest.$ac_objext conftest.$ac_ext
2672 CFLAGS="$cf_save_CFLAGS"
2673 CPPFLAGS="$cf_save_CPPFLAGS"
2676 echo "$as_me:2676: result: $cf_cv_ansi_cc" >&5
2677 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2679 if test "$cf_cv_ansi_cc" != "no"; then
2680 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2685 cf_new_extra_cppflags=
2687 for cf_add_cflags in $cf_cv_ansi_cc
2689 case $cf_fix_cppflags in
2691 case $cf_add_cflags in #(vi
2692 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2693 case $cf_add_cflags in
2695 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2697 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2698 && test -z "${cf_tst_cflags}" \
2699 && cf_fix_cppflags=yes
2701 if test $cf_fix_cppflags = yes ; then
2702 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2704 elif test "${cf_tst_cflags}" = "\"'" ; then
2705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2711 *$cf_add_cflags) #(vi
2714 case $cf_add_cflags in #(vi
2716 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2718 CPPFLAGS=`echo "$CPPFLAGS" | \
2719 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2720 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2724 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2729 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2734 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2736 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2738 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2739 && test -z "${cf_tst_cflags}" \
2740 && cf_fix_cppflags=no
2745 if test -n "$cf_new_cflags" ; then
2747 CFLAGS="$CFLAGS $cf_new_cflags"
2750 if test -n "$cf_new_cppflags" ; then
2752 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2755 if test -n "$cf_new_extra_cppflags" ; then
2757 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2761 cat >>confdefs.h <<\EOF
2762 #define CC_HAS_PROTOS 1
2768 if test "$cf_cv_ansi_cc" = "no"; then
2769 { { echo "$as_me:2769: error: Your compiler does not appear to recognize prototypes.
2770 You have the following choices:
2771 a. adjust your compiler options
2772 b. get an up-to-date compiler
2773 c. use a wrapper such as unproto" >&5
2774 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2775 You have the following choices:
2776 a. adjust your compiler options
2777 b. get an up-to-date compiler
2778 c. use a wrapper such as unproto" >&2;}
2779 { (exit 1); exit 1; }; }
2782 case $cf_cv_system_name in
2784 CFLAGS="$CFLAGS -Zmt"
2785 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2786 CXXFLAGS="$CXXFLAGS -Zmt"
2787 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2788 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2795 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2796 #define PROG_EXT "$PROG_EXT"
2799 if test "$cross_compiling" = yes ; then
2802 case "$cf_cv_system_name" in #(vi
2803 dragonfly*|mirbsd*|freebsd*) #(vi
2804 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2806 *) LDPATH=$PATH:/sbin:/usr/sbin
2807 # Extract the first word of "ldconfig", so it can be a program name with args.
2808 set dummy ldconfig; ac_word=$2
2809 echo "$as_me:2809: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
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 if $as_executable_p "$ac_dir/$ac_word"; then
2825 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2826 echo "$as_me:2826: found $ac_dir/$ac_word" >&5
2834 LDCONFIG=$ac_cv_path_LDCONFIG
2836 if test -n "$LDCONFIG"; then
2837 echo "$as_me:2837: result: $LDCONFIG" >&5
2838 echo "${ECHO_T}$LDCONFIG" >&6
2840 echo "$as_me:2840: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2848 echo "$as_me:2848: checking if you want to ensure bool is consistent with C++" >&5
2849 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2851 # Check whether --with-cxx or --without-cxx was given.
2852 if test "${with_cxx+set}" = set; then
2854 cf_with_cxx=$withval
2858 echo "$as_me:2858: result: $cf_with_cxx" >&5
2859 echo "${ECHO_T}$cf_with_cxx" >&6
2860 if test "X$cf_with_cxx" = Xno ; then
2864 # with autoconf 2.13, we can change the error to a warning:
2866 ac_cpp='$CXXCPP $CPPFLAGS'
2867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2870 ac_main_return=return
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876 echo "$as_me:2876: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_CXX+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 if test -n "$CXX"; then
2882 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2884 ac_save_IFS=$IFS; IFS=$ac_path_separator
2886 for ac_dir in $ac_dummy; do
2888 test -z "$ac_dir" && ac_dir=.
2889 $as_executable_p "$ac_dir/$ac_word" || continue
2890 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2891 echo "$as_me:2891: found $ac_dir/$ac_word" >&5
2898 if test -n "$CXX"; then
2899 echo "$as_me:2899: result: $CXX" >&5
2900 echo "${ECHO_T}$CXX" >&6
2902 echo "$as_me:2902: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2906 test -n "$CXX" && break
2909 if test -z "$CXX"; then
2911 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy $ac_prog; ac_word=$2
2915 echo "$as_me:2915: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 if test -n "$ac_ct_CXX"; then
2921 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2923 ac_save_IFS=$IFS; IFS=$ac_path_separator
2925 for ac_dir in $ac_dummy; do
2927 test -z "$ac_dir" && ac_dir=.
2928 $as_executable_p "$ac_dir/$ac_word" || continue
2929 ac_cv_prog_ac_ct_CXX="$ac_prog"
2930 echo "$as_me:2930: found $ac_dir/$ac_word" >&5
2936 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2937 if test -n "$ac_ct_CXX"; then
2938 echo "$as_me:2938: result: $ac_ct_CXX" >&5
2939 echo "${ECHO_T}$ac_ct_CXX" >&6
2941 echo "$as_me:2941: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2945 test -n "$ac_ct_CXX" && break
2947 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2952 # Provide some information about the compiler.
2953 echo "$as_me:2953:" \
2954 "checking for C++ compiler version" >&5
2955 ac_compiler=`set X $ac_compile; echo $2`
2956 { (eval echo "$as_me:2956: \"$ac_compiler --version </dev/null >&5\"") >&5
2957 (eval $ac_compiler --version </dev/null >&5) 2>&5
2959 echo "$as_me:2959: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2961 { (eval echo "$as_me:2961: \"$ac_compiler -v </dev/null >&5\"") >&5
2962 (eval $ac_compiler -v </dev/null >&5) 2>&5
2964 echo "$as_me:2964: \$? = $ac_status" >&5
2965 (exit $ac_status); }
2966 { (eval echo "$as_me:2966: \"$ac_compiler -V </dev/null >&5\"") >&5
2967 (eval $ac_compiler -V </dev/null >&5) 2>&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }
2972 echo "$as_me:2972: checking whether we are using the GNU C++ compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2974 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #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 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3014 echo "$as_me:3014: result: $ac_cv_cxx_compiler_gnu" >&5
3015 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3016 GXX=`test $ac_compiler_gnu = yes && echo yes`
3017 ac_test_CXXFLAGS=${CXXFLAGS+set}
3018 ac_save_CXXFLAGS=$CXXFLAGS
3020 echo "$as_me:3020: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line 3026 "configure"
3027 #include "confdefs.h"
3037 rm -f conftest.$ac_objext
3038 if { (eval echo "$as_me:3038: \"$ac_compile\"") >&5
3039 (eval $ac_compile) 2>&5
3041 echo "$as_me:3041: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:3044: \"$ac_try\"") >&5
3047 echo "$as_me:3047: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_cv_prog_cxx_g=yes
3051 echo "$as_me: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3055 rm -f conftest.$ac_objext conftest.$ac_ext
3057 echo "$as_me:3057: result: $ac_cv_prog_cxx_g" >&5
3058 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3059 if test "$ac_test_CXXFLAGS" = set; then
3060 CXXFLAGS=$ac_save_CXXFLAGS
3061 elif test $ac_cv_prog_cxx_g = yes; then
3062 if test "$GXX" = yes; then
3068 if test "$GXX" = yes; then
3074 for ac_declaration in \
3076 '#include <stdlib.h>' \
3077 'extern "C" void std::exit (int) throw (); using std::exit;' \
3078 'extern "C" void std::exit (int); using std::exit;' \
3079 'extern "C" void exit (int) throw ();' \
3080 'extern "C" void exit (int);' \
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line 3084 "configure"
3085 #include "confdefs.h"
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:3097: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:3103: \"$ac_try\"") >&5
3106 echo "$as_me:3106: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3114 rm -f conftest.$ac_objext conftest.$ac_ext
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line 3116 "configure"
3117 #include "confdefs.h"
3127 rm -f conftest.$ac_objext
3128 if { (eval echo "$as_me:3128: \"$ac_compile\"") >&5
3129 (eval $ac_compile) 2>&5
3131 echo "$as_me:3131: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (eval echo "$as_me:3134: \"$ac_try\"") >&5
3137 echo "$as_me:3137: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3141 echo "$as_me: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3144 rm -f conftest.$ac_objext conftest.$ac_ext
3147 if test -n "$ac_declaration"; then
3148 echo '#ifdef __cplusplus' >>confdefs.h
3149 echo $ac_declaration >>confdefs.h
3150 echo '#endif' >>confdefs.h
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 ac_main_return=return
3160 # autoconf 2.5x removed the error - by hardcoding it to g++.
3161 if test "$CXX" = "g++" ; then
3162 # Extract the first word of "g++", so it can be a program name with args.
3163 set dummy g++; ac_word=$2
3164 echo "$as_me:3164: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_path_CXX+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3174 ac_save_IFS=$IFS; IFS=$ac_path_separator
3176 for ac_dir in $ac_dummy; do
3178 test -z "$ac_dir" && ac_dir=.
3179 if $as_executable_p "$ac_dir/$ac_word"; then
3180 ac_cv_path_CXX="$ac_dir/$ac_word"
3181 echo "$as_me:3181: found $ac_dir/$ac_word" >&5
3191 if test -n "$CXX"; then
3192 echo "$as_me:3192: result: $CXX" >&5
3193 echo "${ECHO_T}$CXX" >&6
3195 echo "$as_me:3195: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3200 if test "$CXX" = "g++" ; then
3201 { echo "$as_me:3201: WARNING: ignoring hardcoded g++" >&5
3202 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3203 cf_with_cxx=no; CXX=""; GXX="";
3208 if test "$GXX" = yes; then
3209 echo "$as_me:3209: checking version of g++" >&5
3210 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3211 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3212 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3213 echo "$as_me:3213: result: $GXX_VERSION" >&5
3214 echo "${ECHO_T}$GXX_VERSION" >&6
3217 case $GXX_VERSION in
3219 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3221 { echo "$as_me:3221: WARNING: templates do not work" >&5
3222 echo "$as_me: WARNING: templates do not work" >&2;}
3226 echo "$as_me:3226: checking if you want to build C++ binding and demo" >&5
3227 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3229 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3230 if test "${with_cxx_binding+set}" = set; then
3231 withval="$with_cxx_binding"
3232 cf_with_cxx_binding=$withval
3234 cf_with_cxx_binding=$cf_with_cxx
3236 echo "$as_me:3236: result: $cf_with_cxx_binding" >&5
3237 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3239 echo "$as_me:3239: checking if you want to build with Ada95" >&5
3240 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3242 # Check whether --with-ada or --without-ada was given.
3243 if test "${with_ada+set}" = set; then
3245 cf_with_ada=$withval
3249 echo "$as_me:3249: result: $cf_with_ada" >&5
3250 echo "${ECHO_T}$cf_with_ada" >&6
3252 echo "$as_me:3252: checking if you want to install manpages" >&5
3253 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3255 # Check whether --with-manpages or --without-manpages was given.
3256 if test "${with_manpages+set}" = set; then
3257 withval="$with_manpages"
3258 cf_with_manpages=$withval
3260 cf_with_manpages=yes
3262 echo "$as_me:3262: result: $cf_with_manpages" >&5
3263 echo "${ECHO_T}$cf_with_manpages" >&6
3265 echo "$as_me:3265: checking if you want to build programs such as tic" >&5
3266 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3268 # Check whether --with-progs or --without-progs was given.
3269 if test "${with_progs+set}" = set; then
3270 withval="$with_progs"
3271 cf_with_progs=$withval
3275 echo "$as_me:3275: result: $cf_with_progs" >&5
3276 echo "${ECHO_T}$cf_with_progs" >&6
3278 echo "$as_me:3278: checking if you want to build test-programs" >&5
3279 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3281 # Check whether --with-tests or --without-tests was given.
3282 if test "${with_tests+set}" = set; then
3283 withval="$with_tests"
3284 cf_with_tests=$withval
3288 echo "$as_me:3288: result: $cf_with_tests" >&5
3289 echo "${ECHO_T}$cf_with_tests" >&6
3291 echo "$as_me:3291: checking if you wish to install curses.h" >&5
3292 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3294 # Check whether --with-curses-h or --without-curses-h was given.
3295 if test "${with_curses_h+set}" = set; then
3296 withval="$with_curses_h"
3297 with_curses_h=$withval
3301 echo "$as_me:3301: result: $with_curses_h" >&5
3302 echo "${ECHO_T}$with_curses_h" >&6
3304 modules_to_build="ncurses"
3305 if test "X$cf_with_progs" != Xno ; then
3306 modules_to_build="$modules_to_build progs tack"
3308 modules_to_build="$modules_to_build panel menu form"
3310 test "$program_prefix" != NONE &&
3311 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3312 # Use a double $ so make ignores it.
3313 test "$program_suffix" != NONE &&
3314 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3315 # Double any \ or $. echo might interpret backslashes.
3316 # By default was `s,x,x', remove it if useless.
3317 cat <<\_ACEOF >conftest.sed
3318 s/[\\$]/&&/g;s/;s,x,x,$//
3320 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3323 for ac_prog in mawk gawk nawk awk
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 echo "$as_me:3327: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_AWK+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$AWK"; then
3333 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3335 ac_save_IFS=$IFS; IFS=$ac_path_separator
3337 for ac_dir in $ac_dummy; do
3339 test -z "$ac_dir" && ac_dir=.
3340 $as_executable_p "$ac_dir/$ac_word" || continue
3341 ac_cv_prog_AWK="$ac_prog"
3342 echo "$as_me:3342: found $ac_dir/$ac_word" >&5
3349 if test -n "$AWK"; then
3350 echo "$as_me:3350: result: $AWK" >&5
3351 echo "${ECHO_T}$AWK" >&6
3353 echo "$as_me:3353: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3357 test -n "$AWK" && break
3360 test -z "$AWK" && { { echo "$as_me:3360: error: No awk program found" >&5
3361 echo "$as_me: error: No awk program found" >&2;}
3362 { (exit 1); exit 1; }; }
3364 echo "$as_me:3364: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3366 if test "${ac_cv_prog_egrep+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3370 then ac_cv_prog_egrep='grep -E'
3371 else ac_cv_prog_egrep='egrep'
3374 echo "$as_me:3374: result: $ac_cv_prog_egrep" >&5
3375 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3376 EGREP=$ac_cv_prog_egrep
3378 test -z "$EGREP" && { { echo "$as_me:3378: error: No egrep program found" >&5
3379 echo "$as_me: error: No egrep program found" >&2;}
3380 { (exit 1); exit 1; }; }
3382 # Find a good install program. We prefer a C program (faster),
3383 # so one script is as good as another. But avoid the broken or
3384 # incompatible versions:
3385 # SysV /etc/install, /usr/sbin/install
3386 # SunOS /usr/etc/install
3387 # IRIX /sbin/install
3389 # AmigaOS /C/install, which installs bootblocks on floppy discs
3390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3393 # ./install, which can be erroneously created by make from ./install.sh.
3394 echo "$as_me:3394: checking for a BSD compatible install" >&5
3395 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3396 if test -z "$INSTALL"; then
3397 if test "${ac_cv_path_install+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 ac_save_IFS=$IFS; IFS=$ac_path_separator
3401 for ac_dir in $PATH; do
3403 # Account for people who put trailing slashes in PATH elements.
3405 / | ./ | .// | /cC/* \
3406 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3409 # OSF1 and SCO ODT 3.0 have their own names for install.
3410 # Don't use installbsd from OSF since it installs stuff as root
3412 for ac_prog in ginstall scoinst install; do
3413 if $as_executable_p "$ac_dir/$ac_prog"; then
3414 if test $ac_prog = install &&
3415 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3416 # AIX install. It has an incompatible calling convention.
3418 elif test $ac_prog = install &&
3419 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3420 # program-specific install script used by HP pwplus--don't use.
3423 ac_cv_path_install="$ac_dir/$ac_prog -c"
3433 if test "${ac_cv_path_install+set}" = set; then
3434 INSTALL=$ac_cv_path_install
3436 # As a last resort, use the slow shell script. We don't cache a
3437 # path for INSTALL within a source directory, because that will
3438 # break other packages using the cache if that directory is
3439 # removed, or if the path is relative.
3440 INSTALL=$ac_install_sh
3443 echo "$as_me:3443: result: $INSTALL" >&5
3444 echo "${ECHO_T}$INSTALL" >&6
3446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3447 # It thinks the first close brace ends the variable substitution.
3448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3458 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3459 test -z "$cf_dir" && cf_dir=.
3460 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3464 for ac_prog in tdlint lint alint splint lclint
3466 # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy $ac_prog; ac_word=$2
3468 echo "$as_me:3468: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_prog_LINT+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 if test -n "$LINT"; then
3474 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3476 ac_save_IFS=$IFS; IFS=$ac_path_separator
3478 for ac_dir in $ac_dummy; do
3480 test -z "$ac_dir" && ac_dir=.
3481 $as_executable_p "$ac_dir/$ac_word" || continue
3482 ac_cv_prog_LINT="$ac_prog"
3483 echo "$as_me:3483: found $ac_dir/$ac_word" >&5
3489 LINT=$ac_cv_prog_LINT
3490 if test -n "$LINT"; then
3491 echo "$as_me:3491: result: $LINT" >&5
3492 echo "${ECHO_T}$LINT" >&6
3494 echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 test -n "$LINT" && break
3501 echo "$as_me:3501: checking whether ln -s works" >&5
3502 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3504 if test "$LN_S" = "ln -s"; then
3505 echo "$as_me:3505: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3508 echo "$as_me:3508: result: no, using $LN_S" >&5
3509 echo "${ECHO_T}no, using $LN_S" >&6
3512 echo "$as_me:3512: checking if $LN_S -f options work" >&5
3513 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3515 rm -f conf$$.src conf$$dst
3517 echo first >conf$$.src
3518 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3523 rm -f conf$$.dst conf$$src
3524 echo "$as_me:3524: result: $cf_prog_ln_sf" >&5
3525 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3527 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3529 echo "$as_me:3529: checking for long file names" >&5
3530 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3531 if test "${ac_cv_sys_long_file_names+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 ac_cv_sys_long_file_names=yes
3535 # Test for long file names in all the places we know might matter:
3536 # . the current directory, where building will happen
3537 # $prefix/lib where we will be installing things
3538 # $exec_prefix/lib likewise
3539 # eval it to expand exec_prefix.
3540 # $TMPDIR if set, where it might want to write temporary files
3541 # if $TMPDIR is not set:
3542 # /tmp where it might want to write temporary files
3545 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3548 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3550 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3551 test -d $ac_dir || continue
3552 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3553 ac_xdir=$ac_dir/cf$$
3554 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3555 ac_tf1=$ac_xdir/conftest9012345
3556 ac_tf2=$ac_xdir/conftest9012346
3557 (echo 1 >$ac_tf1) 2>/dev/null
3558 (echo 2 >$ac_tf2) 2>/dev/null
3559 ac_val=`cat $ac_tf1 2>/dev/null`
3560 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3561 ac_cv_sys_long_file_names=no
3562 rm -rf $ac_xdir 2>/dev/null
3565 rm -rf $ac_xdir 2>/dev/null
3568 echo "$as_me:3568: result: $ac_cv_sys_long_file_names" >&5
3569 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3570 if test $ac_cv_sys_long_file_names = yes; then
3572 cat >>confdefs.h <<\EOF
3573 #define HAVE_LONG_FILE_NAMES 1
3578 # if we find pkg-config, check if we should install the ".pc" files.
3580 echo "$as_me:3580: checking if you want to use pkg-config" >&5
3581 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3583 # Check whether --with-pkg-config or --without-pkg-config was given.
3584 if test "${with_pkg_config+set}" = set; then
3585 withval="$with_pkg_config"
3586 cf_pkg_config=$withval
3590 echo "$as_me:3590: result: $cf_pkg_config" >&5
3591 echo "${ECHO_T}$cf_pkg_config" >&6
3593 case $cf_pkg_config in #(vi
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3602 echo "$as_me:3602: checking for $ac_word" >&5
3603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3612 ac_save_IFS=$IFS; IFS=$ac_path_separator
3614 for ac_dir in $ac_dummy; do
3616 test -z "$ac_dir" && ac_dir=.
3617 if $as_executable_p "$ac_dir/$ac_word"; then
3618 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3619 echo "$as_me:3619: found $ac_dir/$ac_word" >&5
3627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3629 if test -n "$PKG_CONFIG"; then
3630 echo "$as_me:3630: result: $PKG_CONFIG" >&5
3631 echo "${ECHO_T}$PKG_CONFIG" >&6
3633 echo "$as_me:3633: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3638 if test -z "$ac_cv_path_PKG_CONFIG"; then
3639 ac_pt_PKG_CONFIG=$PKG_CONFIG
3640 # Extract the first word of "pkg-config", so it can be a program name with args.
3641 set dummy pkg-config; ac_word=$2
3642 echo "$as_me:3642: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 case $ac_pt_PKG_CONFIG in
3649 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3652 ac_save_IFS=$IFS; IFS=$ac_path_separator
3654 for ac_dir in $ac_dummy; do
3656 test -z "$ac_dir" && ac_dir=.
3657 if $as_executable_p "$ac_dir/$ac_word"; then
3658 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3659 echo "$as_me:3659: found $ac_dir/$ac_word" >&5
3664 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3668 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3670 if test -n "$ac_pt_PKG_CONFIG"; then
3671 echo "$as_me:3671: result: $ac_pt_PKG_CONFIG" >&5
3672 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3674 echo "$as_me:3674: result: no" >&5
3675 echo "${ECHO_T}no" >&6
3678 PKG_CONFIG=$ac_pt_PKG_CONFIG
3680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3689 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3690 if test "$PKG_CONFIG" != none ; then
3692 if test "x$prefix" != xNONE; then
3693 cf_path_syntax="$prefix"
3695 cf_path_syntax="$ac_default_prefix"
3698 case ".$PKG_CONFIG" in #(vi
3699 .\$\(*\)*|.\'*\'*) #(vi
3703 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3706 eval PKG_CONFIG="$PKG_CONFIG"
3707 case ".$PKG_CONFIG" in #(vi
3709 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3714 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3717 { { echo "$as_me:3717: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3718 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3719 { (exit 1); exit 1; }; }
3725 if test "$PKG_CONFIG" != no ; then
3726 echo "$as_me:3726: checking for $PKG_CONFIG library directory" >&5
3727 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3729 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3730 if test "${with_pkg_config_libdir+set}" = set; then
3731 withval="$with_pkg_config_libdir"
3732 PKG_CONFIG_LIBDIR=$withval
3734 PKG_CONFIG_LIBDIR=yes
3737 case x$PKG_CONFIG_LIBDIR in #(vi
3741 # look for the library directory using the same prefix as the executable
3742 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3743 case x`(arch) 2>/dev/null` in #(vi
3745 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3747 if test -d $cf_config/pkgconfig
3749 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3755 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3763 echo "$as_me:3763: result: $PKG_CONFIG_LIBDIR" >&5
3764 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3767 if test "$PKG_CONFIG" != no ; then
3768 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3769 echo "$as_me:3769: checking if we should install .pc files for $PKG_CONFIG" >&5
3770 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3772 # Check whether --enable-pc-files or --disable-pc-files was given.
3773 if test "${enable_pc_files+set}" = set; then
3774 enableval="$enable_pc_files"
3775 enable_pc_files=$enableval
3779 echo "$as_me:3779: result: $enable_pc_files" >&5
3780 echo "${ECHO_T}$enable_pc_files" >&6
3781 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3783 { echo "$as_me:3783: WARNING: did not find $PKG_CONFIG library" >&5
3784 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3790 echo "$as_me:3790: checking if we should assume mixed-case filenames" >&5
3791 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3793 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3794 if test "${enable_mixed_case+set}" = set; then
3795 enableval="$enable_mixed_case"
3796 enable_mixedcase=$enableval
3798 enable_mixedcase=auto
3800 echo "$as_me:3800: result: $enable_mixedcase" >&5
3801 echo "${ECHO_T}$enable_mixedcase" >&6
3802 if test "$enable_mixedcase" = "auto" ; then
3804 echo "$as_me:3804: checking if filesystem supports mixed-case filenames" >&5
3805 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3806 if test "${cf_cv_mixedcase+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 if test "$cross_compiling" = yes ; then
3811 case $target_alias in #(vi
3812 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3820 rm -f conftest CONFTEST
3822 if test -f CONFTEST ; then
3827 rm -f conftest CONFTEST
3831 echo "$as_me:3831: result: $cf_cv_mixedcase" >&5
3832 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3833 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3834 #define MIXEDCASE_FILENAMES 1
3838 cf_cv_mixedcase=$enable_mixedcase
3839 if test "$enable_mixedcase" = "yes" ; then
3840 cat >>confdefs.h <<\EOF
3841 #define MIXEDCASE_FILENAMES 1
3847 # do this after mixed-case option (tags/TAGS is not as important as tic).
3848 echo "$as_me:3848: checking whether ${MAKE-make} sets \${MAKE}" >&5
3849 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 cat >conftest.make <<\EOF
3856 @echo 'ac_maketemp="${MAKE}"'
3858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3860 if test -n "$ac_maketemp"; then
3861 eval ac_cv_prog_make_${ac_make}_set=yes
3863 eval ac_cv_prog_make_${ac_make}_set=no
3867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3868 echo "$as_me:3868: result: yes" >&5
3869 echo "${ECHO_T}yes" >&6
3872 echo "$as_me:3872: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 SET_MAKE="MAKE=${MAKE-make}"
3877 for ac_prog in exctags ctags
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 echo "$as_me:3881: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_CTAGS+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 if test -n "$CTAGS"; then
3887 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3889 ac_save_IFS=$IFS; IFS=$ac_path_separator
3891 for ac_dir in $ac_dummy; do
3893 test -z "$ac_dir" && ac_dir=.
3894 $as_executable_p "$ac_dir/$ac_word" || continue
3895 ac_cv_prog_CTAGS="$ac_prog"
3896 echo "$as_me:3896: found $ac_dir/$ac_word" >&5
3902 CTAGS=$ac_cv_prog_CTAGS
3903 if test -n "$CTAGS"; then
3904 echo "$as_me:3904: result: $CTAGS" >&5
3905 echo "${ECHO_T}$CTAGS" >&6
3907 echo "$as_me:3907: result: no" >&5
3908 echo "${ECHO_T}no" >&6
3911 test -n "$CTAGS" && break
3914 for ac_prog in exetags etags
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 echo "$as_me:3918: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_ETAGS+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$ETAGS"; then
3924 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3926 ac_save_IFS=$IFS; IFS=$ac_path_separator
3928 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 $as_executable_p "$ac_dir/$ac_word" || continue
3932 ac_cv_prog_ETAGS="$ac_prog"
3933 echo "$as_me:3933: found $ac_dir/$ac_word" >&5
3939 ETAGS=$ac_cv_prog_ETAGS
3940 if test -n "$ETAGS"; then
3941 echo "$as_me:3941: result: $ETAGS" >&5
3942 echo "${ECHO_T}$ETAGS" >&6
3944 echo "$as_me:3944: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3948 test -n "$ETAGS" && break
3951 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3952 set dummy ${CTAGS:-ctags}; ac_word=$2
3953 echo "$as_me:3953: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$MAKE_LOWER_TAGS"; then
3959 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3961 ac_save_IFS=$IFS; IFS=$ac_path_separator
3963 for ac_dir in $ac_dummy; do
3965 test -z "$ac_dir" && ac_dir=.
3966 $as_executable_p "$ac_dir/$ac_word" || continue
3967 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3968 echo "$as_me:3968: found $ac_dir/$ac_word" >&5
3972 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3975 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3976 if test -n "$MAKE_LOWER_TAGS"; then
3977 echo "$as_me:3977: result: $MAKE_LOWER_TAGS" >&5
3978 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3980 echo "$as_me:3980: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3984 if test "$cf_cv_mixedcase" = yes ; then
3985 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3986 set dummy ${ETAGS:-etags}; ac_word=$2
3987 echo "$as_me:3987: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if test -n "$MAKE_UPPER_TAGS"; then
3993 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3995 ac_save_IFS=$IFS; IFS=$ac_path_separator
3997 for ac_dir in $ac_dummy; do
3999 test -z "$ac_dir" && ac_dir=.
4000 $as_executable_p "$ac_dir/$ac_word" || continue
4001 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4002 echo "$as_me:4002: found $ac_dir/$ac_word" >&5
4006 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4009 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4010 if test -n "$MAKE_UPPER_TAGS"; then
4011 echo "$as_me:4011: result: $MAKE_UPPER_TAGS" >&5
4012 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4014 echo "$as_me:4014: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4022 if test "$MAKE_UPPER_TAGS" = yes ; then
4028 if test "$MAKE_LOWER_TAGS" = yes ; then
4034 echo "$as_me:4034: checking for makeflags variable" >&5
4035 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4036 if test "${cf_cv_makeflags+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4043 cat >cf_makeflags.tmp <<CF_EOF
4046 @ echo '.$cf_option'
4048 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4049 case "$cf_result" in
4051 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4052 case "$cf_result" in
4053 .*CC=*) cf_cv_makeflags=
4055 *) cf_cv_makeflags=$cf_option
4061 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4065 rm -f cf_makeflags.tmp
4068 echo "$as_me:4068: result: $cf_cv_makeflags" >&5
4069 echo "${ECHO_T}$cf_cv_makeflags" >&6
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4074 echo "$as_me:4074: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_RANLIB+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if test -n "$RANLIB"; then
4080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4082 ac_save_IFS=$IFS; IFS=$ac_path_separator
4084 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 $as_executable_p "$ac_dir/$ac_word" || continue
4088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4089 echo "$as_me:4089: found $ac_dir/$ac_word" >&5
4095 RANLIB=$ac_cv_prog_RANLIB
4096 if test -n "$RANLIB"; then
4097 echo "$as_me:4097: result: $RANLIB" >&5
4098 echo "${ECHO_T}$RANLIB" >&6
4100 echo "$as_me:4100: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4105 if test -z "$ac_cv_prog_RANLIB"; then
4106 ac_ct_RANLIB=$RANLIB
4107 # Extract the first word of "ranlib", so it can be a program name with args.
4108 set dummy ranlib; ac_word=$2
4109 echo "$as_me:4109: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$ac_ct_RANLIB"; then
4115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4117 ac_save_IFS=$IFS; IFS=$ac_path_separator
4119 for ac_dir in $ac_dummy; do
4121 test -z "$ac_dir" && ac_dir=.
4122 $as_executable_p "$ac_dir/$ac_word" || continue
4123 ac_cv_prog_ac_ct_RANLIB="ranlib"
4124 echo "$as_me:4124: found $ac_dir/$ac_word" >&5
4128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4132 if test -n "$ac_ct_RANLIB"; then
4133 echo "$as_me:4133: result: $ac_ct_RANLIB" >&5
4134 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4136 echo "$as_me:4136: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4140 RANLIB=$ac_ct_RANLIB
4142 RANLIB="$ac_cv_prog_RANLIB"
4145 if test -n "$ac_tool_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4147 set dummy ${ac_tool_prefix}ld; ac_word=$2
4148 echo "$as_me:4148: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_LD+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$LD"; then
4154 ac_cv_prog_LD="$LD" # Let the user override the test.
4156 ac_save_IFS=$IFS; IFS=$ac_path_separator
4158 for ac_dir in $ac_dummy; do
4160 test -z "$ac_dir" && ac_dir=.
4161 $as_executable_p "$ac_dir/$ac_word" || continue
4162 ac_cv_prog_LD="${ac_tool_prefix}ld"
4163 echo "$as_me:4163: found $ac_dir/$ac_word" >&5
4170 if test -n "$LD"; then
4171 echo "$as_me:4171: result: $LD" >&5
4172 echo "${ECHO_T}$LD" >&6
4174 echo "$as_me:4174: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4179 if test -z "$ac_cv_prog_LD"; then
4181 # Extract the first word of "ld", so it can be a program name with args.
4182 set dummy ld; ac_word=$2
4183 echo "$as_me:4183: checking for $ac_word" >&5
4184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 if test -n "$ac_ct_LD"; then
4189 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4191 ac_save_IFS=$IFS; IFS=$ac_path_separator
4193 for ac_dir in $ac_dummy; do
4195 test -z "$ac_dir" && ac_dir=.
4196 $as_executable_p "$ac_dir/$ac_word" || continue
4197 ac_cv_prog_ac_ct_LD="ld"
4198 echo "$as_me:4198: found $ac_dir/$ac_word" >&5
4202 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4205 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4206 if test -n "$ac_ct_LD"; then
4207 echo "$as_me:4207: result: $ac_ct_LD" >&5
4208 echo "${ECHO_T}$ac_ct_LD" >&6
4210 echo "$as_me:4210: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}ar; ac_word=$2
4222 echo "$as_me:4222: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_AR+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$AR"; then
4228 ac_cv_prog_AR="$AR" # Let the user override the test.
4230 ac_save_IFS=$IFS; IFS=$ac_path_separator
4232 for ac_dir in $ac_dummy; do
4234 test -z "$ac_dir" && ac_dir=.
4235 $as_executable_p "$ac_dir/$ac_word" || continue
4236 ac_cv_prog_AR="${ac_tool_prefix}ar"
4237 echo "$as_me:4237: found $ac_dir/$ac_word" >&5
4244 if test -n "$AR"; then
4245 echo "$as_me:4245: result: $AR" >&5
4246 echo "${ECHO_T}$AR" >&6
4248 echo "$as_me:4248: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4253 if test -z "$ac_cv_prog_AR"; then
4255 # Extract the first word of "ar", so it can be a program name with args.
4256 set dummy ar; ac_word=$2
4257 echo "$as_me:4257: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$ac_ct_AR"; then
4263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4265 ac_save_IFS=$IFS; IFS=$ac_path_separator
4267 for ac_dir in $ac_dummy; do
4269 test -z "$ac_dir" && ac_dir=.
4270 $as_executable_p "$ac_dir/$ac_word" || continue
4271 ac_cv_prog_ac_ct_AR="ar"
4272 echo "$as_me:4272: found $ac_dir/$ac_word" >&5
4276 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4280 if test -n "$ac_ct_AR"; then
4281 echo "$as_me:4281: result: $ac_ct_AR" >&5
4282 echo "${ECHO_T}$ac_ct_AR" >&6
4284 echo "$as_me:4284: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4295 set dummy ${ac_tool_prefix}ar; ac_word=$2
4296 echo "$as_me:4296: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_AR+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$AR"; then
4302 ac_cv_prog_AR="$AR" # Let the user override the test.
4304 ac_save_IFS=$IFS; IFS=$ac_path_separator
4306 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 $as_executable_p "$ac_dir/$ac_word" || continue
4310 ac_cv_prog_AR="${ac_tool_prefix}ar"
4311 echo "$as_me:4311: found $ac_dir/$ac_word" >&5
4318 if test -n "$AR"; then
4319 echo "$as_me:4319: result: $AR" >&5
4320 echo "${ECHO_T}$AR" >&6
4322 echo "$as_me:4322: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4327 if test -z "$ac_cv_prog_AR"; then
4329 # Extract the first word of "ar", so it can be a program name with args.
4330 set dummy ar; ac_word=$2
4331 echo "$as_me:4331: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4333 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if test -n "$ac_ct_AR"; then
4337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339 ac_save_IFS=$IFS; IFS=$ac_path_separator
4341 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 $as_executable_p "$ac_dir/$ac_word" || continue
4345 ac_cv_prog_ac_ct_AR="ar"
4346 echo "$as_me:4346: found $ac_dir/$ac_word" >&5
4350 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4354 if test -n "$ac_ct_AR"; then
4355 echo "$as_me:4355: result: $ac_ct_AR" >&5
4356 echo "${ECHO_T}$ac_ct_AR" >&6
4358 echo "$as_me:4358: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4367 echo "$as_me:4367: checking for options to update archives" >&5
4368 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4369 if test "${cf_cv_ar_flags+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 cf_cv_ar_flags=unknown
4374 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4377 # check if $ARFLAGS already contains this choice
4378 if test "x$ARFLAGS" != "x" ; then
4379 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4380 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4386 rm -f conftest.$ac_cv_objext
4389 cat >conftest.$ac_ext <<EOF
4390 #line 4390 "configure"
4391 int testdata[3] = { 123, 456, 789 };
4393 if { (eval echo "$as_me:4393: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>&5
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); } ; then
4398 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4399 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4400 if test -f conftest.a ; then
4401 cf_cv_ar_flags=$cf_ar_flags
4405 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4407 echo "${as_me:-configure}:4407: testing cannot compile test-program ..." 1>&5
4412 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4415 echo "$as_me:4415: result: $cf_cv_ar_flags" >&5
4416 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4418 if test -n "$ARFLAGS" ; then
4419 if test -n "$cf_cv_ar_flags" ; then
4420 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4423 ARFLAGS=$cf_cv_ar_flags
4426 echo "$as_me:4426: checking if you have specified an install-prefix" >&5
4427 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4429 # Check whether --with-install-prefix or --without-install-prefix was given.
4430 if test "${with_install_prefix+set}" = set; then
4431 withval="$with_install_prefix"
4432 case "$withval" in #(vi
4435 *) DESTDIR="$withval"
4439 echo "$as_me:4439: result: $DESTDIR" >&5
4440 echo "${ECHO_T}$DESTDIR" >&6
4442 ###############################################################################
4444 # If we're cross-compiling, allow the user to override the tools and their
4445 # options. The configure script is oriented toward identifying the host
4446 # compiler, etc., but we need a build compiler to generate parts of the source.
4448 if test "$cross_compiling" = yes ; then
4450 # defaults that we might want to override
4451 : ${BUILD_CFLAGS:=''}
4452 : ${BUILD_CPPFLAGS:=''}
4453 : ${BUILD_LDFLAGS:=''}
4455 : ${BUILD_EXEEXT:='$x'}
4456 : ${BUILD_OBJEXT:='o'}
4458 # Check whether --with-build-cc or --without-build-cc was given.
4459 if test "${with_build_cc+set}" = set; then
4460 withval="$with_build_cc"
4463 for ac_prog in gcc cc cl
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 echo "$as_me:4467: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 ac_save_IFS=$IFS; IFS=$ac_path_separator
4477 for ac_dir in $ac_dummy; do
4479 test -z "$ac_dir" && ac_dir=.
4480 $as_executable_p "$ac_dir/$ac_word" || continue
4481 ac_cv_prog_BUILD_CC="$ac_prog"
4482 echo "$as_me:4482: found $ac_dir/$ac_word" >&5
4488 BUILD_CC=$ac_cv_prog_BUILD_CC
4489 if test -n "$BUILD_CC"; then
4490 echo "$as_me:4490: result: $BUILD_CC" >&5
4491 echo "${ECHO_T}$BUILD_CC" >&6
4493 echo "$as_me:4493: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 test -n "$BUILD_CC" && break
4501 echo "$as_me:4501: checking for native build C compiler" >&5
4502 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4503 echo "$as_me:4503: result: $BUILD_CC" >&5
4504 echo "${ECHO_T}$BUILD_CC" >&6
4506 echo "$as_me:4506: checking for native build C preprocessor" >&5
4507 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4509 # Check whether --with-build-cpp or --without-build-cpp was given.
4510 if test "${with_build_cpp+set}" = set; then
4511 withval="$with_build_cpp"
4512 BUILD_CPP="$withval"
4514 BUILD_CPP='${BUILD_CC} -E'
4516 echo "$as_me:4516: result: $BUILD_CPP" >&5
4517 echo "${ECHO_T}$BUILD_CPP" >&6
4519 echo "$as_me:4519: checking for native build C flags" >&5
4520 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4522 # Check whether --with-build-cflags or --without-build-cflags was given.
4523 if test "${with_build_cflags+set}" = set; then
4524 withval="$with_build_cflags"
4525 BUILD_CFLAGS="$withval"
4527 echo "$as_me:4527: result: $BUILD_CFLAGS" >&5
4528 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4530 echo "$as_me:4530: checking for native build C preprocessor-flags" >&5
4531 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4533 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4534 if test "${with_build_cppflags+set}" = set; then
4535 withval="$with_build_cppflags"
4536 BUILD_CPPFLAGS="$withval"
4538 echo "$as_me:4538: result: $BUILD_CPPFLAGS" >&5
4539 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4541 echo "$as_me:4541: checking for native build linker-flags" >&5
4542 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4544 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4545 if test "${with_build_ldflags+set}" = set; then
4546 withval="$with_build_ldflags"
4547 BUILD_LDFLAGS="$withval"
4549 echo "$as_me:4549: result: $BUILD_LDFLAGS" >&5
4550 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4552 echo "$as_me:4552: checking for native build linker-libraries" >&5
4553 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4555 # Check whether --with-build-libs or --without-build-libs was given.
4556 if test "${with_build_libs+set}" = set; then
4557 withval="$with_build_libs"
4558 BUILD_LIBS="$withval"
4560 echo "$as_me:4560: result: $BUILD_LIBS" >&5
4561 echo "${ECHO_T}$BUILD_LIBS" >&6
4563 # this assumes we're on Unix.
4567 : ${BUILD_CC:='${CC}'}
4569 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4570 { { echo "$as_me:4570: error: Cross-build requires two compilers.
4571 Use --with-build-cc to specify the native compiler." >&5
4572 echo "$as_me: error: Cross-build requires two compilers.
4573 Use --with-build-cc to specify the native compiler." >&2;}
4574 { (exit 1); exit 1; }; }
4578 : ${BUILD_CC:='${CC}'}
4579 : ${BUILD_CPP:='${CPP}'}
4580 : ${BUILD_CFLAGS:='${CFLAGS}'}
4581 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4582 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4583 : ${BUILD_LIBS:='${LIBS}'}
4584 : ${BUILD_EXEEXT:='$x'}
4585 : ${BUILD_OBJEXT:='o'}
4588 ###############################################################################
4590 ### Options to allow the user to specify the set of libraries which are used.
4591 ### Use "--without-normal --with-shared" to allow the default model to be
4592 ### shared, for example.
4595 echo "$as_me:4595: checking if libtool -version-number should be used" >&5
4596 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4598 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4599 if test "${enable_libtool_version+set}" = set; then
4600 enableval="$enable_libtool_version"
4601 test "$enableval" != no && enableval=yes
4602 if test "$enableval" != "yes" ; then
4603 cf_libtool_version=no
4605 cf_libtool_version=yes
4609 cf_libtool_version=yes
4612 echo "$as_me:4612: result: $cf_libtool_version" >&5
4613 echo "${ECHO_T}$cf_libtool_version" >&6
4615 if test "$cf_libtool_version" = yes ; then
4616 LIBTOOL_VERSION="-version-number"
4618 LIBTOOL_VERSION="-version-info"
4623 # common library maintenance symbols that are convenient for libtool scripts:
4624 LIB_CREATE='${AR} -cr'
4625 LIB_OBJECT='${OBJECTS}'
4629 # symbols used to prop libtool up to enable it to determine what it should be
4637 echo "$as_me:4637: checking if you want to build libraries with libtool" >&5
4638 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4640 # Check whether --with-libtool or --without-libtool was given.
4641 if test "${with_libtool+set}" = set; then
4642 withval="$with_libtool"
4643 with_libtool=$withval
4647 echo "$as_me:4647: result: $with_libtool" >&5
4648 echo "${ECHO_T}$with_libtool" >&6
4649 if test "$with_libtool" != "no"; then
4651 if test "$with_libtool" != "yes" ; then
4653 if test "x$prefix" != xNONE; then
4654 cf_path_syntax="$prefix"
4656 cf_path_syntax="$ac_default_prefix"
4659 case ".$with_libtool" in #(vi
4660 .\$\(*\)*|.\'*\'*) #(vi
4664 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4667 eval with_libtool="$with_libtool"
4668 case ".$with_libtool" in #(vi
4670 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4675 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4678 { { echo "$as_me:4678: error: expected a pathname, not \"$with_libtool\"" >&5
4679 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4680 { (exit 1); exit 1; }; }
4684 LIBTOOL=$with_libtool
4686 # Extract the first word of "libtool", so it can be a program name with args.
4687 set dummy libtool; ac_word=$2
4688 echo "$as_me:4688: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4690 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4698 ac_save_IFS=$IFS; IFS=$ac_path_separator
4700 for ac_dir in $ac_dummy; do
4702 test -z "$ac_dir" && ac_dir=.
4703 if $as_executable_p "$ac_dir/$ac_word"; then
4704 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4705 echo "$as_me:4705: found $ac_dir/$ac_word" >&5
4713 LIBTOOL=$ac_cv_path_LIBTOOL
4715 if test -n "$LIBTOOL"; then
4716 echo "$as_me:4716: result: $LIBTOOL" >&5
4717 echo "${ECHO_T}$LIBTOOL" >&6
4719 echo "$as_me:4719: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4724 if test -z "$LIBTOOL" ; then
4725 { { echo "$as_me:4725: error: Cannot find libtool" >&5
4726 echo "$as_me: error: Cannot find libtool" >&2;}
4727 { (exit 1); exit 1; }; }
4729 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4730 LIB_OBJECT='${OBJECTS:.o=.lo}'
4732 LIB_CLEAN='${LIBTOOL} --mode=clean'
4733 LIB_COMPILE='${LIBTOOL} --mode=compile'
4734 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4735 LIB_INSTALL='${LIBTOOL} --mode=install'
4736 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4739 # Show the version of libtool
4740 echo "$as_me:4740: checking version of libtool" >&5
4741 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4743 # Save the version in a cache variable - this is not entirely a good
4744 # thing, but the version string from libtool is very ugly, and for
4745 # bug reports it might be useful to have the original string. "("
4746 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.].*//'`
4747 echo "$as_me:4747: result: $cf_cv_libtool_version" >&5
4748 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4749 if test -z "$cf_cv_libtool_version" ; then
4750 { { echo "$as_me:4750: error: This is not GNU libtool" >&5
4751 echo "$as_me: error: This is not GNU libtool" >&2;}
4752 { (exit 1); exit 1; }; }
4755 # special hack to add -no-undefined (which libtool should do for itself)
4757 case "$cf_cv_system_name" in #(vi
4758 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4759 LT_UNDEF=-no-undefined
4763 # special hack to add --tag option for C++ compiler
4764 case $cf_cv_libtool_version in #(vi
4765 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4766 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4767 LIBTOOL="$LIBTOOL --tag=CC"
4770 LIBTOOL_CXX="$LIBTOOL"
4778 test -z "$LIBTOOL" && ECHO_LT=
4780 if test "$with_libtool" != "no" ; then
4782 cf_list_models="$cf_list_models libtool"
4786 echo "$as_me:4786: checking if you want to build shared libraries" >&5
4787 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4789 # Check whether --with-shared or --without-shared was given.
4790 if test "${with_shared+set}" = set; then
4791 withval="$with_shared"
4792 with_shared=$withval
4796 echo "$as_me:4796: result: $with_shared" >&5
4797 echo "${ECHO_T}$with_shared" >&6
4798 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4800 echo "$as_me:4800: checking if you want to build static libraries" >&5
4801 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4803 # Check whether --with-normal or --without-normal was given.
4804 if test "${with_normal+set}" = set; then
4805 withval="$with_normal"
4806 with_normal=$withval
4810 echo "$as_me:4810: result: $with_normal" >&5
4811 echo "${ECHO_T}$with_normal" >&6
4812 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4814 echo "$as_me:4814: checking if you want to build debug libraries" >&5
4815 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4817 # Check whether --with-debug or --without-debug was given.
4818 if test "${with_debug+set}" = set; then
4819 withval="$with_debug"
4824 echo "$as_me:4824: result: $with_debug" >&5
4825 echo "${ECHO_T}$with_debug" >&6
4826 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4828 echo "$as_me:4828: checking if you want to build profiling libraries" >&5
4829 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4831 # Check whether --with-profile or --without-profile was given.
4832 if test "${with_profile+set}" = set; then
4833 withval="$with_profile"
4834 with_profile=$withval
4838 echo "$as_me:4838: result: $with_profile" >&5
4839 echo "${ECHO_T}$with_profile" >&6
4840 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4844 ###############################################################################
4846 echo "$as_me:4846: checking for specified models" >&5
4847 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4848 test -z "$cf_list_models" && cf_list_models=normal
4849 test "$with_libtool" != "no" && cf_list_models=libtool
4850 echo "$as_me:4850: result: $cf_list_models" >&5
4851 echo "${ECHO_T}$cf_list_models" >&6
4853 ### Use the first model as the default, and save its suffix for use in building
4854 ### up test-applications.
4855 echo "$as_me:4855: checking for default model" >&5
4856 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4857 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4858 echo "$as_me:4858: result: $DFT_LWR_MODEL" >&5
4859 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4861 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4872 case $cf_cv_system_name in #(vi
4879 cf_prefix=$LIB_PREFIX
4881 LIB_PREFIX=$cf_prefix
4885 ###############################################################################
4887 echo "$as_me:4887: checking if you want to build a separate terminfo library" >&5
4888 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4890 # Check whether --with-termlib or --without-termlib was given.
4891 if test "${with_termlib+set}" = set; then
4892 withval="$with_termlib"
4893 with_termlib=$withval
4897 echo "$as_me:4897: result: $with_termlib" >&5
4898 echo "${ECHO_T}$with_termlib" >&6
4900 echo "$as_me:4900: checking if you want to build a separate tic library" >&5
4901 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4903 # Check whether --with-ticlib or --without-ticlib was given.
4904 if test "${with_ticlib+set}" = set; then
4905 withval="$with_ticlib"
4906 with_ticlib=$withval
4910 echo "$as_me:4910: result: $with_ticlib" >&5
4911 echo "${ECHO_T}$with_ticlib" >&6
4913 ### Checks for special libraries, must be done up-front.
4916 echo "$as_me:4916: checking if you want to link with the GPM mouse library" >&5
4917 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4919 # Check whether --with-gpm or --without-gpm was given.
4920 if test "${with_gpm+set}" = set; then
4926 echo "$as_me:4926: result: $with_gpm" >&5
4927 echo "${ECHO_T}$with_gpm" >&6
4929 if test "$with_gpm" != no ; then
4930 echo "$as_me:4930: checking for gpm.h" >&5
4931 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4932 if test "${ac_cv_header_gpm_h+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"
4940 if { (eval echo "$as_me:4940: \"$ac_cpp conftest.$ac_ext\"") >&5
4941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943 egrep -v '^ *\+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 echo "$as_me:4946: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null; then
4948 if test -s conftest.err; then
4949 ac_cpp_err=$ac_c_preproc_warn_flag
4956 if test -z "$ac_cpp_err"; then
4957 ac_cv_header_gpm_h=yes
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 ac_cv_header_gpm_h=no
4963 rm -f conftest.err conftest.$ac_ext
4965 echo "$as_me:4965: result: $ac_cv_header_gpm_h" >&5
4966 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4967 if test $ac_cv_header_gpm_h = yes; then
4969 cat >>confdefs.h <<\EOF
4970 #define HAVE_GPM_H 1
4973 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4974 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4976 echo "${as_me:-configure}:4976: testing assuming we really have GPM library ..." 1>&5
4978 cat >>confdefs.h <<\EOF
4979 #define HAVE_LIBGPM 1
4983 echo "$as_me:4983: checking for Gpm_Open in -lgpm" >&5
4984 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4985 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 ac_check_lib_save_LIBS=$LIBS
4990 cat >conftest.$ac_ext <<_ACEOF
4991 #line 4991 "configure"
4992 #include "confdefs.h"
4994 /* Override any gcc2 internal prototype to avoid an error. */
4998 /* We use char because int might match the return type of a gcc2
4999 builtin and then its argument prototype would still apply. */
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:5010: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>&5
5013 echo "$as_me:5013: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -s conftest$ac_exeext'
5016 { (eval echo "$as_me:5016: \"$ac_try\"") >&5
5019 echo "$as_me:5019: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 ac_cv_lib_gpm_Gpm_Open=yes
5023 echo "$as_me: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5025 ac_cv_lib_gpm_Gpm_Open=no
5027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5028 LIBS=$ac_check_lib_save_LIBS
5030 echo "$as_me:5030: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5031 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5032 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5036 { { echo "$as_me:5036: error: Cannot link with GPM library" >&5
5037 echo "$as_me: error: Cannot link with GPM library" >&2;}
5038 { (exit 1); exit 1; }; }
5046 test "$with_gpm" != maybe && { echo "$as_me:5046: WARNING: Cannot find GPM header" >&5
5047 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5054 if test "$with_gpm" != no ; then
5055 echo "$as_me:5055: checking if you want to load GPM dynamically" >&5
5056 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5058 # Check whether --with-dlsym or --without-dlsym was given.
5059 if test "${with_dlsym+set}" = set; then
5060 withval="$with_dlsym"
5065 echo "$as_me:5065: result: $with_dlsym" >&5
5066 echo "${ECHO_T}$with_dlsym" >&6
5067 if test "$with_dlsym" = yes ; then
5070 echo "$as_me:5070: checking for dlsym" >&5
5071 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5072 if test "${ac_cv_func_dlsym+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line 5076 "configure"
5077 #include "confdefs.h"
5078 /* System header to define __stub macros and hopefully few prototypes,
5079 which can conflict with char dlsym (); below. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5093 /* The GNU C library defines this for functions which it implements
5094 to always fail with ENOSYS. Some functions are actually named
5095 something starting with __ and the normal name is an alias. */
5096 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (eval echo "$as_me:5107: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>&5
5110 echo "$as_me:5110: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:5113: \"$ac_try\"") >&5
5116 echo "$as_me:5116: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_func_dlsym=yes
5120 echo "$as_me: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5126 echo "$as_me:5126: result: $ac_cv_func_dlsym" >&5
5127 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5128 if test $ac_cv_func_dlsym = yes; then
5133 echo "$as_me:5133: checking for dlsym in -ldl" >&5
5134 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5135 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_check_lib_save_LIBS=$LIBS
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line 5141 "configure"
5142 #include "confdefs.h"
5144 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:5160: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>&5
5163 echo "$as_me:5163: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest$ac_exeext'
5166 { (eval echo "$as_me:5166: \"$ac_try\"") >&5
5169 echo "$as_me:5169: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_lib_dl_dlsym=yes
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 ac_cv_lib_dl_dlsym=no
5177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5178 LIBS=$ac_check_lib_save_LIBS
5180 echo "$as_me:5180: result: $ac_cv_lib_dl_dlsym" >&5
5181 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5182 if test $ac_cv_lib_dl_dlsym = yes; then
5190 if test "$cf_have_dlsym" = yes ; then
5191 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5193 echo "$as_me:5193: checking whether able to link to dl*() functions" >&5
5194 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line 5196 "configure"
5197 #include "confdefs.h"
5204 if ((obj = dlopen("filename", 0)) != 0) {
5205 if (dlsym(obj, "symbolname") == 0) {
5213 rm -f conftest.$ac_objext conftest$ac_exeext
5214 if { (eval echo "$as_me:5214: \"$ac_link\"") >&5
5215 (eval $ac_link) 2>&5
5217 echo "$as_me:5217: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest$ac_exeext'
5220 { (eval echo "$as_me:5220: \"$ac_try\"") >&5
5223 echo "$as_me:5223: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5226 cat >>confdefs.h <<\EOF
5227 #define HAVE_LIBDL 1
5231 echo "$as_me: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5234 { { echo "$as_me:5234: error: Cannot link test program for libdl" >&5
5235 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5236 { (exit 1); exit 1; }; }
5238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5239 echo "$as_me:5239: result: ok" >&5
5240 echo "${ECHO_T}ok" >&6
5242 { { echo "$as_me:5242: error: Cannot find dlsym function" >&5
5243 echo "$as_me: error: Cannot find dlsym function" >&2;}
5244 { (exit 1); exit 1; }; }
5247 if test "$with_gpm" != yes ; then
5248 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5250 echo "${as_me:-configure}:5250: testing assuming soname for gpm is $with_gpm ..." 1>&5
5252 cf_cv_gpm_soname="$with_gpm"
5255 echo "$as_me:5255: checking for soname of gpm library" >&5
5256 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5257 if test "${cf_cv_gpm_soname+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 cf_cv_gpm_soname=unknown
5262 if test "$cross_compiling" != yes ; then
5263 cat >conftest.$ac_ext <<CF_EOF
5267 if (Gpm_Open(0,0)) Gpm_Close();
5268 ${cf_cv_main_return:-return}(0);
5271 cf_save_LIBS="$LIBS"
5273 if { (eval echo "$as_me:5273: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>&5
5276 echo "$as_me:5276: \$? = $ac_status" >&5
5277 (exit $ac_status); } ; then
5278 if { (eval echo "$as_me:5278: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>&5
5281 echo "$as_me:5281: \$? = $ac_status" >&5
5282 (exit $ac_status); } ; then
5283 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5284 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5288 LIBS="$cf_save_LIBS"
5292 echo "$as_me:5292: result: $cf_cv_gpm_soname" >&5
5293 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5296 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5297 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5300 SHLIB_LIST="-ldl $SHLIB_LIST"
5302 SHLIB_LIST="-lgpm $SHLIB_LIST"
5303 TEST_LIBS="-lgpm $TEST_LIBS"
5305 cat >>confdefs.h <<\EOF
5306 #define HAVE_LIBGPM 1
5309 echo "$as_me:5309: checking for Gpm_Wgetch in -lgpm" >&5
5310 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5311 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 ac_check_lib_save_LIBS=$LIBS
5316 cat >conftest.$ac_ext <<_ACEOF
5317 #line 5317 "configure"
5318 #include "confdefs.h"
5320 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:5336: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>&5
5339 echo "$as_me:5339: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:5342: \"$ac_try\"") >&5
5345 echo "$as_me:5345: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_lib_gpm_Gpm_Wgetch=yes
5349 echo "$as_me: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 ac_cv_lib_gpm_Gpm_Wgetch=no
5353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5356 echo "$as_me:5356: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5357 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5358 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5360 echo "$as_me:5360: checking if GPM is weakly bound to curses library" >&5
5361 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5362 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 cf_cv_check_gpm_wgetch=unknown
5367 if test "$cross_compiling" != yes ; then
5369 cat >conftest.$ac_ext <<CF_EOF
5374 ${cf_cv_main_return:-return}(0);
5378 cf_save_LIBS="$LIBS"
5379 # This only works if we can look at the symbol table. If a shared
5380 # library is stripped for install, we cannot use that. So we're forced
5381 # to rely on the static library, noting that some packagers may not
5383 LIBS="-static -lgpm -dynamic $LIBS"
5384 if { (eval echo "$as_me:5384: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>&5
5387 echo "$as_me:5387: \$? = $ac_status" >&5
5388 (exit $ac_status); } ; then
5389 if { (eval echo "$as_me:5389: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>&5
5392 echo "$as_me:5392: \$? = $ac_status" >&5
5393 (exit $ac_status); } ; then
5394 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5395 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5396 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5400 LIBS="$cf_save_LIBS"
5404 echo "$as_me:5404: result: $cf_cv_check_gpm_wgetch" >&5
5405 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5407 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5408 { echo "$as_me:5408: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5409 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5416 # not everyone has "test -c"
5417 if test -c /dev/sysmouse 2>/dev/null ; then
5418 echo "$as_me:5418: checking if you want to use sysmouse" >&5
5419 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5421 # Check whether --with-sysmouse or --without-sysmouse was given.
5422 if test "${with_sysmouse+set}" = set; then
5423 withval="$with_sysmouse"
5424 cf_with_sysmouse=$withval
5426 cf_with_sysmouse=maybe
5428 if test "$cf_with_sysmouse" != no ; then
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line 5430 "configure"
5431 #include "confdefs.h"
5433 #include <osreldate.h>
5434 #if (__FreeBSD_version >= 400017)
5435 #include <sys/consio.h>
5436 #include <sys/fbio.h>
5438 #include <machine/console.h>
5445 struct mouse_info the_mouse;
5446 ioctl(0, CONS_MOUSECTL, &the_mouse);
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:5453: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>&5
5456 echo "$as_me:5456: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:5459: \"$ac_try\"") >&5
5462 echo "$as_me:5462: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 cf_with_sysmouse=yes
5466 echo "$as_me: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5470 rm -f conftest.$ac_objext conftest.$ac_ext
5472 echo "$as_me:5472: result: $cf_with_sysmouse" >&5
5473 echo "${ECHO_T}$cf_with_sysmouse" >&6
5474 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5475 #define USE_SYSMOUSE 1
5480 if test X"$CC_G_OPT" = X"" ; then
5482 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5485 if test X"$CXX_G_OPT" = X"" ; then
5487 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5490 echo "$as_me:5490: checking for default loader flags" >&5
5491 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5492 case $DFT_LWR_MODEL in
5493 libtool) LD_MODEL='' ;;
5494 normal) LD_MODEL='' ;;
5495 debug) LD_MODEL=$CC_G_OPT ;;
5496 profile) LD_MODEL='-pg';;
5497 shared) LD_MODEL='' ;;
5499 echo "$as_me:5499: result: $LD_MODEL" >&5
5500 echo "${ECHO_T}$LD_MODEL" >&6
5502 case $DFT_LWR_MODEL in
5505 echo "$as_me:5505: checking if rpath option should be used" >&5
5506 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5508 # Check whether --enable-rpath or --disable-rpath was given.
5509 if test "${enable_rpath+set}" = set; then
5510 enableval="$enable_rpath"
5511 cf_cv_enable_rpath=$enableval
5513 cf_cv_enable_rpath=no
5515 echo "$as_me:5515: result: $cf_cv_enable_rpath" >&5
5516 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5518 echo "$as_me:5518: checking if shared libraries should be relinked during install" >&5
5519 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5521 # Check whether --enable-relink or --disable-relink was given.
5522 if test "${enable_relink+set}" = set; then
5523 enableval="$enable_relink"
5524 cf_cv_do_relink=$enableval
5528 echo "$as_me:5528: result: $cf_cv_do_relink" >&5
5529 echo "${ECHO_T}$cf_cv_do_relink" >&6
5534 echo "$as_me:5534: checking for an rpath option" >&5
5535 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5536 case $cf_cv_system_name in #(vi
5538 if test "$GCC" = yes; then
5539 LD_RPATH_OPT="-Wl,-rpath,"
5541 LD_RPATH_OPT="-rpath "
5544 linux*|gnu*|k*bsd*-gnu) #(vi
5545 LD_RPATH_OPT="-Wl,-rpath,"
5547 openbsd[2-9].*|mirbsd*) #(vi
5548 LD_RPATH_OPT="-Wl,-rpath,"
5550 dragonfly*|freebsd*) #(vi
5551 LD_RPATH_OPT="-rpath "
5554 LD_RPATH_OPT="-Wl,-rpath,"
5557 LD_RPATH_OPT="-rpath "
5565 echo "$as_me:5565: result: $LD_RPATH_OPT" >&5
5566 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5568 case "x$LD_RPATH_OPT" in #(vi
5570 echo "$as_me:5570: checking if we need a space after rpath option" >&5
5571 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5572 cf_save_LIBS="$LIBS"
5573 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line 5575 "configure"
5576 #include "confdefs.h"
5586 rm -f conftest.$ac_objext conftest$ac_exeext
5587 if { (eval echo "$as_me:5587: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5590 echo "$as_me:5590: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:5593: \"$ac_try\"") >&5
5596 echo "$as_me:5596: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5600 echo "$as_me: failed program was:" >&5
5601 cat conftest.$ac_ext >&5
5604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5605 LIBS="$cf_save_LIBS"
5606 echo "$as_me:5606: result: $cf_rpath_space" >&5
5607 echo "${ECHO_T}$cf_rpath_space" >&6
5608 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5615 INSTALL_LIB="-m 644"
5617 cf_cv_do_symlinks=no
5619 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5621 echo "$as_me:5621: checking if release/abi version should be used for shared libs" >&5
5622 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5624 # Check whether --with-shlib-version or --without-shlib-version was given.
5625 if test "${with_shlib_version+set}" = set; then
5626 withval="$with_shlib_version"
5627 test -z "$withval" && withval=auto
5628 case $withval in #(vi
5630 cf_cv_shlib_version=auto
5632 rel|abi|auto|no) #(vi
5633 cf_cv_shlib_version=$withval
5636 { { echo "$as_me:5636: error: option value must be one of: rel, abi, auto or no" >&5
5637 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5638 { (exit 1); exit 1; }; }
5643 cf_cv_shlib_version=auto
5645 echo "$as_me:5645: result: $cf_cv_shlib_version" >&5
5646 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5650 # Some less-capable ports of gcc support only -fpic
5652 if test "$GCC" = yes
5654 echo "$as_me:5654: checking which $CC option to use" >&5
5655 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5656 cf_save_CFLAGS="$CFLAGS"
5657 for CC_SHARED_OPTS in -fPIC -fpic ''
5659 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5660 cat >conftest.$ac_ext <<_ACEOF
5661 #line 5661 "configure"
5662 #include "confdefs.h"
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:5673: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:5676: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:5679: \"$ac_try\"") >&5
5682 echo "$as_me:5682: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 echo "$as_me: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5689 rm -f conftest.$ac_objext conftest.$ac_ext
5691 echo "$as_me:5691: result: $CC_SHARED_OPTS" >&5
5692 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5693 CFLAGS="$cf_save_CFLAGS"
5696 cf_cv_shlib_version_infix=no
5698 case $cf_cv_system_name in #(vi
5699 aix4.3-9*|aix[5-7]*) #(vi
5700 if test "$GCC" = yes; then
5702 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5704 # CC_SHARED_OPTS='-qpic=large -G'
5705 # perhaps "-bM:SRE -bnoentry -bexpall"
5706 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5710 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5714 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5715 cf_cv_shlib_version=cygdll
5716 cf_cv_shlib_version_infix=cygdll
5717 cat >mk_shared_lib.sh <<-CF_EOF
5720 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5723 Linking shared library
5724 ** SHARED_LIB \$SHARED_LIB
5725 ** IMPORT_LIB \$IMPORT_LIB
5727 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5729 chmod +x mk_shared_lib.sh
5732 EXTRA_CFLAGS="-no-cpp-precomp"
5733 CC_SHARED_OPTS="-dynamic"
5734 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5735 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5736 cf_cv_shlib_version_infix=yes
5737 echo "$as_me:5737: checking if ld -search_paths_first works" >&5
5738 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5739 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cf_save_LDFLAGS=$LDFLAGS
5744 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line 5746 "configure"
5747 #include "confdefs.h"
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:5758: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:5764: \"$ac_try\"") >&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 cf_cv_ldflags_search_paths_first=yes
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5773 cf_cv_ldflags_search_paths_first=no
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 LDFLAGS=$cf_save_LDFLAGS
5778 echo "$as_me:5778: result: $cf_cv_ldflags_search_paths_first" >&5
5779 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5780 if test $cf_cv_ldflags_search_paths_first = yes; then
5781 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5785 # (tested with gcc 2.7.2 -- I don't have c89)
5786 if test "$GCC" = yes; then
5787 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5790 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5792 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5793 # HP-UX shared libraries must be executable, and should be
5794 # readonly to exploit a quirk in the memory manager.
5795 INSTALL_LIB="-m 555"
5798 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5799 if test "$cf_cv_shlib_version" = rel; then
5800 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5802 cf_shared_soname='`basename `'
5805 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5808 if test "$cf_cv_enable_rpath" = yes ; then
5809 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5811 # tested with IRIX 5.2 and 'cc'.
5812 if test "$GCC" != yes; then
5813 CC_SHARED_OPTS='-KPIC'
5814 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5816 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5818 cf_cv_rm_so_locs=yes
5820 linux*|gnu*|k*bsd*-gnu) #(vi
5821 if test "$DFT_LWR_MODEL" = "shared" ; then
5822 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5823 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5825 if test "$cf_cv_enable_rpath" = yes ; then
5826 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5829 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5830 if test "$cf_cv_shlib_version" = rel; then
5831 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5833 cf_cv_shared_soname='`basename $@`'
5836 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5838 openbsd[2-9].*|mirbsd*) #(vi
5839 if test "$DFT_LWR_MODEL" = "shared" ; then
5840 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5841 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5843 if test "$cf_cv_enable_rpath" = yes ; then
5844 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5846 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5848 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5849 if test "$cf_cv_shlib_version" = rel; then
5850 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5852 cf_cv_shared_soname='`basename $@`'
5855 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5857 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5858 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5859 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5860 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5862 dragonfly*|freebsd*) #(vi
5863 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5864 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5865 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5866 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5867 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5870 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5871 if test "$cf_cv_shlib_version" = rel; then
5872 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5874 cf_cv_shared_soname='`basename $@`'
5877 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5880 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5881 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5882 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5883 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5884 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5885 if test "$cf_cv_shlib_version" = auto; then
5886 if test -f /usr/libexec/ld.elf_so; then
5887 cf_cv_shlib_version=abi
5889 cf_cv_shlib_version=rel
5893 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5894 if test "$cf_cv_shlib_version" = rel; then
5895 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5897 cf_cv_shared_soname='`basename $@`'
5900 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5902 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5906 # tested with OSF/1 V3.2 and 'cc'
5907 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5908 # link with shared libs).
5909 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5910 case $host_os in #(vi
5912 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5915 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5916 if test "$DFT_LWR_MODEL" = "shared" ; then
5917 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5918 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5920 cf_cv_rm_so_locs=yes
5922 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5923 # tested with osr5.0.5
5924 if test "$GCC" != yes; then
5925 CC_SHARED_OPTS='-belf -KPIC'
5927 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5928 if test "$cf_cv_enable_rpath" = yes ; then
5929 # only way is to set LD_RUN_PATH but no switch for it
5932 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5933 LINK_PROGS='LD_RUN_PATH=${libdir}'
5934 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5937 # tested with SunOS 4.1.1 and gcc 2.7.0
5938 if test "$GCC" != yes; then
5939 CC_SHARED_OPTS='-KPIC'
5941 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5942 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5945 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5946 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5947 if test "$DFT_LWR_MODEL" = "shared" ; then
5948 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5949 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5951 if test "$cf_cv_enable_rpath" = yes ; then
5952 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5955 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5956 if test "$cf_cv_shlib_version" = rel; then
5957 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5959 cf_cv_shared_soname='`basename $@`'
5962 if test "$GCC" != yes; then
5963 cf_save_CFLAGS="$CFLAGS"
5964 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5966 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line 5968 "configure"
5969 #include "confdefs.h"
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:5980: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (eval echo "$as_me:5986: \"$ac_try\"") >&5
5989 echo "$as_me:5989: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5993 echo "$as_me: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5996 rm -f conftest.$ac_objext conftest.$ac_ext
5998 CFLAGS="$cf_save_CFLAGS"
5999 CC_SHARED_OPTS=$cf_shared_opts
6000 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6002 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6005 sysv5uw7*|unix_sv*) #(vi
6006 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6007 if test "$GCC" != yes; then
6008 CC_SHARED_OPTS='-KPIC'
6010 MK_SHARED_LIB='${LD} -d y -G -o $@'
6013 CC_SHARED_OPTS='unknown'
6014 MK_SHARED_LIB='echo unknown'
6018 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6019 case "$cf_cv_shlib_version" in #(vi
6021 case "$MK_SHARED_LIB" in #(vi
6023 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6026 { echo "$as_me:6026: WARNING: ignored --with-shlib-version" >&5
6027 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6033 # RPATH_LIST is a colon-separated list of directories
6034 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6035 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6037 if test "$CC_SHARED_OPTS" = "unknown"; then
6038 for model in $cf_list_models; do
6039 if test "$model" = "shared"; then
6040 { { echo "$as_me:6040: error: Shared libraries are not supported in this version" >&5
6041 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6042 { (exit 1); exit 1; }; }
6047 ### If we're building with rpath, try to link non-standard libs that way too.
6048 if test "$DFT_LWR_MODEL" = "shared"; then
6050 echo "$as_me:6050: checking if rpath-hack should be disabled" >&5
6051 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6053 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6054 if test "${enable_rpath_hack+set}" = set; then
6055 enableval="$enable_rpath_hack"
6056 test "$enableval" != no && enableval=yes
6057 if test "$enableval" != "yes" ; then
6058 cf_disable_rpath_hack=yes
6060 cf_disable_rpath_hack=no
6064 cf_disable_rpath_hack=no
6067 echo "$as_me:6067: result: $cf_disable_rpath_hack" >&5
6068 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6069 if test "$cf_disable_rpath_hack" = no ; then
6071 echo "$as_me:6071: checking for updated LDFLAGS" >&5
6072 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6073 if test -n "$LD_RPATH_OPT" ; then
6074 echo "$as_me:6074: result: maybe" >&5
6075 echo "${ECHO_T}maybe" >&6
6079 # Extract the first word of "$ac_prog", so it can be a program name with args.
6080 set dummy $ac_prog; ac_word=$2
6081 echo "$as_me:6081: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 if test -n "$cf_ldd_prog"; then
6087 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6089 ac_save_IFS=$IFS; IFS=$ac_path_separator
6091 for ac_dir in $ac_dummy; do
6093 test -z "$ac_dir" && ac_dir=.
6094 $as_executable_p "$ac_dir/$ac_word" || continue
6095 ac_cv_prog_cf_ldd_prog="$ac_prog"
6096 echo "$as_me:6096: found $ac_dir/$ac_word" >&5
6102 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6103 if test -n "$cf_ldd_prog"; then
6104 echo "$as_me:6104: result: $cf_ldd_prog" >&5
6105 echo "${ECHO_T}$cf_ldd_prog" >&6
6107 echo "$as_me:6107: result: no" >&5
6108 echo "${ECHO_T}no" >&6
6111 test -n "$cf_ldd_prog" && break
6113 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6115 cf_rpath_list="/usr/lib /lib"
6116 if test "$cf_ldd_prog" != no
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line 6121 "configure"
6122 #include "confdefs.h"
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:6133: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6136 echo "$as_me:6136: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:6139: \"$ac_try\"") >&5
6142 echo "$as_me:6142: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6145 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6147 echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6152 # If we passed the link-test, but get a "not found" on a given library,
6153 # this could be due to inept reconfiguration of gcc to make it only
6154 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6155 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6156 # /usr/local libraries.
6157 if test -n "$cf_rpath_oops"
6159 for cf_rpath_src in $cf_rpath_oops
6161 for cf_rpath_dir in \
6166 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6168 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6170 echo "${as_me:-configure}:6170: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6172 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6180 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6182 echo "${as_me:-configure}:6182: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6184 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6186 echo "${as_me:-configure}:6186: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6189 for cf_rpath_src in $LDFLAGS
6191 case $cf_rpath_src in #(vi
6194 # check if this refers to a directory which we will ignore
6196 if test -n "$cf_rpath_list"
6198 for cf_rpath_item in $cf_rpath_list
6200 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6208 if test "$cf_rpath_skip" = no
6210 # transform the option
6211 if test "$LD_RPATH_OPT" = "-R " ; then
6212 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6214 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6217 # if we have not already added this, add it now
6218 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6219 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6221 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6223 echo "${as_me:-configure}:6223: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6225 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6230 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6232 LDFLAGS=$cf_rpath_dst
6234 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6236 echo "${as_me:-configure}:6236: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6238 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6240 echo "${as_me:-configure}:6240: testing ...checking LIBS $LIBS ..." 1>&5
6243 for cf_rpath_src in $LIBS
6245 case $cf_rpath_src in #(vi
6248 # check if this refers to a directory which we will ignore
6250 if test -n "$cf_rpath_list"
6252 for cf_rpath_item in $cf_rpath_list
6254 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6262 if test "$cf_rpath_skip" = no
6264 # transform the option
6265 if test "$LD_RPATH_OPT" = "-R " ; then
6266 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6268 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6271 # if we have not already added this, add it now
6272 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6273 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6275 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6277 echo "${as_me:-configure}:6277: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6279 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6284 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6288 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6290 echo "${as_me:-configure}:6290: testing ...checked LIBS $LIBS ..." 1>&5
6292 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6294 echo "${as_me:-configure}:6294: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6302 ###############################################################################
6304 ### use option --disable-overwrite to leave out the link to -lcurses
6305 echo "$as_me:6305: checking if you wish to install ncurses overwriting curses" >&5
6306 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6308 # Check whether --enable-overwrite or --disable-overwrite was given.
6309 if test "${enable_overwrite+set}" = set; then
6310 enableval="$enable_overwrite"
6311 with_overwrite=$enableval
6313 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6315 echo "$as_me:6315: result: $with_overwrite" >&5
6316 echo "${ECHO_T}$with_overwrite" >&6
6318 echo "$as_me:6318: checking if external terminfo-database is used" >&5
6319 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6321 # Check whether --enable-database or --disable-database was given.
6322 if test "${enable_database+set}" = set; then
6323 enableval="$enable_database"
6324 use_database=$enableval
6328 echo "$as_me:6328: result: $use_database" >&5
6329 echo "${ECHO_T}$use_database" >&6
6331 case $host_os in #(vi
6333 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6336 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6340 if test "$use_database" != no ; then
6341 cat >>confdefs.h <<\EOF
6342 #define USE_DATABASE 1
6345 echo "$as_me:6345: checking which terminfo source-file will be installed" >&5
6346 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6348 # Check whether --with-database or --without-database was given.
6349 if test "${with_database+set}" = set; then
6350 withval="$with_database"
6351 TERMINFO_SRC=$withval
6353 echo "$as_me:6353: result: $TERMINFO_SRC" >&5
6354 echo "${ECHO_T}$TERMINFO_SRC" >&6
6356 echo "$as_me:6356: checking whether to use hashed database instead of directory/tree" >&5
6357 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6359 # Check whether --with-hashed-db or --without-hashed-db was given.
6360 if test "${with_hashed_db+set}" = set; then
6361 withval="$with_hashed_db"
6366 echo "$as_me:6366: result: $with_hashed_db" >&5
6367 echo "${ECHO_T}$with_hashed_db" >&6
6372 echo "$as_me:6372: checking for list of fallback descriptions" >&5
6373 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6375 # Check whether --with-fallbacks or --without-fallbacks was given.
6376 if test "${with_fallbacks+set}" = set; then
6377 withval="$with_fallbacks"
6378 with_fallback=$withval
6382 echo "$as_me:6382: result: $with_fallback" >&5
6383 echo "${ECHO_T}$with_fallback" >&6
6384 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6386 echo "$as_me:6386: checking if you want modern xterm or antique" >&5
6387 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6389 # Check whether --with-xterm-new or --without-xterm-new was given.
6390 if test "${with_xterm_new+set}" = set; then
6391 withval="$with_xterm_new"
6392 with_xterm_new=$withval
6396 case $with_xterm_new in
6397 no) with_xterm_new=xterm-old;;
6398 *) with_xterm_new=xterm-new;;
6400 echo "$as_me:6400: result: $with_xterm_new" >&5
6401 echo "${ECHO_T}$with_xterm_new" >&6
6402 WHICH_XTERM=$with_xterm_new
6405 if test "$use_database" = no ; then
6406 TERMINFO="${datadir}/terminfo"
6410 echo "$as_me:6410: checking for list of terminfo directories" >&5
6411 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6413 case $cf_cv_system_name in
6414 os2*) PATH_SEPARATOR=';' ;;
6415 *) PATH_SEPARATOR=':' ;;
6418 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6419 if test "${with_terminfo_dirs+set}" = set; then
6420 withval="$with_terminfo_dirs"
6423 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6425 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6427 for cf_src_path in $withval
6430 if test "x$prefix" != xNONE; then
6431 cf_path_syntax="$prefix"
6433 cf_path_syntax="$ac_default_prefix"
6436 case ".$cf_src_path" in #(vi
6437 .\$\(*\)*|.\'*\'*) #(vi
6441 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6444 eval cf_src_path="$cf_src_path"
6445 case ".$cf_src_path" in #(vi
6447 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6452 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6455 { { echo "$as_me:6455: error: expected a pathname, not \"$cf_src_path\"" >&5
6456 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6457 { (exit 1); exit 1; }; }
6461 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6462 cf_dst_path="${cf_dst_path}${cf_src_path}"
6466 eval 'TERMINFO_DIRS="$cf_dst_path"'
6468 echo "$as_me:6468: result: $TERMINFO_DIRS" >&5
6469 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6470 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6471 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6474 echo "$as_me:6474: checking for default terminfo directory" >&5
6475 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6477 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6478 if test "${with_default_terminfo_dir+set}" = set; then
6479 withval="$with_default_terminfo_dir"
6482 withval="${TERMINFO:-${datadir}/terminfo}"
6483 fi; if test -n "${datadir}/terminfo" ; then
6485 if test "x$prefix" != xNONE; then
6486 cf_path_syntax="$prefix"
6488 cf_path_syntax="$ac_default_prefix"
6491 case ".$withval" in #(vi
6492 .\$\(*\)*|.\'*\'*) #(vi
6496 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6499 eval withval="$withval"
6500 case ".$withval" in #(vi
6502 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6507 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6510 { { echo "$as_me:6510: error: expected a pathname, not \"$withval\"" >&5
6511 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6512 { (exit 1); exit 1; }; }
6519 echo "$as_me:6519: result: $TERMINFO" >&5
6520 echo "${ECHO_T}$TERMINFO" >&6
6521 cat >>confdefs.h <<EOF
6522 #define TERMINFO "$TERMINFO"
6527 ### use option --disable-big-core to make tic run on small machines
6528 ### We need 4Mb, check if we can allocate 50% more than that.
6529 echo "$as_me:6529: checking if big-core option selected" >&5
6530 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6532 # Check whether --enable-big-core or --disable-big-core was given.
6533 if test "${enable_big_core+set}" = set; then
6534 enableval="$enable_big_core"
6535 with_big_core=$enableval
6537 if test "$cross_compiling" = yes; then
6540 cat >conftest.$ac_ext <<_ACEOF
6541 #line 6541 "configure"
6542 #include "confdefs.h"
6547 unsigned long n = 6000000L;
6548 char *s = malloc(n);
6551 ${cf_cv_main_return:-return}(s == 0);
6554 rm -f conftest$ac_exeext
6555 if { (eval echo "$as_me:6555: \"$ac_link\"") >&5
6556 (eval $ac_link) 2>&5
6558 echo "$as_me:6558: \$? = $ac_status" >&5
6559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6560 { (eval echo "$as_me:6560: \"$ac_try\"") >&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6567 echo "$as_me: program exited with status $ac_status" >&5
6568 echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6572 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6575 echo "$as_me:6575: result: $with_big_core" >&5
6576 echo "${ECHO_T}$with_big_core" >&6
6577 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6578 #define HAVE_BIG_CORE 1
6581 ### ISO C only guarantees 512-char strings, we have tables which load faster
6582 ### when constructed using "big" strings. More than the C compiler, the awk
6583 ### program is a limit on most vendor UNIX systems. Check that we can build.
6584 echo "$as_me:6584: checking if big-strings option selected" >&5
6585 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6587 # Check whether --enable-big-strings or --disable-big-strings was given.
6588 if test "${enable_big_strings+set}" = set; then
6589 enableval="$enable_big_strings"
6590 with_big_strings=$enableval
6595 eval with_big_strings=no
6598 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
6599 | $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
6600 eval with_big_strings=yes
6602 eval with_big_strings=no
6608 echo "$as_me:6608: result: $with_big_strings" >&5
6609 echo "${ECHO_T}$with_big_strings" >&6
6612 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6614 ### use option --enable-termcap to compile in the termcap fallback support
6615 echo "$as_me:6615: checking if you want termcap-fallback support" >&5
6616 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6618 # Check whether --enable-termcap or --disable-termcap was given.
6619 if test "${enable_termcap+set}" = set; then
6620 enableval="$enable_termcap"
6621 with_termcap=$enableval
6625 echo "$as_me:6625: result: $with_termcap" >&5
6626 echo "${ECHO_T}$with_termcap" >&6
6628 if test "$with_termcap" != "yes" ; then
6629 if test "$use_database" = no ; then
6630 if test -z "$with_fallback" ; then
6631 { { echo "$as_me:6631: error: You have disabled the database w/o specifying fallbacks" >&5
6632 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6633 { (exit 1); exit 1; }; }
6636 cat >>confdefs.h <<\EOF
6637 #define PURE_TERMINFO 1
6642 if test "$with_ticlib" != no ; then
6643 { { echo "$as_me:6643: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6644 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6645 { (exit 1); exit 1; }; }
6648 cat >>confdefs.h <<\EOF
6649 #define USE_TERMCAP 1
6652 echo "$as_me:6652: checking for list of termcap files" >&5
6653 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6655 # Check whether --with-termpath or --without-termpath was given.
6656 if test "${with_termpath+set}" = set; then
6657 withval="$with_termpath"
6660 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6662 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6664 for cf_src_path in $withval
6667 if test "x$prefix" != xNONE; then
6668 cf_path_syntax="$prefix"
6670 cf_path_syntax="$ac_default_prefix"
6673 case ".$cf_src_path" in #(vi
6674 .\$\(*\)*|.\'*\'*) #(vi
6678 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6681 eval cf_src_path="$cf_src_path"
6682 case ".$cf_src_path" in #(vi
6684 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6689 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6692 { { echo "$as_me:6692: error: expected a pathname, not \"$cf_src_path\"" >&5
6693 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6694 { (exit 1); exit 1; }; }
6698 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6699 cf_dst_path="${cf_dst_path}${cf_src_path}"
6703 eval 'TERMPATH="$cf_dst_path"'
6705 echo "$as_me:6705: result: $TERMPATH" >&5
6706 echo "${ECHO_T}$TERMPATH" >&6
6707 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6708 #define TERMPATH "$TERMPATH"
6711 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6712 echo "$as_me:6712: checking if fast termcap-loader is needed" >&5
6713 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6715 # Check whether --enable-getcap or --disable-getcap was given.
6716 if test "${enable_getcap+set}" = set; then
6717 enableval="$enable_getcap"
6718 with_getcap=$enableval
6722 echo "$as_me:6722: result: $with_getcap" >&5
6723 echo "${ECHO_T}$with_getcap" >&6
6724 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6725 #define USE_GETCAP 1
6728 echo "$as_me:6728: checking if translated termcaps will be cached in ~/.terminfo" >&5
6729 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6731 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6732 if test "${enable_getcap_cache+set}" = set; then
6733 enableval="$enable_getcap_cache"
6734 with_getcap_cache=$enableval
6736 with_getcap_cache=no
6738 echo "$as_me:6738: result: $with_getcap_cache" >&5
6739 echo "${ECHO_T}$with_getcap_cache" >&6
6740 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6741 #define USE_GETCAP_CACHE 1
6746 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6747 echo "$as_me:6747: checking if ~/.terminfo is wanted" >&5
6748 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6750 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6751 if test "${enable_home_terminfo+set}" = set; then
6752 enableval="$enable_home_terminfo"
6753 with_home_terminfo=$enableval
6755 with_home_terminfo=yes
6757 echo "$as_me:6757: result: $with_home_terminfo" >&5
6758 echo "${ECHO_T}$with_home_terminfo" >&6
6759 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6760 #define USE_HOME_TERMINFO 1
6763 echo "$as_me:6763: checking if you want to use restricted environment when running as root" >&5
6764 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6766 # Check whether --enable-root-environ or --disable-root-environ was given.
6767 if test "${enable_root_environ+set}" = set; then
6768 enableval="$enable_root_environ"
6769 with_root_environ=$enableval
6771 with_root_environ=yes
6773 echo "$as_me:6773: result: $with_root_environ" >&5
6774 echo "${ECHO_T}$with_root_environ" >&6
6775 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6776 #define USE_ROOT_ENVIRON 1
6779 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6780 ### to reduce storage requirements for the terminfo database.
6786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6787 echo "$as_me:6787: checking for $ac_func" >&5
6788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6789 if eval "test \"\${$as_ac_var+set}\" = set"; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6793 #line 6793 "configure"
6794 #include "confdefs.h"
6795 /* System header to define __stub macros and hopefully few prototypes,
6796 which can conflict with char $ac_func (); below. */
6798 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (eval echo "$as_me:6824: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>&5
6827 echo "$as_me:6827: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -s conftest$ac_exeext'
6830 { (eval echo "$as_me:6830: \"$ac_try\"") >&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 eval "$as_ac_var=yes"
6837 echo "$as_me: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 eval "$as_ac_var=no"
6841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6843 echo "$as_me:6843: result: `eval echo '${'$as_ac_var'}'`" >&5
6844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6845 if test `eval echo '${'$as_ac_var'}'` = yes; then
6846 cat >>confdefs.h <<EOF
6847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6853 if test "$cross_compiling" = yes ; then
6859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6860 echo "$as_me:6860: checking for $ac_func" >&5
6861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6862 if eval "test \"\${$as_ac_var+set}\" = set"; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 #line 6866 "configure"
6867 #include "confdefs.h"
6868 /* System header to define __stub macros and hopefully few prototypes,
6869 which can conflict with char $ac_func (); below. */
6871 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6896 rm -f conftest.$ac_objext conftest$ac_exeext
6897 if { (eval echo "$as_me:6897: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6900 echo "$as_me:6900: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:6903: \"$ac_try\"") >&5
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 eval "$as_ac_var=yes"
6910 echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 eval "$as_ac_var=no"
6914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6916 echo "$as_me:6916: result: `eval echo '${'$as_ac_var'}'`" >&5
6917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6918 if test `eval echo '${'$as_ac_var'}'` = yes; then
6919 cat >>confdefs.h <<EOF
6920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6927 echo "$as_me:6927: checking if link/symlink functions work" >&5
6928 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6929 if test "${cf_cv_link_funcs+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 for cf_func in link symlink ; do
6935 if test "$cross_compiling" = yes; then
6937 eval 'ac_cv_func_'$cf_func'=error'
6939 cat >conftest.$ac_ext <<_ACEOF
6940 #line 6940 "configure"
6941 #include "confdefs.h"
6943 #include <sys/types.h>
6944 #include <sys/stat.h>
6945 #ifdef HAVE_UNISTD_H
6951 char *src = "config.log";
6952 char *dst = "conftest.chk";
6957 fail = ($cf_func("config.log", "conftest.chk") < 0)
6958 || (stat(dst, &dst_sb) < 0)
6959 || (dst_sb.st_mtime != src_sb.st_mtime);
6965 ${cf_cv_main_return:-return} (fail);
6969 rm -f conftest$ac_exeext
6970 if { (eval echo "$as_me:6970: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>&5
6973 echo "$as_me:6973: \$? = $ac_status" >&5
6974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6975 { (eval echo "$as_me:6975: \"$ac_try\"") >&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6981 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6982 eval 'ac_cv_func_'$cf_func'=yes'
6984 echo "$as_me: program exited with status $ac_status" >&5
6985 echo "$as_me: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 eval 'ac_cv_func_'$cf_func'=no'
6990 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6993 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6996 echo "$as_me:6996: result: $cf_cv_link_funcs" >&5
6997 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6998 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
7002 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
7003 #define HAVE_SYMLINK 1
7011 # soft links (symbolic links) are useful for some systems where hard links do
7012 # not work, or to make it simpler to copy terminfo trees around.
7013 if test "$ac_cv_func_symlink" = yes ; then
7014 echo "$as_me:7014: checking if tic should use symbolic links" >&5
7015 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7017 # Check whether --enable-symlinks or --disable-symlinks was given.
7018 if test "${enable_symlinks+set}" = set; then
7019 enableval="$enable_symlinks"
7020 with_symlinks=$enableval
7024 echo "$as_me:7024: result: $with_symlinks" >&5
7025 echo "${ECHO_T}$with_symlinks" >&6
7028 # If we have hard links and did not choose to use soft links instead, there is
7029 # no reason to make this choice optional - use the hard links.
7030 if test "$with_symlinks" = no ; then
7031 echo "$as_me:7031: checking if tic should use hard links" >&5
7032 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7033 if test "$ac_cv_func_link" = yes ; then
7038 echo "$as_me:7038: result: $with_links" >&5
7039 echo "${ECHO_T}$with_links" >&6
7042 test "$with_links" = yes && cat >>confdefs.h <<\EOF
7046 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
7047 #define USE_SYMLINKS 1
7050 ### use option --enable-broken-linker to force on use of broken-linker support
7051 echo "$as_me:7051: checking if you want broken-linker support code" >&5
7052 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7054 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7055 if test "${enable_broken_linker+set}" = set; then
7056 enableval="$enable_broken_linker"
7057 with_broken_linker=$enableval
7059 with_broken_linker=${BROKEN_LINKER:-no}
7061 echo "$as_me:7061: result: $with_broken_linker" >&5
7062 echo "${ECHO_T}$with_broken_linker" >&6
7065 if test "$with_broken_linker" = yes ; then
7066 cat >>confdefs.h <<\EOF
7067 #define BROKEN_LINKER 1
7071 elif test "$DFT_LWR_MODEL" = shared ; then
7072 case $cf_cv_system_name in #(vi
7074 cat >>confdefs.h <<\EOF
7075 #define BROKEN_LINKER 1
7079 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7081 echo "${as_me:-configure}:7081: testing cygwin linker is broken anyway ..." 1>&5
7087 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7088 echo "$as_me:7088: checking if tputs should process BSD-style prefix padding" >&5
7089 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7091 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7092 if test "${enable_bsdpad+set}" = set; then
7093 enableval="$enable_bsdpad"
7094 with_bsdpad=$enableval
7098 echo "$as_me:7098: result: $with_bsdpad" >&5
7099 echo "${ECHO_T}$with_bsdpad" >&6
7100 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
7104 ### use option --enable-widec to turn on use of wide-character support
7113 # Check to define _XOPEN_SOURCE "automatically"
7116 cf_POSIX_C_SOURCE=199506L
7119 case $host_os in #(vi
7121 cf_xopen_source="-D_ALL_SOURCE"
7127 cf_xopen_source="-D_APPLE_C_SOURCE"
7130 cf_xopen_source="-D_DARWIN_C_SOURCE"
7132 freebsd*|dragonfly*) #(vi
7133 # 5.x headers associate
7134 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7135 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7136 cf_POSIX_C_SOURCE=200112L
7138 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7141 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7144 cf_xopen_source="-D_HPUX_SOURCE"
7147 cf_xopen_source="-D_SGI_SOURCE"
7149 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7151 echo "$as_me:7151: checking if we must define _GNU_SOURCE" >&5
7152 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7153 if test "${cf_cv_gnu_source+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 cat >conftest.$ac_ext <<_ACEOF
7158 #line 7158 "configure"
7159 #include "confdefs.h"
7160 #include <sys/types.h>
7165 #ifndef _XOPEN_SOURCE
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:7173: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -s conftest.$ac_objext'
7179 { (eval echo "$as_me:7179: \"$ac_try\"") >&5
7182 echo "$as_me:7182: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7186 echo "$as_me: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7189 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line 7191 "configure"
7192 #include "confdefs.h"
7193 #include <sys/types.h>
7198 #ifdef _XOPEN_SOURCE
7205 rm -f conftest.$ac_objext
7206 if { (eval echo "$as_me:7206: \"$ac_compile\"") >&5
7207 (eval $ac_compile) 2>&5
7209 echo "$as_me:7209: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -s conftest.$ac_objext'
7212 { (eval echo "$as_me:7212: \"$ac_try\"") >&5
7215 echo "$as_me:7215: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7219 echo "$as_me: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 cf_cv_gnu_source=yes
7223 rm -f conftest.$ac_objext conftest.$ac_ext
7227 rm -f conftest.$ac_objext conftest.$ac_ext
7230 echo "$as_me:7230: result: $cf_cv_gnu_source" >&5
7231 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7232 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7236 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
7239 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7242 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7245 cf_xopen_source="-D_OSF_SOURCE"
7248 cf_xopen_source="-D_QNX_SOURCE"
7251 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7253 solaris2.1[0-9]) #(vi
7254 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7256 solaris2.[1-9]) #(vi
7257 cf_xopen_source="-D__EXTENSIONS__"
7260 echo "$as_me:7260: checking if we should define _XOPEN_SOURCE" >&5
7261 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7262 if test "${cf_cv_xopen_source+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line 7267 "configure"
7268 #include "confdefs.h"
7269 #include <sys/types.h>
7274 #ifndef _XOPEN_SOURCE
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:7282: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>&5
7285 echo "$as_me:7285: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -s conftest.$ac_objext'
7288 { (eval echo "$as_me:7288: \"$ac_try\"") >&5
7291 echo "$as_me:7291: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 cf_cv_xopen_source=no
7295 echo "$as_me: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7298 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7299 cat >conftest.$ac_ext <<_ACEOF
7300 #line 7300 "configure"
7301 #include "confdefs.h"
7302 #include <sys/types.h>
7307 #ifdef _XOPEN_SOURCE
7314 rm -f conftest.$ac_objext
7315 if { (eval echo "$as_me:7315: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>&5
7318 echo "$as_me:7318: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -s conftest.$ac_objext'
7321 { (eval echo "$as_me:7321: \"$ac_try\"") >&5
7324 echo "$as_me:7324: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 cf_cv_xopen_source=no
7328 echo "$as_me: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7330 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7332 rm -f conftest.$ac_objext conftest.$ac_ext
7336 rm -f conftest.$ac_objext conftest.$ac_ext
7339 echo "$as_me:7339: result: $cf_cv_xopen_source" >&5
7340 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7341 if test "$cf_cv_xopen_source" != no ; then
7343 CFLAGS=`echo "$CFLAGS" | \
7344 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7345 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7347 CPPFLAGS=`echo "$CPPFLAGS" | \
7348 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7349 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7351 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7356 cf_new_extra_cppflags=
7358 for cf_add_cflags in $cf_temp_xopen_source
7360 case $cf_fix_cppflags in
7362 case $cf_add_cflags in #(vi
7363 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7364 case $cf_add_cflags in
7366 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7368 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7369 && test -z "${cf_tst_cflags}" \
7370 && cf_fix_cppflags=yes
7372 if test $cf_fix_cppflags = yes ; then
7373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7375 elif test "${cf_tst_cflags}" = "\"'" ; then
7376 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7382 *$cf_add_cflags) #(vi
7385 case $cf_add_cflags in #(vi
7387 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7389 CPPFLAGS=`echo "$CPPFLAGS" | \
7390 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7391 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7395 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7400 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7405 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7407 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7409 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7410 && test -z "${cf_tst_cflags}" \
7411 && cf_fix_cppflags=no
7416 if test -n "$cf_new_cflags" ; then
7418 CFLAGS="$CFLAGS $cf_new_cflags"
7421 if test -n "$cf_new_cppflags" ; then
7423 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7426 if test -n "$cf_new_extra_cppflags" ; then
7428 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7433 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7435 cf_save_CFLAGS="$CFLAGS"
7436 cf_save_CPPFLAGS="$CPPFLAGS"
7438 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7439 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7440 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7442 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7443 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7444 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7446 echo "$as_me:7446: checking if we should define _POSIX_C_SOURCE" >&5
7447 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7448 if test "${cf_cv_posix_c_source+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 echo "${as_me:-configure}:7452: testing if the symbol is already defined go no further ..." 1>&5
7454 cat >conftest.$ac_ext <<_ACEOF
7455 #line 7455 "configure"
7456 #include "confdefs.h"
7457 #include <sys/types.h>
7462 #ifndef _POSIX_C_SOURCE
7469 rm -f conftest.$ac_objext
7470 if { (eval echo "$as_me:7470: \"$ac_compile\"") >&5
7471 (eval $ac_compile) 2>&5
7473 echo "$as_me:7473: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -s conftest.$ac_objext'
7476 { (eval echo "$as_me:7476: \"$ac_try\"") >&5
7479 echo "$as_me:7479: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 cf_cv_posix_c_source=no
7483 echo "$as_me: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 cf_want_posix_source=no
7486 case .$cf_POSIX_C_SOURCE in #(vi
7488 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7491 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7492 cf_want_posix_source=yes
7495 cf_want_posix_source=yes
7498 if test "$cf_want_posix_source" = yes ; then
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line 7500 "configure"
7501 #include "confdefs.h"
7502 #include <sys/types.h>
7507 #ifdef _POSIX_SOURCE
7514 rm -f conftest.$ac_objext
7515 if { (eval echo "$as_me:7515: \"$ac_compile\"") >&5
7516 (eval $ac_compile) 2>&5
7518 echo "$as_me:7518: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:7521: \"$ac_try\"") >&5
7524 echo "$as_me:7524: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7528 echo "$as_me: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7530 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7532 rm -f conftest.$ac_objext conftest.$ac_ext
7535 echo "${as_me:-configure}:7535: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7537 CFLAGS="$cf_trim_CFLAGS"
7538 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7540 echo "${as_me:-configure}:7540: testing if the second compile does not leave our definition intact error ..." 1>&5
7542 cat >conftest.$ac_ext <<_ACEOF
7543 #line 7543 "configure"
7544 #include "confdefs.h"
7545 #include <sys/types.h>
7550 #ifndef _POSIX_C_SOURCE
7557 rm -f conftest.$ac_objext
7558 if { (eval echo "$as_me:7558: \"$ac_compile\"") >&5
7559 (eval $ac_compile) 2>&5
7561 echo "$as_me:7561: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -s conftest.$ac_objext'
7564 { (eval echo "$as_me:7564: \"$ac_try\"") >&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7571 echo "$as_me: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7573 cf_cv_posix_c_source=no
7575 rm -f conftest.$ac_objext conftest.$ac_ext
7576 CFLAGS="$cf_save_CFLAGS"
7577 CPPFLAGS="$cf_save_CPPFLAGS"
7580 rm -f conftest.$ac_objext conftest.$ac_ext
7583 echo "$as_me:7583: result: $cf_cv_posix_c_source" >&5
7584 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7586 if test "$cf_cv_posix_c_source" != no ; then
7587 CFLAGS="$cf_trim_CFLAGS"
7588 CPPFLAGS="$cf_trim_CPPFLAGS"
7593 cf_new_extra_cppflags=
7595 for cf_add_cflags in $cf_cv_posix_c_source
7597 case $cf_fix_cppflags in
7599 case $cf_add_cflags in #(vi
7600 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7601 case $cf_add_cflags in
7603 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7605 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7606 && test -z "${cf_tst_cflags}" \
7607 && cf_fix_cppflags=yes
7609 if test $cf_fix_cppflags = yes ; then
7610 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7612 elif test "${cf_tst_cflags}" = "\"'" ; then
7613 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7619 *$cf_add_cflags) #(vi
7622 case $cf_add_cflags in #(vi
7624 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7626 CPPFLAGS=`echo "$CPPFLAGS" | \
7627 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7628 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7632 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7637 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7642 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7644 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7646 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7647 && test -z "${cf_tst_cflags}" \
7648 && cf_fix_cppflags=no
7653 if test -n "$cf_new_cflags" ; then
7655 CFLAGS="$CFLAGS $cf_new_cflags"
7658 if test -n "$cf_new_cppflags" ; then
7660 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7663 if test -n "$cf_new_extra_cppflags" ; then
7665 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7673 if test -n "$cf_xopen_source" ; then
7678 cf_new_extra_cppflags=
7680 for cf_add_cflags in $cf_xopen_source
7682 case $cf_fix_cppflags in
7684 case $cf_add_cflags in #(vi
7685 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7686 case $cf_add_cflags in
7688 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7690 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7691 && test -z "${cf_tst_cflags}" \
7692 && cf_fix_cppflags=yes
7694 if test $cf_fix_cppflags = yes ; then
7695 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7697 elif test "${cf_tst_cflags}" = "\"'" ; then
7698 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7704 *$cf_add_cflags) #(vi
7707 case $cf_add_cflags in #(vi
7709 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7711 CPPFLAGS=`echo "$CPPFLAGS" | \
7712 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7713 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7717 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7722 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7727 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7729 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7731 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7732 && test -z "${cf_tst_cflags}" \
7733 && cf_fix_cppflags=no
7738 if test -n "$cf_new_cflags" ; then
7740 CFLAGS="$CFLAGS $cf_new_cflags"
7743 if test -n "$cf_new_cppflags" ; then
7745 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7748 if test -n "$cf_new_extra_cppflags" ; then
7750 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7755 # Work around breakage on OS X
7757 echo "$as_me:7757: checking if SIGWINCH is defined" >&5
7758 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
7759 if test "${cf_cv_define_sigwinch+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 cat >conftest.$ac_ext <<_ACEOF
7764 #line 7764 "configure"
7765 #include "confdefs.h"
7767 #include <sys/types.h>
7768 #include <sys/signal.h>
7778 rm -f conftest.$ac_objext
7779 if { (eval echo "$as_me:7779: \"$ac_compile\"") >&5
7780 (eval $ac_compile) 2>&5
7782 echo "$as_me:7782: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:7785: \"$ac_try\"") >&5
7788 echo "$as_me:7788: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 cf_cv_define_sigwinch=yes
7792 echo "$as_me: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7794 cat >conftest.$ac_ext <<_ACEOF
7795 #line 7795 "configure"
7796 #include "confdefs.h"
7798 #undef _XOPEN_SOURCE
7799 #undef _POSIX_SOURCE
7800 #undef _POSIX_C_SOURCE
7801 #include <sys/types.h>
7802 #include <sys/signal.h>
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:7813: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>&5
7816 echo "$as_me:7816: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -s conftest.$ac_objext'
7819 { (eval echo "$as_me:7819: \"$ac_try\"") >&5
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 cf_cv_define_sigwinch=maybe
7826 echo "$as_me: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7828 cf_cv_define_sigwinch=no
7830 rm -f conftest.$ac_objext conftest.$ac_ext
7833 rm -f conftest.$ac_objext conftest.$ac_ext
7836 echo "$as_me:7836: result: $cf_cv_define_sigwinch" >&5
7837 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
7839 if test "$cf_cv_define_sigwinch" = maybe ; then
7840 echo "$as_me:7840: checking for actual SIGWINCH definition" >&5
7841 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7842 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 cf_cv_fixup_sigwinch=unknown
7848 while test $cf_sigwinch != 1
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line 7851 "configure"
7852 #include "confdefs.h"
7854 #undef _XOPEN_SOURCE
7855 #undef _POSIX_SOURCE
7856 #undef _POSIX_C_SOURCE
7857 #include <sys/types.h>
7858 #include <sys/signal.h>
7864 #if SIGWINCH != $cf_sigwinch
7872 rm -f conftest.$ac_objext
7873 if { (eval echo "$as_me:7873: \"$ac_compile\"") >&5
7874 (eval $ac_compile) 2>&5
7876 echo "$as_me:7876: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try='test -s conftest.$ac_objext'
7879 { (eval echo "$as_me:7879: \"$ac_try\"") >&5
7882 echo "$as_me:7882: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 cf_cv_fixup_sigwinch=$cf_sigwinch
7887 echo "$as_me: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7890 rm -f conftest.$ac_objext conftest.$ac_ext
7892 cf_sigwinch=`expr $cf_sigwinch - 1`
7896 echo "$as_me:7896: result: $cf_cv_fixup_sigwinch" >&5
7897 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7899 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7900 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7904 # Checks for CODESET support.
7906 echo "$as_me:7906: checking for nl_langinfo and CODESET" >&5
7907 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7908 if test "${am_cv_langinfo_codeset+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 cat >conftest.$ac_ext <<_ACEOF
7912 #line 7912 "configure"
7913 #include "confdefs.h"
7914 #include <langinfo.h>
7918 char* cs = nl_langinfo(CODESET);
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (eval echo "$as_me:7924: \"$ac_link\"") >&5
7925 (eval $ac_link) 2>&5
7927 echo "$as_me:7927: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -s conftest$ac_exeext'
7930 { (eval echo "$as_me:7930: \"$ac_try\"") >&5
7933 echo "$as_me:7933: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 am_cv_langinfo_codeset=yes
7937 echo "$as_me: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7939 am_cv_langinfo_codeset=no
7941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7944 echo "$as_me:7944: result: $am_cv_langinfo_codeset" >&5
7945 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7946 if test $am_cv_langinfo_codeset = yes; then
7948 cat >>confdefs.h <<\EOF
7949 #define HAVE_LANGINFO_CODESET 1
7954 # use these variables to work around a defect in gcc's fixincludes.
7958 echo "$as_me:7958: checking if you want wide-character code" >&5
7959 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7961 # Check whether --enable-widec or --disable-widec was given.
7962 if test "${enable_widec+set}" = set; then
7963 enableval="$enable_widec"
7964 with_widec=$enableval
7968 echo "$as_me:7968: result: $with_widec" >&5
7969 echo "${ECHO_T}$with_widec" >&6
7970 if test "$with_widec" = yes ; then
7971 LIB_SUFFIX="w${LIB_SUFFIX}"
7972 cat >>confdefs.h <<\EOF
7973 #define USE_WIDEC_SUPPORT 1
7976 case "$CFLAGS $CPPFLAGS" in #(vi
7977 *-D_XOPEN_SOURCE=500) #(vi
7981 echo "$as_me:7981: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7982 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7984 #line 7984 "configure"
7985 #include "confdefs.h"
7986 #include <sys/types.h>
7992 #ifndef _XOPEN_SOURCE_EXTENDED
7999 rm -f conftest.$ac_objext
8000 if { (eval echo "$as_me:8000: \"$ac_compile\"") >&5
8001 (eval $ac_compile) 2>&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest.$ac_objext'
8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8013 echo "$as_me: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8017 rm -f conftest.$ac_objext conftest.$ac_ext
8018 echo "$as_me:8018: result: $cf_result" >&5
8019 echo "${ECHO_T}$cf_result" >&6
8021 if test "$cf_result" = yes ; then
8022 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8023 elif test "x" != "x" ; then
8024 echo "$as_me:8024: checking checking for compatible value versus " >&5
8025 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8027 #line 8027 "configure"
8028 #include "confdefs.h"
8029 #include <sys/types.h>
8035 #if _XOPEN_SOURCE_EXTENDED- < 0
8042 rm -f conftest.$ac_objext
8043 if { (eval echo "$as_me:8043: \"$ac_compile\"") >&5
8044 (eval $ac_compile) 2>&5
8046 echo "$as_me:8046: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:8049: \"$ac_try\"") >&5
8052 echo "$as_me:8052: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8056 echo "$as_me: failed program was:" >&5
8057 cat conftest.$ac_ext >&5
8060 rm -f conftest.$ac_objext conftest.$ac_ext
8061 echo "$as_me:8061: result: $cf_result" >&5
8062 echo "${ECHO_T}$cf_result" >&6
8063 if test "$cf_result" = no ; then
8064 # perhaps we can override it - try...
8065 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8073 NCURSES_CH_T=cchar_t
8075 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8078 echo "$as_me:8078: checking for $ac_func" >&5
8079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8080 if eval "test \"\${$as_ac_var+set}\" = set"; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line 8084 "configure"
8085 #include "confdefs.h"
8086 /* System header to define __stub macros and hopefully few prototypes,
8087 which can conflict with char $ac_func (); below. */
8089 /* Override any gcc2 internal prototype to avoid an error. */
8093 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */
8101 /* The GNU C library defines this for functions which it implements
8102 to always fail with ENOSYS. Some functions are actually named
8103 something starting with __ and the normal name is an alias. */
8104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:8115: \"$ac_link\"") >&5
8116 (eval $ac_link) 2>&5
8118 echo "$as_me:8118: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -s conftest$ac_exeext'
8121 { (eval echo "$as_me:8121: \"$ac_try\"") >&5
8124 echo "$as_me:8124: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8126 eval "$as_ac_var=yes"
8128 echo "$as_me: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8130 eval "$as_ac_var=no"
8132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8134 echo "$as_me:8134: result: `eval echo '${'$as_ac_var'}'`" >&5
8135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8136 if test `eval echo '${'$as_ac_var'}'` = yes; then
8137 cat >>confdefs.h <<EOF
8138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8144 if test "$ac_cv_func_putwc" != yes ; then
8146 echo "$as_me:8146: checking for multibyte character support" >&5
8147 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8148 if test "${cf_cv_utf8_lib+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 cf_save_LIBS="$LIBS"
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line 8154 "configure"
8155 #include "confdefs.h"
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (eval echo "$as_me:8167: \"$ac_link\"") >&5
8168 (eval $ac_link) 2>&5
8170 echo "$as_me:8170: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -s conftest$ac_exeext'
8173 { (eval echo "$as_me:8173: \"$ac_try\"") >&5
8176 echo "$as_me:8176: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8180 echo "$as_me: failed program was:" >&5
8181 cat conftest.$ac_ext >&5
8183 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8184 # will be set on completion of the AC_TRY_LINK below.
8185 cf_cv_header_path_utf8=
8186 cf_cv_library_path_utf8=
8188 echo "${as_me:-configure}:8188: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8190 cf_save_LIBS="$LIBS"
8192 cat >conftest.$ac_ext <<_ACEOF
8193 #line 8193 "configure"
8194 #include "confdefs.h"
8196 #include <libutf8.h>
8205 rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (eval echo "$as_me:8206: \"$ac_link\"") >&5
8207 (eval $ac_link) 2>&5
8209 echo "$as_me:8209: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -s conftest$ac_exeext'
8212 { (eval echo "$as_me:8212: \"$ac_try\"") >&5
8215 echo "$as_me:8215: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8218 cf_cv_find_linkage_utf8=yes
8219 cf_cv_header_path_utf8=/usr/include
8220 cf_cv_library_path_utf8=/usr/lib
8223 echo "$as_me: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8226 LIBS="-lutf8 $cf_save_LIBS"
8228 cat >conftest.$ac_ext <<_ACEOF
8229 #line 8229 "configure"
8230 #include "confdefs.h"
8232 #include <libutf8.h>
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:8242: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>&5
8245 echo "$as_me:8245: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:8248: \"$ac_try\"") >&5
8251 echo "$as_me:8251: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8254 cf_cv_find_linkage_utf8=yes
8255 cf_cv_header_path_utf8=/usr/include
8256 cf_cv_library_path_utf8=/usr/lib
8257 cf_cv_library_file_utf8="-lutf8"
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 cf_cv_find_linkage_utf8=no
8264 LIBS="$cf_save_LIBS"
8266 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8268 echo "${as_me:-configure}:8268: testing find linkage for utf8 library ..." 1>&5
8270 echo "${as_me:-configure}:8270: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8272 cf_save_CPPFLAGS="$CPPFLAGS"
8273 cf_test_CPPFLAGS="$CPPFLAGS"
8277 # collect the current set of include-directories from compiler flags
8278 cf_header_path_list=""
8279 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8280 for cf_header_path in $CPPFLAGS $CFLAGS
8282 case $cf_header_path in #(vi
8284 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8286 test "$cf_header_path" != "NONE" && \
8287 test -d "$cf_header_path" && \
8289 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8290 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8291 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8292 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8293 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8294 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8297 cf_header_path_list="$cf_header_path_list $cf_search"
8303 # add the variations for the package we are looking for
8307 test "/usr" != "$prefix" && \
8309 (test $prefix = NONE || test "/usr" != "$prefix") && {
8310 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8311 test -d /usr/include && cf_search="$cf_search /usr/include"
8312 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8313 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8314 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8315 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8318 test "$prefix" != "NONE" && \
8319 test -d "$prefix" && \
8321 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8322 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8323 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8324 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8325 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8326 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8329 test "/usr/local" != "$prefix" && \
8330 test -d "/usr/local" && \
8331 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8332 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8333 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8334 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8335 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8336 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8337 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8340 test "/opt" != "$prefix" && \
8342 (test $prefix = NONE || test "/opt" != "$prefix") && {
8343 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8344 test -d /opt/include && cf_search="$cf_search /opt/include"
8345 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8346 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8347 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8348 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8351 test "$HOME" != "$prefix" && \
8352 test -d "$HOME" && \
8353 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8354 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8355 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8356 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8357 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8358 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8359 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8362 test "$includedir" != NONE && \
8363 test "$includedir" != "/usr/include" && \
8364 test -d "$includedir" && {
8365 test -d $includedir && cf_search="$cf_search $includedir"
8366 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8369 test "$oldincludedir" != NONE && \
8370 test "$oldincludedir" != "/usr/include" && \
8371 test -d "$oldincludedir" && {
8372 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8373 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8376 cf_search="$cf_search $cf_header_path_list"
8378 for cf_cv_header_path_utf8 in $cf_search
8380 if test -d $cf_cv_header_path_utf8 ; then
8381 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8383 echo "${as_me:-configure}:8383: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8385 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line 8387 "configure"
8388 #include "confdefs.h"
8390 #include <libutf8.h>
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:8400: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>&5
8403 echo "$as_me:8403: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:8406: \"$ac_try\"") >&5
8409 echo "$as_me:8409: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8412 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8414 echo "${as_me:-configure}:8414: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8416 cf_cv_find_linkage_utf8=maybe
8417 cf_test_CPPFLAGS="$CPPFLAGS"
8420 echo "$as_me: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8423 CPPFLAGS="$cf_save_CPPFLAGS"
8426 rm -f conftest.$ac_objext conftest.$ac_ext
8430 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8432 echo "${as_me:-configure}:8432: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8434 cf_save_LIBS="$LIBS"
8435 cf_save_LDFLAGS="$LDFLAGS"
8437 if test "$cf_cv_find_linkage_utf8" != yes ; then
8440 cf_library_path_list=""
8441 if test -n "${LDFLAGS}${LIBS}" ; then
8442 for cf_library_path in $LDFLAGS $LIBS
8444 case $cf_library_path in #(vi
8446 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8448 test "$cf_library_path" != "NONE" && \
8449 test -d "$cf_library_path" && \
8451 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8452 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8453 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8454 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8455 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8456 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8459 cf_library_path_list="$cf_library_path_list $cf_search"
8467 test "/usr" != "$prefix" && \
8469 (test $prefix = NONE || test "/usr" != "$prefix") && {
8470 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8471 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8472 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8473 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8474 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8475 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8478 test "$prefix" != "NONE" && \
8479 test -d "$prefix" && \
8481 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8482 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8483 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8484 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8485 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8486 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8489 test "/usr/local" != "$prefix" && \
8490 test -d "/usr/local" && \
8491 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8492 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8493 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8494 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8495 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8496 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8497 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8500 test "/opt" != "$prefix" && \
8502 (test $prefix = NONE || test "/opt" != "$prefix") && {
8503 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8504 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8505 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8506 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8507 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8508 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8511 test "$HOME" != "$prefix" && \
8512 test -d "$HOME" && \
8513 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8514 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8515 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8516 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8517 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8518 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8519 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
8522 cf_search="$cf_library_path_list $cf_search"
8524 for cf_cv_library_path_utf8 in $cf_search
8526 if test -d $cf_cv_library_path_utf8 ; then
8527 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8529 echo "${as_me:-configure}:8529: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8531 CPPFLAGS="$cf_test_CPPFLAGS"
8532 LIBS="-lutf8 $cf_save_LIBS"
8533 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line 8535 "configure"
8536 #include "confdefs.h"
8538 #include <libutf8.h>
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:8548: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>&5
8551 echo "$as_me:8551: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -s conftest$ac_exeext'
8554 { (eval echo "$as_me:8554: \"$ac_try\"") >&5
8557 echo "$as_me:8557: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8560 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8562 echo "${as_me:-configure}:8562: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8564 cf_cv_find_linkage_utf8=yes
8565 cf_cv_library_file_utf8="-lutf8"
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8571 CPPFLAGS="$cf_save_CPPFLAGS"
8572 LIBS="$cf_save_LIBS"
8573 LDFLAGS="$cf_save_LDFLAGS"
8576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8579 CPPFLAGS="$cf_save_CPPFLAGS"
8580 LDFLAGS="$cf_save_LDFLAGS"
8584 cf_cv_find_linkage_utf8=no
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8593 LIBS="$cf_save_LIBS"
8595 if test "$cf_cv_find_linkage_utf8" = yes ; then
8596 cf_cv_utf8_lib=add-on
8602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8604 echo "$as_me:8604: result: $cf_cv_utf8_lib" >&5
8605 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
8607 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8609 if test "$cf_cv_utf8_lib" = "add-on" ; then
8610 cat >>confdefs.h <<\EOF
8611 #define HAVE_LIBUTF8_H 1
8614 if test -n "$cf_cv_header_path_utf8" ; then
8615 for cf_add_incdir in $cf_cv_header_path_utf8
8617 while test $cf_add_incdir != /usr/include
8619 if test -d $cf_add_incdir
8622 if test -n "$CFLAGS$CPPFLAGS" ; then
8623 # a loop is needed to ensure we can add subdirs of existing dirs
8624 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8625 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8626 cf_have_incdir=yes; break
8631 if test "$cf_have_incdir" = no ; then
8632 if test "$cf_add_incdir" = /usr/local/include ; then
8633 if test "$GCC" = yes
8635 cf_save_CPPFLAGS=$CPPFLAGS
8636 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8637 cat >conftest.$ac_ext <<_ACEOF
8638 #line 8638 "configure"
8639 #include "confdefs.h"
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:8650: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>&5
8653 echo "$as_me:8653: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:8656: \"$ac_try\"") >&5
8659 echo "$as_me:8659: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8663 echo "$as_me: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8667 rm -f conftest.$ac_objext conftest.$ac_ext
8668 CPPFLAGS=$cf_save_CPPFLAGS
8673 if test "$cf_have_incdir" = no ; then
8674 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8676 echo "${as_me:-configure}:8676: testing adding $cf_add_incdir to include-path ..." 1>&5
8678 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8680 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8681 test "$cf_top_incdir" = "$cf_add_incdir" && break
8682 cf_add_incdir="$cf_top_incdir"
8691 if test -n "$cf_cv_library_path_utf8" ; then
8692 for cf_add_libdir in $cf_cv_library_path_utf8
8694 if test $cf_add_libdir = /usr/lib ; then
8696 elif test -d $cf_add_libdir
8699 if test -n "$LDFLAGS$LIBS" ; then
8700 # a loop is needed to ensure we can add subdirs of existing dirs
8701 for cf_test_libdir in $LDFLAGS $LIBS ; do
8702 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8703 cf_have_libdir=yes; break
8707 if test "$cf_have_libdir" = no ; then
8708 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8710 echo "${as_me:-configure}:8710: testing adding $cf_add_libdir to library-path ..." 1>&5
8712 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8718 LIBS="$cf_cv_library_file_utf8 $LIBS"
8721 if test "$cf_cv_utf8_lib" != no ; then
8726 # This is needed on Tru64 5.0 to declare mbstate_t
8727 echo "$as_me:8727: checking if we must include wchar.h to declare mbstate_t" >&5
8728 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
8729 if test "${cf_cv_mbstate_t+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 cat >conftest.$ac_ext <<_ACEOF
8734 #line 8734 "configure"
8735 #include "confdefs.h"
8740 #ifdef HAVE_LIBUTF8_H
8741 #include <libutf8.h>
8751 rm -f conftest.$ac_objext
8752 if { (eval echo "$as_me:8752: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>&5
8755 echo "$as_me:8755: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:8758: \"$ac_try\"") >&5
8761 echo "$as_me:8761: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8765 echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 cat >conftest.$ac_ext <<_ACEOF
8768 #line 8768 "configure"
8769 #include "confdefs.h"
8775 #ifdef HAVE_LIBUTF8_H
8776 #include <libutf8.h>
8786 rm -f conftest.$ac_objext
8787 if { (eval echo "$as_me:8787: \"$ac_compile\"") >&5
8788 (eval $ac_compile) 2>&5
8790 echo "$as_me:8790: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -s conftest.$ac_objext'
8793 { (eval echo "$as_me:8793: \"$ac_try\"") >&5
8796 echo "$as_me:8796: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8800 echo "$as_me: failed program was:" >&5
8801 cat conftest.$ac_ext >&5
8802 cf_cv_mbstate_t=unknown
8804 rm -f conftest.$ac_objext conftest.$ac_ext
8806 rm -f conftest.$ac_objext conftest.$ac_ext
8808 echo "$as_me:8808: result: $cf_cv_mbstate_t" >&5
8809 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
8811 if test "$cf_cv_mbstate_t" = yes ; then
8812 cat >>confdefs.h <<\EOF
8813 #define NEED_WCHAR_H 1
8819 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
8820 if test "$cf_cv_mbstate_t" = unknown ; then
8824 # This is needed on Tru64 5.0 to declare wchar_t
8825 echo "$as_me:8825: checking if we must include wchar.h to declare wchar_t" >&5
8826 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
8827 if test "${cf_cv_wchar_t+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 cat >conftest.$ac_ext <<_ACEOF
8832 #line 8832 "configure"
8833 #include "confdefs.h"
8838 #ifdef HAVE_LIBUTF8_H
8839 #include <libutf8.h>
8849 rm -f conftest.$ac_objext
8850 if { (eval echo "$as_me:8850: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>&5
8853 echo "$as_me:8853: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -s conftest.$ac_objext'
8856 { (eval echo "$as_me:8856: \"$ac_try\"") >&5
8859 echo "$as_me:8859: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8863 echo "$as_me: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 cat >conftest.$ac_ext <<_ACEOF
8866 #line 8866 "configure"
8867 #include "confdefs.h"
8873 #ifdef HAVE_LIBUTF8_H
8874 #include <libutf8.h>
8884 rm -f conftest.$ac_objext
8885 if { (eval echo "$as_me:8885: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>&5
8888 echo "$as_me:8888: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -s conftest.$ac_objext'
8891 { (eval echo "$as_me:8891: \"$ac_try\"") >&5
8894 echo "$as_me:8894: \$? = $ac_status" >&5
8895 (exit $ac_status); }; }; then
8898 echo "$as_me: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8900 cf_cv_wchar_t=unknown
8902 rm -f conftest.$ac_objext conftest.$ac_ext
8904 rm -f conftest.$ac_objext conftest.$ac_ext
8906 echo "$as_me:8906: result: $cf_cv_wchar_t" >&5
8907 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8909 if test "$cf_cv_wchar_t" = yes ; then
8910 cat >>confdefs.h <<\EOF
8911 #define NEED_WCHAR_H 1
8917 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8918 if test "$cf_cv_wchar_t" = unknown ; then
8922 # if we find wchar_t in either place, use substitution to provide a fallback.
8923 if test "$cf_cv_wchar_t" != unknown ; then
8924 NCURSES_OK_WCHAR_T=1
8927 # This is needed on Tru64 5.0 to declare wint_t
8928 echo "$as_me:8928: checking if we must include wchar.h to declare wint_t" >&5
8929 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8930 if test "${cf_cv_wint_t+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 cat >conftest.$ac_ext <<_ACEOF
8935 #line 8935 "configure"
8936 #include "confdefs.h"
8941 #ifdef HAVE_LIBUTF8_H
8942 #include <libutf8.h>
8952 rm -f conftest.$ac_objext
8953 if { (eval echo "$as_me:8953: \"$ac_compile\"") >&5
8954 (eval $ac_compile) 2>&5
8956 echo "$as_me:8956: \$? = $ac_status" >&5
8957 (exit $ac_status); } &&
8958 { ac_try='test -s conftest.$ac_objext'
8959 { (eval echo "$as_me:8959: \"$ac_try\"") >&5
8962 echo "$as_me:8962: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8966 echo "$as_me: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8968 cat >conftest.$ac_ext <<_ACEOF
8969 #line 8969 "configure"
8970 #include "confdefs.h"
8976 #ifdef HAVE_LIBUTF8_H
8977 #include <libutf8.h>
8987 rm -f conftest.$ac_objext
8988 if { (eval echo "$as_me:8988: \"$ac_compile\"") >&5
8989 (eval $ac_compile) 2>&5
8991 echo "$as_me:8991: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:8994: \"$ac_try\"") >&5
8997 echo "$as_me:8997: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
9001 echo "$as_me: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9003 cf_cv_wint_t=unknown
9005 rm -f conftest.$ac_objext conftest.$ac_ext
9007 rm -f conftest.$ac_objext conftest.$ac_ext
9009 echo "$as_me:9009: result: $cf_cv_wint_t" >&5
9010 echo "${ECHO_T}$cf_cv_wint_t" >&6
9012 if test "$cf_cv_wint_t" = yes ; then
9013 cat >>confdefs.h <<\EOF
9014 #define NEED_WCHAR_H 1
9020 # if we do not find wint_t in either place, use substitution to provide a fallback.
9021 if test "$cf_cv_wint_t" = unknown ; then
9025 # if we find wint_t in either place, use substitution to provide a fallback.
9026 if test "$cf_cv_wint_t" != unknown ; then
9030 if test "$NCURSES_MBSTATE_T" != 0; then
9031 cat >>confdefs.h <<\EOF
9032 #define NEED_MBSTATE_T_DEF 1
9038 ### use option --disable-lp64 to allow long chtype
9039 case $cf_cv_abi_version in
9041 default_with_lp64=no
9044 default_with_lp64=yes
9048 echo "$as_me:9048: checking whether to enable _LP64 definition in curses.h" >&5
9049 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9051 # Check whether --enable-lp64 or --disable-lp64 was given.
9052 if test "${enable_lp64+set}" = set; then
9053 enableval="$enable_lp64"
9054 with_lp64=$enableval
9056 with_lp64=$default_with_lp64
9058 echo "$as_me:9058: result: $with_lp64" >&5
9059 echo "${ECHO_T}$with_lp64" >&6
9061 if test "$with_lp64" = yes ; then
9067 # Check whether --enable-largefile or --disable-largefile was given.
9068 if test "${enable_largefile+set}" = set; then
9069 enableval="$enable_largefile"
9072 if test "$enable_largefile" != no; then
9074 echo "$as_me:9074: checking for special C compiler options needed for large files" >&5
9075 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9076 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 ac_cv_sys_largefile_CC=no
9080 if test "$GCC" != yes; then
9083 # IRIX 6.2 and later do not support large files by default,
9084 # so use the C compiler's -n32 option if that helps.
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line 9086 "configure"
9087 #include "confdefs.h"
9088 #include <sys/types.h>
9089 /* Check that off_t can represent 2**63 - 1 correctly.
9090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9091 since some C++ compilers masquerading as C compilers
9092 incorrectly reject 9223372036854775807. */
9093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9095 && LARGE_OFF_T % 2147483647 == 1)
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:9106: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>&5
9109 echo "$as_me:9109: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest.$ac_objext'
9112 { (eval echo "$as_me:9112: \"$ac_try\"") >&5
9115 echo "$as_me:9115: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9119 echo "$as_me: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 rm -f conftest.$ac_objext
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:9125: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>&5
9128 echo "$as_me:9128: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -s conftest.$ac_objext'
9131 { (eval echo "$as_me:9131: \"$ac_try\"") >&5
9134 echo "$as_me:9134: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_sys_largefile_CC=' -n32'; break
9138 echo "$as_me: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9141 rm -f conftest.$ac_objext
9145 rm -f conftest.$ac_ext
9148 echo "$as_me:9148: result: $ac_cv_sys_largefile_CC" >&5
9149 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9150 if test "$ac_cv_sys_largefile_CC" != no; then
9151 CC=$CC$ac_cv_sys_largefile_CC
9154 echo "$as_me:9154: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9155 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9156 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 ac_cv_sys_file_offset_bits=no
9161 cat >conftest.$ac_ext <<_ACEOF
9162 #line 9162 "configure"
9163 #include "confdefs.h"
9164 #include <sys/types.h>
9165 /* Check that off_t can represent 2**63 - 1 correctly.
9166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9167 since some C++ compilers masquerading as C compilers
9168 incorrectly reject 9223372036854775807. */
9169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9171 && LARGE_OFF_T % 2147483647 == 1)
9181 rm -f conftest.$ac_objext
9182 if { (eval echo "$as_me:9182: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>&5
9185 echo "$as_me:9185: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:9188: \"$ac_try\"") >&5
9191 echo "$as_me:9191: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9195 echo "$as_me: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 rm -f conftest.$ac_objext conftest.$ac_ext
9199 cat >conftest.$ac_ext <<_ACEOF
9200 #line 9200 "configure"
9201 #include "confdefs.h"
9202 #define _FILE_OFFSET_BITS 64
9203 #include <sys/types.h>
9204 /* Check that off_t can represent 2**63 - 1 correctly.
9205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9206 since some C++ compilers masquerading as C compilers
9207 incorrectly reject 9223372036854775807. */
9208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9210 && LARGE_OFF_T % 2147483647 == 1)
9220 rm -f conftest.$ac_objext
9221 if { (eval echo "$as_me:9221: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>&5
9224 echo "$as_me:9224: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:9227: \"$ac_try\"") >&5
9230 echo "$as_me:9230: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_cv_sys_file_offset_bits=64; break
9234 echo "$as_me: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9237 rm -f conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:9241: result: $ac_cv_sys_file_offset_bits" >&5
9242 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9243 if test "$ac_cv_sys_file_offset_bits" != no; then
9245 cat >>confdefs.h <<EOF
9246 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9251 echo "$as_me:9251: checking for _LARGE_FILES value needed for large files" >&5
9252 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9253 if test "${ac_cv_sys_large_files+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 ac_cv_sys_large_files=no
9258 cat >conftest.$ac_ext <<_ACEOF
9259 #line 9259 "configure"
9260 #include "confdefs.h"
9261 #include <sys/types.h>
9262 /* Check that off_t can represent 2**63 - 1 correctly.
9263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9264 since some C++ compilers masquerading as C compilers
9265 incorrectly reject 9223372036854775807. */
9266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9268 && LARGE_OFF_T % 2147483647 == 1)
9278 rm -f conftest.$ac_objext
9279 if { (eval echo "$as_me:9279: \"$ac_compile\"") >&5
9280 (eval $ac_compile) 2>&5
9282 echo "$as_me:9282: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:9285: \"$ac_try\"") >&5
9288 echo "$as_me:9288: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9292 echo "$as_me: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9295 rm -f conftest.$ac_objext conftest.$ac_ext
9296 cat >conftest.$ac_ext <<_ACEOF
9297 #line 9297 "configure"
9298 #include "confdefs.h"
9299 #define _LARGE_FILES 1
9300 #include <sys/types.h>
9301 /* Check that off_t can represent 2**63 - 1 correctly.
9302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9303 since some C++ compilers masquerading as C compilers
9304 incorrectly reject 9223372036854775807. */
9305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9307 && LARGE_OFF_T % 2147483647 == 1)
9317 rm -f conftest.$ac_objext
9318 if { (eval echo "$as_me:9318: \"$ac_compile\"") >&5
9319 (eval $ac_compile) 2>&5
9321 echo "$as_me:9321: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (eval echo "$as_me:9324: \"$ac_try\"") >&5
9327 echo "$as_me:9327: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_sys_large_files=1; break
9331 echo "$as_me: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 rm -f conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:9338: result: $ac_cv_sys_large_files" >&5
9339 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9340 if test "$ac_cv_sys_large_files" != no; then
9342 cat >>confdefs.h <<EOF
9343 #define _LARGE_FILES $ac_cv_sys_large_files
9350 if test "$enable_largefile" != no ; then
9351 echo "$as_me:9351: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9352 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9353 if test "${ac_cv_sys_largefile_source+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 ac_cv_sys_largefile_source=no
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line 9359 "configure"
9360 #include "confdefs.h"
9370 rm -f conftest.$ac_objext
9371 if { (eval echo "$as_me:9371: \"$ac_compile\"") >&5
9372 (eval $ac_compile) 2>&5
9374 echo "$as_me:9374: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -s conftest.$ac_objext'
9377 { (eval echo "$as_me:9377: \"$ac_try\"") >&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9384 echo "$as_me: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9388 cat >conftest.$ac_ext <<_ACEOF
9389 #line 9389 "configure"
9390 #include "confdefs.h"
9391 #define _LARGEFILE_SOURCE 1
9401 rm -f conftest.$ac_objext
9402 if { (eval echo "$as_me:9402: \"$ac_compile\"") >&5
9403 (eval $ac_compile) 2>&5
9405 echo "$as_me:9405: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -s conftest.$ac_objext'
9408 { (eval echo "$as_me:9408: \"$ac_try\"") >&5
9411 echo "$as_me:9411: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_sys_largefile_source=1; break
9415 echo "$as_me: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9418 rm -f conftest.$ac_objext conftest.$ac_ext
9422 echo "$as_me:9422: result: $ac_cv_sys_largefile_source" >&5
9423 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9424 if test "$ac_cv_sys_largefile_source" != no; then
9426 cat >>confdefs.h <<EOF
9427 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9433 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9434 # in glibc 2.1.3, but that breaks too many other things.
9435 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9436 echo "$as_me:9436: checking for fseeko" >&5
9437 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9438 if test "${ac_cv_func_fseeko+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line 9442 "configure"
9443 #include "confdefs.h"
9448 return fseeko && fseeko (stdin, 0, 0);
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:9454: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:9460: \"$ac_try\"") >&5
9463 echo "$as_me:9463: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_func_fseeko=yes
9467 echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 ac_cv_func_fseeko=no
9471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9473 echo "$as_me:9473: result: $ac_cv_func_fseeko" >&5
9474 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9475 if test $ac_cv_func_fseeko = yes; then
9477 cat >>confdefs.h <<\EOF
9478 #define HAVE_FSEEKO 1
9483 # Normally we would collect these definitions in the config.h,
9484 # but (like _XOPEN_SOURCE), some environments rely on having these
9485 # defined before any of the system headers are included. Another
9486 # case comes up with C++, e.g., on AIX the compiler compiles the
9487 # header files by themselves before looking at the body files it is
9488 # told to compile. For ncurses, those header files do not include
9490 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9491 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9492 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9494 echo "$as_me:9494: checking whether to use struct dirent64" >&5
9495 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9496 if test "${cf_cv_struct_dirent64+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 cat >conftest.$ac_ext <<_ACEOF
9501 #line 9501 "configure"
9502 #include "confdefs.h"
9504 #include <sys/types.h>
9511 /* if transitional largefile support is setup, this is true */
9512 extern struct dirent64 * readdir(DIR *);
9513 struct dirent64 *x = readdir((DIR *)0);
9514 struct dirent *y = readdir((DIR *)0);
9521 rm -f conftest.$ac_objext
9522 if { (eval echo "$as_me:9522: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>&5
9525 echo "$as_me:9525: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -s conftest.$ac_objext'
9528 { (eval echo "$as_me:9528: \"$ac_try\"") >&5
9531 echo "$as_me:9531: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 cf_cv_struct_dirent64=yes
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 cf_cv_struct_dirent64=no
9539 rm -f conftest.$ac_objext conftest.$ac_ext
9542 echo "$as_me:9542: result: $cf_cv_struct_dirent64" >&5
9543 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9544 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
9545 #define HAVE_STRUCT_DIRENT64 1
9550 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
9551 echo "$as_me:9551: checking if you want tparm not to use X/Open fixed-parameter list" >&5
9552 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
9554 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
9555 if test "${enable_tparm_varargs+set}" = set; then
9556 enableval="$enable_tparm_varargs"
9557 with_tparm_varargs=$enableval
9559 with_tparm_varargs=yes
9561 echo "$as_me:9561: result: $with_tparm_varargs" >&5
9562 echo "${ECHO_T}$with_tparm_varargs" >&6
9563 NCURSES_TPARM_VARARGS=0
9564 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
9566 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
9567 if test "$with_ticlib" != no ; then
9568 echo "$as_me:9568: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
9569 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
9571 # Check whether --enable-tic-depends or --disable-tic-depends was given.
9572 if test "${enable_tic_depends+set}" = set; then
9573 enableval="$enable_tic_depends"
9574 with_tic_depends=$enableval
9576 with_tic_depends=yes
9578 echo "$as_me:9578: result: $with_tic_depends" >&5
9579 echo "${ECHO_T}$with_tic_depends" >&6
9584 ### use option --with-bool to override bool's type
9585 echo "$as_me:9585: checking for type of bool" >&5
9586 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
9588 # Check whether --with-bool or --without-bool was given.
9589 if test "${with_bool+set}" = set; then
9590 withval="$with_bool"
9591 NCURSES_BOOL="$withval"
9595 echo "$as_me:9595: result: $NCURSES_BOOL" >&5
9596 echo "${ECHO_T}$NCURSES_BOOL" >&6
9598 echo "$as_me:9598: checking for alternate terminal capabilities file" >&5
9599 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
9601 # Check whether --with-caps or --without-caps was given.
9602 if test "${with_caps+set}" = set; then
9603 withval="$with_caps"
9604 TERMINFO_CAPS=Caps.$withval
9608 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
9609 echo "$as_me:9609: result: $TERMINFO_CAPS" >&5
9610 echo "${ECHO_T}$TERMINFO_CAPS" >&6
9612 ### use option --with-chtype to override chtype's type
9613 echo "$as_me:9613: checking for type of chtype" >&5
9614 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
9616 # Check whether --with-chtype or --without-chtype was given.
9617 if test "${with_chtype+set}" = set; then
9618 withval="$with_chtype"
9619 NCURSES_CHTYPE="$withval"
9623 echo "$as_me:9623: result: $NCURSES_CHTYPE" >&5
9624 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
9626 ### use option --with-ospeed to override ospeed's type
9627 echo "$as_me:9627: checking for type of ospeed" >&5
9628 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
9630 # Check whether --with-ospeed or --without-ospeed was given.
9631 if test "${with_ospeed+set}" = set; then
9632 withval="$with_ospeed"
9633 NCURSES_OSPEED="$withval"
9635 NCURSES_OSPEED=short
9637 echo "$as_me:9637: result: $NCURSES_OSPEED" >&5
9638 echo "${ECHO_T}$NCURSES_OSPEED" >&6
9640 ### use option --with-mmask-t to override mmask_t's type
9641 echo "$as_me:9641: checking for type of mmask_t" >&5
9642 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
9644 # Check whether --with-mmask-t or --without-mmask-t was given.
9645 if test "${with_mmask_t+set}" = set; then
9646 withval="$with_mmask_t"
9647 NCURSES_MMASK_T="$withval"
9649 NCURSES_MMASK_T=auto
9651 echo "$as_me:9651: result: $NCURSES_MMASK_T" >&5
9652 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
9654 ### use option --with-ccharw-max to override CCHARW_MAX size
9655 echo "$as_me:9655: checking for size CCHARW_MAX" >&5
9656 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
9658 # Check whether --with-ccharw-max or --without-ccharw-max was given.
9659 if test "${with_ccharw_max+set}" = set; then
9660 withval="$with_ccharw_max"
9661 NCURSES_CCHARW_MAX="$withval"
9663 NCURSES_CCHARW_MAX=5
9665 echo "$as_me:9665: result: $NCURSES_CCHARW_MAX" >&5
9666 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
9668 ### Enable compiling-in rcs id's
9669 echo "$as_me:9669: checking if RCS identifiers should be compiled-in" >&5
9670 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9672 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9673 if test "${with_rcs_ids+set}" = set; then
9674 withval="$with_rcs_ids"
9675 with_rcs_ids=$withval
9679 echo "$as_me:9679: result: $with_rcs_ids" >&5
9680 echo "${ECHO_T}$with_rcs_ids" >&6
9681 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
9682 #define USE_RCS_IDS 1
9685 ###############################################################################
9687 echo "$as_me:9687: checking format of man-pages" >&5
9688 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
9690 # Check whether --with-manpage-format or --without-manpage-format was given.
9691 if test "${with_manpage_format+set}" = set; then
9692 withval="$with_manpage_format"
9693 MANPAGE_FORMAT=$withval
9695 MANPAGE_FORMAT=unknown
9698 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
9699 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
9703 case $MANPAGE_FORMAT in
9705 if test -z "$MANPATH" ; then
9706 MANPATH="/usr/man:/usr/share/man"
9709 # look for the 'date' man-page (it's most likely to be installed!)
9715 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
9716 for cf_dir in $MANPATH; do
9717 test -z "$cf_dir" && cf_dir=/usr/man
9718 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
9720 cf_test=`echo $cf_name | sed -e 's/*//'`
9721 if test "x$cf_test" = "x$cf_name" ; then
9724 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
9725 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
9726 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
9727 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
9741 # if we found a match in either man* or cat*, stop looking
9742 if test -n "$MANPAGE_FORMAT" ; then
9744 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
9745 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
9751 test $cf_found=yes && break
9754 # only check the first directory in $MANPATH where we find manpages
9755 if test -n "$MANPAGE_FORMAT" ; then
9759 # if we did not find the example, just assume it is normal
9760 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
9764 for cf_option in $MANPAGE_FORMAT; do
9765 case $cf_option in #(vi
9766 gzip|compress|BSDI|normal|formatted|catonly)
9769 cf_unknown="$cf_unknown $cf_option"
9776 echo "$as_me:9776: result: $MANPAGE_FORMAT" >&5
9777 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
9778 if test -n "$cf_unknown" ; then
9779 { echo "$as_me:9779: WARNING: Unexpected manpage-format $cf_unknown" >&5
9780 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
9783 echo "$as_me:9783: checking for manpage renaming" >&5
9784 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
9786 # Check whether --with-manpage-renames or --without-manpage-renames was given.
9787 if test "${with_manpage_renames+set}" = set; then
9788 withval="$with_manpage_renames"
9789 MANPAGE_RENAMES=$withval
9794 case ".$MANPAGE_RENAMES" in #(vi
9798 # Debian 'man' program?
9799 if test -f /etc/debian_version ; then
9800 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
9807 if test "$MANPAGE_RENAMES" != no ; then
9808 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
9809 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
9810 elif test ! -f $MANPAGE_RENAMES ; then
9811 { { echo "$as_me:9811: error: not a filename: $MANPAGE_RENAMES" >&5
9812 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
9813 { (exit 1); exit 1; }; }
9816 test ! -d man && mkdir man
9818 # Construct a sed-script to perform renaming within man-pages
9819 if test -n "$MANPAGE_RENAMES" ; then
9820 test ! -d man && mkdir man
9821 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
9825 echo "$as_me:9825: result: $MANPAGE_RENAMES" >&5
9826 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
9828 echo "$as_me:9828: checking if manpage aliases will be installed" >&5
9829 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
9831 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
9832 if test "${with_manpage_aliases+set}" = set; then
9833 withval="$with_manpage_aliases"
9834 MANPAGE_ALIASES=$withval
9839 echo "$as_me:9839: result: $MANPAGE_ALIASES" >&5
9840 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
9842 case "x$LN_S" in #(vi
9852 if test "$MANPAGE_ALIASES" = yes ; then
9853 echo "$as_me:9853: checking if manpage symlinks should be used" >&5
9854 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
9856 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
9857 if test "${with_manpage_symlinks+set}" = set; then
9858 withval="$with_manpage_symlinks"
9859 MANPAGE_SYMLINKS=$withval
9861 MANPAGE_SYMLINKS=$cf_use_symlinks
9864 if test "$$cf_use_symlinks" = no; then
9865 if test "$MANPAGE_SYMLINKS" = yes ; then
9866 { echo "$as_me:9866: WARNING: cannot make symlinks" >&5
9867 echo "$as_me: WARNING: cannot make symlinks" >&2;}
9872 echo "$as_me:9872: result: $MANPAGE_SYMLINKS" >&5
9873 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
9876 echo "$as_me:9876: checking for manpage tbl" >&5
9877 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
9879 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
9880 if test "${with_manpage_tbl+set}" = set; then
9881 withval="$with_manpage_tbl"
9882 MANPAGE_TBL=$withval
9887 echo "$as_me:9887: result: $MANPAGE_TBL" >&5
9888 echo "${ECHO_T}$MANPAGE_TBL" >&6
9890 if test "$prefix" = "NONE" ; then
9891 cf_prefix="$ac_default_prefix"
9896 case "$MANPAGE_FORMAT" in # (vi
9911 test ! -d man && mkdir man
9915 case "$MANPAGE_FORMAT" in #(vi
9918 cf_compress=compress
9926 cf_edit_man=./edit_man.sh
9927 cf_man_alias=`pwd`/man_alias.sed
9929 cat >$cf_edit_man <<CF_EOF
9931 # this script is generated by the configure-script CF_MAN_PAGES macro.
9936 NCURSES_MAJOR="$NCURSES_MAJOR"
9937 NCURSES_MINOR="$NCURSES_MINOR"
9938 NCURSES_PATCH="$NCURSES_PATCH"
9940 NCURSES_OSPEED="$NCURSES_OSPEED"
9941 TERMINFO="$TERMINFO"
9944 INSTALL_DATA="$INSTALL_DATA"
9946 transform="$program_transform_name"
9948 TMP=\${TMPDIR:=/tmp}/man\$\$
9949 trap "rm -f \$TMP" 0 1 2 5 15
9961 top_srcdir=\$srcdir/..
9964 if test "\$form" = normal ; then
9965 if test "$cf_format" = yes ; then
9966 if test "$cf_inboth" = no ; then
9967 sh \$0 format \$verb \$mandir \$srcdir \$*
9971 cf_subdir=\$mandir/man
9972 cf_tables=$MANPAGE_TBL
9974 cf_subdir=\$mandir/cat
9978 # process the list of source-files
9981 *.orig|*.rej) ;; #(vi
9983 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9984 if test \$verb = installing ; then
9985 if test ! -d \$cf_subdir\${section} ; then
9986 mkdir -p \$cf_subdir\$section
9990 # replace variables in man page
9991 if test ! -f $cf_man_alias ; then
9992 cat >>$cf_man_alias <<-CF_EOF2
9993 s,@DATADIR@,\$datadir,g
9994 s,@TERMINFO@,\$TERMINFO,g
9995 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9996 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9997 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9998 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
10001 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10003 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10004 cf_name=`echo $cf_name|sed "$program_transform_name"`
10005 cat >>$cf_edit_man <<-CF_EOF
10006 s,@$cf_NAME@,$cf_name,g
10010 cat >>$cf_edit_man <<CF_EOF
10012 echo "...made $cf_man_alias"
10016 cf_source=\`basename \$i\`
10017 inalias=\$cf_source
10018 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10019 if test ! -f \$inalias ; then
10020 echo .. skipped \$cf_source
10025 if test "$MANPAGE_ALIASES" != no ; then
10026 cat >>$cf_edit_man <<CF_EOF
10028 test $with_curses_h = yes && nCurses=ncurses.3x
10029 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10033 if test "$MANPAGE_RENAMES" = no ; then
10034 cat >>$cf_edit_man <<CF_EOF
10035 # perform program transformations for section 1 man pages
10036 if test \$section = 1 ; then
10037 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10039 cf_target=\$cf_subdir\${section}/\$cf_source
10043 cat >>$cf_edit_man <<CF_EOF
10044 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10045 if test -z "\$cf_target" ; then
10046 echo '? missing rename for '\$cf_source
10047 cf_target="\$cf_source"
10049 cf_target="\$cf_subdir\${section}/\${cf_target}"
10054 cat >>$cf_edit_man <<CF_EOF
10055 sed -f $cf_man_alias \\
10058 if test -f $MANPAGE_RENAMES ; then
10059 cat >>$cf_edit_man <<CF_EOF
10060 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10063 cat >>$cf_edit_man <<CF_EOF
10068 cat >>$cf_edit_man <<CF_EOF
10069 if test \$cf_tables = yes ; then
10070 tbl \$TMP >\$TMP.out
10075 if test $with_overwrite != yes ; then
10076 cat >>$cf_edit_man <<CF_EOF
10077 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10082 if test $with_curses_h != yes ; then
10083 cat >>$cf_edit_man <<CF_EOF
10084 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10089 cat >>$cf_edit_man <<CF_EOF
10090 if test \$form = format ; then
10091 nroff -man \$TMP >\$TMP.out
10096 if test -n "$cf_compress" ; then
10097 cat >>$cf_edit_man <<CF_EOF
10098 if test \$verb = installing ; then
10099 if ( $cf_compress -f \$TMP )
10101 mv \$TMP.$cf_so_strip \$TMP
10104 cf_target="\$cf_target.$cf_so_strip"
10108 case "$MANPAGE_FORMAT" in #(vi
10110 cat >>$cf_edit_man <<CF_EOF
10111 if test \$form = format ; then
10112 # BSDI installs only .0 suffixes in the cat directories
10113 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10119 cat >>$cf_edit_man <<CF_EOF
10120 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10121 if test \$verb = installing ; then
10122 echo \$verb \$cf_target
10123 \$INSTALL_DATA \$TMP \$cf_target
10124 test -d \$cf_subdir\${section} &&
10125 test -n "\$aliases" && (
10126 cd \$cf_subdir\${section} && (
10127 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10128 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10129 cf_target=\`basename \$cf_target\`
10130 for cf_alias in \$aliases
10132 if test \$section = 1 ; then
10133 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10136 if test "$MANPAGE_SYMLINKS" = yes ; then
10137 if test -f \$cf_alias\${suffix} ; then
10138 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10143 echo .. \$verb alias \$cf_alias\${suffix}
10145 case "x$LN_S" in #(vi
10147 cat >>$cf_edit_man <<CF_EOF
10148 $LN_S \$cf_target \$cf_alias\${suffix}
10152 cat >>$cf_edit_man <<CF_EOF
10153 rm -f \$cf_alias\${suffix}
10154 $LN_S \$cf_target \$cf_alias\${suffix}
10158 cat >>$cf_edit_man <<CF_EOF
10159 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10160 echo ".so \$cf_source" >\$TMP
10162 if test -n "$cf_compress" ; then
10163 cat >>$cf_edit_man <<CF_EOF
10164 if test -n "$cf_so_strip" ; then
10165 $cf_compress -f \$TMP
10166 mv \$TMP.$cf_so_strip \$TMP
10170 cat >>$cf_edit_man <<CF_EOF
10171 echo .. \$verb alias \$cf_alias\${suffix}
10172 rm -f \$cf_alias\${suffix}
10173 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10178 elif test \$verb = removing ; then
10179 test -f \$cf_target && (
10180 echo \$verb \$cf_target
10183 test -d \$cf_subdir\${section} &&
10184 test -n "\$aliases" && (
10185 cd \$cf_subdir\${section} && (
10186 for cf_alias in \$aliases
10188 if test \$section = 1 ; then
10189 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10192 echo .. \$verb alias \$cf_alias\${suffix}
10193 rm -f \$cf_alias\${suffix}
10205 if test $cf_inboth = yes ; then
10206 if test \$form != format ; then
10207 sh \$0 format \$verb \$mandir \$srcdir \$*
10213 chmod 755 $cf_edit_man
10215 ###############################################################################
10217 ### Note that some functions (such as const) are normally disabled anyway.
10218 echo "$as_me:10218: checking if you want to build with function extensions" >&5
10219 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10221 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10222 if test "${enable_ext_funcs+set}" = set; then
10223 enableval="$enable_ext_funcs"
10224 with_ext_funcs=$enableval
10228 echo "$as_me:10228: result: $with_ext_funcs" >&5
10229 echo "${ECHO_T}$with_ext_funcs" >&6
10230 if test "$with_ext_funcs" = yes ; then
10231 NCURSES_EXT_FUNCS=1
10232 cat >>confdefs.h <<\EOF
10233 #define HAVE_ASSUME_DEFAULT_COLORS 1
10236 cat >>confdefs.h <<\EOF
10237 #define HAVE_CURSES_VERSION 1
10240 cat >>confdefs.h <<\EOF
10241 #define HAVE_HAS_KEY 1
10244 cat >>confdefs.h <<\EOF
10245 #define HAVE_RESIZETERM 1
10248 cat >>confdefs.h <<\EOF
10249 #define HAVE_RESIZE_TERM 1
10252 cat >>confdefs.h <<\EOF
10253 #define HAVE_TERM_ENTRY_H 1
10256 cat >>confdefs.h <<\EOF
10257 #define HAVE_USE_DEFAULT_COLORS 1
10260 cat >>confdefs.h <<\EOF
10261 #define HAVE_USE_SCREEN 1
10264 cat >>confdefs.h <<\EOF
10265 #define HAVE_USE_WINDOW 1
10268 cat >>confdefs.h <<\EOF
10269 #define HAVE_WRESIZE 1
10272 cat >>confdefs.h <<\EOF
10273 #define NCURSES_EXT_FUNCS 1
10276 GENERATED_EXT_FUNCS=generated
10278 NCURSES_EXT_FUNCS=0
10279 GENERATED_EXT_FUNCS=
10282 echo "$as_me:10282: checking if you want to build with experimental SCREEN extensions" >&5
10283 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10285 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10286 if test "${enable_sp_funcs+set}" = set; then
10287 enableval="$enable_sp_funcs"
10288 with_sp_funcs=$enableval
10292 echo "$as_me:10292: result: $with_sp_funcs" >&5
10293 echo "${ECHO_T}$with_sp_funcs" >&6
10294 if test "$with_sp_funcs" = yes ; then
10296 cat >>confdefs.h <<\EOF
10297 #define NCURSES_SP_FUNCS 1
10300 GENERATED_SP_FUNCS=generated
10303 GENERATED_SP_FUNCS=
10306 echo "$as_me:10306: checking if you want to build with experimental terminal-driver" >&5
10307 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10309 # Check whether --enable-term-driver or --disable-term-driver was given.
10310 if test "${enable_term_driver+set}" = set; then
10311 enableval="$enable_term_driver"
10312 with_term_driver=$enableval
10314 with_term_driver=no
10316 echo "$as_me:10316: result: $with_term_driver" >&5
10317 echo "${ECHO_T}$with_term_driver" >&6
10318 if test "$with_term_driver" = yes ; then
10319 cat >>confdefs.h <<\EOF
10320 #define USE_TERM_DRIVER 1
10323 if test "$with_sp_funcs" != yes ; then
10324 { { echo "$as_me:10324: error: The term-driver option relies upon sp-funcs" >&5
10325 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10326 { (exit 1); exit 1; }; }
10330 ### use option --enable-const to turn on use of const beyond that in XSI.
10331 echo "$as_me:10331: checking for extended use of const keyword" >&5
10332 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10334 # Check whether --enable-const or --disable-const was given.
10335 if test "${enable_const+set}" = set; then
10336 enableval="$enable_const"
10337 with_ext_const=$enableval
10341 echo "$as_me:10341: result: $with_ext_const" >&5
10342 echo "${ECHO_T}$with_ext_const" >&6
10343 NCURSES_CONST='/*nothing*/'
10344 if test "$with_ext_const" = yes ; then
10345 NCURSES_CONST=const
10348 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10349 echo "$as_me:10349: checking if you want to use extended colors" >&5
10350 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10352 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10353 if test "${enable_ext_colors+set}" = set; then
10354 enableval="$enable_ext_colors"
10355 with_ext_colors=$enableval
10359 echo "$as_me:10359: result: $with_ext_colors" >&5
10360 echo "${ECHO_T}$with_ext_colors" >&6
10361 NCURSES_EXT_COLORS=0
10362 if test "$with_ext_colors" = yes ; then
10363 if test "$with_widec" != yes ; then
10364 { { echo "$as_me:10364: error: This option applies only to wide-character library" >&5
10365 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10366 { (exit 1); exit 1; }; }
10368 # cannot be ABI 5 since it changes sizeof(cchar_t)
10370 if test "${with_abi_version+set}" != set; then
10371 case $cf_cv_rel_version in
10373 cf_cv_rel_version=6.0
10374 cf_cv_abi_version=6
10375 { echo "$as_me:10375: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10376 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10382 NCURSES_EXT_COLORS=1
10383 cat >>confdefs.h <<\EOF
10384 #define NCURSES_EXT_COLORS 1
10389 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10390 echo "$as_me:10390: checking if you want to use extended mouse encoding" >&5
10391 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10393 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10394 if test "${enable_ext_mouse+set}" = set; then
10395 enableval="$enable_ext_mouse"
10396 with_ext_mouse=$enableval
10400 echo "$as_me:10400: result: $with_ext_mouse" >&5
10401 echo "${ECHO_T}$with_ext_mouse" >&6
10402 NCURSES_MOUSE_VERSION=1
10403 if test "$with_ext_mouse" = yes ; then
10404 NCURSES_MOUSE_VERSION=2
10406 if test "${with_abi_version+set}" != set; then
10407 case $cf_cv_rel_version in
10409 cf_cv_rel_version=6.0
10410 cf_cv_abi_version=6
10411 { echo "$as_me:10411: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10412 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10419 echo "$as_me:10419: checking if you want \$NCURSES_NO_PADDING code" >&5
10420 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10422 # Check whether --enable-no-padding or --disable-no-padding was given.
10423 if test "${enable_no_padding+set}" = set; then
10424 enableval="$enable_no_padding"
10425 with_no_padding=$enableval
10427 with_no_padding=$with_ext_funcs
10429 echo "$as_me:10429: result: $with_no_padding" >&5
10430 echo "${ECHO_T}$with_no_padding" >&6
10431 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10432 #define NCURSES_NO_PADDING 1
10435 echo "$as_me:10435: checking for ANSI C header files" >&5
10436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10437 if test "${ac_cv_header_stdc+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 cat >conftest.$ac_ext <<_ACEOF
10441 #line 10441 "configure"
10442 #include "confdefs.h"
10443 #include <stdlib.h>
10444 #include <stdarg.h>
10445 #include <string.h>
10449 if { (eval echo "$as_me:10449: \"$ac_cpp conftest.$ac_ext\"") >&5
10450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10452 egrep -v '^ *\+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:10455: \$? = $ac_status" >&5
10456 (exit $ac_status); } >/dev/null; then
10457 if test -s conftest.err; then
10458 ac_cpp_err=$ac_c_preproc_warn_flag
10465 if test -z "$ac_cpp_err"; then
10466 ac_cv_header_stdc=yes
10468 echo "$as_me: failed program was:" >&5
10469 cat conftest.$ac_ext >&5
10470 ac_cv_header_stdc=no
10472 rm -f conftest.err conftest.$ac_ext
10474 if test $ac_cv_header_stdc = yes; then
10475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line 10477 "configure"
10478 #include "confdefs.h"
10479 #include <string.h>
10482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10483 egrep "memchr" >/dev/null 2>&1; then
10486 ac_cv_header_stdc=no
10492 if test $ac_cv_header_stdc = yes; then
10493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10494 cat >conftest.$ac_ext <<_ACEOF
10495 #line 10495 "configure"
10496 #include "confdefs.h"
10497 #include <stdlib.h>
10500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10501 egrep "free" >/dev/null 2>&1; then
10504 ac_cv_header_stdc=no
10510 if test $ac_cv_header_stdc = yes; then
10511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10512 if test "$cross_compiling" = yes; then
10515 cat >conftest.$ac_ext <<_ACEOF
10516 #line 10516 "configure"
10517 #include "confdefs.h"
10519 #if ((' ' & 0x0FF) == 0x020)
10520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10523 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10524 || ('j' <= (c) && (c) <= 'r') \
10525 || ('s' <= (c) && (c) <= 'z'))
10526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10534 for (i = 0; i < 256; i++)
10535 if (XOR (islower (i), ISLOWER (i))
10536 || toupper (i) != TOUPPER (i))
10537 $ac_main_return(2);
10538 $ac_main_return (0);
10541 rm -f conftest$ac_exeext
10542 if { (eval echo "$as_me:10542: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>&5
10545 echo "$as_me:10545: \$? = $ac_status" >&5
10546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10547 { (eval echo "$as_me:10547: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:10550: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10554 echo "$as_me: program exited with status $ac_status" >&5
10555 echo "$as_me: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10557 ac_cv_header_stdc=no
10559 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10563 echo "$as_me:10563: result: $ac_cv_header_stdc" >&5
10564 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10565 if test $ac_cv_header_stdc = yes; then
10567 cat >>confdefs.h <<\EOF
10568 #define STDC_HEADERS 1
10573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10575 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10576 inttypes.h stdint.h unistd.h
10578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10579 echo "$as_me:10579: checking for $ac_header" >&5
10580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10585 #line 10585 "configure"
10586 #include "confdefs.h"
10587 $ac_includes_default
10588 #include <$ac_header>
10590 rm -f conftest.$ac_objext
10591 if { (eval echo "$as_me:10591: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>&5
10594 echo "$as_me:10594: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -s conftest.$ac_objext'
10597 { (eval echo "$as_me:10597: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10600 echo "$as_me:10600: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 eval "$as_ac_Header=yes"
10604 echo "$as_me: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 eval "$as_ac_Header=no"
10608 rm -f conftest.$ac_objext conftest.$ac_ext
10610 echo "$as_me:10610: result: `eval echo '${'$as_ac_Header'}'`" >&5
10611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10613 cat >>confdefs.h <<EOF
10614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10620 echo "$as_me:10620: checking for signed char" >&5
10621 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
10622 if test "${ac_cv_type_signed_char+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line 10626 "configure"
10627 #include "confdefs.h"
10628 $ac_includes_default
10632 if ((signed char *) 0)
10634 if (sizeof (signed char))
10640 rm -f conftest.$ac_objext
10641 if { (eval echo "$as_me:10641: \"$ac_compile\"") >&5
10642 (eval $ac_compile) 2>&5
10644 echo "$as_me:10644: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -s conftest.$ac_objext'
10647 { (eval echo "$as_me:10647: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:10650: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 ac_cv_type_signed_char=yes
10654 echo "$as_me: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 ac_cv_type_signed_char=no
10658 rm -f conftest.$ac_objext conftest.$ac_ext
10660 echo "$as_me:10660: result: $ac_cv_type_signed_char" >&5
10661 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
10663 echo "$as_me:10663: checking size of signed char" >&5
10664 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
10665 if test "${ac_cv_sizeof_signed_char+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 if test "$ac_cv_type_signed_char" = yes; then
10669 if test "$cross_compiling" = yes; then
10670 # Depending upon the size, compute the lo and hi bounds.
10671 cat >conftest.$ac_ext <<_ACEOF
10672 #line 10672 "configure"
10673 #include "confdefs.h"
10674 $ac_includes_default
10678 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
10683 rm -f conftest.$ac_objext
10684 if { (eval echo "$as_me:10684: \"$ac_compile\"") >&5
10685 (eval $ac_compile) 2>&5
10687 echo "$as_me:10687: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -s conftest.$ac_objext'
10690 { (eval echo "$as_me:10690: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10693 echo "$as_me:10693: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10697 cat >conftest.$ac_ext <<_ACEOF
10698 #line 10698 "configure"
10699 #include "confdefs.h"
10700 $ac_includes_default
10704 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10709 rm -f conftest.$ac_objext
10710 if { (eval echo "$as_me:10710: \"$ac_compile\"") >&5
10711 (eval $ac_compile) 2>&5
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try='test -s conftest.$ac_objext'
10716 { (eval echo "$as_me:10716: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:10719: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_hi=$ac_mid; break
10723 echo "$as_me: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10725 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10727 rm -f conftest.$ac_objext conftest.$ac_ext
10730 echo "$as_me: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10734 cat >conftest.$ac_ext <<_ACEOF
10735 #line 10735 "configure"
10736 #include "confdefs.h"
10737 $ac_includes_default
10741 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:10747: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>&5
10750 echo "$as_me:10750: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:10753: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:10756: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_lo=$ac_mid; break
10760 echo "$as_me: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10764 rm -f conftest.$ac_objext conftest.$ac_ext
10767 rm -f conftest.$ac_objext conftest.$ac_ext
10768 # Binary search between lo and hi bounds.
10769 while test "x$ac_lo" != "x$ac_hi"; do
10770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10771 cat >conftest.$ac_ext <<_ACEOF
10772 #line 10772 "configure"
10773 #include "confdefs.h"
10774 $ac_includes_default
10778 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10783 rm -f conftest.$ac_objext
10784 if { (eval echo "$as_me:10784: \"$ac_compile\"") >&5
10785 (eval $ac_compile) 2>&5
10787 echo "$as_me:10787: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -s conftest.$ac_objext'
10790 { (eval echo "$as_me:10790: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:10793: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10797 echo "$as_me: failed program was:" >&5
10798 cat conftest.$ac_ext >&5
10799 ac_lo=`expr $ac_mid + 1`
10801 rm -f conftest.$ac_objext conftest.$ac_ext
10803 ac_cv_sizeof_signed_char=$ac_lo
10805 if test "$cross_compiling" = yes; then
10806 { { echo "$as_me:10806: error: cannot run test program while cross compiling" >&5
10807 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10808 { (exit 1); exit 1; }; }
10810 cat >conftest.$ac_ext <<_ACEOF
10811 #line 10811 "configure"
10812 #include "confdefs.h"
10813 $ac_includes_default
10817 FILE *f = fopen ("conftest.val", "w");
10819 $ac_main_return (1);
10820 fprintf (f, "%d", (sizeof (signed char)));
10826 rm -f conftest$ac_exeext
10827 if { (eval echo "$as_me:10827: \"$ac_link\"") >&5
10828 (eval $ac_link) 2>&5
10830 echo "$as_me:10830: \$? = $ac_status" >&5
10831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10832 { (eval echo "$as_me:10832: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:10835: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_cv_sizeof_signed_char=`cat conftest.val`
10839 echo "$as_me: program exited with status $ac_status" >&5
10840 echo "$as_me: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10843 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10848 ac_cv_sizeof_signed_char=0
10851 echo "$as_me:10851: result: $ac_cv_sizeof_signed_char" >&5
10852 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10853 cat >>confdefs.h <<EOF
10854 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10857 if test "$ac_cv_sizeof_signed_char" = 1 ; then
10858 NCURSES_SBOOL="signed char"
10860 NCURSES_SBOOL="char"
10862 echo "$as_me:10862: checking if you want to use signed Boolean array in term.h" >&5
10863 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
10865 # Check whether --enable-signed-char or --disable-signed-char was given.
10866 if test "${enable_signed_char+set}" = set; then
10867 enableval="$enable_signed_char"
10868 with_signed_char=$enableval
10870 with_signed_char=no
10872 echo "$as_me:10872: result: $with_signed_char" >&5
10873 echo "${ECHO_T}$with_signed_char" >&6
10874 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
10876 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
10877 echo "$as_me:10877: checking if you want SIGWINCH handler" >&5
10878 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
10880 # Check whether --enable-sigwinch or --disable-sigwinch was given.
10881 if test "${enable_sigwinch+set}" = set; then
10882 enableval="$enable_sigwinch"
10883 with_sigwinch=$enableval
10885 with_sigwinch=$with_ext_funcs
10887 echo "$as_me:10887: result: $with_sigwinch" >&5
10888 echo "${ECHO_T}$with_sigwinch" >&6
10889 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
10890 #define USE_SIGWINCH 1
10893 ### use option --enable-tcap-names to allow user to define new capabilities
10894 echo "$as_me:10894: checking if you want user-definable terminal capabilities like termcap" >&5
10895 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
10897 # Check whether --enable-tcap-names or --disable-tcap-names was given.
10898 if test "${enable_tcap_names+set}" = set; then
10899 enableval="$enable_tcap_names"
10900 with_tcap_names=$enableval
10902 with_tcap_names=$with_ext_funcs
10904 echo "$as_me:10904: result: $with_tcap_names" >&5
10905 echo "${ECHO_T}$with_tcap_names" >&6
10907 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
10909 ###############################################################################
10910 # These options are relatively safe to experiment with.
10912 echo "$as_me:10912: checking if you want all development code" >&5
10913 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
10915 # Check whether --with-develop or --without-develop was given.
10916 if test "${with_develop+set}" = set; then
10917 withval="$with_develop"
10918 with_develop=$withval
10922 echo "$as_me:10922: result: $with_develop" >&5
10923 echo "${ECHO_T}$with_develop" >&6
10925 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
10926 echo "$as_me:10926: checking if you want hard-tabs code" >&5
10927 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
10929 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
10930 if test "${enable_hard_tabs+set}" = set; then
10931 enableval="$enable_hard_tabs"
10934 enable_hard_tabs=$with_develop
10936 echo "$as_me:10936: result: $enable_hard_tabs" >&5
10937 echo "${ECHO_T}$enable_hard_tabs" >&6
10938 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
10939 #define USE_HARD_TABS 1
10942 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
10943 echo "$as_me:10943: checking if you want limited support for xmc" >&5
10944 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
10946 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
10947 if test "${enable_xmc_glitch+set}" = set; then
10948 enableval="$enable_xmc_glitch"
10951 enable_xmc_glitch=$with_develop
10953 echo "$as_me:10953: result: $enable_xmc_glitch" >&5
10954 echo "${ECHO_T}$enable_xmc_glitch" >&6
10955 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10956 #define USE_XMC_SUPPORT 1
10959 ###############################################################################
10960 # These are just experimental, probably should not be in a package:
10962 echo "$as_me:10962: checking if you do not want to assume colors are white-on-black" >&5
10963 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10965 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10966 if test "${enable_assumed_color+set}" = set; then
10967 enableval="$enable_assumed_color"
10968 with_assumed_color=$enableval
10970 with_assumed_color=yes
10972 echo "$as_me:10972: result: $with_assumed_color" >&5
10973 echo "${ECHO_T}$with_assumed_color" >&6
10974 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10975 #define USE_ASSUMED_COLOR 1
10978 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10979 echo "$as_me:10979: checking if you want hashmap scrolling-optimization code" >&5
10980 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10982 # Check whether --enable-hashmap or --disable-hashmap was given.
10983 if test "${enable_hashmap+set}" = set; then
10984 enableval="$enable_hashmap"
10985 with_hashmap=$enableval
10989 echo "$as_me:10989: result: $with_hashmap" >&5
10990 echo "${ECHO_T}$with_hashmap" >&6
10991 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10992 #define USE_HASHMAP 1
10995 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10996 echo "$as_me:10996: checking if you want colorfgbg code" >&5
10997 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10999 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11000 if test "${enable_colorfgbg+set}" = set; then
11001 enableval="$enable_colorfgbg"
11002 with_colorfgbg=$enableval
11006 echo "$as_me:11006: result: $with_colorfgbg" >&5
11007 echo "${ECHO_T}$with_colorfgbg" >&6
11008 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
11009 #define USE_COLORFGBG 1
11012 ### use option --enable-interop to turn on use of bindings used for interop
11013 echo "$as_me:11013: checking if you want interop bindings" >&5
11014 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11016 # Check whether --enable-interop or --disable-interop was given.
11017 if test "${enable_interop+set}" = set; then
11018 enableval="$enable_interop"
11019 with_exp_interop=$enableval
11021 with_exp_interop=no
11023 echo "$as_me:11023: result: $with_exp_interop" >&5
11024 echo "${ECHO_T}$with_exp_interop" >&6
11026 NCURSES_INTEROP_FUNCS=0
11027 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
11029 # This is still experimental (20080329), but should ultimately be moved to
11030 # the script-block --with-normal, etc.
11032 echo "$as_me:11032: checking if you want to link with the pthread library" >&5
11033 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11035 # Check whether --with-pthread or --without-pthread was given.
11036 if test "${with_pthread+set}" = set; then
11037 withval="$with_pthread"
11038 with_pthread=$withval
11042 echo "$as_me:11042: result: $with_pthread" >&5
11043 echo "${ECHO_T}$with_pthread" >&6
11045 if test "$with_pthread" != no ; then
11046 echo "$as_me:11046: checking for pthread.h" >&5
11047 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11048 if test "${ac_cv_header_pthread_h+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11052 #line 11052 "configure"
11053 #include "confdefs.h"
11054 #include <pthread.h>
11056 if { (eval echo "$as_me:11056: \"$ac_cpp conftest.$ac_ext\"") >&5
11057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11059 egrep -v '^ *\+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:11062: \$? = $ac_status" >&5
11063 (exit $ac_status); } >/dev/null; then
11064 if test -s conftest.err; then
11065 ac_cpp_err=$ac_c_preproc_warn_flag
11072 if test -z "$ac_cpp_err"; then
11073 ac_cv_header_pthread_h=yes
11075 echo "$as_me: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11077 ac_cv_header_pthread_h=no
11079 rm -f conftest.err conftest.$ac_ext
11081 echo "$as_me:11081: result: $ac_cv_header_pthread_h" >&5
11082 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11083 if test $ac_cv_header_pthread_h = yes; then
11085 cat >>confdefs.h <<\EOF
11086 #define HAVE_PTHREADS_H 1
11089 echo "$as_me:11089: checking if we can link with the pthread library" >&5
11090 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
11091 cf_save_LIBS="$LIBS"
11092 LIBS="-lpthread $LIBS"
11093 cat >conftest.$ac_ext <<_ACEOF
11094 #line 11094 "configure"
11095 #include "confdefs.h"
11097 #include <pthread.h>
11103 int rc = pthread_create(0,0,0,0);
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:11110: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>&5
11113 echo "$as_me:11113: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -s conftest$ac_exeext'
11116 { (eval echo "$as_me:11116: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:11119: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11123 echo "$as_me: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11128 LIBS="$cf_save_LIBS"
11129 echo "$as_me:11129: result: $with_pthread" >&5
11130 echo "${ECHO_T}$with_pthread" >&6
11132 if test "$with_pthread" = yes ; then
11133 LIBS="-lpthread $LIBS"
11134 cat >>confdefs.h <<\EOF
11135 #define HAVE_LIBPTHREADS 1
11139 { { echo "$as_me:11139: error: Cannot link with pthread library" >&5
11140 echo "$as_me: error: Cannot link with pthread library" >&2;}
11141 { (exit 1); exit 1; }; }
11148 if test "x$with_pthread" != xno; then
11149 echo "$as_me:11149: checking for pthread_kill" >&5
11150 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11151 if test "${ac_cv_func_pthread_kill+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 cat >conftest.$ac_ext <<_ACEOF
11155 #line 11155 "configure"
11156 #include "confdefs.h"
11157 /* System header to define __stub macros and hopefully few prototypes,
11158 which can conflict with char pthread_kill (); below. */
11159 #include <assert.h>
11160 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166 char pthread_kill ();
11172 /* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (eval echo "$as_me:11186: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11189 echo "$as_me:11189: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -s conftest$ac_exeext'
11192 { (eval echo "$as_me:11192: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11195 echo "$as_me:11195: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_func_pthread_kill=yes
11199 echo "$as_me: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11201 ac_cv_func_pthread_kill=no
11203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11205 echo "$as_me:11205: result: $ac_cv_func_pthread_kill" >&5
11206 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11207 if test $ac_cv_func_pthread_kill = yes; then
11209 echo "$as_me:11209: checking if you want to allow EINTR in wgetch with pthreads" >&5
11210 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11212 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11213 if test "${enable_pthreads_eintr+set}" = set; then
11214 enableval="$enable_pthreads_eintr"
11215 use_pthreads_eintr=$enableval
11217 use_pthreads_eintr=no
11219 echo "$as_me:11219: result: $use_pthreads_eintr" >&5
11220 echo "${ECHO_T}$use_pthreads_eintr" >&6
11221 if test $use_pthreads_eintr = yes ; then
11222 cat >>confdefs.h <<\EOF
11223 #define USE_PTHREADS_EINTR 1
11229 echo "$as_me:11229: checking if you want to use weak-symbols for pthreads" >&5
11230 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11232 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11233 if test "${enable_weak_symbols+set}" = set; then
11234 enableval="$enable_weak_symbols"
11235 use_weak_symbols=$enableval
11237 use_weak_symbols=no
11239 echo "$as_me:11239: result: $use_weak_symbols" >&5
11240 echo "${ECHO_T}$use_weak_symbols" >&6
11241 if test "$use_weak_symbols" = yes ; then
11243 echo "$as_me:11243: checking if $CC supports weak symbols" >&5
11244 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11245 if test "${cf_cv_weak_symbols+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11250 #line 11250 "configure"
11251 #include "confdefs.h"
11258 #if defined(__GNUC__)
11259 # if defined __USE_ISOC99
11260 # define _cat_pragma(exp) _Pragma(#exp)
11261 # define _weak_pragma(exp) _cat_pragma(weak name)
11263 # define _weak_pragma(exp)
11265 # define _declare(name) __extension__ extern __typeof__(name) name
11266 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11269 weak_symbol(fopen);
11275 rm -f conftest.$ac_objext
11276 if { (eval echo "$as_me:11276: \"$ac_compile\"") >&5
11277 (eval $ac_compile) 2>&5
11279 echo "$as_me:11279: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (eval echo "$as_me:11282: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:11285: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 cf_cv_weak_symbols=yes
11289 echo "$as_me: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11291 cf_cv_weak_symbols=no
11293 rm -f conftest.$ac_objext conftest.$ac_ext
11296 echo "$as_me:11296: result: $cf_cv_weak_symbols" >&5
11297 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11300 cf_cv_weak_symbols=no
11303 if test $cf_cv_weak_symbols = yes ; then
11304 cat >>confdefs.h <<\EOF
11305 #define USE_WEAK_SYMBOLS 1
11312 if test "$with_pthread" = "yes" ; then
11313 cat >>confdefs.h <<\EOF
11314 #define USE_PTHREADS 1
11317 enable_reentrant=yes
11318 if test $cf_cv_weak_symbols = yes ; then
11323 # Reentrant code has to be opaque; there's little advantage to making ncurses
11324 # opaque outside of that, so there is no --enable-opaque option. We can use
11325 # this option without --with-pthreads, but this will be always set for
11327 echo "$as_me:11327: checking if you want experimental reentrant code" >&5
11328 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11330 # Check whether --enable-reentrant or --disable-reentrant was given.
11331 if test "${enable_reentrant+set}" = set; then
11332 enableval="$enable_reentrant"
11333 with_reentrant=$enableval
11337 echo "$as_me:11337: result: $with_reentrant" >&5
11338 echo "${ECHO_T}$with_reentrant" >&6
11339 if test "$with_reentrant" = yes ; then
11340 cf_cv_enable_reentrant=1
11341 cf_cv_enable_opaque="NCURSES_INTERNALS"
11344 if test $cf_cv_weak_symbols = yes ; then
11346 # remove pthread library from $LIBS
11347 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11349 TEST_LIBS="-lpthread $TEST_LIBS"
11350 TEST_LIBS2="-lpthread $TEST_LIBS2"
11352 LIB_SUFFIX="t${LIB_SUFFIX}"
11354 cat >>confdefs.h <<\EOF
11355 #define USE_REENTRANT 1
11358 if test "${with_abi_version+set}" != set; then
11359 case $cf_cv_rel_version in
11361 cf_cv_rel_version=6.0
11362 cf_cv_abi_version=6
11363 { echo "$as_me:11363: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11364 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11370 cf_cv_enable_reentrant=0
11371 cf_cv_enable_opaque="NCURSES_OPAQUE"
11373 NCURSES_SIZE_T=short
11376 ### Allow using a different wrap-prefix
11377 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11378 echo "$as_me:11378: checking for prefix used to wrap public variables" >&5
11379 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11381 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11382 if test "${with_wrap_prefix+set}" = set; then
11383 withval="$with_wrap_prefix"
11384 NCURSES_WRAP_PREFIX=$withval
11386 NCURSES_WRAP_PREFIX=_nc_
11388 echo "$as_me:11388: result: $NCURSES_WRAP_PREFIX" >&5
11389 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11391 NCURSES_WRAP_PREFIX=_nc_
11394 cat >>confdefs.h <<EOF
11395 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11398 echo "$as_me:11398: checking if you want experimental safe-sprintf code" >&5
11399 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11401 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11402 if test "${enable_safe_sprintf+set}" = set; then
11403 enableval="$enable_safe_sprintf"
11404 with_safe_sprintf=$enableval
11406 with_safe_sprintf=no
11408 echo "$as_me:11408: result: $with_safe_sprintf" >&5
11409 echo "${ECHO_T}$with_safe_sprintf" >&6
11410 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11411 #define USE_SAFE_SPRINTF 1
11414 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11415 # when hashmap is used scroll hints are useless
11416 if test "$with_hashmap" = no ; then
11417 echo "$as_me:11417: checking if you want to experiment without scrolling-hints code" >&5
11418 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11420 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11421 if test "${enable_scroll_hints+set}" = set; then
11422 enableval="$enable_scroll_hints"
11423 with_scroll_hints=$enableval
11425 with_scroll_hints=yes
11427 echo "$as_me:11427: result: $with_scroll_hints" >&5
11428 echo "${ECHO_T}$with_scroll_hints" >&6
11429 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11430 #define USE_SCROLL_HINTS 1
11435 echo "$as_me:11435: checking if you want experimental wgetch-events code" >&5
11436 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11438 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11439 if test "${enable_wgetch_events+set}" = set; then
11440 enableval="$enable_wgetch_events"
11441 with_wgetch_events=$enableval
11443 with_wgetch_events=no
11445 echo "$as_me:11445: result: $with_wgetch_events" >&5
11446 echo "${ECHO_T}$with_wgetch_events" >&6
11447 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
11448 #define NCURSES_WGETCH_EVENTS 1
11451 ###############################################################################
11453 ### use option --disable-echo to suppress full display compiling commands
11454 echo "$as_me:11454: checking if you want to display full commands during build" >&5
11455 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
11457 # Check whether --enable-echo or --disable-echo was given.
11458 if test "${enable_echo+set}" = set; then
11459 enableval="$enable_echo"
11460 with_echo=$enableval
11464 if test "$with_echo" = yes; then
11467 ECHO_LINK='@ echo linking $@ ... ;'
11468 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11469 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11471 echo "$as_me:11471: result: $with_echo" >&5
11472 echo "${ECHO_T}$with_echo" >&6
11474 ### use option --enable-warnings to turn on all gcc warnings
11475 echo "$as_me:11475: checking if you want to see compiler warnings" >&5
11476 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
11478 # Check whether --enable-warnings or --disable-warnings was given.
11479 if test "${enable_warnings+set}" = set; then
11480 enableval="$enable_warnings"
11481 with_warnings=$enableval
11483 echo "$as_me:11483: result: $with_warnings" >&5
11484 echo "${ECHO_T}$with_warnings" >&6
11486 if test "x$with_warnings" = "xyes"; then
11488 ADAFLAGS="$ADAFLAGS -gnatg"
11492 if test "$GCC" = yes ; then
11495 echo "$as_me:11495: checking if this is really Intel C compiler" >&5
11496 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
11497 cf_save_CFLAGS="$CFLAGS"
11498 CFLAGS="$CFLAGS -no-gcc"
11499 cat >conftest.$ac_ext <<_ACEOF
11500 #line 11500 "configure"
11501 #include "confdefs.h"
11507 #ifdef __INTEL_COMPILER
11516 rm -f conftest.$ac_objext
11517 if { (eval echo "$as_me:11517: \"$ac_compile\"") >&5
11518 (eval $ac_compile) 2>&5
11520 echo "$as_me:11520: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -s conftest.$ac_objext'
11523 { (eval echo "$as_me:11523: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:11526: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11529 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11532 echo "$as_me: failed program was:" >&5
11533 cat conftest.$ac_ext >&5
11535 rm -f conftest.$ac_objext conftest.$ac_ext
11536 CFLAGS="$cf_save_CFLAGS"
11537 echo "$as_me:11537: result: $INTEL_COMPILER" >&5
11538 echo "${ECHO_T}$INTEL_COMPILER" >&6
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11544 "${as_me:-configure}"
11545 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11548 if test "$INTEL_COMPILER" = yes
11550 # The "-wdXXX" options suppress warnings:
11551 # remark #1419: external declaration in primary source file
11552 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11553 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11554 # remark #193: zero used for undefined preprocessing identifier
11555 # remark #593: variable "curs_sb_left_arrow" was set but never used
11556 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11557 # remark #869: parameter "tw" was never referenced
11558 # remark #981: operands are evaluated in unspecified order
11559 # warning #279: controlling expression is constant
11561 { echo "$as_me:11561: checking for $CC warning options..." >&5
11562 echo "$as_me: checking for $CC warning options..." >&6;}
11563 cf_save_CFLAGS="$CFLAGS"
11564 EXTRA_CFLAGS="-Wall"
11576 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11577 if { (eval echo "$as_me:11577: \"$ac_compile\"") >&5
11578 (eval $ac_compile) 2>&5
11580 echo "$as_me:11580: \$? = $ac_status" >&5
11581 (exit $ac_status); }; then
11582 test -n "$verbose" && echo "$as_me:11582: result: ... -$cf_opt" >&5
11583 echo "${ECHO_T}... -$cf_opt" >&6
11584 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11587 CFLAGS="$cf_save_CFLAGS"
11589 elif test "$GCC" = yes
11591 { echo "$as_me:11591: checking for $CC warning options..." >&5
11592 echo "$as_me: checking for $CC warning options..." >&6;}
11593 cf_save_CFLAGS="$CFLAGS"
11596 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
11597 for cf_opt in W Wall \
11598 Wbad-function-cast \
11602 Wmissing-declarations \
11603 Wmissing-prototypes \
11607 Wstrict-prototypes \
11608 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
11610 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11611 if { (eval echo "$as_me:11611: \"$ac_compile\"") >&5
11612 (eval $ac_compile) 2>&5
11614 echo "$as_me:11614: \$? = $ac_status" >&5
11615 (exit $ac_status); }; then
11616 test -n "$verbose" && echo "$as_me:11616: result: ... -$cf_opt" >&5
11617 echo "${ECHO_T}... -$cf_opt" >&6
11618 case $cf_opt in #(vi
11620 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
11623 case $GCC_VERSION in
11625 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
11627 echo "${as_me:-configure}:11627: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
11633 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11636 CFLAGS="$cf_save_CFLAGS"
11640 if test "$cf_with_cxx" = yes ; then
11644 if test "$GCC" = yes ; then
11647 echo "$as_me:11647: checking if this is really Intel C++ compiler" >&5
11648 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
11649 cf_save_CFLAGS="$CXXFLAGS"
11650 CXXFLAGS="$CXXFLAGS -no-gcc"
11651 cat >conftest.$ac_ext <<_ACEOF
11652 #line 11652 "configure"
11653 #include "confdefs.h"
11659 #ifdef __INTEL_COMPILER
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:11669: \"$ac_compile\"") >&5
11670 (eval $ac_compile) 2>&5
11672 echo "$as_me:11672: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -s conftest.$ac_objext'
11675 { (eval echo "$as_me:11675: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:11678: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 INTEL_CPLUSPLUS=yes
11681 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11684 echo "$as_me: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11687 rm -f conftest.$ac_objext conftest.$ac_ext
11688 CXXFLAGS="$cf_save_CFLAGS"
11689 echo "$as_me:11689: result: $INTEL_CPLUSPLUS" >&5
11690 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
11696 ac_cpp='$CXXCPP $CPPFLAGS'
11697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11700 ac_main_return=return
11702 cat > conftest.$ac_ext <<EOF
11703 #line 11703 "configure"
11704 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11707 if test "$INTEL_CPLUSPLUS" = yes
11709 # The "-wdXXX" options suppress warnings:
11710 # remark #1419: external declaration in primary source file
11711 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11712 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11713 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11714 # remark #193: zero used for undefined preprocessing identifier
11715 # remark #593: variable "curs_sb_left_arrow" was set but never used
11716 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11717 # remark #869: parameter "tw" was never referenced
11718 # remark #981: operands are evaluated in unspecified order
11719 # warning #269: invalid format string conversion
11721 { echo "$as_me:11721: checking for $CC warning options..." >&5
11722 echo "$as_me: checking for $CC warning options..." >&6;}
11723 cf_save_CXXFLAGS="$CXXFLAGS"
11724 EXTRA_CXXFLAGS="-Wall"
11737 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
11738 if { (eval echo "$as_me:11738: \"$ac_compile\"") >&5
11739 (eval $ac_compile) 2>&5
11741 echo "$as_me:11741: \$? = $ac_status" >&5
11742 (exit $ac_status); }; then
11743 test -n "$verbose" && echo "$as_me:11743: result: ... -$cf_opt" >&5
11744 echo "${ECHO_T}... -$cf_opt" >&6
11745 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11748 CXXFLAGS="$cf_save_CXXFLAGS"
11750 elif test "$GXX" = yes
11752 { echo "$as_me:11752: checking for $CXX warning options..." >&5
11753 echo "$as_me: checking for $CXX warning options..." >&6;}
11754 cf_save_CXXFLAGS="$CXXFLAGS"
11755 EXTRA_CXXFLAGS="-W -Wall"
11756 cf_gxx_extra_warnings=""
11757 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
11758 case "$GCC_VERSION" in
11762 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
11768 Woverloaded-virtual \
11774 Wmissing-prototypes \
11777 Wstrict-prototypes \
11778 Wundef $cf_gxx_extra_warnings Wno-unused
11780 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
11781 if { (eval echo "$as_me:11781: \"$ac_compile\"") >&5
11782 (eval $ac_compile) 2>&5
11784 echo "$as_me:11784: \$? = $ac_status" >&5
11785 (exit $ac_status); }; then
11786 test -n "$verbose" && echo "$as_me:11786: result: ... -$cf_opt" >&5
11787 echo "${ECHO_T}... -$cf_opt" >&6
11788 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11790 test -n "$verbose" && echo "$as_me:11790: result: ... no -$cf_opt" >&5
11791 echo "${ECHO_T}... no -$cf_opt" >&6
11794 CXXFLAGS="$cf_save_CXXFLAGS"
11799 ac_cpp='$CPP $CPPFLAGS'
11800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803 ac_main_return=return
11808 if test "$GCC" = yes
11810 cat > conftest.i <<EOF
11812 #define GCC_PRINTF 0
11815 #define GCC_SCANF 0
11817 #ifndef GCC_NORETURN
11818 #define GCC_NORETURN /* nothing */
11821 #define GCC_UNUSED /* nothing */
11824 if test "$GCC" = yes
11826 { echo "$as_me:11826: checking for $CC __attribute__ directives..." >&5
11827 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
11828 cat > conftest.$ac_ext <<EOF
11829 #line 11829 "${as_me:-configure}"
11830 #include "confdefs.h"
11831 #include "conftest.h"
11832 #include "conftest.i"
11834 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11836 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
11839 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11841 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
11843 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
11844 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
11845 extern void foo(void) GCC_NORETURN;
11846 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
11848 cf_printf_attribute=no
11849 cf_scanf_attribute=no
11850 for cf_attribute in scanf printf unused noreturn
11853 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11855 cf_directive="__attribute__(($cf_attribute))"
11856 echo "checking for $CC $cf_directive" 1>&5
11858 case $cf_attribute in #(vi
11860 cf_printf_attribute=yes
11861 cat >conftest.h <<EOF
11862 #define GCC_$cf_ATTRIBUTE 1
11866 cf_scanf_attribute=yes
11867 cat >conftest.h <<EOF
11868 #define GCC_$cf_ATTRIBUTE 1
11872 cat >conftest.h <<EOF
11873 #define GCC_$cf_ATTRIBUTE $cf_directive
11878 if { (eval echo "$as_me:11878: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>&5
11881 echo "$as_me:11881: \$? = $ac_status" >&5
11882 (exit $ac_status); }; then
11883 test -n "$verbose" && echo "$as_me:11883: result: ... $cf_attribute" >&5
11884 echo "${ECHO_T}... $cf_attribute" >&6
11885 cat conftest.h >>confdefs.h
11886 case $cf_attribute in #(vi
11888 if test "$cf_printf_attribute" = no ; then
11889 cat >>confdefs.h <<EOF
11890 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
11893 cat >>confdefs.h <<EOF
11894 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11899 if test "$cf_scanf_attribute" = no ; then
11900 cat >>confdefs.h <<EOF
11901 #define GCC_SCANFLIKE(fmt,var) /* nothing */
11904 cat >>confdefs.h <<EOF
11905 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11913 fgrep define conftest.i >>confdefs.h
11918 ### use option --enable-assertions to turn on generation of assertion code
11919 echo "$as_me:11919: checking if you want to enable runtime assertions" >&5
11920 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
11922 # Check whether --enable-assertions or --disable-assertions was given.
11923 if test "${enable_assertions+set}" = set; then
11924 enableval="$enable_assertions"
11925 with_assertions=$enableval
11929 echo "$as_me:11929: result: $with_assertions" >&5
11930 echo "${ECHO_T}$with_assertions" >&6
11933 if test "$with_assertions" = no
11935 cat >>confdefs.h <<\EOF
11939 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11942 ADAFLAGS="$ADAFLAGS -gnata"
11947 ### use option --disable-leaks to suppress "permanent" leaks, for testing
11949 echo "$as_me:11949: checking if you want to use dmalloc for testing" >&5
11950 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
11952 # Check whether --with-dmalloc or --without-dmalloc was given.
11953 if test "${with_dmalloc+set}" = set; then
11954 withval="$with_dmalloc"
11955 cat >>confdefs.h <<\EOF
11956 #define USE_DMALLOC 1
11959 : ${with_cflags:=-g}
11960 : ${with_no_leaks:=yes}
11965 echo "$as_me:11965: result: ${with_dmalloc:-no}" >&5
11966 echo "${ECHO_T}${with_dmalloc:-no}" >&6
11968 case .$with_cflags in #(vi
11970 case .$CFLAGS in #(vi
11978 cf_new_extra_cppflags=
11980 for cf_add_cflags in -g
11982 case $cf_fix_cppflags in
11984 case $cf_add_cflags in #(vi
11985 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11986 case $cf_add_cflags in
11988 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11990 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11991 && test -z "${cf_tst_cflags}" \
11992 && cf_fix_cppflags=yes
11994 if test $cf_fix_cppflags = yes ; then
11995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11997 elif test "${cf_tst_cflags}" = "\"'" ; then
11998 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12003 case "$CPPFLAGS" in
12004 *$cf_add_cflags) #(vi
12007 case $cf_add_cflags in #(vi
12009 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12011 CPPFLAGS=`echo "$CPPFLAGS" | \
12012 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12013 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12017 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12022 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12027 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12029 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12031 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12032 && test -z "${cf_tst_cflags}" \
12033 && cf_fix_cppflags=no
12038 if test -n "$cf_new_cflags" ; then
12040 CFLAGS="$CFLAGS $cf_new_cflags"
12043 if test -n "$cf_new_cppflags" ; then
12045 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12048 if test -n "$cf_new_extra_cppflags" ; then
12050 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12058 if test "$with_dmalloc" = yes ; then
12059 echo "$as_me:12059: checking for dmalloc.h" >&5
12060 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12061 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 cat >conftest.$ac_ext <<_ACEOF
12065 #line 12065 "configure"
12066 #include "confdefs.h"
12067 #include <dmalloc.h>
12069 if { (eval echo "$as_me:12069: \"$ac_cpp conftest.$ac_ext\"") >&5
12070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12072 egrep -v '^ *\+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:12075: \$? = $ac_status" >&5
12076 (exit $ac_status); } >/dev/null; then
12077 if test -s conftest.err; then
12078 ac_cpp_err=$ac_c_preproc_warn_flag
12085 if test -z "$ac_cpp_err"; then
12086 ac_cv_header_dmalloc_h=yes
12088 echo "$as_me: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12090 ac_cv_header_dmalloc_h=no
12092 rm -f conftest.err conftest.$ac_ext
12094 echo "$as_me:12094: result: $ac_cv_header_dmalloc_h" >&5
12095 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
12096 if test $ac_cv_header_dmalloc_h = yes; then
12098 echo "$as_me:12098: checking for dmalloc_debug in -ldmalloc" >&5
12099 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
12100 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-ldmalloc $LIBS"
12105 cat >conftest.$ac_ext <<_ACEOF
12106 #line 12106 "configure"
12107 #include "confdefs.h"
12109 /* Override any gcc2 internal prototype to avoid an error. */
12113 /* We use char because int might match the return type of a gcc2
12114 builtin and then its argument prototype would still apply. */
12115 char dmalloc_debug ();
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (eval echo "$as_me:12125: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12128 echo "$as_me:12128: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (eval echo "$as_me:12131: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:12134: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_cv_lib_dmalloc_dmalloc_debug=yes
12138 echo "$as_me: failed program was:" >&5
12139 cat conftest.$ac_ext >&5
12140 ac_cv_lib_dmalloc_dmalloc_debug=no
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 echo "$as_me:12145: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
12147 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
12148 cat >>confdefs.h <<EOF
12149 #define HAVE_LIBDMALLOC 1
12152 LIBS="-ldmalloc $LIBS"
12160 echo "$as_me:12160: checking if you want to use dbmalloc for testing" >&5
12161 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12163 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12164 if test "${with_dbmalloc+set}" = set; then
12165 withval="$with_dbmalloc"
12166 cat >>confdefs.h <<\EOF
12167 #define USE_DBMALLOC 1
12170 : ${with_cflags:=-g}
12171 : ${with_no_leaks:=yes}
12176 echo "$as_me:12176: result: ${with_dbmalloc:-no}" >&5
12177 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12179 case .$with_cflags in #(vi
12181 case .$CFLAGS in #(vi
12189 cf_new_extra_cppflags=
12191 for cf_add_cflags in -g
12193 case $cf_fix_cppflags in
12195 case $cf_add_cflags in #(vi
12196 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12197 case $cf_add_cflags in
12199 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12201 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12202 && test -z "${cf_tst_cflags}" \
12203 && cf_fix_cppflags=yes
12205 if test $cf_fix_cppflags = yes ; then
12206 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12208 elif test "${cf_tst_cflags}" = "\"'" ; then
12209 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12214 case "$CPPFLAGS" in
12215 *$cf_add_cflags) #(vi
12218 case $cf_add_cflags in #(vi
12220 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12222 CPPFLAGS=`echo "$CPPFLAGS" | \
12223 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12224 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12228 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12233 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12238 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12240 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12242 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12243 && test -z "${cf_tst_cflags}" \
12244 && cf_fix_cppflags=no
12249 if test -n "$cf_new_cflags" ; then
12251 CFLAGS="$CFLAGS $cf_new_cflags"
12254 if test -n "$cf_new_cppflags" ; then
12256 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12259 if test -n "$cf_new_extra_cppflags" ; then
12261 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12269 if test "$with_dbmalloc" = yes ; then
12270 echo "$as_me:12270: checking for dbmalloc.h" >&5
12271 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12272 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12276 #line 12276 "configure"
12277 #include "confdefs.h"
12278 #include <dbmalloc.h>
12280 if { (eval echo "$as_me:12280: \"$ac_cpp conftest.$ac_ext\"") >&5
12281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12283 egrep -v '^ *\+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:12286: \$? = $ac_status" >&5
12287 (exit $ac_status); } >/dev/null; then
12288 if test -s conftest.err; then
12289 ac_cpp_err=$ac_c_preproc_warn_flag
12296 if test -z "$ac_cpp_err"; then
12297 ac_cv_header_dbmalloc_h=yes
12299 echo "$as_me: failed program was:" >&5
12300 cat conftest.$ac_ext >&5
12301 ac_cv_header_dbmalloc_h=no
12303 rm -f conftest.err conftest.$ac_ext
12305 echo "$as_me:12305: result: $ac_cv_header_dbmalloc_h" >&5
12306 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
12307 if test $ac_cv_header_dbmalloc_h = yes; then
12309 echo "$as_me:12309: checking for debug_malloc in -ldbmalloc" >&5
12310 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
12311 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-ldbmalloc $LIBS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 #line 12317 "configure"
12318 #include "confdefs.h"
12320 /* Override any gcc2 internal prototype to avoid an error. */
12324 /* We use char because int might match the return type of a gcc2
12325 builtin and then its argument prototype would still apply. */
12326 char debug_malloc ();
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:12336: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>&5
12339 echo "$as_me:12339: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -s conftest$ac_exeext'
12342 { (eval echo "$as_me:12342: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12345 echo "$as_me:12345: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_cv_lib_dbmalloc_debug_malloc=yes
12349 echo "$as_me: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12351 ac_cv_lib_dbmalloc_debug_malloc=no
12353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12356 echo "$as_me:12356: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
12357 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
12358 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
12359 cat >>confdefs.h <<EOF
12360 #define HAVE_LIBDBMALLOC 1
12363 LIBS="-ldbmalloc $LIBS"
12371 echo "$as_me:12371: checking if you want to use valgrind for testing" >&5
12372 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
12374 # Check whether --with-valgrind or --without-valgrind was given.
12375 if test "${with_valgrind+set}" = set; then
12376 withval="$with_valgrind"
12377 cat >>confdefs.h <<\EOF
12378 #define USE_VALGRIND 1
12381 : ${with_cflags:=-g}
12382 : ${with_no_leaks:=yes}
12387 echo "$as_me:12387: result: ${with_valgrind:-no}" >&5
12388 echo "${ECHO_T}${with_valgrind:-no}" >&6
12390 case .$with_cflags in #(vi
12392 case .$CFLAGS in #(vi
12400 cf_new_extra_cppflags=
12402 for cf_add_cflags in -g
12404 case $cf_fix_cppflags in
12406 case $cf_add_cflags in #(vi
12407 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12408 case $cf_add_cflags in
12410 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12412 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12413 && test -z "${cf_tst_cflags}" \
12414 && cf_fix_cppflags=yes
12416 if test $cf_fix_cppflags = yes ; then
12417 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12419 elif test "${cf_tst_cflags}" = "\"'" ; then
12420 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12425 case "$CPPFLAGS" in
12426 *$cf_add_cflags) #(vi
12429 case $cf_add_cflags in #(vi
12431 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12433 CPPFLAGS=`echo "$CPPFLAGS" | \
12434 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12435 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12439 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12444 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12449 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12451 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12453 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12454 && test -z "${cf_tst_cflags}" \
12455 && cf_fix_cppflags=no
12460 if test -n "$cf_new_cflags" ; then
12462 CFLAGS="$CFLAGS $cf_new_cflags"
12465 if test -n "$cf_new_cppflags" ; then
12467 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12470 if test -n "$cf_new_extra_cppflags" ; then
12472 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12480 echo "$as_me:12480: checking if you want to perform memory-leak testing" >&5
12481 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
12483 # Check whether --enable-leaks or --disable-leaks was given.
12484 if test "${enable_leaks+set}" = set; then
12485 enableval="$enable_leaks"
12486 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
12488 : ${with_no_leaks:=no}
12490 echo "$as_me:12490: result: $with_no_leaks" >&5
12491 echo "${ECHO_T}$with_no_leaks" >&6
12493 if test "$with_no_leaks" = yes ; then
12494 cat >>confdefs.h <<\EOF
12498 cat >>confdefs.h <<\EOF
12499 #define YY_NO_LEAKS 1
12504 cat >>confdefs.h <<\EOF
12505 #define HAVE_NC_ALLOC_H 1
12508 ### use option --enable-expanded to generate certain macros as functions
12510 # Check whether --enable-expanded or --disable-expanded was given.
12511 if test "${enable_expanded+set}" = set; then
12512 enableval="$enable_expanded"
12513 test "$enableval" = yes && cat >>confdefs.h <<\EOF
12514 #define NCURSES_EXPANDED 1
12519 ### use option --disable-macros to suppress macros in favor of functions
12521 # Check whether --enable-macros or --disable-macros was given.
12522 if test "${enable_macros+set}" = set; then
12523 enableval="$enable_macros"
12524 test "$enableval" = no && cat >>confdefs.h <<\EOF
12525 #define NCURSES_NOMACROS 1
12530 # Normally we only add trace() to the debug-library. Allow this to be
12531 # extended to all models of the ncurses library:
12533 case "$CFLAGS $CPPFLAGS" in
12539 echo "$as_me:12539: checking whether to add trace feature to all models" >&5
12540 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
12542 # Check whether --with-trace or --without-trace was given.
12543 if test "${with_trace+set}" = set; then
12544 withval="$with_trace"
12545 cf_with_trace=$withval
12547 cf_with_trace=$cf_all_traces
12549 echo "$as_me:12549: result: $cf_with_trace" >&5
12550 echo "${ECHO_T}$cf_with_trace" >&6
12552 if test "$cf_with_trace" = yes ; then
12559 cf_new_extra_cppflags=
12561 for cf_add_cflags in -DTRACE
12563 case $cf_fix_cppflags in
12565 case $cf_add_cflags in #(vi
12566 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12567 case $cf_add_cflags in
12569 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12571 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12572 && test -z "${cf_tst_cflags}" \
12573 && cf_fix_cppflags=yes
12575 if test $cf_fix_cppflags = yes ; then
12576 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12578 elif test "${cf_tst_cflags}" = "\"'" ; then
12579 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12584 case "$CPPFLAGS" in
12585 *$cf_add_cflags) #(vi
12588 case $cf_add_cflags in #(vi
12590 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12592 CPPFLAGS=`echo "$CPPFLAGS" | \
12593 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12594 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12598 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12603 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12608 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12610 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12612 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12613 && test -z "${cf_tst_cflags}" \
12614 && cf_fix_cppflags=no
12619 if test -n "$cf_new_cflags" ; then
12621 CFLAGS="$CFLAGS $cf_new_cflags"
12624 if test -n "$cf_new_cppflags" ; then
12626 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12629 if test -n "$cf_new_extra_cppflags" ; then
12631 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12639 ### Checks for libraries.
12640 case $cf_cv_system_name in #(vi
12644 echo "$as_me:12644: checking for gettimeofday" >&5
12645 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
12646 if test "${ac_cv_func_gettimeofday+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 cat >conftest.$ac_ext <<_ACEOF
12650 #line 12650 "configure"
12651 #include "confdefs.h"
12652 /* System header to define __stub macros and hopefully few prototypes,
12653 which can conflict with char gettimeofday (); below. */
12654 #include <assert.h>
12655 /* Override any gcc2 internal prototype to avoid an error. */
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char gettimeofday ();
12667 /* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (eval echo "$as_me:12681: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>&5
12684 echo "$as_me:12684: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (eval echo "$as_me:12687: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:12690: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_func_gettimeofday=yes
12694 echo "$as_me: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 ac_cv_func_gettimeofday=no
12698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12700 echo "$as_me:12700: result: $ac_cv_func_gettimeofday" >&5
12701 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
12702 if test $ac_cv_func_gettimeofday = yes; then
12703 cat >>confdefs.h <<\EOF
12704 #define HAVE_GETTIMEOFDAY 1
12709 echo "$as_me:12709: checking for gettimeofday in -lbsd" >&5
12710 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
12711 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 ac_check_lib_save_LIBS=$LIBS
12716 cat >conftest.$ac_ext <<_ACEOF
12717 #line 12717 "configure"
12718 #include "confdefs.h"
12720 /* Override any gcc2 internal prototype to avoid an error. */
12724 /* We use char because int might match the return type of a gcc2
12725 builtin and then its argument prototype would still apply. */
12726 char gettimeofday ();
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (eval echo "$as_me:12736: \"$ac_link\"") >&5
12737 (eval $ac_link) 2>&5
12739 echo "$as_me:12739: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -s conftest$ac_exeext'
12742 { (eval echo "$as_me:12742: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12745 echo "$as_me:12745: \$? = $ac_status" >&5
12746 (exit $ac_status); }; }; then
12747 ac_cv_lib_bsd_gettimeofday=yes
12749 echo "$as_me: failed program was:" >&5
12750 cat conftest.$ac_ext >&5
12751 ac_cv_lib_bsd_gettimeofday=no
12753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12754 LIBS=$ac_check_lib_save_LIBS
12756 echo "$as_me:12756: result: $ac_cv_lib_bsd_gettimeofday" >&5
12757 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
12758 if test $ac_cv_lib_bsd_gettimeofday = yes; then
12759 cat >>confdefs.h <<\EOF
12760 #define HAVE_GETTIMEOFDAY 1
12770 echo "$as_me:12770: checking if -lm needed for math functions" >&5
12771 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
12772 if test "${cf_cv_need_libm+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 cat >conftest.$ac_ext <<_ACEOF
12777 #line 12777 "configure"
12778 #include "confdefs.h"
12786 double x = rand(); printf("result = %g\n", sin(x))
12791 rm -f conftest.$ac_objext conftest$ac_exeext
12792 if { (eval echo "$as_me:12792: \"$ac_link\"") >&5
12793 (eval $ac_link) 2>&5
12795 echo "$as_me:12795: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try='test -s conftest$ac_exeext'
12798 { (eval echo "$as_me:12798: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12801 echo "$as_me:12801: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12805 echo "$as_me: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
12807 cf_cv_need_libm=yes
12809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12811 echo "$as_me:12811: result: $cf_cv_need_libm" >&5
12812 echo "${ECHO_T}$cf_cv_need_libm" >&6
12813 if test "$cf_cv_need_libm" = yes
12818 ### Checks for header files.
12819 echo "$as_me:12819: checking for ANSI C header files" >&5
12820 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12821 if test "${ac_cv_header_stdc+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 cat >conftest.$ac_ext <<_ACEOF
12825 #line 12825 "configure"
12826 #include "confdefs.h"
12827 #include <stdlib.h>
12828 #include <stdarg.h>
12829 #include <string.h>
12833 if { (eval echo "$as_me:12833: \"$ac_cpp conftest.$ac_ext\"") >&5
12834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12836 egrep -v '^ *\+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:12839: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev/null; then
12841 if test -s conftest.err; then
12842 ac_cpp_err=$ac_c_preproc_warn_flag
12849 if test -z "$ac_cpp_err"; then
12850 ac_cv_header_stdc=yes
12852 echo "$as_me: failed program was:" >&5
12853 cat conftest.$ac_ext >&5
12854 ac_cv_header_stdc=no
12856 rm -f conftest.err conftest.$ac_ext
12858 if test $ac_cv_header_stdc = yes; then
12859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12860 cat >conftest.$ac_ext <<_ACEOF
12861 #line 12861 "configure"
12862 #include "confdefs.h"
12863 #include <string.h>
12866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12867 egrep "memchr" >/dev/null 2>&1; then
12870 ac_cv_header_stdc=no
12876 if test $ac_cv_header_stdc = yes; then
12877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12878 cat >conftest.$ac_ext <<_ACEOF
12879 #line 12879 "configure"
12880 #include "confdefs.h"
12881 #include <stdlib.h>
12884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12885 egrep "free" >/dev/null 2>&1; then
12888 ac_cv_header_stdc=no
12894 if test $ac_cv_header_stdc = yes; then
12895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12896 if test "$cross_compiling" = yes; then
12899 cat >conftest.$ac_ext <<_ACEOF
12900 #line 12900 "configure"
12901 #include "confdefs.h"
12903 #if ((' ' & 0x0FF) == 0x020)
12904 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12905 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12907 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12908 || ('j' <= (c) && (c) <= 'r') \
12909 || ('s' <= (c) && (c) <= 'z'))
12910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12918 for (i = 0; i < 256; i++)
12919 if (XOR (islower (i), ISLOWER (i))
12920 || toupper (i) != TOUPPER (i))
12921 $ac_main_return(2);
12922 $ac_main_return (0);
12925 rm -f conftest$ac_exeext
12926 if { (eval echo "$as_me:12926: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>&5
12929 echo "$as_me:12929: \$? = $ac_status" >&5
12930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12931 { (eval echo "$as_me:12931: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:12934: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12938 echo "$as_me: program exited with status $ac_status" >&5
12939 echo "$as_me: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12941 ac_cv_header_stdc=no
12943 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12947 echo "$as_me:12947: result: $ac_cv_header_stdc" >&5
12948 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12949 if test $ac_cv_header_stdc = yes; then
12951 cat >>confdefs.h <<\EOF
12952 #define STDC_HEADERS 1
12957 ac_header_dirent=no
12958 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12959 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12960 echo "$as_me:12960: checking for $ac_hdr that defines DIR" >&5
12961 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #line 12966 "configure"
12967 #include "confdefs.h"
12968 #include <sys/types.h>
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:12981: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>&5
12984 echo "$as_me:12984: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -s conftest.$ac_objext'
12987 { (eval echo "$as_me:12987: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:12990: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 eval "$as_ac_Header=yes"
12994 echo "$as_me: failed program was:" >&5
12995 cat conftest.$ac_ext >&5
12996 eval "$as_ac_Header=no"
12998 rm -f conftest.$ac_objext conftest.$ac_ext
13000 echo "$as_me:13000: result: `eval echo '${'$as_ac_Header'}'`" >&5
13001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13003 cat >>confdefs.h <<EOF
13004 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13007 ac_header_dirent=$ac_hdr; break
13011 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13012 if test $ac_header_dirent = dirent.h; then
13013 echo "$as_me:13013: checking for opendir in -ldir" >&5
13014 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13015 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 ac_check_lib_save_LIBS=$LIBS
13020 cat >conftest.$ac_ext <<_ACEOF
13021 #line 13021 "configure"
13022 #include "confdefs.h"
13024 /* Override any gcc2 internal prototype to avoid an error. */
13028 /* We use char because int might match the return type of a gcc2
13029 builtin and then its argument prototype would still apply. */
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:13040: \"$ac_link\"") >&5
13041 (eval $ac_link) 2>&5
13043 echo "$as_me:13043: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (eval echo "$as_me:13046: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13049 echo "$as_me:13049: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_cv_lib_dir_opendir=yes
13053 echo "$as_me: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 ac_cv_lib_dir_opendir=no
13057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13060 echo "$as_me:13060: result: $ac_cv_lib_dir_opendir" >&5
13061 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13062 if test $ac_cv_lib_dir_opendir = yes; then
13067 echo "$as_me:13067: checking for opendir in -lx" >&5
13068 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13069 if test "${ac_cv_lib_x_opendir+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 ac_check_lib_save_LIBS=$LIBS
13074 cat >conftest.$ac_ext <<_ACEOF
13075 #line 13075 "configure"
13076 #include "confdefs.h"
13078 /* Override any gcc2 internal prototype to avoid an error. */
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:13094: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>&5
13097 echo "$as_me:13097: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -s conftest$ac_exeext'
13100 { (eval echo "$as_me:13100: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:13103: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_lib_x_opendir=yes
13107 echo "$as_me: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13109 ac_cv_lib_x_opendir=no
13111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13112 LIBS=$ac_check_lib_save_LIBS
13114 echo "$as_me:13114: result: $ac_cv_lib_x_opendir" >&5
13115 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
13116 if test $ac_cv_lib_x_opendir = yes; then
13122 echo "$as_me:13122: checking whether time.h and sys/time.h may both be included" >&5
13123 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13124 if test "${ac_cv_header_time+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line 13128 "configure"
13129 #include "confdefs.h"
13130 #include <sys/types.h>
13131 #include <sys/time.h>
13137 if ((struct tm *) 0)
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:13144: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>&5
13147 echo "$as_me:13147: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest.$ac_objext'
13150 { (eval echo "$as_me:13150: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:13153: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_header_time=yes
13157 echo "$as_me: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13159 ac_cv_header_time=no
13161 rm -f conftest.$ac_objext conftest.$ac_ext
13163 echo "$as_me:13163: result: $ac_cv_header_time" >&5
13164 echo "${ECHO_T}$ac_cv_header_time" >&6
13165 if test $ac_cv_header_time = yes; then
13167 cat >>confdefs.h <<\EOF
13168 #define TIME_WITH_SYS_TIME 1
13175 cf_regex_libs="regex re"
13176 case $host_os in #(vi
13178 cf_regex_libs="regex.dll $cf_regex_libs"
13182 echo "$as_me:13182: checking for regcomp" >&5
13183 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13184 if test "${ac_cv_func_regcomp+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 cat >conftest.$ac_ext <<_ACEOF
13188 #line 13188 "configure"
13189 #include "confdefs.h"
13190 /* System header to define __stub macros and hopefully few prototypes,
13191 which can conflict with char regcomp (); below. */
13192 #include <assert.h>
13193 /* Override any gcc2 internal prototype to avoid an error. */
13197 /* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
13205 /* The GNU C library defines this for functions which it implements
13206 to always fail with ENOSYS. Some functions are actually named
13207 something starting with __ and the normal name is an alias. */
13208 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:13219: \"$ac_link\"") >&5
13220 (eval $ac_link) 2>&5
13222 echo "$as_me:13222: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:13225: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:13228: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_func_regcomp=yes
13232 echo "$as_me: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 ac_cv_func_regcomp=no
13236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13238 echo "$as_me:13238: result: $ac_cv_func_regcomp" >&5
13239 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13240 if test $ac_cv_func_regcomp = yes; then
13241 cf_regex_func=regcomp
13244 for cf_regex_lib in $cf_regex_libs
13246 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
13247 echo "$as_me:13247: checking for regcomp in -l$cf_regex_lib" >&5
13248 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-l$cf_regex_lib $LIBS"
13254 cat >conftest.$ac_ext <<_ACEOF
13255 #line 13255 "configure"
13256 #include "confdefs.h"
13258 /* Override any gcc2 internal prototype to avoid an error. */
13262 /* We use char because int might match the return type of a gcc2
13263 builtin and then its argument prototype would still apply. */
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (eval echo "$as_me:13274: \"$ac_link\"") >&5
13275 (eval $ac_link) 2>&5
13277 echo "$as_me:13277: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (eval echo "$as_me:13280: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:13283: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 eval "$as_ac_Lib=yes"
13287 echo "$as_me: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13289 eval "$as_ac_Lib=no"
13291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13292 LIBS=$ac_check_lib_save_LIBS
13294 echo "$as_me:13294: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13295 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13296 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13298 LIBS="-l$cf_regex_lib $LIBS"
13299 cf_regex_func=regcomp
13307 if test "$cf_regex_func" = no ; then
13308 echo "$as_me:13308: checking for compile" >&5
13309 echo $ECHO_N "checking for compile... $ECHO_C" >&6
13310 if test "${ac_cv_func_compile+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13314 #line 13314 "configure"
13315 #include "confdefs.h"
13316 /* System header to define __stub macros and hopefully few prototypes,
13317 which can conflict with char compile (); below. */
13318 #include <assert.h>
13319 /* Override any gcc2 internal prototype to avoid an error. */
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13331 /* The GNU C library defines this for functions which it implements
13332 to always fail with ENOSYS. Some functions are actually named
13333 something starting with __ and the normal name is an alias. */
13334 #if defined (__stub_compile) || defined (__stub___compile)
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (eval echo "$as_me:13345: \"$ac_link\"") >&5
13346 (eval $ac_link) 2>&5
13348 echo "$as_me:13348: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (eval echo "$as_me:13351: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13354 echo "$as_me:13354: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_cv_func_compile=yes
13358 echo "$as_me: failed program was:" >&5
13359 cat conftest.$ac_ext >&5
13360 ac_cv_func_compile=no
13362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13364 echo "$as_me:13364: result: $ac_cv_func_compile" >&5
13365 echo "${ECHO_T}$ac_cv_func_compile" >&6
13366 if test $ac_cv_func_compile = yes; then
13367 cf_regex_func=compile
13370 echo "$as_me:13370: checking for compile in -lgen" >&5
13371 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
13372 if test "${ac_cv_lib_gen_compile+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_check_lib_save_LIBS=$LIBS
13377 cat >conftest.$ac_ext <<_ACEOF
13378 #line 13378 "configure"
13379 #include "confdefs.h"
13381 /* Override any gcc2 internal prototype to avoid an error. */
13385 /* We use char because int might match the return type of a gcc2
13386 builtin and then its argument prototype would still apply. */
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (eval echo "$as_me:13397: \"$ac_link\"") >&5
13398 (eval $ac_link) 2>&5
13400 echo "$as_me:13400: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:13403: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:13406: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_lib_gen_compile=yes
13410 echo "$as_me: failed program was:" >&5
13411 cat conftest.$ac_ext >&5
13412 ac_cv_lib_gen_compile=no
13414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13415 LIBS=$ac_check_lib_save_LIBS
13417 echo "$as_me:13417: result: $ac_cv_lib_gen_compile" >&5
13418 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
13419 if test $ac_cv_lib_gen_compile = yes; then
13422 cf_regex_func=compile
13429 if test "$cf_regex_func" = no ; then
13430 { echo "$as_me:13430: WARNING: cannot find regular expression library" >&5
13431 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
13434 echo "$as_me:13434: checking for regular-expression headers" >&5
13435 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
13436 if test "${cf_cv_regex_hdrs+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 cf_cv_regex_hdrs=no
13441 case $cf_regex_func in #(vi
13443 for cf_regex_hdr in regexp.h regexpr.h
13445 cat >conftest.$ac_ext <<_ACEOF
13446 #line 13446 "configure"
13447 #include "confdefs.h"
13448 #include <$cf_regex_hdr>
13453 char *p = compile("", "", "", 0);
13454 int x = step("", "");
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:13461: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13464 echo "$as_me:13464: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:13467: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:13470: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13473 cf_cv_regex_hdrs=$cf_regex_hdr
13477 echo "$as_me: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13484 for cf_regex_hdr in regex.h
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line 13487 "configure"
13488 #include "confdefs.h"
13489 #include <sys/types.h>
13490 #include <$cf_regex_hdr>
13496 int x = regcomp(p, "", 0);
13497 int y = regexec(p, "", 0, 0, 0);
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (eval echo "$as_me:13505: \"$ac_link\"") >&5
13506 (eval $ac_link) 2>&5
13508 echo "$as_me:13508: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (eval echo "$as_me:13511: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:13514: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13517 cf_cv_regex_hdrs=$cf_regex_hdr
13521 echo "$as_me: failed program was:" >&5
13522 cat conftest.$ac_ext >&5
13524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13530 echo "$as_me:13530: result: $cf_cv_regex_hdrs" >&5
13531 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
13533 case $cf_cv_regex_hdrs in #(vi
13534 no) { echo "$as_me:13534: WARNING: no regular expression header found" >&5
13535 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
13536 regex.h) cat >>confdefs.h <<\EOF
13537 #define HAVE_REGEX_H_FUNCS 1
13540 regexp.h) cat >>confdefs.h <<\EOF
13541 #define HAVE_REGEXP_H_FUNCS 1
13544 regexpr.h) cat >>confdefs.h <<\EOF
13545 #define HAVE_REGEXPR_H_FUNCS 1
13569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13570 echo "$as_me:13570: checking for $ac_header" >&5
13571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line 13576 "configure"
13577 #include "confdefs.h"
13578 #include <$ac_header>
13580 if { (eval echo "$as_me:13580: \"$ac_cpp conftest.$ac_ext\"") >&5
13581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13583 egrep -v '^ *\+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 echo "$as_me:13586: \$? = $ac_status" >&5
13587 (exit $ac_status); } >/dev/null; then
13588 if test -s conftest.err; then
13589 ac_cpp_err=$ac_c_preproc_warn_flag
13596 if test -z "$ac_cpp_err"; then
13597 eval "$as_ac_Header=yes"
13599 echo "$as_me: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13601 eval "$as_ac_Header=no"
13603 rm -f conftest.err conftest.$ac_ext
13605 echo "$as_me:13605: result: `eval echo '${'$as_ac_Header'}'`" >&5
13606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13608 cat >>confdefs.h <<EOF
13609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13615 for ac_header in unistd.h getopt.h
13617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13618 echo "$as_me:13618: checking for $ac_header" >&5
13619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 cat >conftest.$ac_ext <<_ACEOF
13624 #line 13624 "configure"
13625 #include "confdefs.h"
13626 #include <$ac_header>
13628 if { (eval echo "$as_me:13628: \"$ac_cpp conftest.$ac_ext\"") >&5
13629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13631 egrep -v '^ *\+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:13634: \$? = $ac_status" >&5
13635 (exit $ac_status); } >/dev/null; then
13636 if test -s conftest.err; then
13637 ac_cpp_err=$ac_c_preproc_warn_flag
13644 if test -z "$ac_cpp_err"; then
13645 eval "$as_ac_Header=yes"
13647 echo "$as_me: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 eval "$as_ac_Header=no"
13651 rm -f conftest.err conftest.$ac_ext
13653 echo "$as_me:13653: result: `eval echo '${'$as_ac_Header'}'`" >&5
13654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13656 cat >>confdefs.h <<EOF
13657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13663 echo "$as_me:13663: checking for header declaring getopt variables" >&5
13664 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
13665 if test "${cf_cv_getopt_header+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 cf_cv_getopt_header=none
13670 for cf_header in stdio.h stdlib.h unistd.h getopt.h
13672 cat >conftest.$ac_ext <<_ACEOF
13673 #line 13673 "configure"
13674 #include "confdefs.h"
13676 #include <$cf_header>
13680 int x = optind; char *y = optarg
13685 rm -f conftest.$ac_objext
13686 if { (eval echo "$as_me:13686: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>&5
13689 echo "$as_me:13689: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (eval echo "$as_me:13692: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:13695: \$? = $ac_status" >&5
13696 (exit $ac_status); }; }; then
13697 cf_cv_getopt_header=$cf_header
13700 echo "$as_me: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13703 rm -f conftest.$ac_objext conftest.$ac_ext
13707 echo "$as_me:13707: result: $cf_cv_getopt_header" >&5
13708 echo "${ECHO_T}$cf_cv_getopt_header" >&6
13709 if test $cf_cv_getopt_header != none ; then
13710 cat >>confdefs.h <<\EOF
13711 #define HAVE_GETOPT_HEADER 1
13716 # check for ISC (this may also define _POSIX_SOURCE)
13717 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
13718 if test "$ISC" = yes ; then
13720 echo "$as_me:13720: checking for main in -lcposix" >&5
13721 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
13722 if test "${ac_cv_lib_cposix_main+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 ac_check_lib_save_LIBS=$LIBS
13726 LIBS="-lcposix $LIBS"
13727 cat >conftest.$ac_ext <<_ACEOF
13728 #line 13728 "configure"
13729 #include "confdefs.h"
13739 rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (eval echo "$as_me:13740: \"$ac_link\"") >&5
13741 (eval $ac_link) 2>&5
13743 echo "$as_me:13743: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -s conftest$ac_exeext'
13746 { (eval echo "$as_me:13746: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:13749: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_lib_cposix_main=yes
13753 echo "$as_me: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 ac_cv_lib_cposix_main=no
13757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13758 LIBS=$ac_check_lib_save_LIBS
13760 echo "$as_me:13760: result: $ac_cv_lib_cposix_main" >&5
13761 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
13762 if test $ac_cv_lib_cposix_main = yes; then
13763 cat >>confdefs.h <<EOF
13764 #define HAVE_LIBCPOSIX 1
13767 LIBS="-lcposix $LIBS"
13771 echo "$as_me:13771: checking for bzero in -linet" >&5
13772 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
13773 if test "${ac_cv_lib_inet_bzero+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-linet $LIBS"
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line 13779 "configure"
13780 #include "confdefs.h"
13782 /* Override any gcc2 internal prototype to avoid an error. */
13786 /* We use char because int might match the return type of a gcc2
13787 builtin and then its argument prototype would still apply. */
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (eval echo "$as_me:13798: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
13801 echo "$as_me:13801: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -s conftest$ac_exeext'
13804 { (eval echo "$as_me:13804: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:13807: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13809 ac_cv_lib_inet_bzero=yes
13811 echo "$as_me: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 ac_cv_lib_inet_bzero=no
13815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13816 LIBS=$ac_check_lib_save_LIBS
13818 echo "$as_me:13818: result: $ac_cv_lib_inet_bzero" >&5
13819 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
13820 if test $ac_cv_lib_inet_bzero = yes; then
13821 LIBS="-linet $LIBS"
13825 echo "$as_me:13825: checking if sys/time.h works with sys/select.h" >&5
13826 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13827 if test "${cf_cv_sys_time_select+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line 13832 "configure"
13833 #include "confdefs.h"
13835 #include <sys/types.h>
13836 #ifdef HAVE_SYS_TIME_H
13837 #include <sys/time.h>
13839 #ifdef HAVE_SYS_SELECT_H
13840 #include <sys/select.h>
13851 rm -f conftest.$ac_objext
13852 if { (eval echo "$as_me:13852: \"$ac_compile\"") >&5
13853 (eval $ac_compile) 2>&5
13855 echo "$as_me:13855: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -s conftest.$ac_objext'
13858 { (eval echo "$as_me:13858: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 echo "$as_me:13861: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 cf_cv_sys_time_select=yes
13865 echo "$as_me: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13867 cf_cv_sys_time_select=no
13869 rm -f conftest.$ac_objext conftest.$ac_ext
13873 echo "$as_me:13873: result: $cf_cv_sys_time_select" >&5
13874 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13875 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13876 #define HAVE_SYS_TIME_SELECT 1
13879 ### checks for compiler characteristics
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13885 ac_main_return=return
13887 echo "$as_me:13887: checking for $CC option to accept ANSI C" >&5
13888 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13889 if test "${ac_cv_prog_cc_stdc+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 ac_cv_prog_cc_stdc=no
13894 cat >conftest.$ac_ext <<_ACEOF
13895 #line 13895 "configure"
13896 #include "confdefs.h"
13897 #include <stdarg.h>
13899 #include <sys/types.h>
13900 #include <sys/stat.h>
13901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13902 struct buf { int x; };
13903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13904 static char *e (p, i)
13910 static char *f (char * (*g) (char **, int), char **p, ...)
13915 s = g (p, va_arg (v,int));
13919 int test (int i, double x);
13920 struct s1 {int (*f) (int a);};
13921 struct s2 {int (*f) (double a);};
13922 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13928 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13933 # Don't try gcc -ansi; that turns off useful extensions and
13934 # breaks some systems' header files.
13935 # AIX -qlanglvl=ansi
13936 # Ultrix and OSF/1 -std1
13937 # HP-UX 10.20 and later -Ae
13938 # HP-UX older versions -Aa -D_HPUX_SOURCE
13939 # SVR4 -Xc -D__EXTENSIONS__
13940 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13942 CC="$ac_save_CC $ac_arg"
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:13944: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13947 echo "$as_me:13947: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -s conftest.$ac_objext'
13950 { (eval echo "$as_me:13950: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:13953: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_cv_prog_cc_stdc=$ac_arg
13958 echo "$as_me: failed program was:" >&5
13959 cat conftest.$ac_ext >&5
13961 rm -f conftest.$ac_objext
13963 rm -f conftest.$ac_ext conftest.$ac_objext
13968 case "x$ac_cv_prog_cc_stdc" in
13970 echo "$as_me:13970: result: none needed" >&5
13971 echo "${ECHO_T}none needed" >&6 ;;
13973 echo "$as_me:13973: result: $ac_cv_prog_cc_stdc" >&5
13974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13975 CC="$CC $ac_cv_prog_cc_stdc" ;;
13978 echo "$as_me:13978: checking for an ANSI C-conforming const" >&5
13979 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13980 if test "${ac_cv_c_const+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13984 #line 13984 "configure"
13985 #include "confdefs.h"
13990 /* FIXME: Include the comments suggested by Paul. */
13991 #ifndef __cplusplus
13992 /* Ultrix mips cc rejects this. */
13993 typedef int charset[2];
13995 /* SunOS 4.1.1 cc rejects this. */
13996 char const *const *ccp;
13998 /* NEC SVR4.0.2 mips cc rejects this. */
13999 struct point {int x, y;};
14000 static struct point const zero = {0,0};
14001 /* AIX XL C 1.02.0.0 rejects this.
14002 It does not let you subtract one const X* pointer from another in
14003 an arm of an if-expression whose if-part is not a constant
14005 const char *g = "string";
14006 ccp = &g + (g ? g-g : 0);
14007 /* HPUX 7.0 cc rejects these. */
14010 ccp = (char const *const *) p;
14011 { /* SCO 3.2v4 cc rejects this. */
14013 char const *s = 0 ? (char *) 0 : (char const *) 0;
14017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14018 int x[] = {25, 17};
14019 const int *foo = &x[0];
14022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14023 typedef const int *iptr;
14027 { /* AIX XL C 1.02.0.0 rejects this saying
14028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14029 struct s { int j; const int *ap[3]; };
14030 struct s *b; b->j = 5;
14032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14033 const int foo = 10;
14041 rm -f conftest.$ac_objext
14042 if { (eval echo "$as_me:14042: \"$ac_compile\"") >&5
14043 (eval $ac_compile) 2>&5
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:14048: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:14051: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14055 echo "$as_me: failed program was:" >&5
14056 cat conftest.$ac_ext >&5
14059 rm -f conftest.$ac_objext conftest.$ac_ext
14061 echo "$as_me:14061: result: $ac_cv_c_const" >&5
14062 echo "${ECHO_T}$ac_cv_c_const" >&6
14063 if test $ac_cv_c_const = no; then
14065 cat >>confdefs.h <<\EOF
14071 echo "$as_me:14071: checking for inline" >&5
14072 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14073 if test "${ac_cv_c_inline+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 for ac_kw in inline __inline__ __inline; do
14078 cat >conftest.$ac_ext <<_ACEOF
14079 #line 14079 "configure"
14080 #include "confdefs.h"
14081 #ifndef __cplusplus
14082 static $ac_kw int static_foo () {return 0; }
14083 $ac_kw int foo () {return 0; }
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:14088: \"$ac_compile\"") >&5
14089 (eval $ac_compile) 2>&5
14091 echo "$as_me:14091: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -s conftest.$ac_objext'
14094 { (eval echo "$as_me:14094: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:14097: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14099 ac_cv_c_inline=$ac_kw; break
14101 echo "$as_me: failed program was:" >&5
14102 cat conftest.$ac_ext >&5
14104 rm -f conftest.$ac_objext conftest.$ac_ext
14108 echo "$as_me:14108: result: $ac_cv_c_inline" >&5
14109 echo "${ECHO_T}$ac_cv_c_inline" >&6
14110 case $ac_cv_c_inline in
14113 cat >>confdefs.h <<\EOF
14117 *) cat >>confdefs.h <<EOF
14118 #define inline $ac_cv_c_inline
14124 if test "$ac_cv_c_inline" != no ; then
14125 NCURSES_INLINE=inline
14126 if test "$INTEL_COMPILER" = yes
14129 elif test "$GCC" = yes
14131 echo "$as_me:14131: checking if $CC supports options to tune inlining" >&5
14132 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14133 if test "${cf_cv_gcc_inline+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 cf_save_CFLAGS=$CFLAGS
14138 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14139 cat >conftest.$ac_ext <<_ACEOF
14140 #line 14140 "configure"
14141 #include "confdefs.h"
14142 inline int foo(void) { return 1; }
14146 ${cf_cv_main_return:-return} foo()
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:14152: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>&5
14155 echo "$as_me:14155: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try='test -s conftest.$ac_objext'
14158 { (eval echo "$as_me:14158: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:14161: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14163 cf_cv_gcc_inline=yes
14165 echo "$as_me: failed program was:" >&5
14166 cat conftest.$ac_ext >&5
14167 cf_cv_gcc_inline=no
14169 rm -f conftest.$ac_objext conftest.$ac_ext
14170 CFLAGS=$cf_save_CFLAGS
14173 echo "$as_me:14173: result: $cf_cv_gcc_inline" >&5
14174 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14175 if test "$cf_cv_gcc_inline" = yes ; then
14180 cf_new_extra_cppflags=
14182 for cf_add_cflags in --param max-inline-insns-single=1200
14184 case $cf_fix_cppflags in
14186 case $cf_add_cflags in #(vi
14187 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14188 case $cf_add_cflags in
14190 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14192 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14193 && test -z "${cf_tst_cflags}" \
14194 && cf_fix_cppflags=yes
14196 if test $cf_fix_cppflags = yes ; then
14197 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14199 elif test "${cf_tst_cflags}" = "\"'" ; then
14200 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14205 case "$CPPFLAGS" in
14206 *$cf_add_cflags) #(vi
14209 case $cf_add_cflags in #(vi
14211 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14213 CPPFLAGS=`echo "$CPPFLAGS" | \
14214 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14215 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14219 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14224 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14229 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14231 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14233 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14234 && test -z "${cf_tst_cflags}" \
14235 && cf_fix_cppflags=no
14240 if test -n "$cf_new_cflags" ; then
14242 CFLAGS="$CFLAGS $cf_new_cflags"
14245 if test -n "$cf_new_cppflags" ; then
14247 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14250 if test -n "$cf_new_extra_cppflags" ; then
14252 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14259 echo "$as_me:14259: checking for signal global datatype" >&5
14260 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
14261 if test "${cf_cv_sig_atomic_t+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 "volatile sig_atomic_t" \
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line 14271 "configure"
14272 #include "confdefs.h"
14274 #include <sys/types.h>
14275 #include <signal.h>
14280 static void handler(int sig)
14287 signal(SIGINT, handler);
14293 rm -f conftest.$ac_objext
14294 if { (eval echo "$as_me:14294: \"$ac_compile\"") >&5
14295 (eval $ac_compile) 2>&5
14297 echo "$as_me:14297: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:14300: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:14303: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 cf_cv_sig_atomic_t=$cf_type
14307 echo "$as_me: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14309 cf_cv_sig_atomic_t=no
14311 rm -f conftest.$ac_objext conftest.$ac_ext
14312 test "$cf_cv_sig_atomic_t" != no && break
14317 echo "$as_me:14317: result: $cf_cv_sig_atomic_t" >&5
14318 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
14319 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
14320 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
14323 if test $NCURSES_CHTYPE = auto ; then
14325 echo "$as_me:14325: checking for type of chtype" >&5
14326 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14327 if test "${cf_cv_typeof_chtype+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 if test "$cross_compiling" = yes; then
14332 cf_cv_typeof_chtype=long
14334 cat >conftest.$ac_ext <<_ACEOF
14335 #line 14335 "configure"
14336 #include "confdefs.h"
14338 #define WANT_BITS 31
14342 FILE *fp = fopen("cf_test.out", "w");
14344 char *result = "long";
14345 if (sizeof(unsigned long) > sizeof(unsigned int)) {
14348 for (n = 0; n < WANT_BITS; n++) {
14351 if (y != 1 || x == 0) {
14357 * If x is nonzero, an int is big enough for the bits
14360 result = (x != 0) ? "int" : "long";
14365 ${cf_cv_main_return:-return}(0);
14369 rm -f conftest$ac_exeext
14370 if { (eval echo "$as_me:14370: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>&5
14373 echo "$as_me:14373: \$? = $ac_status" >&5
14374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14375 { (eval echo "$as_me:14375: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:14378: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 cf_cv_typeof_chtype=`cat cf_test.out`
14382 echo "$as_me: program exited with status $ac_status" >&5
14383 echo "$as_me: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14385 cf_cv_typeof_chtype=long
14387 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14393 echo "$as_me:14393: result: $cf_cv_typeof_chtype" >&5
14394 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
14396 cat >>confdefs.h <<EOF
14397 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
14401 cf_cv_typeof_chtype=$NCURSES_CHTYPE
14403 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
14405 echo "$as_me:14405: checking if unsigned literals are legal" >&5
14406 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
14407 if test "${cf_cv_unsigned_literals+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 cat >conftest.$ac_ext <<_ACEOF
14412 #line 14412 "configure"
14413 #include "confdefs.h"
14418 long x = 1L + 1UL + 1U + 1
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:14424: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>&5
14427 echo "$as_me:14427: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:14430: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:14433: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 cf_cv_unsigned_literals=yes
14437 echo "$as_me: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14439 cf_cv_unsigned_literals=no
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14445 echo "$as_me:14445: result: $cf_cv_unsigned_literals" >&5
14446 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
14449 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
14450 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
14452 if test $NCURSES_MMASK_T = auto ; then
14453 cf_cv_typeof_mmask_t=long
14455 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
14457 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
14459 ### Checks for external-data
14461 echo "$as_me:14461: checking if external errno is declared" >&5
14462 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
14463 if test "${cf_cv_dcl_errno+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 #line 14468 "configure"
14469 #include "confdefs.h"
14471 #ifdef HAVE_STDLIB_H
14472 #include <stdlib.h>
14475 #include <sys/types.h>
14480 int x = (int) errno
14485 rm -f conftest.$ac_objext
14486 if { (eval echo "$as_me:14486: \"$ac_compile\"") >&5
14487 (eval $ac_compile) 2>&5
14489 echo "$as_me:14489: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:14492: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:14495: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 cf_cv_dcl_errno=yes
14499 echo "$as_me: failed program was:" >&5
14500 cat conftest.$ac_ext >&5
14503 rm -f conftest.$ac_objext conftest.$ac_ext
14506 echo "$as_me:14506: result: $cf_cv_dcl_errno" >&5
14507 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
14509 if test "$cf_cv_dcl_errno" = no ; then
14511 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14513 cat >>confdefs.h <<EOF
14514 #define $cf_result 1
14519 # It's possible (for near-UNIX clones) that the data doesn't exist
14521 echo "$as_me:14521: checking if external errno exists" >&5
14522 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
14523 if test "${cf_cv_have_errno+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14528 #line 14528 "configure"
14529 #include "confdefs.h"
14542 rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (eval echo "$as_me:14543: \"$ac_link\"") >&5
14544 (eval $ac_link) 2>&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -s conftest$ac_exeext'
14549 { (eval echo "$as_me:14549: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:14552: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 cf_cv_have_errno=yes
14556 echo "$as_me: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14558 cf_cv_have_errno=no
14560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14563 echo "$as_me:14563: result: $cf_cv_have_errno" >&5
14564 echo "${ECHO_T}$cf_cv_have_errno" >&6
14566 if test "$cf_cv_have_errno" = yes ; then
14568 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14570 cat >>confdefs.h <<EOF
14571 #define $cf_result 1
14576 echo "$as_me:14576: checking if data-only library module links" >&5
14577 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
14578 if test "${cf_cv_link_dataonly+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 cat >conftest.$ac_ext <<EOF
14584 #line 14584 "configure"
14585 int testdata[3] = { 123, 456, 789 };
14587 if { (eval echo "$as_me:14587: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>&5
14590 echo "$as_me:14590: \$? = $ac_status" >&5
14591 (exit $ac_status); } ; then
14592 mv conftest.o data.o && \
14593 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
14595 rm -f conftest.$ac_ext data.o
14596 cat >conftest.$ac_ext <<EOF
14597 #line 14597 "configure"
14601 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
14603 extern int testdata[3];
14604 return testdata[0] == 123
14605 && testdata[1] == 456
14606 && testdata[2] == 789;
14610 if { (eval echo "$as_me:14610: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>&5
14613 echo "$as_me:14613: \$? = $ac_status" >&5
14614 (exit $ac_status); }; then
14615 mv conftest.o func.o && \
14616 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
14618 rm -f conftest.$ac_ext func.o
14619 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
14620 cf_saveLIBS="$LIBS"
14621 LIBS="conftest.a $LIBS"
14622 if test "$cross_compiling" = yes; then
14623 cf_cv_link_dataonly=unknown
14625 cat >conftest.$ac_ext <<_ACEOF
14626 #line 14626 "configure"
14627 #include "confdefs.h"
14631 extern int testfunc();
14632 ${cf_cv_main_return:-return} (!testfunc());
14636 rm -f 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); } && { ac_try='./conftest$ac_exeext'
14642 { (eval echo "$as_me:14642: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14645 echo "$as_me:14645: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 cf_cv_link_dataonly=yes
14649 echo "$as_me: program exited with status $ac_status" >&5
14650 echo "$as_me: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14652 cf_cv_link_dataonly=no
14654 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14656 LIBS="$cf_saveLIBS"
14660 echo "$as_me:14660: result: $cf_cv_link_dataonly" >&5
14661 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
14663 if test "$cf_cv_link_dataonly" = no ; then
14664 cat >>confdefs.h <<\EOF
14665 #define BROKEN_LINKER 1
14671 ### Checks for library functions.
14694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14695 echo "$as_me:14695: checking for $ac_func" >&5
14696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14697 if eval "test \"\${$as_ac_var+set}\" = set"; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 cat >conftest.$ac_ext <<_ACEOF
14701 #line 14701 "configure"
14702 #include "confdefs.h"
14703 /* System header to define __stub macros and hopefully few prototypes,
14704 which can conflict with char $ac_func (); below. */
14705 #include <assert.h>
14706 /* Override any gcc2 internal prototype to avoid an error. */
14710 /* We use char because int might match the return type of a gcc2
14711 builtin and then its argument prototype would still apply. */
14718 /* The GNU C library defines this for functions which it implements
14719 to always fail with ENOSYS. Some functions are actually named
14720 something starting with __ and the normal name is an alias. */
14721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (eval echo "$as_me:14732: \"$ac_link\"") >&5
14733 (eval $ac_link) 2>&5
14735 echo "$as_me:14735: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -s conftest$ac_exeext'
14738 { (eval echo "$as_me:14738: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 echo "$as_me:14741: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 eval "$as_ac_var=yes"
14745 echo "$as_me: failed program was:" >&5
14746 cat conftest.$ac_ext >&5
14747 eval "$as_ac_var=no"
14749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14751 echo "$as_me:14751: result: `eval echo '${'$as_ac_var'}'`" >&5
14752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14753 if test `eval echo '${'$as_ac_var'}'` = yes; then
14754 cat >>confdefs.h <<EOF
14755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14761 if test "$with_getcap" = "yes" ; then
14763 echo "$as_me:14763: checking for terminal-capability database functions" >&5
14764 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
14765 if test "${cf_cv_cgetent+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 cat >conftest.$ac_ext <<_ACEOF
14770 #line 14770 "configure"
14771 #include "confdefs.h"
14773 #include <stdlib.h>
14780 char *db_array = temp;
14781 cgetent(&buf, &db_array, "vt100");
14782 cgetcap(buf, "tc", '=');
14783 cgetmatch(buf, "tc");
14789 rm -f conftest.$ac_objext conftest$ac_exeext
14790 if { (eval echo "$as_me:14790: \"$ac_link\"") >&5
14791 (eval $ac_link) 2>&5
14793 echo "$as_me:14793: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -s conftest$ac_exeext'
14796 { (eval echo "$as_me:14796: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:14799: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14803 echo "$as_me: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14810 echo "$as_me:14810: result: $cf_cv_cgetent" >&5
14811 echo "${ECHO_T}$cf_cv_cgetent" >&6
14813 if test "$cf_cv_cgetent" = yes
14815 cat >>confdefs.h <<\EOF
14816 #define HAVE_BSD_CGETENT 1
14819 echo "$as_me:14819: checking if cgetent uses const parameter" >&5
14820 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
14821 if test "${cf_cv_cgetent_const+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14826 #line 14826 "configure"
14827 #include "confdefs.h"
14829 #include <stdlib.h>
14836 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
14837 const char *db_array = temp;
14838 cgetent(&buf, &db_array, "vt100");
14840 cgetcap(buf, "tc", '=');
14841 cgetmatch(buf, "tc");
14847 rm -f conftest.$ac_objext conftest$ac_exeext
14848 if { (eval echo "$as_me:14848: \"$ac_link\"") >&5
14849 (eval $ac_link) 2>&5
14851 echo "$as_me:14851: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -s conftest$ac_exeext'
14854 { (eval echo "$as_me:14854: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:14857: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 cf_cv_cgetent_const=yes
14861 echo "$as_me: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14863 cf_cv_cgetent_const=no
14865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14868 echo "$as_me:14868: result: $cf_cv_cgetent_const" >&5
14869 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
14870 if test "$cf_cv_cgetent_const" = yes
14872 cat >>confdefs.h <<EOF
14873 #define CGETENT_CONST const
14881 echo "$as_me:14881: checking for isascii" >&5
14882 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
14883 if test "${cf_cv_have_isascii+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 cat >conftest.$ac_ext <<_ACEOF
14888 #line 14888 "configure"
14889 #include "confdefs.h"
14894 int x = isascii(' ')
14899 rm -f conftest.$ac_objext conftest$ac_exeext
14900 if { (eval echo "$as_me:14900: \"$ac_link\"") >&5
14901 (eval $ac_link) 2>&5
14903 echo "$as_me:14903: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:14906: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:14909: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 cf_cv_have_isascii=yes
14913 echo "$as_me: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14915 cf_cv_have_isascii=no
14917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14920 echo "$as_me:14920: result: $cf_cv_have_isascii" >&5
14921 echo "${ECHO_T}$cf_cv_have_isascii" >&6
14922 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
14923 #define HAVE_ISASCII 1
14926 if test "$ac_cv_func_sigaction" = yes; then
14927 echo "$as_me:14927: checking whether sigaction needs _POSIX_SOURCE" >&5
14928 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14930 #line 14930 "configure"
14931 #include "confdefs.h"
14933 #include <sys/types.h>
14934 #include <signal.h>
14938 struct sigaction act
14943 rm -f conftest.$ac_objext
14944 if { (eval echo "$as_me:14944: \"$ac_compile\"") >&5
14945 (eval $ac_compile) 2>&5
14947 echo "$as_me:14947: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -s conftest.$ac_objext'
14950 { (eval echo "$as_me:14950: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:14953: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14957 echo "$as_me: failed program was:" >&5
14958 cat conftest.$ac_ext >&5
14960 cat >conftest.$ac_ext <<_ACEOF
14961 #line 14961 "configure"
14962 #include "confdefs.h"
14964 #define _POSIX_SOURCE
14965 #include <sys/types.h>
14966 #include <signal.h>
14970 struct sigaction act
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
14988 cat >>confdefs.h <<\EOF
14989 #define _POSIX_SOURCE 1
14993 echo "$as_me: failed program was:" >&5
14994 cat conftest.$ac_ext >&5
14997 rm -f conftest.$ac_objext conftest.$ac_ext
14999 rm -f conftest.$ac_objext conftest.$ac_ext
15000 echo "$as_me:15000: result: $sigact_bad" >&5
15001 echo "${ECHO_T}$sigact_bad" >&6
15004 echo "$as_me:15004: checking if nanosleep really works" >&5
15005 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15006 if test "${cf_cv_func_nanosleep+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 if test "$cross_compiling" = yes; then
15011 cf_cv_func_nanosleep=unknown
15013 cat >conftest.$ac_ext <<_ACEOF
15014 #line 15014 "configure"
15015 #include "confdefs.h"
15021 #ifdef HAVE_SYS_TIME_H
15022 #include <sys/time.h>
15026 struct timespec ts1, ts2;
15029 ts1.tv_nsec = 750000000;
15033 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15034 ${cf_cv_main_return:-return}(code != 0);
15038 rm -f conftest$ac_exeext
15039 if { (eval echo "$as_me:15039: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>&5
15042 echo "$as_me:15042: \$? = $ac_status" >&5
15043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15044 { (eval echo "$as_me:15044: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:15047: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 cf_cv_func_nanosleep=yes
15051 echo "$as_me: program exited with status $ac_status" >&5
15052 echo "$as_me: failed program was:" >&5
15053 cat conftest.$ac_ext >&5
15054 cf_cv_func_nanosleep=no
15056 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15059 echo "$as_me:15059: result: $cf_cv_func_nanosleep" >&5
15060 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15062 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
15063 #define HAVE_NANOSLEEP 1
15072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15073 echo "$as_me:15073: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 cat >conftest.$ac_ext <<_ACEOF
15079 #line 15079 "configure"
15080 #include "confdefs.h"
15081 #include <$ac_header>
15083 if { (eval echo "$as_me:15083: \"$ac_cpp conftest.$ac_ext\"") >&5
15084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15086 egrep -v '^ *\+' conftest.er1 >conftest.err
15088 cat conftest.err >&5
15089 echo "$as_me:15089: \$? = $ac_status" >&5
15090 (exit $ac_status); } >/dev/null; then
15091 if test -s conftest.err; then
15092 ac_cpp_err=$ac_c_preproc_warn_flag
15099 if test -z "$ac_cpp_err"; then
15100 eval "$as_ac_Header=yes"
15102 echo "$as_me: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15104 eval "$as_ac_Header=no"
15106 rm -f conftest.err conftest.$ac_ext
15108 echo "$as_me:15108: result: `eval echo '${'$as_ac_Header'}'`" >&5
15109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15111 cat >>confdefs.h <<EOF
15112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15118 if test "$ISC" = yes ; then
15120 for ac_header in sys/termio.h
15122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15123 echo "$as_me:15123: checking for $ac_header" >&5
15124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line 15129 "configure"
15130 #include "confdefs.h"
15131 #include <$ac_header>
15133 if { (eval echo "$as_me:15133: \"$ac_cpp conftest.$ac_ext\"") >&5
15134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15136 egrep -v '^ *\+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:15139: \$? = $ac_status" >&5
15140 (exit $ac_status); } >/dev/null; then
15141 if test -s conftest.err; then
15142 ac_cpp_err=$ac_c_preproc_warn_flag
15149 if test -z "$ac_cpp_err"; then
15150 eval "$as_ac_Header=yes"
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 eval "$as_ac_Header=no"
15156 rm -f conftest.err conftest.$ac_ext
15158 echo "$as_me:15158: result: `eval echo '${'$as_ac_Header'}'`" >&5
15159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15161 cat >>confdefs.h <<EOF
15162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15169 if test "$ac_cv_header_termios_h" = yes ; then
15170 case "$CFLAGS $CPPFLAGS" in
15172 termios_bad=dunno ;;
15173 *) termios_bad=maybe ;;
15175 if test "$termios_bad" = maybe ; then
15176 echo "$as_me:15176: checking whether termios.h needs _POSIX_SOURCE" >&5
15177 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
15178 cat >conftest.$ac_ext <<_ACEOF
15179 #line 15179 "configure"
15180 #include "confdefs.h"
15181 #include <termios.h>
15185 struct termios foo; int x = foo.c_iflag
15190 rm -f conftest.$ac_objext
15191 if { (eval echo "$as_me:15191: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>&5
15194 echo "$as_me:15194: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:15197: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15200 echo "$as_me:15200: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15204 echo "$as_me: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15207 cat >conftest.$ac_ext <<_ACEOF
15208 #line 15208 "configure"
15209 #include "confdefs.h"
15211 #define _POSIX_SOURCE
15212 #include <termios.h>
15216 struct termios foo; int x = foo.c_iflag
15221 rm -f conftest.$ac_objext
15222 if { (eval echo "$as_me:15222: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>&5
15225 echo "$as_me:15225: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (eval echo "$as_me:15228: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15231 echo "$as_me:15231: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 termios_bad=unknown
15235 echo "$as_me: failed program was:" >&5
15236 cat conftest.$ac_ext >&5
15237 termios_bad=yes cat >>confdefs.h <<\EOF
15238 #define _POSIX_SOURCE 1
15242 rm -f conftest.$ac_objext conftest.$ac_ext
15245 rm -f conftest.$ac_objext conftest.$ac_ext
15246 echo "$as_me:15246: result: $termios_bad" >&5
15247 echo "${ECHO_T}$termios_bad" >&6
15251 echo "$as_me:15251: checking for tcgetattr" >&5
15252 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
15253 if test "${cf_cv_have_tcgetattr+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 cat >conftest.$ac_ext <<_ACEOF
15258 #line 15258 "configure"
15259 #include "confdefs.h"
15261 #include <sys/types.h>
15262 #ifdef HAVE_UNISTD_H
15263 #include <unistd.h>
15265 #ifdef HAVE_TERMIOS_H
15266 #include <termios.h>
15267 #define TTY struct termios
15269 #ifdef HAVE_TERMIO_H
15270 #include <termio.h>
15271 #define TTY struct termio
15280 tcgetattr(1, &foo);
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:15286: \"$ac_link\"") >&5
15287 (eval $ac_link) 2>&5
15289 echo "$as_me:15289: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -s conftest$ac_exeext'
15292 { (eval echo "$as_me:15292: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:15295: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 cf_cv_have_tcgetattr=yes
15299 echo "$as_me: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15301 cf_cv_have_tcgetattr=no
15303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15305 echo "$as_me:15305: result: $cf_cv_have_tcgetattr" >&5
15306 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
15307 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
15308 #define HAVE_TCGETATTR 1
15311 echo "$as_me:15311: checking for vsscanf function or workaround" >&5
15312 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
15313 if test "${cf_cv_func_vsscanf+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15318 #line 15318 "configure"
15319 #include "confdefs.h"
15321 #include <stdarg.h>
15328 vsscanf("from", "%d", ap)
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (eval echo "$as_me:15334: \"$ac_link\"") >&5
15335 (eval $ac_link) 2>&5
15337 echo "$as_me:15337: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:15340: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:15343: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 cf_cv_func_vsscanf=vsscanf
15347 echo "$as_me: failed program was:" >&5
15348 cat conftest.$ac_ext >&5
15350 cat >conftest.$ac_ext <<_ACEOF
15351 #line 15351 "configure"
15352 #include "confdefs.h"
15354 #include <stdarg.h>
15361 char *str = "from";
15363 strbuf._flag = _IOREAD;
15364 strbuf._ptr = strbuf._base = (unsigned char *) str;
15365 strbuf._cnt = strlen(str);
15366 strbuf._file = _NFILE;
15367 return (vfscanf(&strbuf, "%d", ap))
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (eval echo "$as_me:15373: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15376 echo "$as_me:15376: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:15379: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:15382: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 cf_cv_func_vsscanf=vfscanf
15386 echo "$as_me: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15389 cat >conftest.$ac_ext <<_ACEOF
15390 #line 15390 "configure"
15391 #include "confdefs.h"
15393 #include <stdarg.h>
15400 char *str = "from";
15402 strbuf._flag = _IOREAD;
15403 strbuf._ptr = strbuf._base = (unsigned char *) str;
15404 strbuf._cnt = strlen(str);
15405 strbuf._file = _NFILE;
15406 return (_doscan(&strbuf, "%d", ap))
15411 rm -f conftest.$ac_objext conftest$ac_exeext
15412 if { (eval echo "$as_me:15412: \"$ac_link\"") >&5
15413 (eval $ac_link) 2>&5
15415 echo "$as_me:15415: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -s conftest$ac_exeext'
15418 { (eval echo "$as_me:15418: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 echo "$as_me:15421: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 cf_cv_func_vsscanf=_doscan
15425 echo "$as_me: failed program was:" >&5
15426 cat conftest.$ac_ext >&5
15428 cf_cv_func_vsscanf=no
15430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15436 echo "$as_me:15436: result: $cf_cv_func_vsscanf" >&5
15437 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
15439 case $cf_cv_func_vsscanf in #(vi
15440 vsscanf) cat >>confdefs.h <<\EOF
15441 #define HAVE_VSSCANF 1
15444 vfscanf) cat >>confdefs.h <<\EOF
15445 #define HAVE_VFSCANF 1
15448 _doscan) cat >>confdefs.h <<\EOF
15449 #define HAVE__DOSCAN 1
15454 echo "$as_me:15454: checking for working mkstemp" >&5
15455 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
15456 if test "${cf_cv_func_mkstemp+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 if test "$cross_compiling" = yes; then
15462 echo "$as_me:15462: checking for mkstemp" >&5
15463 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
15464 if test "${ac_cv_func_mkstemp+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 cat >conftest.$ac_ext <<_ACEOF
15468 #line 15468 "configure"
15469 #include "confdefs.h"
15470 /* System header to define __stub macros and hopefully few prototypes,
15471 which can conflict with char mkstemp (); below. */
15472 #include <assert.h>
15473 /* Override any gcc2 internal prototype to avoid an error. */
15477 /* We use char because int might match the return type of a gcc2
15478 builtin and then its argument prototype would still apply. */
15485 /* The GNU C library defines this for functions which it implements
15486 to always fail with ENOSYS. Some functions are actually named
15487 something starting with __ and the normal name is an alias. */
15488 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (eval echo "$as_me:15499: \"$ac_link\"") >&5
15500 (eval $ac_link) 2>&5
15502 echo "$as_me:15502: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -s conftest$ac_exeext'
15505 { (eval echo "$as_me:15505: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:15508: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_func_mkstemp=yes
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 ac_cv_func_mkstemp=no
15516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15518 echo "$as_me:15518: result: $ac_cv_func_mkstemp" >&5
15519 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15523 #line 15523 "configure"
15524 #include "confdefs.h"
15526 #include <sys/types.h>
15527 #include <stdlib.h>
15529 #include <string.h>
15530 #include <sys/stat.h>
15533 char *tmpl = "conftestXXXXXX";
15541 for (n = 0; n < 2; ++n) {
15542 strcpy(name[n], tmpl);
15543 if ((fd = mkstemp(name[n])) >= 0) {
15544 if (!strcmp(name[n], tmpl)
15545 || stat(name[n], &sb) != 0
15546 || (sb.st_mode & S_IFMT) != S_IFREG
15547 || (sb.st_mode & 077) != 0) {
15554 && !strcmp(name[0], name[1]))
15556 ${cf_cv_main_return:-return}(result);
15560 rm -f conftest$ac_exeext
15561 if { (eval echo "$as_me:15561: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>&5
15564 echo "$as_me:15564: \$? = $ac_status" >&5
15565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15566 { (eval echo "$as_me:15566: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15569 echo "$as_me:15569: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 cf_cv_func_mkstemp=yes
15574 echo "$as_me: program exited with status $ac_status" >&5
15575 echo "$as_me: failed program was:" >&5
15576 cat conftest.$ac_ext >&5
15577 cf_cv_func_mkstemp=no
15580 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15584 echo "$as_me:15584: result: $cf_cv_func_mkstemp" >&5
15585 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
15586 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
15587 cat >>confdefs.h <<\EOF
15588 #define HAVE_MKSTEMP 1
15593 # setup for prototype of fallback for vsscanf()
15595 if test "$cf_cv_func_vsscanf" = vsscanf ; then
15601 if test "$cross_compiling" = yes ; then
15602 { echo "$as_me:15602: WARNING: cross compiling: assume setvbuf params not reversed" >&5
15603 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
15605 echo "$as_me:15605: checking whether setvbuf arguments are reversed" >&5
15606 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
15607 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 if test "$cross_compiling" = yes; then
15611 { { echo "$as_me:15611: error: cannot run test program while cross compiling" >&5
15612 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15613 { (exit 1); exit 1; }; }
15615 cat >conftest.$ac_ext <<_ACEOF
15616 #line 15616 "configure"
15617 #include "confdefs.h"
15619 /* If setvbuf has the reversed format, exit 0. */
15623 /* This call has the arguments reversed.
15624 A reversed system may check and see that the address of main
15625 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
15626 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
15627 $ac_main_return(1);
15628 putc('\r', stdout);
15629 $ac_main_return(0); /* Non-reversed systems segv here. */
15632 rm -f conftest$ac_exeext
15633 if { (eval echo "$as_me:15633: \"$ac_link\"") >&5
15634 (eval $ac_link) 2>&5
15636 echo "$as_me:15636: \$? = $ac_status" >&5
15637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15638 { (eval echo "$as_me:15638: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:15641: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 ac_cv_func_setvbuf_reversed=yes
15645 echo "$as_me: program exited with status $ac_status" >&5
15646 echo "$as_me: failed program was:" >&5
15647 cat conftest.$ac_ext >&5
15648 ac_cv_func_setvbuf_reversed=no
15650 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15652 rm -f core core.* *.core
15654 echo "$as_me:15654: result: $ac_cv_func_setvbuf_reversed" >&5
15655 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
15656 if test $ac_cv_func_setvbuf_reversed = yes; then
15658 cat >>confdefs.h <<\EOF
15659 #define SETVBUF_REVERSED 1
15665 echo "$as_me:15665: checking return type of signal handlers" >&5
15666 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15667 if test "${ac_cv_type_signal+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 cat >conftest.$ac_ext <<_ACEOF
15671 #line 15671 "configure"
15672 #include "confdefs.h"
15673 #include <sys/types.h>
15674 #include <signal.h>
15679 extern "C" void (*signal (int, void (*)(int)))(int);
15681 void (*signal ()) ();
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:15693: \"$ac_compile\"") >&5
15694 (eval $ac_compile) 2>&5
15696 echo "$as_me:15696: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -s conftest.$ac_objext'
15699 { (eval echo "$as_me:15699: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:15702: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_cv_type_signal=void
15706 echo "$as_me: failed program was:" >&5
15707 cat conftest.$ac_ext >&5
15708 ac_cv_type_signal=int
15710 rm -f conftest.$ac_objext conftest.$ac_ext
15712 echo "$as_me:15712: result: $ac_cv_type_signal" >&5
15713 echo "${ECHO_T}$ac_cv_type_signal" >&6
15715 cat >>confdefs.h <<EOF
15716 #define RETSIGTYPE $ac_cv_type_signal
15719 echo "$as_me:15719: checking for type sigaction_t" >&5
15720 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
15721 if test "${cf_cv_type_sigaction+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 cat >conftest.$ac_ext <<_ACEOF
15726 #line 15726 "configure"
15727 #include "confdefs.h"
15729 #include <signal.h>
15738 rm -f conftest.$ac_objext
15739 if { (eval echo "$as_me:15739: \"$ac_compile\"") >&5
15740 (eval $ac_compile) 2>&5
15742 echo "$as_me:15742: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:15745: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15748 echo "$as_me:15748: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 cf_cv_type_sigaction=yes
15752 echo "$as_me: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15754 cf_cv_type_sigaction=no
15756 rm -f conftest.$ac_objext conftest.$ac_ext
15759 echo "$as_me:15759: result: $cf_cv_type_sigaction" >&5
15760 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
15761 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
15762 #define HAVE_TYPE_SIGACTION 1
15765 echo "$as_me:15765: checking declaration of size-change" >&5
15766 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
15767 if test "${cf_cv_sizechange+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 cf_cv_sizechange=unknown
15772 cf_save_CPPFLAGS="$CPPFLAGS"
15774 for cf_opts in "" "NEED_PTEM_H"
15777 CPPFLAGS="$cf_save_CPPFLAGS"
15778 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 #line 15780 "configure"
15781 #include "confdefs.h"
15782 #include <sys/types.h>
15783 #ifdef HAVE_TERMIOS_H
15784 #include <termios.h>
15786 #ifdef HAVE_TERMIO_H
15787 #include <termio.h>
15791 /* This is a workaround for SCO: they neglected to define struct winsize in
15792 * termios.h -- it's only in termio.h and ptem.h
15794 #include <sys/stream.h>
15795 #include <sys/ptem.h>
15797 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
15798 #include <sys/ioctl.h>
15806 struct ttysize win; /* FIXME: what system is this? */
15807 int y = win.ts_lines;
15808 int x = win.ts_cols;
15811 struct winsize win;
15812 int y = win.ws_row;
15813 int x = win.ws_col;
15815 no TIOCGSIZE or TIOCGWINSZ
15816 #endif /* TIOCGWINSZ */
15817 #endif /* TIOCGSIZE */
15823 rm -f conftest.$ac_objext
15824 if { (eval echo "$as_me:15824: \"$ac_compile\"") >&5
15825 (eval $ac_compile) 2>&5
15827 echo "$as_me:15827: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -s conftest.$ac_objext'
15830 { (eval echo "$as_me:15830: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:15833: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 cf_cv_sizechange=yes
15837 echo "$as_me: failed program was:" >&5
15838 cat conftest.$ac_ext >&5
15839 cf_cv_sizechange=no
15841 rm -f conftest.$ac_objext conftest.$ac_ext
15843 CPPFLAGS="$cf_save_CPPFLAGS"
15844 if test "$cf_cv_sizechange" = yes ; then
15845 echo "size-change succeeded ($cf_opts)" >&5
15846 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
15852 echo "$as_me:15852: result: $cf_cv_sizechange" >&5
15853 echo "${ECHO_T}$cf_cv_sizechange" >&6
15854 if test "$cf_cv_sizechange" != no ; then
15855 cat >>confdefs.h <<\EOF
15856 #define HAVE_SIZECHANGE 1
15859 case $cf_cv_sizechange in #(vi
15861 cat >>confdefs.h <<EOF
15862 #define $cf_cv_sizechange 1
15869 echo "$as_me:15869: checking for memmove" >&5
15870 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
15871 if test "${ac_cv_func_memmove+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 cat >conftest.$ac_ext <<_ACEOF
15875 #line 15875 "configure"
15876 #include "confdefs.h"
15877 /* System header to define __stub macros and hopefully few prototypes,
15878 which can conflict with char memmove (); below. */
15879 #include <assert.h>
15880 /* Override any gcc2 internal prototype to avoid an error. */
15884 /* We use char because int might match the return type of a gcc2
15885 builtin and then its argument prototype would still apply. */
15892 /* The GNU C library defines this for functions which it implements
15893 to always fail with ENOSYS. Some functions are actually named
15894 something starting with __ and the normal name is an alias. */
15895 #if defined (__stub_memmove) || defined (__stub___memmove)
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:15906: \"$ac_link\"") >&5
15907 (eval $ac_link) 2>&5
15909 echo "$as_me:15909: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -s conftest$ac_exeext'
15912 { (eval echo "$as_me:15912: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:15915: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_cv_func_memmove=yes
15919 echo "$as_me: failed program was:" >&5
15920 cat conftest.$ac_ext >&5
15921 ac_cv_func_memmove=no
15923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15925 echo "$as_me:15925: result: $ac_cv_func_memmove" >&5
15926 echo "${ECHO_T}$ac_cv_func_memmove" >&6
15927 if test $ac_cv_func_memmove = yes; then
15931 echo "$as_me:15931: checking for bcopy" >&5
15932 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
15933 if test "${ac_cv_func_bcopy+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 cat >conftest.$ac_ext <<_ACEOF
15937 #line 15937 "configure"
15938 #include "confdefs.h"
15939 /* System header to define __stub macros and hopefully few prototypes,
15940 which can conflict with char bcopy (); below. */
15941 #include <assert.h>
15942 /* Override any gcc2 internal prototype to avoid an error. */
15946 /* We use char because int might match the return type of a gcc2
15947 builtin and then its argument prototype would still apply. */
15954 /* The GNU C library defines this for functions which it implements
15955 to always fail with ENOSYS. Some functions are actually named
15956 something starting with __ and the normal name is an alias. */
15957 #if defined (__stub_bcopy) || defined (__stub___bcopy)
15967 rm -f conftest.$ac_objext conftest$ac_exeext
15968 if { (eval echo "$as_me:15968: \"$ac_link\"") >&5
15969 (eval $ac_link) 2>&5
15971 echo "$as_me:15971: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -s conftest$ac_exeext'
15974 { (eval echo "$as_me:15974: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:15977: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_cv_func_bcopy=yes
15981 echo "$as_me: failed program was:" >&5
15982 cat conftest.$ac_ext >&5
15983 ac_cv_func_bcopy=no
15985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15987 echo "$as_me:15987: result: $ac_cv_func_bcopy" >&5
15988 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
15989 if test $ac_cv_func_bcopy = yes; then
15991 echo "$as_me:15991: checking if bcopy does overlapping moves" >&5
15992 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
15993 if test "${cf_cv_good_bcopy+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 if test "$cross_compiling" = yes; then
15998 cf_cv_good_bcopy=unknown
16000 cat >conftest.$ac_ext <<_ACEOF
16001 #line 16001 "configure"
16002 #include "confdefs.h"
16005 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16007 bcopy(data, temp, sizeof(data));
16008 bcopy(temp+10, temp, 15);
16009 bcopy(temp+5, temp+15, 10);
16010 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16014 rm -f conftest$ac_exeext
16015 if { (eval echo "$as_me:16015: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16018 echo "$as_me:16018: \$? = $ac_status" >&5
16019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16020 { (eval echo "$as_me:16020: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16023 echo "$as_me:16023: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 cf_cv_good_bcopy=yes
16027 echo "$as_me: program exited with status $ac_status" >&5
16028 echo "$as_me: failed program was:" >&5
16029 cat conftest.$ac_ext >&5
16030 cf_cv_good_bcopy=no
16032 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16036 echo "$as_me:16036: result: $cf_cv_good_bcopy" >&5
16037 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16040 cf_cv_good_bcopy=no
16043 if test "$cf_cv_good_bcopy" = yes ; then
16044 cat >>confdefs.h <<\EOF
16045 #define USE_OK_BCOPY 1
16049 cat >>confdefs.h <<\EOF
16050 #define USE_MY_MEMMOVE 1
16057 echo "$as_me:16057: checking if poll really works" >&5
16058 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16059 if test "${cf_cv_working_poll+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 if test "$cross_compiling" = yes; then
16064 cf_cv_working_poll=unknown
16066 cat >conftest.$ac_ext <<_ACEOF
16067 #line 16067 "configure"
16068 #include "confdefs.h"
16074 #include <sys/poll.h>
16077 struct pollfd myfds;
16081 myfds.events = POLLIN;
16083 ret = poll(&myfds, 1, 100);
16084 ${cf_cv_main_return:-return}(ret != 0);
16087 rm -f conftest$ac_exeext
16088 if { (eval echo "$as_me:16088: \"$ac_link\"") >&5
16089 (eval $ac_link) 2>&5
16091 echo "$as_me:16091: \$? = $ac_status" >&5
16092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16093 { (eval echo "$as_me:16093: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:16096: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 cf_cv_working_poll=yes
16100 echo "$as_me: program exited with status $ac_status" >&5
16101 echo "$as_me: failed program was:" >&5
16102 cat conftest.$ac_ext >&5
16103 cf_cv_working_poll=no
16105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16108 echo "$as_me:16108: result: $cf_cv_working_poll" >&5
16109 echo "${ECHO_T}$cf_cv_working_poll" >&6
16110 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
16111 #define HAVE_WORKING_POLL 1
16114 echo "$as_me:16114: checking for va_copy" >&5
16115 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
16116 if test "${cf_cv_have_va_copy+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 cat >conftest.$ac_ext <<_ACEOF
16121 #line 16121 "configure"
16122 #include "confdefs.h"
16124 #include <stdarg.h>
16130 static va_list dst;
16131 static va_list src;
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:16138: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>&5
16141 echo "$as_me:16141: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -s conftest$ac_exeext'
16144 { (eval echo "$as_me:16144: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 echo "$as_me:16147: \$? = $ac_status" >&5
16148 (exit $ac_status); }; }; then
16149 cf_cv_have_va_copy=yes
16151 echo "$as_me: failed program was:" >&5
16152 cat conftest.$ac_ext >&5
16153 cf_cv_have_va_copy=no
16155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16157 echo "$as_me:16157: result: $cf_cv_have_va_copy" >&5
16158 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
16160 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
16161 #define HAVE_VA_COPY 1
16164 echo "$as_me:16164: checking for __va_copy" >&5
16165 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16166 if test "${cf_cv_have___va_copy+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 cat >conftest.$ac_ext <<_ACEOF
16171 #line 16171 "configure"
16172 #include "confdefs.h"
16174 #include <stdarg.h>
16180 static va_list dst;
16181 static va_list src;
16182 __va_copy(dst, src)
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:16188: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16191 echo "$as_me:16191: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (eval echo "$as_me:16194: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:16197: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 cf_cv_have___va_copy=yes
16201 echo "$as_me: failed program was:" >&5
16202 cat conftest.$ac_ext >&5
16203 cf_cv_have___va_copy=no
16205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16207 echo "$as_me:16207: result: $cf_cv_have___va_copy" >&5
16208 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
16210 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
16211 #define HAVE___VA_COPY 1
16214 echo "$as_me:16214: checking for pid_t" >&5
16215 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16216 if test "${ac_cv_type_pid_t+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16220 #line 16220 "configure"
16221 #include "confdefs.h"
16222 $ac_includes_default
16228 if (sizeof (pid_t))
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:16235: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>&5
16238 echo "$as_me:16238: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (eval echo "$as_me:16241: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 echo "$as_me:16244: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ac_cv_type_pid_t=yes
16248 echo "$as_me: failed program was:" >&5
16249 cat conftest.$ac_ext >&5
16250 ac_cv_type_pid_t=no
16252 rm -f conftest.$ac_objext conftest.$ac_ext
16254 echo "$as_me:16254: result: $ac_cv_type_pid_t" >&5
16255 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16256 if test $ac_cv_type_pid_t = yes; then
16260 cat >>confdefs.h <<EOF
16266 for ac_header in unistd.h vfork.h
16268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16269 echo "$as_me:16269: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 cat >conftest.$ac_ext <<_ACEOF
16275 #line 16275 "configure"
16276 #include "confdefs.h"
16277 #include <$ac_header>
16279 if { (eval echo "$as_me:16279: \"$ac_cpp conftest.$ac_ext\"") >&5
16280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16282 egrep -v '^ *\+' conftest.er1 >conftest.err
16284 cat conftest.err >&5
16285 echo "$as_me:16285: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev/null; then
16287 if test -s conftest.err; then
16288 ac_cpp_err=$ac_c_preproc_warn_flag
16295 if test -z "$ac_cpp_err"; then
16296 eval "$as_ac_Header=yes"
16298 echo "$as_me: failed program was:" >&5
16299 cat conftest.$ac_ext >&5
16300 eval "$as_ac_Header=no"
16302 rm -f conftest.err conftest.$ac_ext
16304 echo "$as_me:16304: result: `eval echo '${'$as_ac_Header'}'`" >&5
16305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307 cat >>confdefs.h <<EOF
16308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16314 for ac_func in fork vfork
16316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16317 echo "$as_me:16317: checking for $ac_func" >&5
16318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16319 if eval "test \"\${$as_ac_var+set}\" = set"; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 cat >conftest.$ac_ext <<_ACEOF
16323 #line 16323 "configure"
16324 #include "confdefs.h"
16325 /* System header to define __stub macros and hopefully few prototypes,
16326 which can conflict with char $ac_func (); below. */
16327 #include <assert.h>
16328 /* Override any gcc2 internal prototype to avoid an error. */
16332 /* We use char because int might match the return type of a gcc2
16333 builtin and then its argument prototype would still apply. */
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16353 rm -f conftest.$ac_objext conftest$ac_exeext
16354 if { (eval echo "$as_me:16354: \"$ac_link\"") >&5
16355 (eval $ac_link) 2>&5
16357 echo "$as_me:16357: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -s conftest$ac_exeext'
16360 { (eval echo "$as_me:16360: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16363 echo "$as_me:16363: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 eval "$as_ac_var=yes"
16367 echo "$as_me: failed program was:" >&5
16368 cat conftest.$ac_ext >&5
16369 eval "$as_ac_var=no"
16371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16373 echo "$as_me:16373: result: `eval echo '${'$as_ac_var'}'`" >&5
16374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16375 if test `eval echo '${'$as_ac_var'}'` = yes; then
16376 cat >>confdefs.h <<EOF
16377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16383 ac_cv_func_fork_works=$ac_cv_func_fork
16384 if test "x$ac_cv_func_fork" = xyes; then
16385 echo "$as_me:16385: checking for working fork" >&5
16386 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16387 if test "${ac_cv_func_fork_works+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 if test "$cross_compiling" = yes; then
16391 ac_cv_func_fork_works=cross
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* By Rüdiger Kuhlmann. */
16395 #include <sys/types.h>
16397 # include <unistd.h>
16399 /* Some systems only have a dummy stub for fork() */
16403 $ac_main_return (1);
16404 $ac_main_return (0);
16407 rm -f conftest$ac_exeext
16408 if { (eval echo "$as_me:16408: \"$ac_link\"") >&5
16409 (eval $ac_link) 2>&5
16411 echo "$as_me:16411: \$? = $ac_status" >&5
16412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16413 { (eval echo "$as_me:16413: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16416 echo "$as_me:16416: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_cv_func_fork_works=yes
16420 echo "$as_me: program exited with status $ac_status" >&5
16421 echo "$as_me: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 ac_cv_func_fork_works=no
16425 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16428 echo "$as_me:16428: result: $ac_cv_func_fork_works" >&5
16429 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16432 if test "x$ac_cv_func_fork_works" = xcross; then
16434 *-*-amigaos* | *-*-msdosdjgpp*)
16435 # Override, as these systems have only a dummy fork() stub
16436 ac_cv_func_fork_works=no
16439 ac_cv_func_fork_works=yes
16442 { echo "$as_me:16442: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
16443 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
16445 ac_cv_func_vfork_works=$ac_cv_func_vfork
16446 if test "x$ac_cv_func_vfork" = xyes; then
16447 echo "$as_me:16447: checking for working vfork" >&5
16448 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16449 if test "${ac_cv_func_vfork_works+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16452 if test "$cross_compiling" = yes; then
16453 ac_cv_func_vfork_works=cross
16455 cat >conftest.$ac_ext <<_ACEOF
16456 #line 16456 "configure"
16457 #include "confdefs.h"
16458 /* Thanks to Paul Eggert for this test. */
16460 #include <sys/types.h>
16461 #include <sys/stat.h>
16463 # include <unistd.h>
16466 # include <vfork.h>
16468 /* On some sparc systems, changes by the child to local and incoming
16469 argument registers are propagated back to the parent. The compiler
16470 is told about this with #include <vfork.h>, but some compilers
16471 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16472 static variable whose address is put into a register that is
16473 clobbered by the vfork. */
16476 sparc_address_test (int arg)
16478 sparc_address_test (arg) int arg;
16481 static pid_t child;
16499 pid_t parent = getpid ();
16502 sparc_address_test ();
16507 /* Here is another test for sparc vfork register problems. This
16508 test uses lots of local variables, at least as many local
16509 variables as main has allocated so far including compiler
16510 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16511 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16512 reuse the register of parent for one of the local variables,
16513 since it will think that parent can't possibly be used any more
16514 in this routine. Assigning to the local variable will thus
16515 munge parent in the parent process. */
16517 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16518 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16519 /* Convince the compiler that p..p7 are live; otherwise, it might
16520 use the same hardware register for all 8 local variables. */
16521 if (p != p1 || p != p2 || p != p3 || p != p4
16522 || p != p5 || p != p6 || p != p7)
16525 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16526 from child file descriptors. If the child closes a descriptor
16527 before it execs or exits, this munges the parent's descriptor
16528 as well. Test for this by closing stdout in the child. */
16529 _exit(close(fileno(stdout)) != 0);
16534 while (wait(&status) != child)
16537 /* Was there some problem with vforking? */
16540 /* Did the child fail? (This shouldn't happen.) */
16543 /* Did the vfork/compiler bug occur? */
16544 || parent != getpid()
16546 /* Did the file descriptor bug occur? */
16547 || fstat(fileno(stdout), &st) != 0
16552 rm -f conftest$ac_exeext
16553 if { (eval echo "$as_me:16553: \"$ac_link\"") >&5
16554 (eval $ac_link) 2>&5
16556 echo "$as_me:16556: \$? = $ac_status" >&5
16557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16558 { (eval echo "$as_me:16558: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16561 echo "$as_me:16561: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 ac_cv_func_vfork_works=yes
16565 echo "$as_me: program exited with status $ac_status" >&5
16566 echo "$as_me: failed program was:" >&5
16567 cat conftest.$ac_ext >&5
16568 ac_cv_func_vfork_works=no
16570 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16573 echo "$as_me:16573: result: $ac_cv_func_vfork_works" >&5
16574 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16577 if test "x$ac_cv_func_fork_works" = xcross; then
16578 ac_cv_func_vfork_works=ac_cv_func_vfork
16579 { echo "$as_me:16579: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
16580 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
16583 if test "x$ac_cv_func_vfork_works" = xyes; then
16585 cat >>confdefs.h <<\EOF
16586 #define HAVE_WORKING_VFORK 1
16591 cat >>confdefs.h <<\EOF
16596 if test "x$ac_cv_func_fork_works" = xyes; then
16598 cat >>confdefs.h <<\EOF
16599 #define HAVE_WORKING_FORK 1
16604 # special check for test/ditto.c
16606 echo "$as_me:16606: checking for openpty in -lutil" >&5
16607 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16608 if test "${ac_cv_lib_util_openpty+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 ac_check_lib_save_LIBS=$LIBS
16612 LIBS="-lutil $LIBS"
16613 cat >conftest.$ac_ext <<_ACEOF
16614 #line 16614 "configure"
16615 #include "confdefs.h"
16617 /* Override any gcc2 internal prototype to avoid an error. */
16621 /* We use char because int might match the return type of a gcc2
16622 builtin and then its argument prototype would still apply. */
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:16633: \"$ac_link\"") >&5
16634 (eval $ac_link) 2>&5
16636 echo "$as_me:16636: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -s conftest$ac_exeext'
16639 { (eval echo "$as_me:16639: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 echo "$as_me:16642: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_lib_util_openpty=yes
16646 echo "$as_me: failed program was:" >&5
16647 cat conftest.$ac_ext >&5
16648 ac_cv_lib_util_openpty=no
16650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16651 LIBS=$ac_check_lib_save_LIBS
16653 echo "$as_me:16653: result: $ac_cv_lib_util_openpty" >&5
16654 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16655 if test $ac_cv_lib_util_openpty = yes; then
16661 echo "$as_me:16661: checking for openpty header" >&5
16662 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16663 if test "${cf_cv_func_openpty+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 cf_save_LIBS="$LIBS"
16668 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
16669 for cf_header in pty.h libutil.h util.h
16671 cat >conftest.$ac_ext <<_ACEOF
16672 #line 16672 "configure"
16673 #include "confdefs.h"
16675 #include <$cf_header>
16681 int x = openpty((int *)0, (int *)0, (char *)0,
16682 (struct termios *)0, (struct winsize *)0);
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (eval echo "$as_me:16689: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>&5
16692 echo "$as_me:16692: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -s conftest$ac_exeext'
16695 { (eval echo "$as_me:16695: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:16698: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16701 cf_cv_func_openpty=$cf_header
16705 echo "$as_me: failed program was:" >&5
16706 cat conftest.$ac_ext >&5
16708 cf_cv_func_openpty=no
16711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16713 LIBS="$cf_save_LIBS"
16716 echo "$as_me:16716: result: $cf_cv_func_openpty" >&5
16717 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16719 if test "$cf_cv_func_openpty" != no ; then
16720 cat >>confdefs.h <<EOF
16721 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16724 cat >>confdefs.h <<\EOF
16725 #define USE_XTERM_PTY 1
16728 if test "$cf_cv_lib_util" = yes ; then
16729 TEST_LIBS="-lutil $TEST_LIBS"
16733 if test "$with_hashed_db" != no ; then
16734 cat >>confdefs.h <<\EOF
16735 #define USE_HASHED_DB 1
16738 case $with_hashed_db in #(vi
16742 if test -d "$with_hashed_db" ; then
16744 if test -n "$with_hashed_db/include" ; then
16745 for cf_add_incdir in $with_hashed_db/include
16747 while test $cf_add_incdir != /usr/include
16749 if test -d $cf_add_incdir
16752 if test -n "$CFLAGS$CPPFLAGS" ; then
16753 # a loop is needed to ensure we can add subdirs of existing dirs
16754 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16755 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16756 cf_have_incdir=yes; break
16761 if test "$cf_have_incdir" = no ; then
16762 if test "$cf_add_incdir" = /usr/local/include ; then
16763 if test "$GCC" = yes
16765 cf_save_CPPFLAGS=$CPPFLAGS
16766 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line 16768 "configure"
16769 #include "confdefs.h"
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:16780: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>&5
16783 echo "$as_me:16783: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (eval echo "$as_me:16786: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:16789: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16793 echo "$as_me: failed program was:" >&5
16794 cat conftest.$ac_ext >&5
16797 rm -f conftest.$ac_objext conftest.$ac_ext
16798 CPPFLAGS=$cf_save_CPPFLAGS
16803 if test "$cf_have_incdir" = no ; then
16804 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16806 echo "${as_me:-configure}:16806: testing adding $cf_add_incdir to include-path ..." 1>&5
16808 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16810 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16811 test "$cf_top_incdir" = "$cf_add_incdir" && break
16812 cf_add_incdir="$cf_top_incdir"
16821 if test -n "$with_hashed_db/lib" ; then
16822 for cf_add_libdir in $with_hashed_db/lib
16824 if test $cf_add_libdir = /usr/lib ; then
16826 elif test -d $cf_add_libdir
16829 if test -n "$LDFLAGS$LIBS" ; then
16830 # a loop is needed to ensure we can add subdirs of existing dirs
16831 for cf_test_libdir in $LDFLAGS $LIBS ; do
16832 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
16833 cf_have_libdir=yes; break
16837 if test "$cf_have_libdir" = no ; then
16838 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
16840 echo "${as_me:-configure}:16840: testing adding $cf_add_libdir to library-path ..." 1>&5
16842 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
16851 echo "$as_me:16851: checking for db.h" >&5
16852 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
16853 if test "${ac_cv_header_db_h+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16857 #line 16857 "configure"
16858 #include "confdefs.h"
16861 if { (eval echo "$as_me:16861: \"$ac_cpp conftest.$ac_ext\"") >&5
16862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16864 egrep -v '^ *\+' conftest.er1 >conftest.err
16866 cat conftest.err >&5
16867 echo "$as_me:16867: \$? = $ac_status" >&5
16868 (exit $ac_status); } >/dev/null; then
16869 if test -s conftest.err; then
16870 ac_cpp_err=$ac_c_preproc_warn_flag
16877 if test -z "$ac_cpp_err"; then
16878 ac_cv_header_db_h=yes
16880 echo "$as_me: failed program was:" >&5
16881 cat conftest.$ac_ext >&5
16882 ac_cv_header_db_h=no
16884 rm -f conftest.err conftest.$ac_ext
16886 echo "$as_me:16886: result: $ac_cv_header_db_h" >&5
16887 echo "${ECHO_T}$ac_cv_header_db_h" >&6
16888 if test $ac_cv_header_db_h = yes; then
16890 echo "$as_me:16890: checking for version of db" >&5
16891 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
16892 if test "${cf_cv_hashed_db_version+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 cf_cv_hashed_db_version=unknown
16898 for cf_db_version in 1 2 3 4 5
16901 echo "${as_me:-configure}:16901: testing checking for db version $cf_db_version ..." 1>&5
16903 cat >conftest.$ac_ext <<_ACEOF
16904 #line 16904 "configure"
16905 #include "confdefs.h"
16907 $ac_includes_default
16910 #ifdef DB_VERSION_MAJOR
16911 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
16912 #if $cf_db_version == DB_VERSION_MAJOR
16918 #if $cf_db_version == 1
16919 /* ok: assuming this is DB 1.8.5 */
16933 rm -f conftest.$ac_objext
16934 if { (eval echo "$as_me:16934: \"$ac_compile\"") >&5
16935 (eval $ac_compile) 2>&5
16937 echo "$as_me:16937: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -s conftest.$ac_objext'
16940 { (eval echo "$as_me:16940: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:16943: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }; then
16946 cf_cv_hashed_db_version=$cf_db_version
16950 echo "$as_me: failed program was:" >&5
16951 cat conftest.$ac_ext >&5
16953 rm -f conftest.$ac_objext conftest.$ac_ext
16957 echo "$as_me:16957: result: $cf_cv_hashed_db_version" >&5
16958 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
16960 if test "$cf_cv_hashed_db_version" = unknown ; then
16961 { { echo "$as_me:16961: error: Cannot determine version of db" >&5
16962 echo "$as_me: error: Cannot determine version of db" >&2;}
16963 { (exit 1); exit 1; }; }
16966 echo "$as_me:16966: checking for db libraries" >&5
16967 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
16968 if test "${cf_cv_hashed_db_libs+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 cf_cv_hashed_db_libs=unknown
16973 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
16975 cf_save_libs="$LIBS"
16976 if test -n "$cf_db_libs"; then
16977 LIBS="-l$cf_db_libs $LIBS"
16980 echo "${as_me:-configure}:16980: testing checking for library "$cf_db_libs" ..." 1>&5
16982 cat >conftest.$ac_ext <<_ACEOF
16983 #line 16983 "configure"
16984 #include "confdefs.h"
16986 $ac_includes_default
16993 char *path = "/tmp/foo";
16994 #ifdef DB_VERSION_MAJOR
16995 #if DB_VERSION_MAJOR >= 4
16997 db_create(&result, NULL, 0);
16998 result->open(result,
17005 #elif DB_VERSION_MAJOR >= 3
17007 db_create(&result, NULL, 0);
17008 result->open(result,
17014 #elif DB_VERSION_MAJOR >= 2
17023 #endif /* DB_VERSION_MAJOR */
17025 DB *result = dbopen(path,
17031 ${cf_cv_main_return:-return}(result != 0)
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (eval echo "$as_me:17038: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>&5
17041 echo "$as_me:17041: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -s conftest$ac_exeext'
17044 { (eval echo "$as_me:17044: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:17047: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17050 if test -n "$cf_db_libs" ; then
17051 cf_cv_hashed_db_libs=$cf_db_libs
17053 cf_cv_hashed_db_libs=default
17055 LIBS="$cf_save_libs"
17059 echo "$as_me: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17063 LIBS="$cf_save_libs"
17067 echo "$as_me:17067: result: $cf_cv_hashed_db_libs" >&5
17068 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17070 if test "$cf_cv_hashed_db_libs" = unknown ; then
17071 { { echo "$as_me:17071: error: Cannot determine library for db" >&5
17072 echo "$as_me: error: Cannot determine library for db" >&2;}
17073 { (exit 1); exit 1; }; }
17074 elif test "$cf_cv_hashed_db_libs" != default ; then
17075 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17081 { { echo "$as_me:17081: error: Cannot find db.h" >&5
17082 echo "$as_me: error: Cannot find db.h" >&2;}
17083 { (exit 1); exit 1; }; }
17089 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17090 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17091 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17094 # Just in case, check if the C compiler has a bool type.
17096 echo "$as_me:17096: checking if we should include stdbool.h" >&5
17097 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17099 if test "${cf_cv_header_stdbool_h+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17104 #line 17104 "configure"
17105 #include "confdefs.h"
17115 rm -f conftest.$ac_objext
17116 if { (eval echo "$as_me:17116: \"$ac_compile\"") >&5
17117 (eval $ac_compile) 2>&5
17119 echo "$as_me:17119: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:17122: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:17125: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 cf_cv_header_stdbool_h=0
17129 echo "$as_me: failed program was:" >&5
17130 cat conftest.$ac_ext >&5
17131 cat >conftest.$ac_ext <<_ACEOF
17132 #line 17132 "configure"
17133 #include "confdefs.h"
17136 #include <stdbool.h>
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:17148: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>&5
17151 echo "$as_me:17151: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -s conftest.$ac_objext'
17154 { (eval echo "$as_me:17154: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:17157: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159 cf_cv_header_stdbool_h=1
17161 echo "$as_me: failed program was:" >&5
17162 cat conftest.$ac_ext >&5
17163 cf_cv_header_stdbool_h=0
17165 rm -f conftest.$ac_objext conftest.$ac_ext
17167 rm -f conftest.$ac_objext conftest.$ac_ext
17170 if test "$cf_cv_header_stdbool_h" = 1
17171 then echo "$as_me:17171: result: yes" >&5
17172 echo "${ECHO_T}yes" >&6
17173 else echo "$as_me:17173: result: no" >&5
17174 echo "${ECHO_T}no" >&6
17177 echo "$as_me:17177: checking for builtin bool type" >&5
17178 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17180 if test "${cf_cv_cc_bool_type+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17185 #line 17185 "configure"
17186 #include "confdefs.h"
17189 #include <sys/types.h>
17199 rm -f conftest.$ac_objext
17200 if { (eval echo "$as_me:17200: \"$ac_compile\"") >&5
17201 (eval $ac_compile) 2>&5
17203 echo "$as_me:17203: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -s conftest.$ac_objext'
17206 { (eval echo "$as_me:17206: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:17209: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 cf_cv_cc_bool_type=1
17213 echo "$as_me: failed program was:" >&5
17214 cat conftest.$ac_ext >&5
17215 cf_cv_cc_bool_type=0
17217 rm -f conftest.$ac_objext conftest.$ac_ext
17221 if test "$cf_cv_cc_bool_type" = 1
17222 then echo "$as_me:17222: result: yes" >&5
17223 echo "${ECHO_T}yes" >&6
17224 else echo "$as_me:17224: result: no" >&5
17225 echo "${ECHO_T}no" >&6
17228 # Check for C++ compiler characteristics (and ensure that it's there!)
17229 if test -n "$CXX" ; then
17231 ac_cpp='$CXXCPP $CPPFLAGS'
17232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17235 ac_main_return=return
17237 if test -n "$GXX" ; then
17238 case $cf_cv_system_name in #(vi
17240 cf_stdcpp_libname=stdcpp
17243 cf_stdcpp_libname=stdc++
17246 echo "$as_me:17246: checking for library $cf_stdcpp_libname" >&5
17247 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
17248 if test "${cf_cv_libstdcpp+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 LIBS="-l$cf_stdcpp_libname $LIBS"
17254 cat >conftest.$ac_ext <<_ACEOF
17255 #line 17255 "configure"
17256 #include "confdefs.h"
17258 #include <strstream.h>
17264 strstreambuf foo(buf, sizeof(buf))
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (eval echo "$as_me:17271: \"$ac_link\"") >&5
17272 (eval $ac_link) 2>&5
17274 echo "$as_me:17274: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (eval echo "$as_me:17277: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:17280: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 cf_cv_libstdcpp=yes
17284 echo "$as_me: failed program was:" >&5
17285 cat conftest.$ac_ext >&5
17288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17292 echo "$as_me:17292: result: $cf_cv_libstdcpp" >&5
17293 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
17294 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
17297 echo "$as_me:17297: checking whether $CXX understands -c and -o together" >&5
17298 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
17299 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 cat > conftest.$ac_ext <<CF_EOF
17307 ${cf_cv_main_return:-return}(0);
17310 # We do the test twice because some compilers refuse to overwrite an
17311 # existing .o file with -o, though they will create one.
17312 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17313 if { (eval echo "$as_me:17313: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17316 echo "$as_me:17316: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 test -f conftest2.$ac_objext && { (eval echo "$as_me:17318: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17321 echo "$as_me:17321: \$? = $ac_status" >&5
17322 (exit $ac_status); };
17324 eval cf_cv_prog_CXX_c_o=yes
17326 eval cf_cv_prog_CXX_c_o=no
17331 if test $cf_cv_prog_CXX_c_o = yes; then
17332 echo "$as_me:17332: result: yes" >&5
17333 echo "${ECHO_T}yes" >&6
17335 echo "$as_me:17335: result: no" >&5
17336 echo "${ECHO_T}no" >&6
17339 case $GXX_VERSION in
17345 cf_cxx_library=unknown
17346 case $cf_cv_system_name in #(vi
17354 if test "$GXX" = yes; then
17355 echo "$as_me:17355: checking for lib$cf_gpp_libname" >&5
17356 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
17358 LIBS="-l$cf_gpp_libname $LIBS"
17359 cat >conftest.$ac_ext <<_ACEOF
17360 #line 17360 "configure"
17361 #include "confdefs.h"
17363 #include <$cf_gpp_libname/builtin.h>
17368 two_arg_error_handler_t foo2 = lib_error_handler
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (eval echo "$as_me:17374: \"$ac_link\"") >&5
17375 (eval $ac_link) 2>&5
17377 echo "$as_me:17377: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try='test -s conftest$ac_exeext'
17380 { (eval echo "$as_me:17380: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17383 echo "$as_me:17383: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17386 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
17387 if test "$cf_gpp_libname" = cpp ; then
17388 cat >>confdefs.h <<\EOF
17389 #define HAVE_GPP_BUILTIN_H 1
17393 cat >>confdefs.h <<\EOF
17394 #define HAVE_GXX_BUILTIN_H 1
17399 echo "$as_me: failed program was:" >&5
17400 cat conftest.$ac_ext >&5
17401 cat >conftest.$ac_ext <<_ACEOF
17402 #line 17402 "configure"
17403 #include "confdefs.h"
17405 #include <builtin.h>
17410 two_arg_error_handler_t foo2 = lib_error_handler
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (eval echo "$as_me:17416: \"$ac_link\"") >&5
17417 (eval $ac_link) 2>&5
17419 echo "$as_me:17419: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -s conftest$ac_exeext'
17422 { (eval echo "$as_me:17422: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17425 echo "$as_me:17425: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17428 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
17429 cat >>confdefs.h <<\EOF
17430 #define HAVE_BUILTIN_H 1
17434 echo "$as_me: failed program was:" >&5
17435 cat conftest.$ac_ext >&5
17438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17442 echo "$as_me:17442: result: $cf_cxx_library" >&5
17443 echo "${ECHO_T}$cf_cxx_library" >&6
17453 ac_cpp='$CXXCPP $CPPFLAGS'
17454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17457 ac_main_return=return
17458 echo "$as_me:17458: checking how to run the C++ preprocessor" >&5
17459 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17460 if test -z "$CXXCPP"; then
17461 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 # Double quotes because CXXCPP needs to be expanded
17465 for CXXCPP in "$CXX -E" "/lib/cpp"
17467 ac_preproc_ok=false
17468 for ac_cxx_preproc_warn_flag in '' yes
17470 # Use a header file that comes with gcc, so configuring glibc
17471 # with a fresh cross-compiler works.
17472 # On the NeXT, cc -E runs the code through the compiler's parser,
17473 # not just through cpp. "Syntax error" is here to catch this case.
17474 cat >conftest.$ac_ext <<_ACEOF
17475 #line 17475 "configure"
17476 #include "confdefs.h"
17477 #include <assert.h>
17480 if { (eval echo "$as_me:17480: \"$ac_cpp conftest.$ac_ext\"") >&5
17481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17483 egrep -v '^ *\+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:17486: \$? = $ac_status" >&5
17487 (exit $ac_status); } >/dev/null; then
17488 if test -s conftest.err; then
17489 ac_cpp_err=$ac_cxx_preproc_warn_flag
17496 if test -z "$ac_cpp_err"; then
17499 echo "$as_me: failed program was:" >&5
17500 cat conftest.$ac_ext >&5
17501 # Broken: fails on valid input.
17504 rm -f conftest.err conftest.$ac_ext
17506 # OK, works on sane cases. Now check whether non-existent headers
17507 # can be detected and how.
17508 cat >conftest.$ac_ext <<_ACEOF
17509 #line 17509 "configure"
17510 #include "confdefs.h"
17511 #include <ac_nonexistent.h>
17513 if { (eval echo "$as_me:17513: \"$ac_cpp conftest.$ac_ext\"") >&5
17514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17516 egrep -v '^ *\+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 echo "$as_me:17519: \$? = $ac_status" >&5
17520 (exit $ac_status); } >/dev/null; then
17521 if test -s conftest.err; then
17522 ac_cpp_err=$ac_cxx_preproc_warn_flag
17529 if test -z "$ac_cpp_err"; then
17530 # Broken: success on invalid input.
17533 echo "$as_me: failed program was:" >&5
17534 cat conftest.$ac_ext >&5
17535 # Passes both tests.
17539 rm -f conftest.err conftest.$ac_ext
17542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17543 rm -f conftest.err conftest.$ac_ext
17544 if $ac_preproc_ok; then
17549 ac_cv_prog_CXXCPP=$CXXCPP
17552 CXXCPP=$ac_cv_prog_CXXCPP
17554 ac_cv_prog_CXXCPP=$CXXCPP
17556 echo "$as_me:17556: result: $CXXCPP" >&5
17557 echo "${ECHO_T}$CXXCPP" >&6
17558 ac_preproc_ok=false
17559 for ac_cxx_preproc_warn_flag in '' yes
17561 # Use a header file that comes with gcc, so configuring glibc
17562 # with a fresh cross-compiler works.
17563 # On the NeXT, cc -E runs the code through the compiler's parser,
17564 # not just through cpp. "Syntax error" is here to catch this case.
17565 cat >conftest.$ac_ext <<_ACEOF
17566 #line 17566 "configure"
17567 #include "confdefs.h"
17568 #include <assert.h>
17571 if { (eval echo "$as_me:17571: \"$ac_cpp conftest.$ac_ext\"") >&5
17572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17574 egrep -v '^ *\+' conftest.er1 >conftest.err
17576 cat conftest.err >&5
17577 echo "$as_me:17577: \$? = $ac_status" >&5
17578 (exit $ac_status); } >/dev/null; then
17579 if test -s conftest.err; then
17580 ac_cpp_err=$ac_cxx_preproc_warn_flag
17587 if test -z "$ac_cpp_err"; then
17590 echo "$as_me: failed program was:" >&5
17591 cat conftest.$ac_ext >&5
17592 # Broken: fails on valid input.
17595 rm -f conftest.err conftest.$ac_ext
17597 # OK, works on sane cases. Now check whether non-existent headers
17598 # can be detected and how.
17599 cat >conftest.$ac_ext <<_ACEOF
17600 #line 17600 "configure"
17601 #include "confdefs.h"
17602 #include <ac_nonexistent.h>
17604 if { (eval echo "$as_me:17604: \"$ac_cpp conftest.$ac_ext\"") >&5
17605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17607 egrep -v '^ *\+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:17610: \$? = $ac_status" >&5
17611 (exit $ac_status); } >/dev/null; then
17612 if test -s conftest.err; then
17613 ac_cpp_err=$ac_cxx_preproc_warn_flag
17620 if test -z "$ac_cpp_err"; then
17621 # Broken: success on invalid input.
17624 echo "$as_me: failed program was:" >&5
17625 cat conftest.$ac_ext >&5
17626 # Passes both tests.
17630 rm -f conftest.err conftest.$ac_ext
17633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17634 rm -f conftest.err conftest.$ac_ext
17635 if $ac_preproc_ok; then
17638 { { echo "$as_me:17638: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
17639 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
17640 { (exit 1); exit 1; }; }
17644 ac_cpp='$CXXCPP $CPPFLAGS'
17645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17648 ac_main_return=return
17650 for ac_header in iostream typeinfo
17652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17653 echo "$as_me:17653: checking for $ac_header" >&5
17654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 cat >conftest.$ac_ext <<_ACEOF
17659 #line 17659 "configure"
17660 #include "confdefs.h"
17661 #include <$ac_header>
17663 if { (eval echo "$as_me:17663: \"$ac_cpp conftest.$ac_ext\"") >&5
17664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17666 egrep -v '^ *\+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:17669: \$? = $ac_status" >&5
17670 (exit $ac_status); } >/dev/null; then
17671 if test -s conftest.err; then
17672 ac_cpp_err=$ac_cxx_preproc_warn_flag
17679 if test -z "$ac_cpp_err"; then
17680 eval "$as_ac_Header=yes"
17682 echo "$as_me: failed program was:" >&5
17683 cat conftest.$ac_ext >&5
17684 eval "$as_ac_Header=no"
17686 rm -f conftest.err conftest.$ac_ext
17688 echo "$as_me:17688: result: `eval echo '${'$as_ac_Header'}'`" >&5
17689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17691 cat >>confdefs.h <<EOF
17692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17698 if test x"$ac_cv_header_iostream" = xyes ; then
17699 echo "$as_me:17699: checking if iostream uses std-namespace" >&5
17700 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
17701 cat >conftest.$ac_ext <<_ACEOF
17702 #line 17702 "configure"
17703 #include "confdefs.h"
17705 #include <iostream>
17712 cerr << "testing" << endl;
17718 rm -f conftest.$ac_objext
17719 if { (eval echo "$as_me:17719: \"$ac_compile\"") >&5
17720 (eval $ac_compile) 2>&5
17722 echo "$as_me:17722: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -s conftest.$ac_objext'
17725 { (eval echo "$as_me:17725: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:17728: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 cf_iostream_namespace=yes
17732 echo "$as_me: failed program was:" >&5
17733 cat conftest.$ac_ext >&5
17734 cf_iostream_namespace=no
17736 rm -f conftest.$ac_objext conftest.$ac_ext
17737 echo "$as_me:17737: result: $cf_iostream_namespace" >&5
17738 echo "${ECHO_T}$cf_iostream_namespace" >&6
17739 if test "$cf_iostream_namespace" = yes ; then
17740 cat >>confdefs.h <<\EOF
17741 #define IOSTREAM_NAMESPACE 1
17747 echo "$as_me:17747: checking if we should include stdbool.h" >&5
17748 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17750 if test "${cf_cv_header_stdbool_h+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 cat >conftest.$ac_ext <<_ACEOF
17755 #line 17755 "configure"
17756 #include "confdefs.h"
17766 rm -f conftest.$ac_objext
17767 if { (eval echo "$as_me:17767: \"$ac_compile\"") >&5
17768 (eval $ac_compile) 2>&5
17770 echo "$as_me:17770: \$? = $ac_status" >&5
17771 (exit $ac_status); } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (eval echo "$as_me:17773: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:17776: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 cf_cv_header_stdbool_h=0
17780 echo "$as_me: failed program was:" >&5
17781 cat conftest.$ac_ext >&5
17782 cat >conftest.$ac_ext <<_ACEOF
17783 #line 17783 "configure"
17784 #include "confdefs.h"
17787 #include <stdbool.h>
17798 rm -f conftest.$ac_objext
17799 if { (eval echo "$as_me:17799: \"$ac_compile\"") >&5
17800 (eval $ac_compile) 2>&5
17802 echo "$as_me:17802: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -s conftest.$ac_objext'
17805 { (eval echo "$as_me:17805: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17808 echo "$as_me:17808: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 cf_cv_header_stdbool_h=1
17812 echo "$as_me: failed program was:" >&5
17813 cat conftest.$ac_ext >&5
17814 cf_cv_header_stdbool_h=0
17816 rm -f conftest.$ac_objext conftest.$ac_ext
17818 rm -f conftest.$ac_objext conftest.$ac_ext
17821 if test "$cf_cv_header_stdbool_h" = 1
17822 then echo "$as_me:17822: result: yes" >&5
17823 echo "${ECHO_T}yes" >&6
17824 else echo "$as_me:17824: result: no" >&5
17825 echo "${ECHO_T}no" >&6
17828 echo "$as_me:17828: checking for builtin bool type" >&5
17829 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17831 if test "${cf_cv_builtin_bool+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 cat >conftest.$ac_ext <<_ACEOF
17836 #line 17836 "configure"
17837 #include "confdefs.h"
17840 #include <sys/types.h>
17850 rm -f conftest.$ac_objext
17851 if { (eval echo "$as_me:17851: \"$ac_compile\"") >&5
17852 (eval $ac_compile) 2>&5
17854 echo "$as_me:17854: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -s conftest.$ac_objext'
17857 { (eval echo "$as_me:17857: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:17860: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 cf_cv_builtin_bool=1
17864 echo "$as_me: failed program was:" >&5
17865 cat conftest.$ac_ext >&5
17866 cf_cv_builtin_bool=0
17868 rm -f conftest.$ac_objext conftest.$ac_ext
17872 if test "$cf_cv_builtin_bool" = 1
17873 then echo "$as_me:17873: result: yes" >&5
17874 echo "${ECHO_T}yes" >&6
17875 else echo "$as_me:17875: result: no" >&5
17876 echo "${ECHO_T}no" >&6
17879 echo "$as_me:17879: checking for size of bool" >&5
17880 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17881 if test "${cf_cv_type_of_bool+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 if test "$cross_compiling" = yes; then
17887 cf_cv_type_of_bool=unknown
17889 cat >conftest.$ac_ext <<_ACEOF
17890 #line 17890 "configure"
17891 #include "confdefs.h"
17893 #include <stdlib.h>
17896 #if defined(__cplusplus)
17898 #ifdef HAVE_GXX_BUILTIN_H
17899 #include <g++/builtin.h>
17900 #elif HAVE_GPP_BUILTIN_H
17901 #include <gpp/builtin.h>
17902 #elif HAVE_BUILTIN_H
17903 #include <builtin.h>
17908 #if $cf_cv_header_stdbool_h
17909 #include <stdbool.h>
17916 FILE *fp = fopen("cf_test.out", "w");
17919 if ((bool)(-x) >= 0)
17920 fputs("unsigned ", fp);
17921 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17922 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17923 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17924 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17927 ${cf_cv_main_return:-return}(0);
17931 rm -f conftest$ac_exeext
17932 if { (eval echo "$as_me:17932: \"$ac_link\"") >&5
17933 (eval $ac_link) 2>&5
17935 echo "$as_me:17935: \$? = $ac_status" >&5
17936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17937 { (eval echo "$as_me:17937: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17940 echo "$as_me:17940: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 cf_cv_type_of_bool=`cat cf_test.out`
17943 if test -z "$cf_cv_type_of_bool"; then
17944 cf_cv_type_of_bool=unknown
17947 echo "$as_me: program exited with status $ac_status" >&5
17948 echo "$as_me: failed program was:" >&5
17949 cat conftest.$ac_ext >&5
17950 cf_cv_type_of_bool=unknown
17952 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17958 echo "$as_me:17958: result: $cf_cv_type_of_bool" >&5
17959 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17960 if test "$cf_cv_type_of_bool" = unknown ; then
17961 case .$NCURSES_BOOL in #(vi
17962 .auto|.) NCURSES_BOOL=unsigned;;
17964 { echo "$as_me:17964: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17965 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17966 cf_cv_type_of_bool=$NCURSES_BOOL
17969 echo "$as_me:17969: checking for special defines needed for etip.h" >&5
17970 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
17971 cf_save_CXXFLAGS="$CXXFLAGS"
17973 for cf_math in "" MATH_H
17975 for cf_excp in "" MATH_EXCEPTION
17977 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
17978 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
17979 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
17980 cat >conftest.$ac_ext <<_ACEOF
17981 #line 17981 "configure"
17982 #include "confdefs.h"
17984 #include <etip.h.in>
17994 rm -f conftest.$ac_objext
17995 if { (eval echo "$as_me:17995: \"$ac_compile\"") >&5
17996 (eval $ac_compile) 2>&5
17998 echo "$as_me:17998: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -s conftest.$ac_objext'
18001 { (eval echo "$as_me:18001: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:18004: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18007 test -n "$cf_math" && cat >>confdefs.h <<EOF
18008 #define ETIP_NEEDS_${cf_math} 1
18011 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18012 #define ETIP_NEEDS_${cf_excp} 1
18015 cf_result="$cf_math $cf_excp"
18019 echo "$as_me: failed program was:" >&5
18020 cat conftest.$ac_ext >&5
18022 rm -f conftest.$ac_objext conftest.$ac_ext
18025 echo "$as_me:18025: result: $cf_result" >&5
18026 echo "${ECHO_T}$cf_result" >&6
18027 CXXFLAGS="$cf_save_CXXFLAGS"
18029 if test -n "$CXX"; then
18030 echo "$as_me:18030: checking if $CXX accepts parameter initialization" >&5
18031 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18032 if test "${cf_cv_cpp_param_init+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 ac_cpp='$CXXCPP $CPPFLAGS'
18038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18041 ac_main_return=return
18043 if test "$cross_compiling" = yes; then
18044 cf_cv_cpp_param_init=unknown
18046 cat >conftest.$ac_ext <<_ACEOF
18047 #line 18047 "configure"
18048 #include "confdefs.h"
18058 TEST::TEST(int x = 1) // some compilers do not like second initializer
18065 rm -f conftest$ac_exeext
18066 if { (eval echo "$as_me:18066: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>&5
18069 echo "$as_me:18069: \$? = $ac_status" >&5
18070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18071 { (eval echo "$as_me:18071: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18074 echo "$as_me:18074: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 cf_cv_cpp_param_init=yes
18078 echo "$as_me: program exited with status $ac_status" >&5
18079 echo "$as_me: failed program was:" >&5
18080 cat conftest.$ac_ext >&5
18081 cf_cv_cpp_param_init=no
18083 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18086 ac_cpp='$CXXCPP $CPPFLAGS'
18087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18090 ac_main_return=return
18093 echo "$as_me:18093: result: $cf_cv_cpp_param_init" >&5
18094 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
18096 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
18097 #define CPP_HAS_PARAM_INIT 1
18100 if test -n "$CXX"; then
18102 echo "$as_me:18102: checking if $CXX accepts static_cast" >&5
18103 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
18104 if test "${cf_cv_cpp_static_cast+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 ac_cpp='$CXXCPP $CPPFLAGS'
18110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18113 ac_main_return=return
18115 cat >conftest.$ac_ext <<_ACEOF
18116 #line 18116 "configure"
18117 #include "confdefs.h"
18122 NCursesPanel(int nlines,
18132 template<class T> class NCursesUserPanel : public NCursesPanel
18135 NCursesUserPanel (int nlines,
18139 const T* p_UserData = static_cast<T*>(0))
18140 : NCursesPanel (nlines, ncols, begin_y, begin_x)
18143 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
18147 virtual ~NCursesUserPanel() {};
18154 const char* p_UserData = static_cast<char*>(0)
18159 rm -f conftest.$ac_objext
18160 if { (eval echo "$as_me:18160: \"$ac_compile\"") >&5
18161 (eval $ac_compile) 2>&5
18163 echo "$as_me:18163: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (eval echo "$as_me:18166: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:18169: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 cf_cv_cpp_static_cast=yes
18173 echo "$as_me: failed program was:" >&5
18174 cat conftest.$ac_ext >&5
18175 cf_cv_cpp_static_cast=no
18177 rm -f conftest.$ac_objext conftest.$ac_ext
18180 ac_cpp='$CXXCPP $CPPFLAGS'
18181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18184 ac_main_return=return
18187 echo "$as_me:18187: result: $cf_cv_cpp_static_cast" >&5
18188 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
18192 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
18193 #define CPP_HAS_STATIC_CAST 1
18197 CXX_ARFLAGS='$(ARFLAGS)'
18198 case $cf_cv_system_name in #(vi
18200 if test "$GXX" != yes ; then
18202 CXX_ARFLAGS='-ar -o'
18206 CXXLDFLAGS="-u main"
18209 if test "$GXX" != yes ; then
18211 CXX_ARFLAGS='-xar -o'
18218 cf_cv_builtin_bool=1
18220 # Just because we are not configuring against C++ right now does not
18221 # mean that a user will not want to use C++. Some distributors disable
18222 # the C++ portion of this configuration as a shortcut (or just to avoid
18223 # compiling the demo in the c++ directory). So we need a reasonable
18224 # default for the 'bool' type.
18226 # Caveat: since the storage of the bool type is not standardized, it
18229 if test "$NCURSES_BOOL" != auto ; then
18230 cf_cv_type_of_bool=$NCURSES_BOOL
18231 cf_cv_header_stdbool_h=0
18233 if test "$cf_cv_header_stdbool_h" = 1 ; then
18235 echo "$as_me:18235: checking for size of bool" >&5
18236 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18237 if test "${cf_cv_type_of_bool+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 if test "$cross_compiling" = yes; then
18243 cf_cv_type_of_bool=unknown
18245 cat >conftest.$ac_ext <<_ACEOF
18246 #line 18246 "configure"
18247 #include "confdefs.h"
18249 #include <stdlib.h>
18252 #if defined(__cplusplus)
18254 #ifdef HAVE_GXX_BUILTIN_H
18255 #include <g++/builtin.h>
18256 #elif HAVE_GPP_BUILTIN_H
18257 #include <gpp/builtin.h>
18258 #elif HAVE_BUILTIN_H
18259 #include <builtin.h>
18264 #if $cf_cv_header_stdbool_h
18265 #include <stdbool.h>
18272 FILE *fp = fopen("cf_test.out", "w");
18275 if ((bool)(-x) >= 0)
18276 fputs("unsigned ", fp);
18277 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18278 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18279 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18280 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18283 ${cf_cv_main_return:-return}(0);
18287 rm -f conftest$ac_exeext
18288 if { (eval echo "$as_me:18288: \"$ac_link\"") >&5
18289 (eval $ac_link) 2>&5
18291 echo "$as_me:18291: \$? = $ac_status" >&5
18292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18293 { (eval echo "$as_me:18293: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:18296: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 cf_cv_type_of_bool=`cat cf_test.out`
18299 if test -z "$cf_cv_type_of_bool"; then
18300 cf_cv_type_of_bool=unknown
18303 echo "$as_me: program exited with status $ac_status" >&5
18304 echo "$as_me: failed program was:" >&5
18305 cat conftest.$ac_ext >&5
18306 cf_cv_type_of_bool=unknown
18308 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18314 echo "$as_me:18314: result: $cf_cv_type_of_bool" >&5
18315 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18316 if test "$cf_cv_type_of_bool" = unknown ; then
18317 case .$NCURSES_BOOL in #(vi
18318 .auto|.) NCURSES_BOOL=unsigned;;
18320 { echo "$as_me:18320: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18321 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18322 cf_cv_type_of_bool=$NCURSES_BOOL
18326 echo "$as_me:18326: checking for fallback type of bool" >&5
18327 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
18328 case "$host_cpu" in #(vi
18329 i?86) cf_cv_type_of_bool=char ;; #(vi
18330 *) cf_cv_type_of_bool=int ;;
18332 echo "$as_me:18332: result: $cf_cv_type_of_bool" >&5
18333 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18338 # If the C compiler did not declare bool, and we did not determine that the C++
18339 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
18340 # ncurses library use the same type as C++ bool. Note that this allows one to
18341 # specify the type of bool in a configure-script option and postpone
18342 # integration with the C++ compiler provided that the types are compatible.
18344 if test $cf_cv_cc_bool_type = 1
18346 # oops: C has a bool. Unlikely, but C++ could differ.
18348 elif test $cf_cv_builtin_bool = 0
18353 # this is the normal case
18354 USE_CXX_BOOL='defined(__cplusplus)'
18357 if test -f "${srcdir}/Ada95/Makefile.in" ; then
18359 if test "$cf_with_ada" != "no" ; then
18360 if test "$with_libtool" != "no"; then
18361 { echo "$as_me:18361: WARNING: libtool does not support Ada - disabling feature" >&5
18362 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
18367 if test "$cf_with_ada" != "no" ; then
18369 cf_ada_make=gnatmake
18370 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
18371 set dummy $cf_ada_make; ac_word=$2
18372 echo "$as_me:18372: checking for $ac_word" >&5
18373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18374 if test "${ac_cv_prog_gnat_exists+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 if test -n "$gnat_exists"; then
18378 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
18380 ac_save_IFS=$IFS; IFS=$ac_path_separator
18382 for ac_dir in $ac_dummy; do
18384 test -z "$ac_dir" && ac_dir=.
18385 $as_executable_p "$ac_dir/$ac_word" || continue
18386 ac_cv_prog_gnat_exists="yes"
18387 echo "$as_me:18387: found $ac_dir/$ac_word" >&5
18391 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
18394 gnat_exists=$ac_cv_prog_gnat_exists
18395 if test -n "$gnat_exists"; then
18396 echo "$as_me:18396: result: $gnat_exists" >&5
18397 echo "${ECHO_T}$gnat_exists" >&6
18399 echo "$as_me:18399: result: no" >&5
18400 echo "${ECHO_T}no" >&6
18403 if test "$ac_cv_prog_gnat_exists" = no; then
18407 echo "$as_me:18407: checking for gnat version" >&5
18408 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
18409 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
18410 grep '[0-9].[0-9][0-9]*' |\
18411 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
18412 echo "$as_me:18412: result: $cf_gnat_version" >&5
18413 echo "${ECHO_T}$cf_gnat_version" >&6
18415 case $cf_gnat_version in #(vi
18416 3.1[1-9]*|3.[2-9]*|[4-9].*) #(vi
18417 cf_cv_prog_gnat_correct=yes
18420 { echo "$as_me:18420: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
18421 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
18422 cf_cv_prog_gnat_correct=no
18426 # Extract the first word of "m4", so it can be a program name with args.
18427 set dummy m4; ac_word=$2
18428 echo "$as_me:18428: checking for $ac_word" >&5
18429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18430 if test "${ac_cv_prog_M4_exists+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 if test -n "$M4_exists"; then
18434 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
18436 ac_save_IFS=$IFS; IFS=$ac_path_separator
18438 for ac_dir in $ac_dummy; do
18440 test -z "$ac_dir" && ac_dir=.
18441 $as_executable_p "$ac_dir/$ac_word" || continue
18442 ac_cv_prog_M4_exists="yes"
18443 echo "$as_me:18443: found $ac_dir/$ac_word" >&5
18447 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
18450 M4_exists=$ac_cv_prog_M4_exists
18451 if test -n "$M4_exists"; then
18452 echo "$as_me:18452: result: $M4_exists" >&5
18453 echo "${ECHO_T}$M4_exists" >&6
18455 echo "$as_me:18455: result: no" >&5
18456 echo "${ECHO_T}no" >&6
18459 if test "$ac_cv_prog_M4_exists" = no; then
18460 cf_cv_prog_gnat_correct=no
18461 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
18463 if test "$cf_cv_prog_gnat_correct" = yes; then
18464 echo "$as_me:18464: checking if GNAT works" >&5
18465 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
18467 rm -rf conftest* *~conftest*
18468 cat >>conftest.ads <<CF_EOF
18469 procedure conftest;
18471 cat >>conftest.adb <<CF_EOF
18474 procedure conftest is
18476 Text_IO.Put ("Hello World");
18478 GNAT.OS_Lib.OS_Exit (0);
18481 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18482 if ( ./conftest 1>&5 2>&1 ) ; then
18483 cf_cv_prog_gnat_correct=yes
18485 cf_cv_prog_gnat_correct=no
18488 cf_cv_prog_gnat_correct=no
18490 rm -rf conftest* *~conftest*
18492 echo "$as_me:18492: result: $cf_cv_prog_gnat_correct" >&5
18493 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
18497 if test "$cf_cv_prog_gnat_correct" = yes; then
18499 ADAFLAGS="$ADAFLAGS -gnatpn"
18501 # make ADAFLAGS consistent with CFLAGS
18505 ADAFLAGS="$ADAFLAGS -g"
18512 ADAFLAGS="$ADAFLAGS -O3"
18517 echo "$as_me:18517: checking if GNAT supports generics" >&5
18518 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
18519 case $cf_gnat_version in #(vi
18520 3.[1-9]*|[4-9].*) #(vi
18521 cf_gnat_generics=yes
18524 cf_gnat_generics=no
18527 echo "$as_me:18527: result: $cf_gnat_generics" >&5
18528 echo "${ECHO_T}$cf_gnat_generics" >&6
18530 if test "$cf_gnat_generics" = yes
18532 cf_compile_generics=generics
18533 cf_generic_objects="\${GENOBJS}"
18535 cf_compile_generics=
18536 cf_generic_objects=
18539 echo "$as_me:18539: checking if GNAT supports SIGINT" >&5
18540 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
18541 if test "${cf_cv_gnat_sigint+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 rm -rf conftest* *~conftest*
18546 cat >>conftest.ads <<CF_EOF
18547 with Ada.Interrupts.Names;
18549 package ConfTest is
18551 pragma Warnings (Off); -- the next pragma exists since 3.11p
18552 pragma Unreserve_All_Interrupts;
18553 pragma Warnings (On);
18555 protected Process is
18557 function Continue return Boolean;
18558 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
18560 Done : Boolean := False;
18565 cat >>conftest.adb <<CF_EOF
18566 package body ConfTest is
18567 protected body Process is
18572 function Continue return Boolean is
18579 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18580 cf_cv_gnat_sigint=yes
18582 cf_cv_gnat_sigint=no
18584 rm -rf conftest* *~conftest*
18587 echo "$as_me:18587: result: $cf_cv_gnat_sigint" >&5
18588 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
18590 if test $cf_cv_gnat_sigint = yes ; then
18593 USE_GNAT_SIGINT="#"
18596 echo "$as_me:18596: checking if GNAT pragma Unreferenced works" >&5
18597 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
18598 if test "${cf_cv_pragma_unreferenced+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 rm -rf conftest* *~conftest*
18603 cat >>conftest.ads <<CF_EOF
18604 procedure conftest;
18606 cat >>conftest.adb <<CF_EOF
18609 procedure conftest is
18611 pragma Unreferenced (test);
18614 Text_IO.Put ("Hello World");
18616 GNAT.OS_Lib.OS_Exit (0);
18619 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18620 cf_cv_pragma_unreferenced=yes
18622 cf_cv_pragma_unreferenced=no
18624 rm -rf conftest* *~conftest*
18627 echo "$as_me:18627: result: $cf_cv_pragma_unreferenced" >&5
18628 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
18630 # if the pragma is supported, use it (needed in the Trace code).
18631 if test $cf_cv_pragma_unreferenced = yes ; then
18637 cf_gnat_libraries=no
18638 cf_gnat_projects=no
18640 echo "$as_me:18640: checking if GNAT supports project files" >&5
18641 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
18642 case $cf_gnat_version in #(vi
18646 case $cf_cv_system_name in #(vi
18650 mkdir conftest.src conftest.bin conftest.lib
18652 rm -rf conftest* *~conftest*
18653 cat >>library.gpr <<CF_EOF
18655 Kind := External ("LIB_KIND");
18656 for Library_Name use "ConfTest";
18657 for Object_Dir use ".";
18658 for Library_ALI_Dir use External("LIBRARY_DIR");
18659 for Library_Version use External ("SONAME");
18660 for Library_Kind use Kind;
18661 for Library_Dir use External("BUILD_DIR");
18662 Source_Dir := External ("SOURCE_DIR");
18663 for Source_Dirs use (Source_Dir);
18664 package Compiler is
18665 for Default_Switches ("Ada") use
18669 "-gnatVa", -- All validity checks
18670 "-gnatwa"); -- Activate all optional errors
18674 cat >>confpackage.ads <<CF_EOF
18675 package ConfPackage is
18676 procedure conftest;
18679 cat >>confpackage.adb <<CF_EOF
18681 package body ConfPackage is
18682 procedure conftest is
18684 Text_IO.Put ("Hello World");
18689 if ( $cf_ada_make $ADAFLAGS \
18691 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
18692 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
18693 -XSOURCE_DIR=`pwd` \
18694 -XSONAME=libConfTest.so.1 \
18695 -XLIB_KIND=static 1>&5 2>&1 ) ; then
18696 cf_gnat_projects=yes
18699 if test -f conftest.lib/confpackage.ali
18701 cf_gnat_libraries=yes
18703 rm -rf conftest* *~conftest*
18708 echo "$as_me:18708: result: $cf_gnat_projects" >&5
18709 echo "${ECHO_T}$cf_gnat_projects" >&6
18711 if test $cf_gnat_projects = yes
18713 echo "$as_me:18713: checking if GNAT supports libraries" >&5
18714 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
18715 echo "$as_me:18715: result: $cf_gnat_libraries" >&5
18716 echo "${ECHO_T}$cf_gnat_libraries" >&6
18719 if test "$cf_gnat_projects" = yes
18721 USE_OLD_MAKERULES="#"
18722 USE_GNAT_PROJECTS=""
18724 USE_OLD_MAKERULES=""
18725 USE_GNAT_PROJECTS="#"
18728 if test "$cf_gnat_libraries" = yes
18730 USE_GNAT_LIBRARIES=""
18732 USE_GNAT_LIBRARIES="#"
18735 echo "$as_me:18735: checking for ada-compiler" >&5
18736 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
18738 # Check whether --with-ada-compiler or --without-ada-compiler was given.
18739 if test "${with_ada_compiler+set}" = set; then
18740 withval="$with_ada_compiler"
18741 cf_ada_compiler=$withval
18743 cf_ada_compiler=gnatmake
18746 echo "$as_me:18746: result: $cf_ada_compiler" >&5
18747 echo "${ECHO_T}$cf_ada_compiler" >&6
18749 cf_ada_package=terminal_interface
18751 echo "$as_me:18751: checking for ada-include" >&5
18752 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
18754 # Check whether --with-ada-include or --without-ada-include was given.
18755 if test "${with_ada_include+set}" = set; then
18756 withval="$with_ada_include"
18759 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
18760 fi; if test -n "$prefix/share/ada/adainclude" ; then
18762 if test "x$prefix" != xNONE; then
18763 cf_path_syntax="$prefix"
18765 cf_path_syntax="$ac_default_prefix"
18768 case ".$withval" in #(vi
18769 .\$\(*\)*|.\'*\'*) #(vi
18773 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18775 .\${*prefix}*) #(vi
18776 eval withval="$withval"
18777 case ".$withval" in #(vi
18779 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18784 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18787 { { echo "$as_me:18787: error: expected a pathname, not \"$withval\"" >&5
18788 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18789 { (exit 1); exit 1; }; }
18794 ADA_INCLUDE="$withval"
18796 echo "$as_me:18796: result: $ADA_INCLUDE" >&5
18797 echo "${ECHO_T}$ADA_INCLUDE" >&6
18799 echo "$as_me:18799: checking for ada-objects" >&5
18800 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
18802 # Check whether --with-ada-objects or --without-ada-objects was given.
18803 if test "${with_ada_objects+set}" = set; then
18804 withval="$with_ada_objects"
18807 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
18808 fi; if test -n "$prefix/lib/ada/adalib" ; then
18810 if test "x$prefix" != xNONE; then
18811 cf_path_syntax="$prefix"
18813 cf_path_syntax="$ac_default_prefix"
18816 case ".$withval" in #(vi
18817 .\$\(*\)*|.\'*\'*) #(vi
18821 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18823 .\${*prefix}*) #(vi
18824 eval withval="$withval"
18825 case ".$withval" in #(vi
18827 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18832 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18835 { { echo "$as_me:18835: error: expected a pathname, not \"$withval\"" >&5
18836 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18837 { (exit 1); exit 1; }; }
18842 ADA_OBJECTS="$withval"
18844 echo "$as_me:18844: result: $ADA_OBJECTS" >&5
18845 echo "${ECHO_T}$ADA_OBJECTS" >&6
18847 echo "$as_me:18847: checking if an Ada95 shared-library should be built" >&5
18848 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
18850 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
18851 if test "${with_ada_sharedlib+set}" = set; then
18852 withval="$with_ada_sharedlib"
18853 with_ada_sharedlib=$withval
18855 with_ada_sharedlib=no
18857 echo "$as_me:18857: result: $with_ada_sharedlib" >&5
18858 echo "${ECHO_T}$with_ada_sharedlib" >&6
18860 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
18861 MAKE_ADA_SHAREDLIB="#"
18863 if test "x$with_ada_sharedlib" != xno
18865 MAKE_ADA_SHAREDLIB=
18866 if test "x$with_ada_sharedlib" != xyes
18868 ADA_SHAREDLIB="$with_ada_sharedlib"
18878 ### Construct the ncurses library-subsets, if any, from this set of keywords:
18879 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
18881 ### ticlib modules may be a separate library, otherwise contained in termlib.
18882 ### termlib modules may be a separate library, otherwise contained in ncurses.
18884 ### The of "+" or " " between the tokens controls the way the script
18885 ### chooses to split module lists into libraries.
18887 ### (see CF_LIB_RULES).
18888 echo "$as_me:18888: checking for library subsets" >&5
18889 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
18892 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
18893 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
18894 if test "$with_ticlib" != no ; then
18895 LIB_SUBSETS="${LIB_SUBSETS} "
18897 LIB_SUBSETS="${LIB_SUBSETS}+"
18901 LIB_SUBSETS="${LIB_SUBSETS}termlib"
18902 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
18904 if test "$with_termlib" != no ; then
18905 LIB_SUBSETS="${LIB_SUBSETS} "
18907 LIB_SUBSETS="${LIB_SUBSETS}+"
18910 LIB_SUBSETS="${LIB_SUBSETS}base"
18912 # Most term-driver calls are to tinfo, but some like init_pair are to the
18913 # base library (so it resides in base).
18914 if test "$with_term_driver" != no ; then
18915 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
18916 case $cf_cv_system_name in #(vi
18918 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
18921 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
18926 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
18927 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
18929 echo "$as_me:18929: result: $LIB_SUBSETS" >&5
18930 echo "${ECHO_T}$LIB_SUBSETS" >&6
18932 ### Construct the list of include-directories to be generated
18934 CPPFLAGS="$CPPFLAGS -I. -I../include"
18935 if test "$srcdir" != "."; then
18936 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
18938 if test "$GCC" != yes; then
18939 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18940 elif test "$includedir" != "/usr/include"; then
18941 if test "$includedir" = '${prefix}/include' ; then
18942 if test $prefix != /usr ; then
18943 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18946 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18950 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
18951 if test "$srcdir" != "."; then
18952 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
18954 if test "$GCC" != yes; then
18955 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18956 elif test "$includedir" != "/usr/include"; then
18957 if test "$includedir" = '${prefix}/include' ; then
18958 if test $prefix != /usr ; then
18959 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18962 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18966 ### Build up pieces for makefile rules
18967 echo "$as_me:18967: checking default library suffix" >&5
18968 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
18970 case $DFT_LWR_MODEL in
18971 libtool) DFT_ARG_SUFFIX='' ;;
18972 normal) DFT_ARG_SUFFIX='' ;;
18973 debug) DFT_ARG_SUFFIX='_g' ;;
18974 profile) DFT_ARG_SUFFIX='_p' ;;
18975 shared) DFT_ARG_SUFFIX='' ;;
18977 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
18978 echo "$as_me:18978: result: $DFT_ARG_SUFFIX" >&5
18979 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
18981 echo "$as_me:18981: checking default library-dependency suffix" >&5
18982 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
18984 case $DFT_LWR_MODEL in #(vi
18986 DFT_LIB_SUFFIX='.la'
18987 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18990 DFT_LIB_SUFFIX='.a'
18991 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18994 DFT_LIB_SUFFIX='_g.a'
18995 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18998 DFT_LIB_SUFFIX='_p.a'
18999 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19002 case $cf_cv_system_name in
19004 DFT_LIB_SUFFIX='.a'
19005 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19008 DFT_LIB_SUFFIX='.dll'
19009 DFT_DEP_SUFFIX='.dll.a'
19012 DFT_LIB_SUFFIX='.dylib'
19013 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19018 DFT_LIB_SUFFIX='.so'
19019 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19022 DFT_LIB_SUFFIX='.sl'
19023 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19027 *) DFT_LIB_SUFFIX='.so'
19028 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19032 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
19033 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
19034 echo "$as_me:19034: result: $DFT_DEP_SUFFIX" >&5
19035 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19037 echo "$as_me:19037: checking default object directory" >&5
19038 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
19040 case $DFT_LWR_MODEL in
19041 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19042 normal) DFT_OBJ_SUBDIR='objects' ;;
19043 debug) DFT_OBJ_SUBDIR='obj_g' ;;
19044 profile) DFT_OBJ_SUBDIR='obj_p' ;;
19046 case $cf_cv_system_name in #(vi
19048 DFT_OBJ_SUBDIR='objects' ;;
19050 DFT_OBJ_SUBDIR='obj_s' ;;
19053 echo "$as_me:19053: result: $DFT_OBJ_SUBDIR" >&5
19054 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19056 # libtool thinks it can make c++ shared libraries (perhaps only g++)
19057 if test "$cf_with_cxx" = yes ; then
19058 echo "$as_me:19058: checking c++ library-dependency suffix" >&5
19059 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
19060 if test "$with_libtool" != "no"; then
19061 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19064 case normal in #(vi
19066 CXX_LIB_SUFFIX='.la'
19067 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19070 CXX_LIB_SUFFIX='.a'
19071 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19074 CXX_LIB_SUFFIX='_g.a'
19075 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19078 CXX_LIB_SUFFIX='_p.a'
19079 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19082 case $cf_cv_system_name in
19084 CXX_LIB_SUFFIX='.a'
19085 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19088 CXX_LIB_SUFFIX='.dll'
19089 CXX_DEP_SUFFIX='.dll.a'
19092 CXX_LIB_SUFFIX='.dylib'
19093 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19098 CXX_LIB_SUFFIX='.so'
19099 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19102 CXX_LIB_SUFFIX='.sl'
19103 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19107 *) CXX_LIB_SUFFIX='.so'
19108 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19112 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
19113 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
19115 echo "$as_me:19115: result: $CXX_LIB_SUFFIX" >&5
19116 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
19120 # do not want -ldl in build except as needed for -lncurses dependency
19121 if test "$with_dlsym" = yes ; then
19122 if test $DFT_LWR_MODEL = shared || \
19123 test $DFT_LWR_MODEL = libtool ; then
19125 # remove dl library from $LIBS
19126 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19130 ### Set up low-level terminfo dependencies for makefiles.
19132 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
19133 # do not need libdl
19135 if test "$with_dlsym" = yes ; then
19137 # remove dl library from $SHLIB_LIST
19138 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19142 if test "$with_ticlib" != no ; then
19144 if test "$with_ticlib" != yes ; then
19145 TICS_NAME=$with_ticlib
19146 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19147 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19148 TICS_LIB_SUFFIX="${with_ticlib}"
19150 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
19151 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
19152 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
19154 TICS_LDFLAGS="-L${LIB_DIR}"
19155 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
19157 TICS_LDFLAGS="-L${LIB_DIR}"
19158 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19161 if test "$with_termlib" != no ; then
19163 if test "$with_termlib" != yes ; then
19164 TINFO_NAME=$with_termlib
19165 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19166 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19167 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19168 TINFO_LIB_SUFFIX="${with_termlib}"
19170 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19171 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
19172 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
19173 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
19176 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19177 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19178 if test "$DFT_LWR_MODEL" = "libtool"; then
19179 TEST_ARGS="${TEST_DEPS}"
19180 TEST_ARG2="${TEST_DEP2}"
19181 TINFO_LDFLAGS="-L${LIB_DIR}"
19182 TINFO_LIBS="$TEST_ARGS"
19183 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
19184 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
19186 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
19187 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
19188 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19189 TINFO_LDFLAGS="-L${LIB_DIR}"
19190 TINFO_LIBS="$TEST_ARGS"
19191 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19194 # the next lines are needed for linking libtic over libncurses
19195 TINFO_NAME=${LIB_NAME}
19196 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19197 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
19198 if test "$with_tic_depends" = yes ; then
19199 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19201 TICS_LIST="$SHLIB_LIST"
19204 TINFO_LDFLAGS="-L${LIB_DIR}"
19205 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19208 if test "$DFT_LWR_MODEL" = shared ; then
19209 case $cf_cv_system_name in #(vi
19211 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
19217 if test "$with_dlsym" = yes ; then
19219 # remove dl library from $TICS_LIST
19220 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19224 if test "$DFT_LWR_MODEL" = "libtool"; then
19229 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
19231 case $DFT_LWR_MODEL in
19232 normal|debug|profile)
19234 if test "$GCC" = yes ; then
19235 case $cf_cv_system_name in #(
19236 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
19240 *) #( normally, except when broken
19241 LDFLAGS_STATIC=-static
19242 LDFLAGS_SHARED=-dynamic
19246 case $cf_cv_system_name in #(
19247 aix[4-7]*) #( from ld manpage
19248 LDFLAGS_STATIC=-bstatic
19249 LDFLAGS_SHARED=-bdynamic
19251 hpux*) #( from ld manpage for hpux10.20, hpux11.11
19252 # We could also use just "archive" and "shared".
19253 LDFLAGS_STATIC=-Wl,-a,archive_shared
19254 LDFLAGS_SHARED=-Wl,-a,shared_archive
19256 irix*) #( from ld manpage IRIX64
19257 LDFLAGS_STATIC=-Bstatic
19258 LDFLAGS_SHARED=-Bdynamic
19260 osf[45]*) #( from ld manpage osf4.0d, osf5.1
19261 # alternative "-oldstyle_liblookup" (not in cc manpage)
19262 LDFLAGS_STATIC=-noso
19263 LDFLAGS_SHARED=-so_archive
19266 LDFLAGS_STATIC=-Bstatic
19267 LDFLAGS_SHARED=-Bdynamic
19272 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
19274 echo "$as_me:19274: checking if linker supports switching between static/dynamic" >&5
19275 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
19277 rm -f libconftest.a
19278 cat >conftest.$ac_ext <<EOF
19279 #line 19279 "configure"
19281 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
19283 if { (eval echo "$as_me:19283: \"$ac_compile\"") >&5
19284 (eval $ac_compile) 2>&5
19286 echo "$as_me:19286: \$? = $ac_status" >&5
19287 (exit $ac_status); } ; then
19288 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
19289 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
19293 cf_save_LIBS="$LIBS"
19295 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
19296 cat >conftest.$ac_ext <<_ACEOF
19297 #line 19297 "configure"
19298 #include "confdefs.h"
19300 #line 19300 "configure"
19302 int cf_ldflags_static(FILE *fp);
19308 return cf_ldflags_static(stdin);
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (eval echo "$as_me:19315: \"$ac_link\"") >&5
19316 (eval $ac_link) 2>&5
19318 echo "$as_me:19318: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:19321: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:19324: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19327 # some linkers simply ignore the -dynamic
19328 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
19330 cf_ldflags_static=no
19333 cf_ldflags_static=yes
19338 echo "$as_me: failed program was:" >&5
19339 cat conftest.$ac_ext >&5
19340 cf_ldflags_static=no
19342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19344 rm -f libconftest.*
19345 LIBS="$cf_save_LIBS"
19347 echo "$as_me:19347: result: $cf_ldflags_static" >&5
19348 echo "${ECHO_T}$cf_ldflags_static" >&6
19350 if test $cf_ldflags_static != yes
19363 echo "$as_me:19363: checking where we will install curses.h" >&5
19364 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
19365 test "$with_overwrite" = no && \
19366 test "x$includedir" = 'x${prefix}/include' && \
19367 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
19368 echo "$as_me:19368: result: $includedir" >&5
19369 echo "${ECHO_T}$includedir" >&6
19371 ### Resolve a conflict between normal and wide-curses by forcing applications
19372 ### that will need libutf8 to add it to their configure script.
19373 if test "$with_overwrite" != no ; then
19374 if test "$NCURSES_LIBUTF8" = 1 ; then
19375 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
19376 { echo "$as_me:19376: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
19377 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
19380 WITH_OVERWRITE=$with_overwrite
19382 # used to separate tack out of the tree
19385 ### predefined stuff for the test programs
19386 cat >>confdefs.h <<\EOF
19387 #define HAVE_SLK_COLOR 1
19390 ### Construct the list of subdirectories for which we'll customize makefiles
19391 ### with the appropriate compile-rules.
19393 echo "$as_me:19393: checking for src modules" >&5
19394 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
19396 # dependencies and linker-arguments for test-programs
19397 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
19398 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
19399 if test "$DFT_LWR_MODEL" = "libtool"; then
19400 TEST_ARGS="${TEST_DEPS}"
19401 TEST_ARG2="${TEST_DEP2}"
19403 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
19404 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
19408 for cf_dir in $modules_to_build
19410 if test -f $srcdir/$cf_dir/modules; then
19412 # We may/may not have tack in the distribution, though the
19414 if test $cf_dir = tack ; then
19415 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
19420 if test -z "$cf_cv_src_modules"; then
19421 cf_cv_src_modules=$cf_dir
19423 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
19426 # Make the ncurses_cfg.h file record the library interface files as
19427 # well. These are header files that are the same name as their
19428 # directory. Ncurses is the only library that does not follow
19430 if test $cf_dir = tack ; then
19432 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
19434 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19436 cat >>confdefs.h <<EOF
19437 #define HAVE_${cf_have_include}_H 1
19440 cat >>confdefs.h <<EOF
19441 #define HAVE_LIB${cf_have_include} 1
19444 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
19445 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
19446 if test "$DFT_LWR_MODEL" = "libtool"; then
19447 TEST_ARGS="${TEST_DEPS}"
19448 TEST_ARG2="${TEST_DEP2}"
19450 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
19451 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
19456 echo "$as_me:19456: result: $cf_cv_src_modules" >&5
19457 echo "${ECHO_T}$cf_cv_src_modules" >&6
19459 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
19460 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
19463 if test "x$cf_with_manpages" != xno ; then
19464 SRC_SUBDIRS="$SRC_SUBDIRS man"
19466 SRC_SUBDIRS="$SRC_SUBDIRS include"
19467 for cf_dir in $cf_cv_src_modules
19469 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
19471 if test "x$cf_with_tests" != "xno" ; then
19472 SRC_SUBDIRS="$SRC_SUBDIRS test"
19474 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
19475 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
19478 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
19479 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
19480 ADA_SUBDIRS="gen src"
19481 if test "x$cf_with_tests" != "xno" ; then
19482 ADA_SUBDIRS="$ADA_SUBDIRS samples"
19487 for cf_dir in $SRC_SUBDIRS
19489 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
19492 if test -n "$ADA_SUBDIRS"; then
19493 for cf_dir in $ADA_SUBDIRS
19495 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
19500 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
19501 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
19502 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
19506 for cf_item in $cf_list_models
19510 libtool) cf_subdir='obj_lo' ;;
19511 normal) cf_subdir='objects' ;;
19512 debug) cf_subdir='obj_g' ;;
19513 profile) cf_subdir='obj_p' ;;
19515 case $cf_cv_system_name in #(vi
19517 cf_subdir='objects' ;;
19519 cf_subdir='obj_s' ;;
19523 for cf_item2 in $DIRS_TO_MAKE
19525 test $cf_item2 = $cf_subdir && break
19527 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
19529 for cf_dir in $DIRS_TO_MAKE
19531 test ! -d $cf_dir && mkdir $cf_dir
19534 # symbols that differ when compiling Ada95 by itself.
19535 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
19537 # values to use as strings
19538 cat >>confdefs.h <<EOF
19539 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
19542 cat >>confdefs.h <<EOF
19543 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
19546 ### Now that we're done running tests, add the compiler-warnings, if any
19551 cf_new_extra_cppflags=
19553 for cf_add_cflags in $EXTRA_CFLAGS
19555 case $cf_fix_cppflags in
19557 case $cf_add_cflags in #(vi
19558 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
19559 case $cf_add_cflags in
19561 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19563 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
19564 && test -z "${cf_tst_cflags}" \
19565 && cf_fix_cppflags=yes
19567 if test $cf_fix_cppflags = yes ; then
19568 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19570 elif test "${cf_tst_cflags}" = "\"'" ; then
19571 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19576 case "$CPPFLAGS" in
19577 *$cf_add_cflags) #(vi
19580 case $cf_add_cflags in #(vi
19582 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19584 CPPFLAGS=`echo "$CPPFLAGS" | \
19585 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19586 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19590 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
19595 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
19600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19602 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19604 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
19605 && test -z "${cf_tst_cflags}" \
19606 && cf_fix_cppflags=no
19611 if test -n "$cf_new_cflags" ; then
19613 CFLAGS="$CFLAGS $cf_new_cflags"
19616 if test -n "$cf_new_cppflags" ; then
19618 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
19621 if test -n "$cf_new_extra_cppflags" ; then
19623 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
19626 ### Define substitutions for header files to avoid name-pollution
19628 if test "$cf_cv_have_tcgetattr" = yes ; then
19634 if test "$ac_cv_header_termio_h" = yes ; then
19640 if test "$ac_cv_header_termios_h" = yes ; then
19646 ################################################################################
19647 test "$use_database" = yes && \
19648 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
19650 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
19651 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
19653 if test x"$enable_pc_files" = xyes ; then \
19654 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
19660 # Extract the first word of "tic", so it can be a program name with args.
19661 set dummy tic; ac_word=$2
19662 echo "$as_me:19662: checking for $ac_word" >&5
19663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19664 if test "${ac_cv_path_TIC_PATH+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
19672 ac_save_IFS=$IFS; IFS=$ac_path_separator
19673 ac_dummy="$PATH:/usr/local/ncurses/bin"
19674 for ac_dir in $ac_dummy; do
19676 test -z "$ac_dir" && ac_dir=.
19677 if $as_executable_p "$ac_dir/$ac_word"; then
19678 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
19679 echo "$as_me:19679: found $ac_dir/$ac_word" >&5
19684 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
19688 TIC_PATH=$ac_cv_path_TIC_PATH
19690 if test -n "$TIC_PATH"; then
19691 echo "$as_me:19691: result: $TIC_PATH" >&5
19692 echo "${ECHO_T}$TIC_PATH" >&6
19694 echo "$as_me:19694: result: no" >&5
19695 echo "${ECHO_T}no" >&6
19698 if test -n "$FALLBACK_LIST"
19700 if test "$TIC_PATH" = unknown
19702 { echo "$as_me:19702: WARNING: no tic program found for fallbacks" >&5
19703 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
19707 if test "x$cf_with_tests" != xno ; then
19713 ADAHTML_DIR=../../doc/html/ada
19716 case $cf_cv_system_name in #(vi
19718 SUB_SCRIPTS="mk-dlls.sh"
19722 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"
19723 ac_config_commands="$ac_config_commands default"
19724 cat >confcache <<\_ACEOF
19725 # This file is a shell script that caches the results of configure
19726 # tests run on this system so they can be shared between configure
19727 # scripts and configure runs, see configure's option --config-cache.
19728 # It is not useful on other systems. If it contains results you don't
19729 # want to keep, you may remove or edit it.
19731 # config.status only pays attention to the cache file if you give it
19732 # the --recheck option to rerun configure.
19734 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19735 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19736 # following values.
19740 # The following way of writing the cache mishandles newlines in values,
19741 # but we know of no workaround that is simple, portable, and efficient.
19742 # So, don't put newlines in cache variables' values.
19743 # Ultrix sh set writes to stderr and can't be redirected directly,
19744 # and sets the high bit in the cache file unless we assign to the vars.
19747 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19749 # `set' does not quote correctly, so add quotes (double-quote
19750 # substitution turns \\\\ into \\, and sed turns \\ into \).
19753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19756 # `set' quotes correctly as required by POSIX, so do not add quotes.
19758 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19765 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19767 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19769 if cmp -s $cache_file confcache; then :; else
19770 if test -w $cache_file; then
19771 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19772 cat confcache >$cache_file
19774 echo "not updating unwritable cache $cache_file"
19779 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19780 # Let make expand exec_prefix.
19781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19783 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19784 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19785 # trailing colons and then remove the whole line if VPATH becomes empty
19786 # (actually we leave an empty line to preserve line numbers).
19787 if test "x$srcdir" = x.; then
19788 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19789 s/:*\$(srcdir):*/:/;
19790 s/:*\${srcdir}:*/:/;
19792 s/^\([^=]*=[ ]*\):*/\1/;
19798 DEFS=-DHAVE_CONFIG_H
19800 : ${CONFIG_STATUS=./config.status}
19801 ac_clean_files_save=$ac_clean_files
19802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19803 { echo "$as_me:19803: creating $CONFIG_STATUS" >&5
19804 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19805 cat >$CONFIG_STATUS <<_ACEOF
19807 # Generated automatically by configure.
19808 # Run this file to recreate the current configuration.
19809 # Compiler output produced by configure, useful for debugging
19810 # configure, is in config.log if it exists.
19813 SHELL=\${CONFIG_SHELL-$SHELL}
19814 ac_cs_invocation="\$0 \$@"
19818 cat >>$CONFIG_STATUS <<\_ACEOF
19819 # Be Bourne compatible
19820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19823 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19827 # Name of the executable.
19828 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19830 if expr a : '\(a\)' >/dev/null 2>&1; then
19836 rm -f conf$$ conf$$.exe conf$$.file
19838 if ln -s conf$$.file conf$$ 2>/dev/null; then
19839 # We could just check for DJGPP; but this test a) works b) is more generic
19840 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19841 if test -f conf$$.exe; then
19842 # Don't use ln at all; we don't have any links
19847 elif ln conf$$.file conf$$ 2>/dev/null; then
19852 rm -f conf$$ conf$$.exe conf$$.file
19854 as_executable_p="test -f"
19856 # Support unset when possible.
19857 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19864 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19865 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19866 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19867 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19868 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19869 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19870 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19871 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19874 # We need space, tab and new line, in precisely that order.
19880 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19886 # Files that config.status was made for.
19887 if test -n "$ac_config_files"; then
19888 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19891 if test -n "$ac_config_headers"; then
19892 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19895 if test -n "$ac_config_links"; then
19896 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19899 if test -n "$ac_config_commands"; then
19900 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19903 cat >>$CONFIG_STATUS <<\EOF
19906 \`$as_me' instantiates files from templates according to the
19907 current configuration.
19909 Usage: $0 [OPTIONS] [FILE]...
19911 -h, --help print this help, then exit
19912 -V, --version print version number, then exit
19913 -d, --debug don't remove temporary files
19914 --recheck update $as_me by reconfiguring in the same conditions
19915 --file=FILE[:TEMPLATE]
19916 instantiate the configuration file FILE
19917 --header=FILE[:TEMPLATE]
19918 instantiate the configuration header FILE
19920 Configuration files:
19923 Configuration headers:
19926 Configuration commands:
19929 Report bugs to <dickey@invisible-island.net>."
19932 cat >>$CONFIG_STATUS <<EOF
19935 configured by $0, generated by GNU Autoconf 2.52.20101002,
19936 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19939 Free Software Foundation, Inc.
19940 This config.status script is free software; the Free Software Foundation
19941 gives unlimited permission to copy, distribute and modify it."
19946 cat >>$CONFIG_STATUS <<\EOF
19947 # If no file are specified by the user, then we need to provide default
19948 # value. By we need to know if files were specified by the user.
19954 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19955 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19957 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19961 *) # This is not an option, so the user has probably given explicit
19963 ac_need_defaults=false;;
19967 # Handling of the options.
19969 cat >>$CONFIG_STATUS <<EOF
19970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19971 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19972 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19974 cat >>$CONFIG_STATUS <<\EOF
19975 --version | --vers* | -V )
19976 echo "$ac_cs_version"; exit 0 ;;
19978 # Conflict between --help and --header
19979 { { echo "$as_me:19979: error: ambiguous option: $1
19980 Try \`$0 --help' for more information." >&5
19981 echo "$as_me: error: ambiguous option: $1
19982 Try \`$0 --help' for more information." >&2;}
19983 { (exit 1); exit 1; }; };;
19984 --help | --hel | -h )
19985 echo "$ac_cs_usage"; exit 0 ;;
19986 --debug | --d* | -d )
19988 --file | --fil | --fi | --f )
19990 CONFIG_FILES="$CONFIG_FILES $1"
19991 ac_need_defaults=false;;
19992 --header | --heade | --head | --hea )
19994 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19995 ac_need_defaults=false;;
19997 # This is an error.
19998 -*) { { echo "$as_me:19998: error: unrecognized option: $1
19999 Try \`$0 --help' for more information." >&5
20000 echo "$as_me: error: unrecognized option: $1
20001 Try \`$0 --help' for more information." >&2;}
20002 { (exit 1); exit 1; }; } ;;
20004 *) ac_config_targets="$ac_config_targets $1" ;;
20013 ## ----------------------- ##
20014 ## Running config.status. ##
20015 ## ----------------------- ##
20017 This file was extended by $as_me 2.52.20101002, executed with
20018 CONFIG_FILES = $CONFIG_FILES
20019 CONFIG_HEADERS = $CONFIG_HEADERS
20020 CONFIG_LINKS = $CONFIG_LINKS
20021 CONFIG_COMMANDS = $CONFIG_COMMANDS
20022 > $ac_cs_invocation
20023 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20028 cat >>$CONFIG_STATUS <<EOF
20030 # INIT-COMMANDS section.
20033 ### Special initialization commands, used to pass information from the
20034 ### configuration-run into config.status
20037 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20038 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20039 ECHO_LINK="$ECHO_LINK"
20040 LDCONFIG="$LDCONFIG"
20041 LIBTOOL_VERSION="$LIBTOOL_VERSION"
20042 LIB_NAME="$LIB_NAME"
20043 LIB_SUBSETS="$LIB_SUBSETS"
20044 LIB_SUFFIX="$LIB_SUFFIX"
20045 LIB_TRACING="$LIB_TRACING"
20047 MAKE_TERMINFO="$MAKE_TERMINFO"
20048 NCURSES_MAJOR="$NCURSES_MAJOR"
20049 NCURSES_MINOR="$NCURSES_MINOR"
20050 NCURSES_OSPEED="$NCURSES_OSPEED"
20051 NCURSES_PATCH="$NCURSES_PATCH"
20052 SRC_SUBDIRS="$SRC_SUBDIRS"
20053 TERMINFO="$TERMINFO"
20054 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
20055 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
20056 TICS_NAME="$TICS_NAME"
20057 TIC_PATH="$TIC_PATH"
20058 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
20059 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
20060 TINFO_NAME="$TINFO_NAME"
20061 TINFO_SUFFIX="$TINFO_SUFFIX"
20062 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20063 WITH_CURSES_H="$with_curses_h"
20064 WITH_ECHO="$with_echo"
20065 WITH_OVERWRITE="$with_overwrite"
20066 cf_LIST_MODELS="$cf_list_models"
20067 cf_cv_abi_version="$cf_cv_abi_version"
20068 cf_cv_do_relink="$cf_cv_do_relink"
20069 cf_cv_do_symlinks="$cf_cv_do_symlinks"
20070 cf_cv_enable_lp64="$cf_cv_enable_lp64"
20071 cf_cv_enable_opaque="$cf_cv_enable_opaque"
20072 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
20073 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
20074 cf_cv_rel_version="$cf_cv_rel_version"
20075 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20076 cf_cv_shared_soname='$cf_cv_shared_soname'
20077 cf_cv_shlib_version="$cf_cv_shlib_version"
20078 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20079 cf_cv_system_name="$cf_cv_system_name"
20080 cf_with_ada="$cf_with_ada"
20081 cf_with_cxx_binding="$cf_with_cxx_binding"
20082 cf_with_manpages="$cf_with_manpages"
20083 cf_with_tests="$cf_with_tests"
20089 cat >>$CONFIG_STATUS <<\EOF
20090 for ac_config_target in $ac_config_targets
20092 case "$ac_config_target" in
20093 # Handling of arguments.
20094 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
20095 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
20096 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
20097 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
20098 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
20099 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
20100 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20101 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20102 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20103 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
20104 *) { { echo "$as_me:20104: error: invalid argument: $ac_config_target" >&5
20105 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20106 { (exit 1); exit 1; }; };;
20110 # If the user did not use the arguments to specify the items to instantiate,
20111 # then the envvar interface is used. Set only those that are not.
20112 # We use the long form for the default assignment because of an extremely
20113 # bizarre bug on SunOS 4.1.3.
20114 if $ac_need_defaults; then
20115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20120 # Create a temporary directory, and hook for its removal unless debugging.
20123 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20124 trap '{ (exit 1); exit 1; }' 1 2 13 15
20127 # Create a (secure) tmp directory for tmp files.
20130 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20131 test -n "$tmp" && test -d "$tmp"
20134 tmp=$TMPDIR/cs$$-$RANDOM
20135 (umask 077 && mkdir $tmp)
20138 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20139 { (exit 1); exit 1; }
20144 cat >>$CONFIG_STATUS <<EOF
20147 # CONFIG_FILES section.
20150 # No need to generate the scripts if there are no CONFIG_FILES.
20151 # This happens for instance when ./config.status config.h
20152 if test -n "\$CONFIG_FILES"; then
20153 # Protect against being on the right side of a sed subst in config.status.
20154 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20155 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20156 s,@SHELL@,$SHELL,;t t
20157 s,@exec_prefix@,$exec_prefix,;t t
20158 s,@prefix@,$prefix,;t t
20159 s,@program_transform_name@,$program_transform_name,;t t
20160 s,@bindir@,$bindir,;t t
20161 s,@sbindir@,$sbindir,;t t
20162 s,@libexecdir@,$libexecdir,;t t
20163 s,@datadir@,$datadir,;t t
20164 s,@sysconfdir@,$sysconfdir,;t t
20165 s,@sharedstatedir@,$sharedstatedir,;t t
20166 s,@localstatedir@,$localstatedir,;t t
20167 s,@libdir@,$libdir,;t t
20168 s,@includedir@,$includedir,;t t
20169 s,@oldincludedir@,$oldincludedir,;t t
20170 s,@infodir@,$infodir,;t t
20171 s,@mandir@,$mandir,;t t
20172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20177 s,@build_alias@,$build_alias,;t t
20178 s,@host_alias@,$host_alias,;t t
20179 s,@target_alias@,$target_alias,;t t
20180 s,@ECHO_C@,$ECHO_C,;t t
20181 s,@ECHO_N@,$ECHO_N,;t t
20182 s,@ECHO_T@,$ECHO_T,;t t
20183 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20184 s,@DEFS@,$DEFS,;t t
20185 s,@LIBS@,$LIBS,;t t
20186 s,@top_builddir@,$top_builddir,;t t
20187 s,@EGREP@,$EGREP,;t t
20188 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
20189 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
20190 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
20191 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
20192 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
20193 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
20194 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
20195 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
20196 s,@build@,$build,;t t
20197 s,@build_cpu@,$build_cpu,;t t
20198 s,@build_vendor@,$build_vendor,;t t
20199 s,@build_os@,$build_os,;t t
20200 s,@host@,$host,;t t
20201 s,@host_cpu@,$host_cpu,;t t
20202 s,@host_vendor@,$host_vendor,;t t
20203 s,@host_os@,$host_os,;t t
20204 s,@target@,$target,;t t
20205 s,@target_cpu@,$target_cpu,;t t
20206 s,@target_vendor@,$target_vendor,;t t
20207 s,@target_os@,$target_os,;t t
20209 s,@CFLAGS@,$CFLAGS,;t t
20210 s,@LDFLAGS@,$LDFLAGS,;t t
20211 s,@CPPFLAGS@,$CPPFLAGS,;t t
20212 s,@ac_ct_CC@,$ac_ct_CC,;t t
20213 s,@EXEEXT@,$EXEEXT,;t t
20214 s,@OBJEXT@,$OBJEXT,;t t
20216 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
20217 s,@PROG_EXT@,$PROG_EXT,;t t
20218 s,@LDCONFIG@,$LDCONFIG,;t t
20220 s,@CXXFLAGS@,$CXXFLAGS,;t t
20221 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20223 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20224 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20225 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20226 s,@LINT@,$LINT,;t t
20227 s,@LINT_OPTS@,$LINT_OPTS,;t t
20228 s,@LN_S@,$LN_S,;t t
20229 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20230 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20231 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
20232 s,@SET_MAKE@,$SET_MAKE,;t t
20233 s,@CTAGS@,$CTAGS,;t t
20234 s,@ETAGS@,$ETAGS,;t t
20235 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
20236 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
20237 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
20238 s,@RANLIB@,$RANLIB,;t t
20239 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20241 s,@ac_ct_LD@,$ac_ct_LD,;t t
20243 s,@ac_ct_AR@,$ac_ct_AR,;t t
20244 s,@ARFLAGS@,$ARFLAGS,;t t
20245 s,@DESTDIR@,$DESTDIR,;t t
20246 s,@BUILD_CC@,$BUILD_CC,;t t
20247 s,@BUILD_CPP@,$BUILD_CPP,;t t
20248 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20249 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20250 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20251 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
20252 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20253 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
20254 s,@cf_list_models@,$cf_list_models,;t t
20255 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
20256 s,@LIBTOOL@,$LIBTOOL,;t t
20257 s,@LT_UNDEF@,$LT_UNDEF,;t t
20258 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
20259 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
20260 s,@LIB_CREATE@,$LIB_CREATE,;t t
20261 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
20262 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
20263 s,@LIB_PREP@,$LIB_PREP,;t t
20264 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
20265 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
20266 s,@LIB_LINK@,$LIB_LINK,;t t
20267 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
20268 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
20269 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
20270 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
20271 s,@TICS_NAME@,$TICS_NAME,;t t
20272 s,@TINFO_NAME@,$TINFO_NAME,;t t
20273 s,@LIB_NAME@,$LIB_NAME,;t t
20274 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
20275 s,@CC_G_OPT@,$CC_G_OPT,;t t
20276 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
20277 s,@LD_MODEL@,$LD_MODEL,;t t
20278 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
20279 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
20280 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
20281 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
20282 s,@LINK_PROGS@,$LINK_PROGS,;t t
20283 s,@LINK_TESTS@,$LINK_TESTS,;t t
20284 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
20285 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20286 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
20287 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
20288 s,@RPATH_LIST@,$RPATH_LIST,;t t
20289 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
20290 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
20291 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
20292 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
20293 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
20294 s,@TERMINFO@,$TERMINFO,;t t
20295 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
20296 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
20297 s,@TERMPATH@,$TERMPATH,;t t
20298 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
20299 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
20300 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
20301 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
20302 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
20303 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
20304 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
20305 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
20306 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
20307 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
20308 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
20309 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
20310 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
20311 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
20312 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
20313 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
20314 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
20315 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
20316 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
20317 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
20318 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
20319 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
20320 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
20321 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
20322 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
20323 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
20324 s,@PTHREAD@,$PTHREAD,;t t
20325 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
20326 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
20327 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
20328 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
20329 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
20330 s,@ECHO_LINK@,$ECHO_LINK,;t t
20331 s,@ADAFLAGS@,$ADAFLAGS,;t t
20332 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
20333 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
20334 s,@ADA_TRACE@,$ADA_TRACE,;t t
20335 s,@MATH_LIB@,$MATH_LIB,;t t
20336 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
20337 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
20338 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
20339 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
20340 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
20341 s,@TEST_LIBS@,$TEST_LIBS,;t t
20342 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
20343 s,@CXXCPP@,$CXXCPP,;t t
20344 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
20345 s,@CXX_AR@,$CXX_AR,;t t
20346 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
20347 s,@CXXLIBS@,$CXXLIBS,;t t
20348 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
20349 s,@gnat_exists@,$gnat_exists,;t t
20350 s,@M4_exists@,$M4_exists,;t t
20351 s,@cf_ada_make@,$cf_ada_make,;t t
20352 s,@cf_compile_generics@,$cf_compile_generics,;t t
20353 s,@cf_generic_objects@,$cf_generic_objects,;t t
20354 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
20355 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
20356 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
20357 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
20358 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
20359 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
20360 s,@cf_ada_package@,$cf_ada_package,;t t
20361 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
20362 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
20363 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
20364 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
20365 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
20366 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
20367 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
20368 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
20369 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
20370 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
20371 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
20372 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
20373 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
20374 s,@TICS_LIBS@,$TICS_LIBS,;t t
20375 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
20376 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
20377 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
20378 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
20379 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
20380 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
20381 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
20382 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
20383 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
20384 s,@TICS_LIST@,$TICS_LIST,;t t
20385 s,@TINFO_LIST@,$TINFO_LIST,;t t
20386 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
20387 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
20388 s,@TEST_ARGS@,$TEST_ARGS,;t t
20389 s,@TEST_DEPS@,$TEST_DEPS,;t t
20390 s,@TEST_ARG2@,$TEST_ARG2,;t t
20391 s,@TEST_DEP2@,$TEST_DEP2,;t t
20392 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
20393 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
20394 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
20395 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
20396 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
20397 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
20398 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
20399 s,@cross_compiling@,$cross_compiling,;t t
20400 s,@TIC_PATH@,$TIC_PATH,;t t
20401 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
20402 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
20407 cat >>$CONFIG_STATUS <<\EOF
20408 # Split the substitutions into bite-sized pieces for seds with
20409 # small command number limits, like on Digital OSF/1 and HP-UX.
20410 ac_max_sed_lines=48
20411 ac_sed_frag=1 # Number of current file.
20412 ac_beg=1 # First line for current file.
20413 ac_end=$ac_max_sed_lines # Line after last line for current file.
20416 while $ac_more_lines; do
20417 if test $ac_beg -gt 1; then
20418 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20420 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20422 if test ! -s $tmp/subs.frag; then
20423 ac_more_lines=false
20425 # The purpose of the label and of the branching condition is to
20426 # speed up the sed processing (if there are no `@' at all, there
20427 # is no need to browse any of the substitutions).
20428 # These are the two extra sed commands mentioned above.
20430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20431 if test -z "$ac_sed_cmds"; then
20432 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20434 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20436 ac_sed_frag=`expr $ac_sed_frag + 1`
20438 ac_end=`expr $ac_end + $ac_max_sed_lines`
20441 if test -z "$ac_sed_cmds"; then
20444 fi # test -n "$CONFIG_FILES"
20447 cat >>$CONFIG_STATUS <<\EOF
20448 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20451 - | *:- | *:-:* ) # input from stdin
20453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20457 * ) ac_file_in=$ac_file.in ;;
20460 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20461 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20462 X"$ac_file" : 'X\(//\)[^/]' \| \
20463 X"$ac_file" : 'X\(//\)$' \| \
20464 X"$ac_file" : 'X\(/\)' \| \
20465 . : '\(.\)' 2>/dev/null ||
20467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20469 /^X\(\/\/\)$/{ s//\1/; q; }
20470 /^X\(\/\).*/{ s//\1/; q; }
20472 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20473 { case "$ac_dir" in
20474 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20478 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20479 case $as_mkdir_dir in
20480 # Skip DOS drivespec
20481 ?:) as_incr_dir=$as_mkdir_dir ;;
20483 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20484 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20489 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
20490 # A "../" for each directory in $ac_dir_suffix.
20491 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
20493 ac_dir_suffix= ac_dots=
20498 if test -z "$ac_dots"; then
20501 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
20503 [\\/]* | ?:[\\/]* )
20504 ac_srcdir=$srcdir$ac_dir_suffix;
20505 ac_top_srcdir=$srcdir ;;
20506 *) # Relative path.
20507 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
20508 ac_top_srcdir=$ac_dots$srcdir ;;
20512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20513 *) ac_INSTALL=$ac_dots$INSTALL ;;
20516 if test x"$ac_file" != x-; then
20517 { echo "$as_me:20517: creating $ac_file" >&5
20518 echo "$as_me: creating $ac_file" >&6;}
20521 # Let's still pretend it is `configure' which instantiates (i.e., don't
20522 # use $as_me), people would be surprised to read:
20523 # /* config.h. Generated automatically by config.status. */
20524 configure_input="Generated automatically from `echo $ac_file_in |
20525 sed 's,.*/,,'` by configure."
20527 # First look for the input files in the build tree, otherwise in the
20529 ac_file_inputs=`IFS=:
20530 for f in $ac_file_in; do
20532 -) echo $tmp/stdin ;;
20534 # Absolute (can't be DOS-style, as IFS=:)
20535 test -f "$f" || { { echo "$as_me:20535: error: cannot find input file: $f" >&5
20536 echo "$as_me: error: cannot find input file: $f" >&2;}
20537 { (exit 1); exit 1; }; }
20540 if test -f "$f"; then
20543 elif test -f "$srcdir/$f"; then
20548 { { echo "$as_me:20548: error: cannot find input file: $f" >&5
20549 echo "$as_me: error: cannot find input file: $f" >&2;}
20550 { (exit 1); exit 1; }; }
20553 done` || { (exit 1); exit 1; }
20555 cat >>$CONFIG_STATUS <<EOF
20559 cat >>$CONFIG_STATUS <<\EOF
20561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20562 s,@configure_input@,$configure_input,;t t
20563 s,@srcdir@,$ac_srcdir,;t t
20564 s,@top_srcdir@,$ac_top_srcdir,;t t
20565 s,@INSTALL@,$ac_INSTALL,;t t
20566 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20568 if test x"$ac_file" != x-; then
20569 mv $tmp/out $ac_file
20577 cat >>$CONFIG_STATUS <<\EOF
20580 # CONFIG_HEADER section.
20583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20586 # ac_d sets the value in "#define NAME VALUE" lines.
20587 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20588 ac_dB='[ ].*$,\1#\2'
20591 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20592 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20593 ac_iB='\([ ]\),\1#\2define\3'
20596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20597 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20598 ac_uB='$,\1#\2define\3'
20602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20603 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20605 - | *:- | *:-:* ) # input from stdin
20607 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20609 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20611 * ) ac_file_in=$ac_file.in ;;
20614 test x"$ac_file" != x- && { echo "$as_me:20614: creating $ac_file" >&5
20615 echo "$as_me: creating $ac_file" >&6;}
20617 # First look for the input files in the build tree, otherwise in the
20619 ac_file_inputs=`IFS=:
20620 for f in $ac_file_in; do
20622 -) echo $tmp/stdin ;;
20624 # Absolute (can't be DOS-style, as IFS=:)
20625 test -f "$f" || { { echo "$as_me:20625: error: cannot find input file: $f" >&5
20626 echo "$as_me: error: cannot find input file: $f" >&2;}
20627 { (exit 1); exit 1; }; }
20630 if test -f "$f"; then
20633 elif test -f "$srcdir/$f"; then
20638 { { echo "$as_me:20638: error: cannot find input file: $f" >&5
20639 echo "$as_me: error: cannot find input file: $f" >&2;}
20640 { (exit 1); exit 1; }; }
20643 done` || { (exit 1); exit 1; }
20644 # Remove the trailing spaces.
20645 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20649 # Transform confdefs.h into a list of #define's. We won't use it as a sed
20650 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
20651 # be either 'cat' or 'sort'.
20652 cat confdefs.h | uniq >conftest.vals
20654 # Break up conftest.vals because some shells have a limit on
20655 # the size of here documents, and old seds have small limits too.
20657 rm -f conftest.tail
20658 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
20659 while grep . conftest.vals >/dev/null
20661 # Write chunks of a limited-size here document to conftest.frag.
20662 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
20663 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
20664 echo 'CEOF' >> $CONFIG_STATUS
20665 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20666 rm -f conftest.vals
20667 mv conftest.tail conftest.vals
20669 rm -f conftest.vals
20671 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
20673 echo ' cat >> conftest.edit <<CEOF
20674 /@DEFS@/r conftest.frag
20677 sed -f conftest.edit $tmp/in > $tmp/out
20679 mv $tmp/out $tmp/in
20680 rm -f conftest.edit conftest.frag
20681 ' >> $CONFIG_STATUS
20683 cat >>$CONFIG_STATUS <<\EOF
20684 # Let's still pretend it is `configure' which instantiates (i.e., don't
20685 # use $as_me), people would be surprised to read:
20686 # /* config.h. Generated automatically by config.status. */
20687 if test x"$ac_file" = x-; then
20688 echo "/* Generated automatically by configure. */" >$tmp/config.h
20690 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
20692 cat $tmp/in >>$tmp/config.h
20694 if test x"$ac_file" != x-; then
20695 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20696 { echo "$as_me:20696: $ac_file is unchanged" >&5
20697 echo "$as_me: $ac_file is unchanged" >&6;}
20699 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20700 X"$ac_file" : 'X\(//\)[^/]' \| \
20701 X"$ac_file" : 'X\(//\)$' \| \
20702 X"$ac_file" : 'X\(/\)' \| \
20703 . : '\(.\)' 2>/dev/null ||
20705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20707 /^X\(\/\/\)$/{ s//\1/; q; }
20708 /^X\(\/\).*/{ s//\1/; q; }
20710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20711 { case "$ac_dir" in
20712 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20716 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20717 case $as_mkdir_dir in
20718 # Skip DOS drivespec
20719 ?:) as_incr_dir=$as_mkdir_dir ;;
20721 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20722 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20729 mv $tmp/config.h $ac_file
20733 rm -f $tmp/config.h
20737 cat >>$CONFIG_STATUS <<\EOF
20739 # CONFIG_COMMANDS section.
20741 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20742 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20743 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20747 if test "x$cf_with_tests" != xno ; then
20751 if test ! -d $srcdir/$cf_dir; then
20753 elif test -f $srcdir/$cf_dir/programs; then
20754 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
20760 case $cf_cv_system_name in #(vi
20764 *) LIB_PREFIX='lib'
20767 cf_prefix=$LIB_PREFIX
20769 if test $cf_cv_shlib_version = cygdll ; then
20770 TINFO_NAME=$TINFO_ARG_SUFFIX
20774 if test -n "$TINFO_SUFFIX" ; then
20775 case $TINFO_SUFFIX in
20777 TINFO_NAME="${TINFO_NAME}tw"
20778 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
20781 TINFO_NAME="${TINFO_NAME}t"
20782 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
20785 TINFO_NAME="${TINFO_NAME}w"
20786 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
20791 for cf_dir in $SRC_SUBDIRS
20793 if test ! -d $srcdir/$cf_dir ; then
20795 elif test -f $srcdir/$cf_dir/modules; then
20799 for cf_item in $cf_LIST_MODELS
20802 case $cf_item in #(vi
20805 cf_depsuf=$cf_suffix
20809 cf_depsuf=$cf_suffix
20813 cf_depsuf=$cf_suffix
20817 cf_depsuf=$cf_suffix
20820 case $cf_cv_system_name in
20823 cf_depsuf=$cf_suffix
20831 cf_depsuf=$cf_suffix
20837 cf_depsuf=$cf_suffix
20841 cf_depsuf=$cf_suffix
20846 cf_depsuf=$cf_suffix
20850 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20851 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20853 if test $cf_item = shared ; then
20854 if test "$cf_cv_do_symlinks" = yes ; then
20855 case "$cf_cv_shlib_version" in #(vi
20857 case "$cf_cv_system_name" in #(vi
20859 case .${LIB_SUFFIX} in
20861 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20862 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
20865 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20866 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
20869 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20870 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
20873 cf_suffix='.${REL_VERSION}'"$cf_suffix"
20877 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
20881 case "$cf_cv_system_name" in #(vi
20883 case .${LIB_SUFFIX} in
20885 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20886 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
20889 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20890 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
20893 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20894 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
20897 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
20901 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
20906 # cygwin needs import library, and has unique naming convention
20907 # use autodetected ${cf_prefix} for import lib and static lib, but
20908 # use 'cyg' prefix for shared lib.
20909 if test $cf_cv_shlib_version = cygdll ; then
20910 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
20911 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
20915 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
20918 if test $cf_dir = ncurses ; then
20919 cf_subsets="$LIB_SUBSETS"
20920 cf_r_parts="$cf_subsets"
20921 cf_liblist="$LIBS_TO_MAKE"
20923 while test -n "$cf_r_parts"
20925 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
20926 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
20927 if test "$cf_l_parts" != "$cf_r_parts" ; then
20929 case $cf_l_parts in #(vi
20931 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
20934 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
20940 if test -n "$cf_item"; then
20941 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
20948 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
20951 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
20952 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
20953 $cf_dir/Makefile >$cf_dir/Makefile.out
20954 mv $cf_dir/Makefile.out $cf_dir/Makefile
20956 $AWK -f $srcdir/mk-0th.awk \
20957 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
20958 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20960 for cf_subset in $cf_subsets
20963 for cf_item in $cf_LIST_MODELS
20965 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
20967 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20969 case $cf_item in #(vi
20972 cf_depsuf=$cf_suffix
20976 cf_depsuf=$cf_suffix
20980 cf_depsuf=$cf_suffix
20984 cf_depsuf=$cf_suffix
20987 case $cf_cv_system_name in
20990 cf_depsuf=$cf_suffix
20998 cf_depsuf=$cf_suffix
21004 cf_depsuf=$cf_suffix
21008 cf_depsuf=$cf_suffix
21013 cf_depsuf=$cf_suffix
21017 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21018 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21021 libtool) cf_subdir='obj_lo' ;;
21022 normal) cf_subdir='objects' ;;
21023 debug) cf_subdir='obj_g' ;;
21024 profile) cf_subdir='obj_p' ;;
21026 case $cf_cv_system_name in #(vi
21028 cf_subdir='objects' ;;
21030 cf_subdir='obj_s' ;;
21034 # Test for case where we build libtinfo with a different name.
21036 if test $cf_dir = ncurses ; then
21039 cf_libname=${cf_libname}$LIB_SUFFIX
21042 cf_libname=$TINFO_LIB_SUFFIX
21045 cf_libname=$TICS_LIB_SUFFIX
21049 cf_libname=${cf_libname}$LIB_SUFFIX
21051 if test -n "${DFT_ARG_SUFFIX}" ; then
21052 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
21053 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
21056 # These dependencies really are for development, not
21057 # builds, but they are useful in porting, too.
21058 cf_depend="../include/ncurses_cfg.h"
21059 if test "$srcdir" = "."; then
21062 cf_reldir="\${srcdir}"
21065 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
21066 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
21067 elif test -f $srcdir/$cf_dir/curses.priv.h; then
21068 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
21072 old_cf_suffix="$cf_suffix"
21073 if test "$cf_cv_shlib_version_infix" = yes ; then
21074 if test -n "$LIB_SUFFIX" ; then
21075 case $LIB_SUFFIX in
21077 cf_libname=`echo $cf_libname | sed 's/tw$//'`
21078 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21082 cf_libname=`echo $cf_libname | sed 's/t$//'`
21083 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21087 cf_libname=`echo $cf_libname | sed 's/w$//'`
21088 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21095 $AWK -f $srcdir/mk-1st.awk \
21096 name=${cf_libname}${cf_dir_suffix} \
21097 traces=$LIB_TRACING \
21100 prefix=$cf_prefix \
21101 suffix=$cf_suffix \
21102 subset=$cf_subset \
21104 TermlibRoot=$TINFO_NAME \
21105 TermlibSuffix=$TINFO_SUFFIX \
21106 ShlibVer=$cf_cv_shlib_version \
21107 ShlibVerInfix=$cf_cv_shlib_version_infix \
21108 ReLink=${cf_cv_do_relink:-no} \
21109 DoLinks=$cf_cv_do_symlinks \
21110 rmSoLocs=$cf_cv_rm_so_locs \
21111 ldconfig="$LDCONFIG" \
21112 overwrite=$WITH_OVERWRITE \
21113 depend="$cf_depend" \
21115 libtool_version="$LIBTOOL_VERSION" \
21116 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21118 cf_suffix="$old_cf_suffix"
21120 for cf_subdir2 in $cf_subdirs lib
21122 test $cf_subdir = $cf_subdir2 && break
21124 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
21125 $AWK -f $srcdir/mk-2nd.awk \
21127 traces=$LIB_TRACING \
21130 subset=$cf_subset \
21133 crenames=$cf_cv_prog_CC_c_o \
21134 cxxrenames=$cf_cv_prog_CXX_c_o \
21135 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21136 cf_subdirs="$cf_subdirs $cf_subdir"
21141 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
21144 for cf_dir in $SRC_SUBDIRS
21146 if test ! -d $srcdir/$cf_dir ; then
21150 if test -f $cf_dir/Makefile ; then
21153 echo 'libs \' >> Makefile
21154 echo 'install.libs \' >> Makefile
21155 echo 'uninstall.libs ::' >> Makefile
21156 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
21161 if test -f $srcdir/$cf_dir/modules; then
21163 if test -f $srcdir/$cf_dir/headers; then
21164 cat >> Makefile <<CF_EOF
21165 install.includes \\
21166 uninstall.includes \\
21169 if test "$cf_dir" != "c++" ; then
21170 echo 'lint \' >> Makefile
21172 cat >> Makefile <<CF_EOF
21178 uninstall.$cf_dir ::
21179 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21181 elif test -f $srcdir/$cf_dir/headers; then
21182 cat >> Makefile <<CF_EOF
21187 install.includes \\
21188 uninstall.includes ::
21189 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21194 cat >> Makefile <<CF_EOF
21196 install.libs uninstall.libs \\
21197 install.data uninstall.data ::
21198 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
21201 if test "x$cf_with_manpages" = xyes; then
21202 cat >> Makefile <<CF_EOF
21206 cd man && \${MAKE} \${CF_MFLAGS} \$@
21210 cat >> Makefile <<CF_EOF
21213 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
21214 rm -f headers.sh headers.sed mk_shared_lib.sh
21215 rm -f edit_man.* man_alias.*
21216 rm -rf \${DIRS_TO_MAKE}
21219 # Special case: tack's manpage lives in its own directory.
21220 if test "x$cf_with_manpages" = xyes; then
21221 if test -d tack ; then
21222 if test -f $srcdir/$tack.h; then
21223 cat >> Makefile <<CF_EOF
21227 cd tack && \${MAKE} \${CF_MFLAGS} \$@
21233 rm -f headers.sed headers.sh
21235 echo creating headers.sh
21236 cat >headers.sh <<CF_EOF
21238 # This shell script is generated by the 'configure' script. It is invoked in a
21239 # subdirectory of the build tree. It generates a sed-script in the parent
21240 # directory that is used to adjust includes for header files that reside in a
21241 # subdirectory of /usr/include, etc.
21243 while test \$# != 3
21245 PRG="\$PRG \$1"; shift
21250 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
21251 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
21252 echo installing \$SRC in \$DST
21255 if test $WITH_CURSES_H = yes; then
21256 cat >>headers.sh <<CF_EOF
21259 END=\`basename \$DST\`
21260 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
21262 NAME=\`basename \$i\`
21263 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
21267 echo "" >> \$TMPSED
21273 cat >>headers.sh <<CF_EOF
21276 END=\`basename \$DST\`
21277 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
21279 NAME=\`basename \$i\`
21280 if test "\$NAME" = "curses.h"
21282 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
21285 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
21289 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
21294 cat >>headers.sh <<CF_EOF
21296 sed -f \$TMPSED \$SRC > \$TMPSRC
21297 NAME=\`basename \$SRC\`
21299 if test $WITH_CURSES_H != yes; then
21300 cat >>headers.sh <<CF_EOF
21301 test "\$NAME" = "curses.h" && NAME=ncurses.h
21304 cat >>headers.sh <<CF_EOF
21305 # Just in case someone gzip'd manpages, remove the conflicting copy.
21306 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
21308 eval \$PRG \$TMPSRC \$DST/\$NAME
21309 rm -f \$TMPSRC \$TMPSED
21312 chmod 0755 headers.sh
21314 for cf_dir in $SRC_SUBDIRS
21316 if test ! -d $srcdir/$cf_dir ; then
21320 if test -f $srcdir/$cf_dir/headers; then
21321 $AWK -f $srcdir/mk-hdr.awk \
21322 subset="$LIB_SUBSETS" \
21323 compat="$WITH_CURSES_H" \
21324 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
21327 if test -f $srcdir/$cf_dir/modules; then
21328 if test "$cf_dir" != "c++" ; then
21329 cat >>$cf_dir/Makefile <<"CF_EOF"
21330 depend : ${AUTO_SRC}
21331 makedepend -- ${CPPFLAGS} -- ${C_SRC}
21333 # DO NOT DELETE THIS LINE -- make depend depends on it.
21339 if test "x$cf_with_ada" != xno ; then
21340 if test -z "$USE_OLD_MAKERULES" ; then
21341 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
21349 cat >>$CONFIG_STATUS <<\EOF
21351 { (exit 0); exit 0; }
21353 chmod +x $CONFIG_STATUS
21354 ac_clean_files=$ac_clean_files_save
21356 # configure is writing to config.log, and then calls config.status.
21357 # config.status does its own redirection, appending to config.log.
21358 # Unfortunately, on DOS this fails, as config.log is still kept open
21359 # by configure, so config.status won't be able to write to it; its
21360 # output is simply discarded. So we exec the FD to /dev/null,
21361 # effectively closing config.log, so it can be properly (re)opened and
21362 # appended to by config.status. When coming back to configure, we
21363 # need to make the FD available again.
21364 if test "$no_create" != yes; then
21367 $SHELL $CONFIG_STATUS || ac_cs_success=false
21369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21370 # would make configure fail if this is the last instruction.
21371 $ac_cs_success || { (exit 1); exit 1; }
21373 ${MAKE:-make} preinstall