2 # From configure.in Revision: 1.513 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101001.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-tests suppress build with test-programs
703 --without-curses-h install curses.h as ncurses.h only
704 --with-pkg-config{=path} enable/disable use of pkg-config
705 --enable-pc-files generate and install .pc files for pkg-config
706 --enable-mixed-case tic should assume mixed-case filenames
707 --with-install-prefix prefixes actual install-location ($DESTDIR)
708 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
709 --with-build-cc=XXX the build C compiler ($BUILD_CC)
710 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
711 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
712 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
713 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
714 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
715 Options to Specify the Libraries Built/Used:
716 --disable-libtool-version enable to use libtool's incompatible naming scheme
717 --with-libtool generate libraries with libtool
718 --with-shared generate shared-libraries
719 --with-normal generate normal-libraries (default)
720 --with-debug generate debug-libraries (default)
721 --with-profile generate profile-libraries
722 --with-termlib generate separate terminfo library
723 --with-ticlib generate separate tic library
724 --with-gpm use Alessandro Rubini's GPM library
725 --without-dlsym do not use dlsym() to load GPM dynamically
726 --with-sysmouse use sysmouse (FreeBSD console)
727 --enable-rpath use rpath option when generating shared libraries
728 --disable-relink relink shared libraries during install
729 --with-shlib-version=X Specify rel or abi version for shared libs
730 --disable-rpath-hack don't add rpath options for additional libraries
731 Fine-Tuning Your Configuration:
732 --disable-overwrite leave out the link to -lcurses
733 --disable-database do not use terminfo, only fallbacks/termcap
734 --with-database=XXX specify terminfo source to install
735 --with-hashed-db specify hashed-database library
736 --with-fallbacks=XXX specify list of fallback terminal descriptions
737 --without-xterm-new specify if xterm terminfo should be old version
738 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
739 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
740 --disable-big-core assume machine has little memory
741 --disable-big-strings assume compiler has only standard-size strings
742 --enable-termcap compile in termcap fallback support
743 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
744 --enable-getcap fast termcap load, no xrefs to terminfo
745 --enable-getcap-cache cache translated termcaps in ~/.terminfo
746 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
747 --disable-root-environ restrict environment when running as root
748 --enable-symlinks make tic use symbolic links not hard links
749 --enable-broken_linker compile with broken-linker support code
750 --enable-bsdpad recognize BSD-style prefix padding
751 --enable-widec compile with wide-char/UTF-8 code
752 --disable-lp64 allow chtype to be long (ignore _LP64)
753 --disable-largefile omit support for large files
754 --disable-tparm-varargs compile tparm() without varargs interface
755 --disable-tic-depends link tic library without explicit dependency on ncurses library
756 --with-bool=TYPE override fallback type of bool variable
757 --with-caps=alt compile with alternate Caps file
758 --with-chtype=TYPE override type of chtype
759 --with-ospeed=TYPE override type of ospeed variable
760 --with-mmask-t=TYPE override type of mmask_t
761 --with-ccharw-max=XXX override size CCHARW_MAX
762 --with-rcs-ids compile-in RCS identifiers
763 Options to Specify How Manpages are Installed:
764 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
765 optionally formatted/catonly, e.g., gzip,formatted
766 --with-manpage-renames specify manpage-renaming
767 --with-manpage-aliases specify manpage-aliases using .so
768 --with-manpage-symlinks specify manpage-aliases using symlinks
769 --with-manpage-tbl specify manpage processing with tbl
771 --disable-ext-funcs disable function-extensions
772 --enable-sp-funcs enable experimental SCREEN-extensions
773 --enable-term-driver enable experimental terminal-driver
774 --enable-const compile with extra/non-standard const
775 --enable-ext-colors compile for 256-color support
776 --enable-ext-mouse compile for extended mouse-encoding
777 --enable-no-padding compile with $NCURSES_NO_PADDING code
778 --enable-signed-char compile using signed Boolean's in term.h
779 --enable-sigwinch compile with SIGWINCH handler
780 --enable-tcap-names compile with user-definable terminal capabilities
782 --without-develop disable development options
783 --enable-hard-tabs compile with hard-tabs code
784 --enable-xmc-glitch compile with support for xmc (magic-cookie)
786 --disable-assumed-color do not assume anything about default-colors
787 --disable-hashmap compile without hashmap scrolling-optimization
788 --enable-colorfgbg compile-in experimental $COLORFGBG code
789 --enable-interop compile-in experimental interop bindings
790 --with-pthread use POSIX thread library
791 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
792 --enable-weak-symbols enable weak-symbols for pthreads
793 --enable-reentrant compile with experimental reentrant code
794 --with-wrap-prefix=XXX override prefix used for public variables
795 --enable-safe-sprintf compile with experimental safe-sprintf code
796 --disable-scroll-hints compile without scroll-hints code
797 --enable-wgetch-events compile with experimental wgetch-events code
798 Testing/development Options:
799 --enable-echo build: display "compiling" commands (default)
800 --enable-warnings build: turn on GCC compiler warnings
801 --enable-assertions test: turn on generation of assertion code
802 --with-dmalloc test: use Gray Watson's dmalloc library
803 --with-dbmalloc test: use Conor Cahill's dbmalloc library
804 --with-valgrind test: use valgrind
805 --disable-leaks test: free permanent memory, analyze leaks
806 --enable-expanded test: generate functions for certain macros
807 --disable-macros test: use functions rather than macros
808 --with-trace test: add trace() function to all models of ncurses
809 Ada95 Binding Options:
810 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
811 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
812 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
813 --with-ada-sharedlib=XX build Ada95 shared-library
815 Some influential environment variables:
816 CC C compiler command
817 CFLAGS C compiler flags
818 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
819 nonstandard directory <lib dir>
820 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
821 headers in a nonstandard directory <include dir>
823 CXX C++ compiler command
824 CXXFLAGS C++ compiler flags
825 CXXCPP C++ preprocessor
827 Use these variables to override the choices made by `configure' or to help
828 it to find libraries and programs with nonstandard names/locations.
833 if test "$ac_init_help" = "recursive"; then
834 # If there are subdirs, report their specific --help.
836 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
838 # A "../" for each directory in /$ac_subdir.
839 ac_dots=`echo $ac_subdir |
840 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
843 .) # No --srcdir option. We are building in place.
844 ac_sub_srcdir=$srcdir ;;
845 [\\/]* | ?:[\\/]* ) # Absolute path.
846 ac_sub_srcdir=$srcdir/$ac_subdir ;;
848 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
851 # Check for guested configure; otherwise get Cygnus style configure.
852 if test -f $ac_sub_srcdir/configure.gnu; then
854 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
855 elif test -f $ac_sub_srcdir/configure; then
857 $SHELL $ac_sub_srcdir/configure --help=recursive
858 elif test -f $ac_sub_srcdir/configure.ac ||
859 test -f $ac_sub_srcdir/configure.in; then
863 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
869 test -n "$ac_init_help" && exit 0
870 if $ac_init_version; then
873 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
874 Free Software Foundation, Inc.
875 This configure script is free software; the Free Software Foundation
876 gives unlimited permission to copy, distribute and modify it.
882 This file contains any messages produced by compilers while
883 running configure, to aid debugging if configure makes a mistake.
885 It was created by $as_me, which was
886 generated by GNU Autoconf 2.52.20101001. Invocation command line was
897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
909 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
926 # Keep a trace of the command line.
927 # Strip out --no-create and --no-recursion so they do not pile up.
928 # Also quote any args containing shell meta-characters.
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c) ;;
936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
942 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
945 # Get rid of the leading space.
948 # When interrupted or exit'd, cleanup temporary files, and complete
949 # config.log. We remove comments because anyway the quotes in there
950 # would cause problems or look ugly.
952 # Save into config.log some information that might help in debugging.
954 echo "## ----------------- ##" >&5
955 echo "## Cache variables. ##" >&5
956 echo "## ----------------- ##" >&5
958 # The following way of writing the cache mishandles newlines in values,
961 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
964 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
973 sed "/^$/d" confdefs.h >conftest.log
974 if test -s conftest.log; then
976 echo "## ------------ ##" >&5
977 echo "## confdefs.h. ##" >&5
978 echo "## ------------ ##" >&5
983 test "$ac_signal" != 0 &&
984 echo "$as_me: caught signal $ac_signal" >&5
985 echo "$as_me: exit $exit_status" >&5
986 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
989 for ac_signal in 1 2 13 15; do
990 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
995 rm -rf conftest* confdefs.h
996 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
999 # Let the site file select an alternate cache file if it wants to.
1000 # Prefer explicitly selected file to automatically selected ones.
1001 if test -z "$CONFIG_SITE"; then
1002 if test "x$prefix" != xNONE; then
1003 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1005 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1008 for ac_site_file in $CONFIG_SITE; do
1009 if test -r "$ac_site_file"; then
1010 { echo "$as_me:1010: loading site script $ac_site_file" >&5
1011 echo "$as_me: loading site script $ac_site_file" >&6;}
1012 cat "$ac_site_file" >&5
1017 if test -r "$cache_file"; then
1018 # Some versions of bash will fail to source /dev/null (special
1019 # files actually), so we avoid doing that.
1020 if test -f "$cache_file"; then
1021 { echo "$as_me:1021: loading cache $cache_file" >&5
1022 echo "$as_me: loading cache $cache_file" >&6;}
1024 [\\/]* | ?:[\\/]* ) . $cache_file;;
1025 *) . ./$cache_file;;
1029 { echo "$as_me:1029: creating cache $cache_file" >&5
1030 echo "$as_me: creating cache $cache_file" >&6;}
1034 # Check that the precious variables saved in the cache have kept the same
1036 ac_cache_corrupted=false
1037 for ac_var in `(set) 2>&1 |
1038 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1039 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1040 eval ac_new_set=\$ac_env_${ac_var}_set
1041 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1042 eval ac_new_val="\$ac_env_${ac_var}_value"
1043 case $ac_old_set,$ac_new_set in
1045 { echo "$as_me:1045: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1046 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1047 ac_cache_corrupted=: ;;
1049 { echo "$as_me:1049: error: \`$ac_var' was not set in the previous run" >&5
1050 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1051 ac_cache_corrupted=: ;;
1054 if test "x$ac_old_val" != "x$ac_new_val"; then
1055 { echo "$as_me:1055: error: \`$ac_var' has changed since the previous run:" >&5
1056 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1057 { echo "$as_me:1057: former value: $ac_old_val" >&5
1058 echo "$as_me: former value: $ac_old_val" >&2;}
1059 { echo "$as_me:1059: current value: $ac_new_val" >&5
1060 echo "$as_me: current value: $ac_new_val" >&2;}
1061 ac_cache_corrupted=:
1064 # Pass precious variables to config.status. It doesn't matter if
1065 # we pass some twice (in addition to the command line arguments).
1066 if test "$ac_new_set" = set; then
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1070 ac_configure_args="$ac_configure_args '$ac_arg'"
1072 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1077 if $ac_cache_corrupted; then
1078 { echo "$as_me:1078: error: changes in the environment can compromise the build" >&5
1079 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1080 { { echo "$as_me:1080: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1081 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1082 { (exit 1); exit 1; }; }
1086 ac_cpp='$CPP $CPPFLAGS'
1087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1090 ac_main_return=return
1092 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1093 *c*,-n*) ECHO_N= ECHO_C='
1095 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1096 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1098 echo "#! $SHELL" >conftest.sh
1099 echo "exit 0" >>conftest.sh
1100 chmod +x conftest.sh
1101 if { (echo "$as_me:1101: PATH=\".;.\"; conftest.sh") >&5
1102 (PATH=".;."; conftest.sh) 2>&5
1104 echo "$as_me:1104: \$? = $ac_status" >&5
1105 (exit $ac_status); }; then
1106 ac_path_separator=';'
1110 PATH_SEPARATOR="$ac_path_separator"
1113 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1117 echo "$as_me:1117: checking for egrep" >&5
1118 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1119 if test "${ac_cv_prog_egrep+set}" = set; then
1120 echo $ECHO_N "(cached) $ECHO_C" >&6
1122 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1123 then ac_cv_prog_egrep='grep -E'
1124 else ac_cv_prog_egrep='egrep'
1127 echo "$as_me:1127: result: $ac_cv_prog_egrep" >&5
1128 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1129 EGREP=$ac_cv_prog_egrep
1131 test -z "$EGREP" && { { echo "$as_me:1131: error: No egrep program found" >&5
1132 echo "$as_me: error: No egrep program found" >&2;}
1133 { (exit 1); exit 1; }; }
1135 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1136 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1138 cf_cv_abi_version=${NCURSES_MAJOR}
1139 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1140 cf_cv_timestamp=`date`
1141 echo "$as_me:1141: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1142 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1144 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1146 # Check whether --with-rel-version or --without-rel-version was given.
1147 if test "${with_rel_version+set}" = set; then
1148 withval="$with_rel_version"
1149 { echo "$as_me:1149: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1150 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1151 cf_cv_rel_version=$withval
1154 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1155 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1157 if test -n "$NCURSES_MAJOR" ; then
1158 case $NCURSES_MAJOR in #(vi
1162 { { echo "$as_me:1162: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1163 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1164 { (exit 1); exit 1; }; }
1168 { { echo "$as_me:1168: error: Release major-version value is empty" >&5
1169 echo "$as_me: error: Release major-version value is empty" >&2;}
1170 { (exit 1); exit 1; }; }
1173 if test -n "$NCURSES_MINOR" ; then
1174 case $NCURSES_MINOR in #(vi
1178 { { echo "$as_me:1178: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1179 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1180 { (exit 1); exit 1; }; }
1184 { { echo "$as_me:1184: error: Release minor-version value is empty" >&5
1185 echo "$as_me: error: Release minor-version value is empty" >&2;}
1186 { (exit 1); exit 1; }; }
1189 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1191 # Check whether --with-abi-version or --without-abi-version was given.
1192 if test "${with_abi_version+set}" = set; then
1193 withval="$with_abi_version"
1194 { echo "$as_me:1194: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1195 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1196 cf_cv_abi_version=$withval
1199 if test -n "$cf_cv_abi_version" ; then
1200 case $cf_cv_abi_version in #(vi
1204 { { echo "$as_me:1204: error: ABI version is not a number: $cf_cv_abi_version" >&5
1205 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1206 { (exit 1); exit 1; }; }
1210 { { echo "$as_me:1210: error: ABI version value is empty" >&5
1211 echo "$as_me: error: ABI version value is empty" >&2;}
1212 { (exit 1); exit 1; }; }
1216 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1217 if test -f $ac_dir/install-sh; then
1219 ac_install_sh="$ac_aux_dir/install-sh -c"
1221 elif test -f $ac_dir/install.sh; then
1223 ac_install_sh="$ac_aux_dir/install.sh -c"
1225 elif test -f $ac_dir/shtool; then
1227 ac_install_sh="$ac_aux_dir/shtool install -c"
1231 if test -z "$ac_aux_dir"; then
1232 { { echo "$as_me:1232: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1233 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1234 { (exit 1); exit 1; }; }
1236 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1237 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1238 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1240 # Make sure we can run config.sub.
1241 $ac_config_sub sun4 >/dev/null 2>&1 ||
1242 { { echo "$as_me:1242: error: cannot run $ac_config_sub" >&5
1243 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1244 { (exit 1); exit 1; }; }
1246 echo "$as_me:1246: checking build system type" >&5
1247 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1248 if test "${ac_cv_build+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 ac_cv_build_alias=$build_alias
1252 test -z "$ac_cv_build_alias" &&
1253 ac_cv_build_alias=`$ac_config_guess`
1254 test -z "$ac_cv_build_alias" &&
1255 { { echo "$as_me:1255: error: cannot guess build type; you must specify one" >&5
1256 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1257 { (exit 1); exit 1; }; }
1258 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1260 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1261 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: result: $ac_cv_build" >&5
1265 echo "${ECHO_T}$ac_cv_build" >&6
1267 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1268 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1269 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$as_me:1271: checking host system type" >&5
1272 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1273 if test "${ac_cv_host+set}" = set; then
1274 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 ac_cv_host_alias=$host_alias
1277 test -z "$ac_cv_host_alias" &&
1278 ac_cv_host_alias=$ac_cv_build_alias
1279 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1280 { { echo "$as_me:1280: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1281 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_host" >&5
1286 echo "${ECHO_T}$ac_cv_host" >&6
1288 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1293 echo "$as_me:1293: checking target system type" >&5
1294 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1295 if test "${ac_cv_target+set}" = set; then
1296 echo $ECHO_N "(cached) $ECHO_C" >&6
1298 ac_cv_target_alias=$target_alias
1299 test "x$ac_cv_target_alias" = "x" &&
1300 ac_cv_target_alias=$ac_cv_host_alias
1301 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1302 { { echo "$as_me:1302: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1303 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1304 { (exit 1); exit 1; }; }
1307 echo "$as_me:1307: result: $ac_cv_target" >&5
1308 echo "${ECHO_T}$ac_cv_target" >&6
1309 target=$ac_cv_target
1310 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1311 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1312 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1314 # The aliases save the names the user supplied, while $host etc.
1315 # will get canonicalized.
1316 test -n "$target_alias" &&
1317 test "$program_prefix$program_suffix$program_transform_name" = \
1319 program_prefix=${target_alias}-
1320 system_name="$host_os"
1322 system_name="`(uname -s -r) 2>/dev/null`"
1323 if test -z "$system_name" ; then
1324 system_name="`(hostname) 2>/dev/null`"
1327 test -n "$system_name" && cat >>confdefs.h <<EOF
1328 #define SYSTEM_NAME "$system_name"
1331 if test "${cf_cv_system_name+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 cf_cv_system_name="$system_name"
1337 test -z "$system_name" && system_name="$cf_cv_system_name"
1338 test -n "$cf_cv_system_name" && echo "$as_me:1338: result: Configuring for $cf_cv_system_name" >&5
1339 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1341 if test ".$system_name" != ".$cf_cv_system_name" ; then
1342 echo "$as_me:1342: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1343 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1344 { { echo "$as_me:1344: error: \"Please remove config.cache and try again.\"" >&5
1345 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1346 { (exit 1); exit 1; }; }
1349 # Check whether --with-system-type or --without-system-type was given.
1350 if test "${with_system_type+set}" = set; then
1351 withval="$with_system_type"
1352 { echo "$as_me:1352: WARNING: overriding system type to $withval" >&5
1353 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1354 cf_cv_system_name=$withval
1357 ### Save the given $CFLAGS to allow user-override.
1358 cf_user_CFLAGS="$CFLAGS"
1360 ### Default install-location
1362 echo "$as_me:1362: checking for prefix" >&5
1363 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1364 if test "x$prefix" = "xNONE" ; then
1365 case "$cf_cv_system_name" in
1366 # non-vendor systems don't have a conflict
1367 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1370 *) prefix=$ac_default_prefix
1374 echo "$as_me:1374: result: $prefix" >&5
1375 echo "${ECHO_T}$prefix" >&6
1377 if test "x$prefix" = "xNONE" ; then
1378 echo "$as_me:1378: checking for default include-directory" >&5
1379 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1380 test -n "$verbose" && echo 1>&6
1383 $includedir/ncurses \
1385 $prefix/include/ncurses \
1386 /usr/local/include \
1387 /usr/local/include/ncurses \
1389 /usr/include/ncurses
1391 cf_dir=`eval echo $cf_symbol`
1392 if test -f $cf_dir/curses.h ; then
1393 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1394 includedir="$cf_symbol"
1395 test -n "$verbose" && echo $ac_n " found " 1>&6
1399 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1401 echo "$as_me:1401: result: $includedir" >&5
1402 echo "${ECHO_T}$includedir" >&6
1405 ### Checks for programs.
1407 ac_cpp='$CPP $CPPFLAGS'
1408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1411 ac_main_return=return
1412 if test -n "$ac_tool_prefix"; then
1413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1415 echo "$as_me:1415: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 if test -n "$CC"; then
1421 ac_cv_prog_CC="$CC" # Let the user override the test.
1423 ac_save_IFS=$IFS; IFS=$ac_path_separator
1425 for ac_dir in $ac_dummy; do
1427 test -z "$ac_dir" && ac_dir=.
1428 $as_executable_p "$ac_dir/$ac_word" || continue
1429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1430 echo "$as_me:1430: found $ac_dir/$ac_word" >&5
1437 if test -n "$CC"; then
1438 echo "$as_me:1438: result: $CC" >&5
1439 echo "${ECHO_T}$CC" >&6
1441 echo "$as_me:1441: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1446 if test -z "$ac_cv_prog_CC"; then
1448 # Extract the first word of "gcc", so it can be a program name with args.
1449 set dummy gcc; ac_word=$2
1450 echo "$as_me:1450: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$ac_ct_CC"; then
1456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1458 ac_save_IFS=$IFS; IFS=$ac_path_separator
1460 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 $as_executable_p "$ac_dir/$ac_word" || continue
1464 ac_cv_prog_ac_ct_CC="gcc"
1465 echo "$as_me:1465: found $ac_dir/$ac_word" >&5
1471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1472 if test -n "$ac_ct_CC"; then
1473 echo "$as_me:1473: result: $ac_ct_CC" >&5
1474 echo "${ECHO_T}$ac_ct_CC" >&6
1476 echo "$as_me:1476: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1485 if test -z "$CC"; then
1486 if test -n "$ac_tool_prefix"; then
1487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1488 set dummy ${ac_tool_prefix}cc; ac_word=$2
1489 echo "$as_me:1489: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1497 ac_save_IFS=$IFS; IFS=$ac_path_separator
1499 for ac_dir in $ac_dummy; do
1501 test -z "$ac_dir" && ac_dir=.
1502 $as_executable_p "$ac_dir/$ac_word" || continue
1503 ac_cv_prog_CC="${ac_tool_prefix}cc"
1504 echo "$as_me:1504: found $ac_dir/$ac_word" >&5
1511 if test -n "$CC"; then
1512 echo "$as_me:1512: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1515 echo "$as_me:1515: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$ac_cv_prog_CC"; then
1522 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2
1524 echo "$as_me:1524: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 if test -n "$ac_ct_CC"; then
1530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1532 ac_save_IFS=$IFS; IFS=$ac_path_separator
1534 for ac_dir in $ac_dummy; do
1536 test -z "$ac_dir" && ac_dir=.
1537 $as_executable_p "$ac_dir/$ac_word" || continue
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:1539: found $ac_dir/$ac_word" >&5
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547 echo "$as_me:1547: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1550 echo "$as_me:1550: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1560 if test -z "$CC"; then
1561 # Extract the first word of "cc", so it can be a program name with args.
1562 set dummy cc; ac_word=$2
1563 echo "$as_me:1563: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 if test -n "$CC"; then
1569 ac_cv_prog_CC="$CC" # Let the user override the test.
1572 ac_save_IFS=$IFS; IFS=$ac_path_separator
1574 for ac_dir in $ac_dummy; do
1576 test -z "$ac_dir" && ac_dir=.
1577 $as_executable_p "$ac_dir/$ac_word" || continue
1578 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1583 echo "$as_me:1583: found $ac_dir/$ac_word" >&5
1587 if test $ac_prog_rejected = yes; then
1588 # We found a bogon in the path, so make sure we never use it.
1589 set dummy $ac_cv_prog_CC
1591 if test $# != 0; then
1592 # We chose a different compiler from the bogus one.
1593 # However, it has the same basename, so the bogon will be chosen
1594 # first if we set CC to just the basename; use the full file name.
1596 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1604 if test -n "$CC"; then
1605 echo "$as_me:1605: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1608 echo "$as_me:1608: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:1619: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 ac_save_IFS=$IFS; IFS=$ac_path_separator
1629 for ac_dir in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir=.
1632 $as_executable_p "$ac_dir/$ac_word" || continue
1633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1634 echo "$as_me:1634: found $ac_dir/$ac_word" >&5
1641 if test -n "$CC"; then
1642 echo "$as_me:1642: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:1645: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$CC" && break
1652 if test -z "$CC"; then
1656 # Extract the first word of "$ac_prog", so it can be a program name with args.
1657 set dummy $ac_prog; ac_word=$2
1658 echo "$as_me:1658: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 ac_save_IFS=$IFS; IFS=$ac_path_separator
1668 for ac_dir in $ac_dummy; do
1670 test -z "$ac_dir" && ac_dir=.
1671 $as_executable_p "$ac_dir/$ac_word" || continue
1672 ac_cv_prog_ac_ct_CC="$ac_prog"
1673 echo "$as_me:1673: found $ac_dir/$ac_word" >&5
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:1681: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1684 echo "$as_me:1684: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$ac_ct_CC" && break
1696 test -z "$CC" && { { echo "$as_me:1696: error: no acceptable cc found in \$PATH" >&5
1697 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1698 { (exit 1); exit 1; }; }
1700 # Provide some information about the compiler.
1701 echo "$as_me:1701:" \
1702 "checking for C compiler version" >&5
1703 ac_compiler=`set X $ac_compile; echo $2`
1704 { (eval echo "$as_me:1704: \"$ac_compiler --version </dev/null >&5\"") >&5
1705 (eval $ac_compiler --version </dev/null >&5) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:1709: \"$ac_compiler -v </dev/null >&5\"") >&5
1710 (eval $ac_compiler -v </dev/null >&5) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714 { (eval echo "$as_me:1714: \"$ac_compiler -V </dev/null >&5\"") >&5
1715 (eval $ac_compiler -V </dev/null >&5) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1720 cat >conftest.$ac_ext <<_ACEOF
1721 #line 1721 "configure"
1722 #include "confdefs.h"
1732 ac_clean_files_save=$ac_clean_files
1733 ac_clean_files="$ac_clean_files a.out a.exe"
1734 # Try to create an executable without -o first, disregard a.out.
1735 # It will help us diagnose broken compilers, and finding out an intuition
1737 echo "$as_me:1737: checking for C compiler default output" >&5
1738 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1739 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1740 if { (eval echo "$as_me:1740: \"$ac_link_default\"") >&5
1741 (eval $ac_link_default) 2>&5
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); }; then
1745 # Find the output, starting from the most likely. This scheme is
1746 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1749 ls a.out conftest 2>/dev/null;
1750 ls a.* conftest.* 2>/dev/null`; do
1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1753 a.out ) # We found the default executable, but exeext='' is most
1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1764 echo "$as_me: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 { { echo "$as_me:1766: error: C compiler cannot create executables" >&5
1767 echo "$as_me: error: C compiler cannot create executables" >&2;}
1768 { (exit 77); exit 77; }; }
1771 ac_exeext=$ac_cv_exeext
1772 echo "$as_me:1772: result: $ac_file" >&5
1773 echo "${ECHO_T}$ac_file" >&6
1775 # Check the compiler produces executables we can run. If not, either
1776 # the compiler is broken, or we cross compile.
1777 echo "$as_me:1777: checking whether the C compiler works" >&5
1778 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1779 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1780 # If not cross compiling, check that we can run a simple program.
1781 if test "$cross_compiling" != yes; then
1782 if { ac_try='./$ac_file'
1783 { (eval echo "$as_me:1783: \"$ac_try\"") >&5
1786 echo "$as_me:1786: \$? = $ac_status" >&5
1787 (exit $ac_status); }; }; then
1790 if test "$cross_compiling" = maybe; then
1793 { { echo "$as_me:1793: error: cannot run C compiled programs.
1794 If you meant to cross compile, use \`--host'." >&5
1795 echo "$as_me: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&2;}
1797 { (exit 1); exit 1; }; }
1801 echo "$as_me:1801: result: yes" >&5
1802 echo "${ECHO_T}yes" >&6
1804 rm -f a.out a.exe conftest$ac_cv_exeext
1805 ac_clean_files=$ac_clean_files_save
1806 # Check the compiler produces executables we can run. If not, either
1807 # the compiler is broken, or we cross compile.
1808 echo "$as_me:1808: checking whether we are cross compiling" >&5
1809 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1810 echo "$as_me:1810: result: $cross_compiling" >&5
1811 echo "${ECHO_T}$cross_compiling" >&6
1813 echo "$as_me:1813: checking for executable suffix" >&5
1814 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1815 if { (eval echo "$as_me:1815: \"$ac_link\"") >&5
1816 (eval $ac_link) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1821 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1822 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 { { echo "$as_me:1834: error: cannot compute EXEEXT: cannot compile and link" >&5
1835 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1836 { (exit 1); exit 1; }; }
1839 rm -f conftest$ac_cv_exeext
1840 echo "$as_me:1840: result: $ac_cv_exeext" >&5
1841 echo "${ECHO_T}$ac_cv_exeext" >&6
1843 rm -f conftest.$ac_ext
1844 EXEEXT=$ac_cv_exeext
1846 echo "$as_me:1846: checking for object suffix" >&5
1847 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1848 if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line 1852 "configure"
1853 #include "confdefs.h"
1863 rm -f conftest.o conftest.obj
1864 if { (eval echo "$as_me:1864: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1867 echo "$as_me:1867: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1877 echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 { { echo "$as_me:1879: error: cannot compute OBJEXT: cannot compile" >&5
1880 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1881 { (exit 1); exit 1; }; }
1884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1886 echo "$as_me:1886: result: $ac_cv_objext" >&5
1887 echo "${ECHO_T}$ac_cv_objext" >&6
1888 OBJEXT=$ac_cv_objext
1890 echo "$as_me:1890: checking whether we are using the GNU C compiler" >&5
1891 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1892 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 cat >conftest.$ac_ext <<_ACEOF
1896 #line 1896 "configure"
1897 #include "confdefs.h"
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1932 echo "$as_me:1932: result: $ac_cv_c_compiler_gnu" >&5
1933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1934 GCC=`test $ac_compiler_gnu = yes && echo yes`
1935 ac_test_CFLAGS=${CFLAGS+set}
1936 ac_save_CFLAGS=$CFLAGS
1938 echo "$as_me:1938: checking whether $CC accepts -g" >&5
1939 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1940 if test "${ac_cv_prog_cc_g+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line 1944 "configure"
1945 #include "confdefs.h"
1955 rm -f conftest.$ac_objext
1956 if { (eval echo "$as_me:1956: \"$ac_compile\"") >&5
1957 (eval $ac_compile) 2>&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); } &&
1961 { ac_try='test -s conftest.$ac_objext'
1962 { (eval echo "$as_me:1962: \"$ac_try\"") >&5
1965 echo "$as_me:1965: \$? = $ac_status" >&5
1966 (exit $ac_status); }; }; then
1969 echo "$as_me: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1973 rm -f conftest.$ac_objext conftest.$ac_ext
1975 echo "$as_me:1975: result: $ac_cv_prog_cc_g" >&5
1976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1977 if test "$ac_test_CFLAGS" = set; then
1978 CFLAGS=$ac_save_CFLAGS
1979 elif test $ac_cv_prog_cc_g = yes; then
1980 if test "$GCC" = yes; then
1986 if test "$GCC" = yes; then
1992 # Some people use a C++ compiler to compile C. Since we use `exit',
1993 # in C++ we need to declare it. In case someone uses the same compiler
1994 # for both compiling C and C++ we need to have the C++ compiler decide
1995 # the declaration of exit, since it's the most demanding environment.
1996 cat >conftest.$ac_ext <<_ACEOF
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>&5
2005 echo "$as_me:2005: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 for ac_declaration in \
2015 '#include <stdlib.h>' \
2016 'extern "C" void std::exit (int) throw (); using std::exit;' \
2017 'extern "C" void std::exit (int); using std::exit;' \
2018 'extern "C" void exit (int) throw ();' \
2019 'extern "C" void exit (int);' \
2022 cat >conftest.$ac_ext <<_ACEOF
2023 #line 2023 "configure"
2024 #include "confdefs.h"
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:2036: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2039 echo "$as_me:2039: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:2042: \"$ac_try\"") >&5
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 rm -f conftest.$ac_objext conftest.$ac_ext
2086 if test -n "$ac_declaration"; then
2087 echo '#ifdef __cplusplus' >>confdefs.h
2088 echo $ac_declaration >>confdefs.h
2089 echo '#endif' >>confdefs.h
2093 echo "$as_me: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 rm -f conftest.$ac_objext conftest.$ac_ext
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102 ac_main_return=return
2105 if test "$GCC" = yes ; then
2106 echo "$as_me:2106: checking version of $CC" >&5
2107 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2108 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2109 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2110 echo "$as_me:2110: result: $GCC_VERSION" >&5
2111 echo "${ECHO_T}$GCC_VERSION" >&6
2115 ac_cpp='$CPP $CPPFLAGS'
2116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119 ac_main_return=return
2120 echo "$as_me:2120: checking how to run the C preprocessor" >&5
2121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2122 # On Suns, sometimes $CPP names a directory.
2123 if test -n "$CPP" && test -d "$CPP"; then
2126 if test -z "$CPP"; then
2127 if test "${ac_cv_prog_CPP+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 # Double quotes because CPP needs to be expanded
2131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2134 for ac_c_preproc_warn_flag in '' yes
2136 # Use a header file that comes with gcc, so configuring glibc
2137 # with a fresh cross-compiler works.
2138 # On the NeXT, cc -E runs the code through the compiler's parser,
2139 # not just through cpp. "Syntax error" is here to catch this case.
2140 cat >conftest.$ac_ext <<_ACEOF
2141 #line 2141 "configure"
2142 #include "confdefs.h"
2146 if { (eval echo "$as_me:2146: \"$ac_cpp conftest.$ac_ext\"") >&5
2147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2149 egrep -v '^ *\+' conftest.er1 >conftest.err
2151 cat conftest.err >&5
2152 echo "$as_me:2152: \$? = $ac_status" >&5
2153 (exit $ac_status); } >/dev/null; then
2154 if test -s conftest.err; then
2155 ac_cpp_err=$ac_c_preproc_warn_flag
2162 if test -z "$ac_cpp_err"; then
2165 echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 # Broken: fails on valid input.
2170 rm -f conftest.err conftest.$ac_ext
2172 # OK, works on sane cases. Now check whether non-existent headers
2173 # can be detected and how.
2174 cat >conftest.$ac_ext <<_ACEOF
2175 #line 2175 "configure"
2176 #include "confdefs.h"
2177 #include <ac_nonexistent.h>
2179 if { (eval echo "$as_me:2179: \"$ac_cpp conftest.$ac_ext\"") >&5
2180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2182 egrep -v '^ *\+' conftest.er1 >conftest.err
2184 cat conftest.err >&5
2185 echo "$as_me:2185: \$? = $ac_status" >&5
2186 (exit $ac_status); } >/dev/null; then
2187 if test -s conftest.err; then
2188 ac_cpp_err=$ac_c_preproc_warn_flag
2195 if test -z "$ac_cpp_err"; then
2196 # Broken: success on invalid input.
2199 echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 # Passes both tests.
2205 rm -f conftest.err conftest.$ac_ext
2208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2209 rm -f conftest.err conftest.$ac_ext
2210 if $ac_preproc_ok; then
2222 echo "$as_me:2222: result: $CPP" >&5
2223 echo "${ECHO_T}$CPP" >&6
2225 for ac_c_preproc_warn_flag in '' yes
2227 # Use a header file that comes with gcc, so configuring glibc
2228 # with a fresh cross-compiler works.
2229 # On the NeXT, cc -E runs the code through the compiler's parser,
2230 # not just through cpp. "Syntax error" is here to catch this case.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #line 2232 "configure"
2233 #include "confdefs.h"
2237 if { (eval echo "$as_me:2237: \"$ac_cpp conftest.$ac_ext\"") >&5
2238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2240 egrep -v '^ *\+' conftest.er1 >conftest.err
2242 cat conftest.err >&5
2243 echo "$as_me:2243: \$? = $ac_status" >&5
2244 (exit $ac_status); } >/dev/null; then
2245 if test -s conftest.err; then
2246 ac_cpp_err=$ac_c_preproc_warn_flag
2253 if test -z "$ac_cpp_err"; then
2256 echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 # Broken: fails on valid input.
2261 rm -f conftest.err conftest.$ac_ext
2263 # OK, works on sane cases. Now check whether non-existent headers
2264 # can be detected and how.
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line 2266 "configure"
2267 #include "confdefs.h"
2268 #include <ac_nonexistent.h>
2270 if { (eval echo "$as_me:2270: \"$ac_cpp conftest.$ac_ext\"") >&5
2271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2273 egrep -v '^ *\+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:2276: \$? = $ac_status" >&5
2277 (exit $ac_status); } >/dev/null; then
2278 if test -s conftest.err; then
2279 ac_cpp_err=$ac_c_preproc_warn_flag
2286 if test -z "$ac_cpp_err"; then
2287 # Broken: success on invalid input.
2290 echo "$as_me: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2292 # Passes both tests.
2296 rm -f conftest.err conftest.$ac_ext
2299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2300 rm -f conftest.err conftest.$ac_ext
2301 if $ac_preproc_ok; then
2304 { { echo "$as_me:2304: error: C preprocessor \"$CPP\" fails sanity check" >&5
2305 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2306 { (exit 1); exit 1; }; }
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 ac_main_return=return
2316 if test $ac_cv_c_compiler_gnu = yes; then
2317 echo "$as_me:2317: checking whether $CC needs -traditional" >&5
2318 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2319 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 ac_pattern="Autoconf.*'x'"
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line 2324 "configure"
2325 #include "confdefs.h"
2327 int Autoconf = TIOCGETP;
2329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2330 egrep "$ac_pattern" >/dev/null 2>&1; then
2331 ac_cv_prog_gcc_traditional=yes
2333 ac_cv_prog_gcc_traditional=no
2337 if test $ac_cv_prog_gcc_traditional = no; then
2338 cat >conftest.$ac_ext <<_ACEOF
2339 #line 2339 "configure"
2340 #include "confdefs.h"
2342 int Autoconf = TCGETA;
2344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2345 egrep "$ac_pattern" >/dev/null 2>&1; then
2346 ac_cv_prog_gcc_traditional=yes
2352 echo "$as_me:2352: result: $ac_cv_prog_gcc_traditional" >&5
2353 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2354 if test $ac_cv_prog_gcc_traditional = yes; then
2355 CC="$CC -traditional"
2359 echo "$as_me:2359: checking whether $CC understands -c and -o together" >&5
2360 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2361 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat > conftest.$ac_ext <<CF_EOF
2369 ${cf_cv_main_return:-return}(0);
2372 # We do the test twice because some compilers refuse to overwrite an
2373 # existing .o file with -o, though they will create one.
2374 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2375 if { (eval echo "$as_me:2375: \"$ac_try\"") >&5
2378 echo "$as_me:2378: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 test -f conftest2.$ac_objext && { (eval echo "$as_me:2380: \"$ac_try\"") >&5
2383 echo "$as_me:2383: \$? = $ac_status" >&5
2384 (exit $ac_status); };
2386 eval cf_cv_prog_CC_c_o=yes
2388 eval cf_cv_prog_CC_c_o=no
2393 if test $cf_cv_prog_CC_c_o = yes; then
2394 echo "$as_me:2394: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6
2397 echo "$as_me:2397: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2401 echo "$as_me:2401: checking for POSIXized ISC" >&5
2402 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2403 if test -d /etc/conf/kconfig.d &&
2404 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2406 echo "$as_me:2406: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6
2408 ISC=yes # If later tests want to check for ISC.
2410 cat >>confdefs.h <<\EOF
2411 #define _POSIX_SOURCE 1
2414 if test "$GCC" = yes; then
2420 echo "$as_me:2420: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2425 echo "$as_me:2425: checking for ${CC:-cc} option to accept ANSI C" >&5
2426 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2427 if test "${cf_cv_ansi_cc+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cf_save_CFLAGS="$CFLAGS"
2433 cf_save_CPPFLAGS="$CPPFLAGS"
2434 # Don't try gcc -ansi; that turns off useful extensions and
2435 # breaks some systems' header files.
2436 # AIX -qlanglvl=ansi
2437 # Ultrix and OSF/1 -std1
2438 # HP-UX -Aa -D_HPUX_SOURCE
2440 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2441 for cf_arg in "-DCC_HAS_PROTOS" \
2446 "-Aa -D_HPUX_SOURCE" \
2453 cf_new_extra_cppflags=
2455 for cf_add_cflags in $cf_arg
2457 case $cf_fix_cppflags in
2459 case $cf_add_cflags in #(vi
2460 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2461 case $cf_add_cflags in
2463 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2465 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2466 && test -z "${cf_tst_cflags}" \
2467 && cf_fix_cppflags=yes
2469 if test $cf_fix_cppflags = yes ; then
2470 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2472 elif test "${cf_tst_cflags}" = "\"'" ; then
2473 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2479 *$cf_add_cflags) #(vi
2482 case $cf_add_cflags in #(vi
2484 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2486 CPPFLAGS=`echo "$CPPFLAGS" | \
2487 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2488 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2492 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2497 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2502 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2504 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2506 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2507 && test -z "${cf_tst_cflags}" \
2508 && cf_fix_cppflags=no
2513 if test -n "$cf_new_cflags" ; then
2515 CFLAGS="$CFLAGS $cf_new_cflags"
2518 if test -n "$cf_new_cppflags" ; then
2520 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2523 if test -n "$cf_new_extra_cppflags" ; then
2525 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2528 cat >conftest.$ac_ext <<_ACEOF
2529 #line 2529 "configure"
2530 #include "confdefs.h"
2532 #ifndef CC_HAS_PROTOS
2533 #if !defined(__STDC__) || (__STDC__ != 1)
2542 int test (int i, double x);
2543 struct s1 {int (*f) (int a);};
2544 struct s2 {int (*f) (double a);};
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:2550: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2553 echo "$as_me:2553: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:2556: \"$ac_try\"") >&5
2559 echo "$as_me:2559: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2561 cf_cv_ansi_cc="$cf_arg"; break
2563 echo "$as_me: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 rm -f conftest.$ac_objext conftest.$ac_ext
2568 CFLAGS="$cf_save_CFLAGS"
2569 CPPFLAGS="$cf_save_CPPFLAGS"
2572 echo "$as_me:2572: result: $cf_cv_ansi_cc" >&5
2573 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2575 if test "$cf_cv_ansi_cc" != "no"; then
2576 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2581 cf_new_extra_cppflags=
2583 for cf_add_cflags in $cf_cv_ansi_cc
2585 case $cf_fix_cppflags in
2587 case $cf_add_cflags in #(vi
2588 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2589 case $cf_add_cflags in
2591 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2593 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2594 && test -z "${cf_tst_cflags}" \
2595 && cf_fix_cppflags=yes
2597 if test $cf_fix_cppflags = yes ; then
2598 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2600 elif test "${cf_tst_cflags}" = "\"'" ; then
2601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2607 *$cf_add_cflags) #(vi
2610 case $cf_add_cflags in #(vi
2612 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2614 CPPFLAGS=`echo "$CPPFLAGS" | \
2615 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2616 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2620 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2625 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2634 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2635 && test -z "${cf_tst_cflags}" \
2636 && cf_fix_cppflags=no
2641 if test -n "$cf_new_cflags" ; then
2643 CFLAGS="$CFLAGS $cf_new_cflags"
2646 if test -n "$cf_new_cppflags" ; then
2648 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2651 if test -n "$cf_new_extra_cppflags" ; then
2653 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2657 cat >>confdefs.h <<\EOF
2658 #define CC_HAS_PROTOS 1
2664 if test "$cf_cv_ansi_cc" = "no"; then
2665 { { echo "$as_me:2665: error: Your compiler does not appear to recognize prototypes.
2666 You have the following choices:
2667 a. adjust your compiler options
2668 b. get an up-to-date compiler
2669 c. use a wrapper such as unproto" >&5
2670 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2671 You have the following choices:
2672 a. adjust your compiler options
2673 b. get an up-to-date compiler
2674 c. use a wrapper such as unproto" >&2;}
2675 { (exit 1); exit 1; }; }
2678 case $cf_cv_system_name in
2680 CFLAGS="$CFLAGS -Zmt"
2681 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2682 CXXFLAGS="$CXXFLAGS -Zmt"
2683 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2684 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2691 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2692 #define PROG_EXT "$PROG_EXT"
2695 if test "$cross_compiling" = yes ; then
2698 case "$cf_cv_system_name" in #(vi
2699 dragonfly*|freebsd*) #(vi
2700 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2702 *) LDPATH=$PATH:/sbin:/usr/sbin
2703 # Extract the first word of "ldconfig", so it can be a program name with args.
2704 set dummy ldconfig; ac_word=$2
2705 echo "$as_me:2705: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2707 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2715 ac_save_IFS=$IFS; IFS=$ac_path_separator
2717 for ac_dir in $ac_dummy; do
2719 test -z "$ac_dir" && ac_dir=.
2720 if $as_executable_p "$ac_dir/$ac_word"; then
2721 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2722 echo "$as_me:2722: found $ac_dir/$ac_word" >&5
2730 LDCONFIG=$ac_cv_path_LDCONFIG
2732 if test -n "$LDCONFIG"; then
2733 echo "$as_me:2733: result: $LDCONFIG" >&5
2734 echo "${ECHO_T}$LDCONFIG" >&6
2736 echo "$as_me:2736: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2744 echo "$as_me:2744: checking if you want to ensure bool is consistent with C++" >&5
2745 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2747 # Check whether --with-cxx or --without-cxx was given.
2748 if test "${with_cxx+set}" = set; then
2750 cf_with_cxx=$withval
2754 echo "$as_me:2754: result: $cf_with_cxx" >&5
2755 echo "${ECHO_T}$cf_with_cxx" >&6
2756 if test "X$cf_with_cxx" = Xno ; then
2760 # with autoconf 2.13, we can change the error to a warning:
2762 ac_cpp='$CXXCPP $CPPFLAGS'
2763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2766 ac_main_return=return
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 echo "$as_me:2772: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2780 ac_save_IFS=$IFS; IFS=$ac_path_separator
2782 for ac_dir in $ac_dummy; do
2784 test -z "$ac_dir" && ac_dir=.
2785 $as_executable_p "$ac_dir/$ac_word" || continue
2786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2787 echo "$as_me:2787: found $ac_dir/$ac_word" >&5
2794 if test -n "$CXX"; then
2795 echo "$as_me:2795: result: $CXX" >&5
2796 echo "${ECHO_T}$CXX" >&6
2798 echo "$as_me:2798: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2802 test -n "$CXX" && break
2805 if test -z "$CXX"; then
2807 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 echo "$as_me:2811: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CXX"; then
2817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819 ac_save_IFS=$IFS; IFS=$ac_path_separator
2821 for ac_dir in $ac_dummy; do
2823 test -z "$ac_dir" && ac_dir=.
2824 $as_executable_p "$ac_dir/$ac_word" || continue
2825 ac_cv_prog_ac_ct_CXX="$ac_prog"
2826 echo "$as_me:2826: found $ac_dir/$ac_word" >&5
2832 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2833 if test -n "$ac_ct_CXX"; then
2834 echo "$as_me:2834: result: $ac_ct_CXX" >&5
2835 echo "${ECHO_T}$ac_ct_CXX" >&6
2837 echo "$as_me:2837: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2841 test -n "$ac_ct_CXX" && break
2843 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2848 # Provide some information about the compiler.
2849 echo "$as_me:2849:" \
2850 "checking for C++ compiler version" >&5
2851 ac_compiler=`set X $ac_compile; echo $2`
2852 { (eval echo "$as_me:2852: \"$ac_compiler --version </dev/null >&5\"") >&5
2853 (eval $ac_compiler --version </dev/null >&5) 2>&5
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (eval echo "$as_me:2857: \"$ac_compiler -v </dev/null >&5\"") >&5
2858 (eval $ac_compiler -v </dev/null >&5) 2>&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862 { (eval echo "$as_me:2862: \"$ac_compiler -V </dev/null >&5\"") >&5
2863 (eval $ac_compiler -V </dev/null >&5) 2>&5
2865 echo "$as_me:2865: \$? = $ac_status" >&5
2866 (exit $ac_status); }
2868 echo "$as_me:2868: checking whether we are using the GNU C++ compiler" >&5
2869 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2870 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 cat >conftest.$ac_ext <<_ACEOF
2874 #line 2874 "configure"
2875 #include "confdefs.h"
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:2889: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>&5
2892 echo "$as_me:2892: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:2895: \"$ac_try\"") >&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2906 rm -f conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2910 echo "$as_me:2910: result: $ac_cv_cxx_compiler_gnu" >&5
2911 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2912 GXX=`test $ac_compiler_gnu = yes && echo yes`
2913 ac_test_CXXFLAGS=${CXXFLAGS+set}
2914 ac_save_CXXFLAGS=$CXXFLAGS
2916 echo "$as_me:2916: checking whether $CXX accepts -g" >&5
2917 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2918 if test "${ac_cv_prog_cxx_g+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line 2922 "configure"
2923 #include "confdefs.h"
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:2934: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>&5
2937 echo "$as_me:2937: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:2940: \"$ac_try\"") >&5
2943 echo "$as_me:2943: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_cv_prog_cxx_g=yes
2947 echo "$as_me: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2951 rm -f conftest.$ac_objext conftest.$ac_ext
2953 echo "$as_me:2953: result: $ac_cv_prog_cxx_g" >&5
2954 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2955 if test "$ac_test_CXXFLAGS" = set; then
2956 CXXFLAGS=$ac_save_CXXFLAGS
2957 elif test $ac_cv_prog_cxx_g = yes; then
2958 if test "$GXX" = yes; then
2964 if test "$GXX" = yes; then
2970 for ac_declaration in \
2972 '#include <stdlib.h>' \
2973 'extern "C" void std::exit (int) throw (); using std::exit;' \
2974 'extern "C" void std::exit (int); using std::exit;' \
2975 'extern "C" void exit (int) throw ();' \
2976 'extern "C" void exit (int);' \
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line 2980 "configure"
2981 #include "confdefs.h"
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:2993: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>&5
2996 echo "$as_me:2996: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:2999: \"$ac_try\"") >&5
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3006 echo "$as_me: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3010 rm -f conftest.$ac_objext conftest.$ac_ext
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line 3012 "configure"
3013 #include "confdefs.h"
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:3024: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>&5
3027 echo "$as_me:3027: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:3030: \"$ac_try\"") >&5
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3037 echo "$as_me: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 rm -f conftest.$ac_objext conftest.$ac_ext
3043 if test -n "$ac_declaration"; then
3044 echo '#ifdef __cplusplus' >>confdefs.h
3045 echo $ac_declaration >>confdefs.h
3046 echo '#endif' >>confdefs.h
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_main_return=return
3056 # autoconf 2.5x removed the error - by hardcoding it to g++.
3057 if test "$CXX" = "g++" ; then
3058 # Extract the first word of "g++", so it can be a program name with args.
3059 set dummy g++; ac_word=$2
3060 echo "$as_me:3060: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_path_CXX+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3070 ac_save_IFS=$IFS; IFS=$ac_path_separator
3072 for ac_dir in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if $as_executable_p "$ac_dir/$ac_word"; then
3076 ac_cv_path_CXX="$ac_dir/$ac_word"
3077 echo "$as_me:3077: found $ac_dir/$ac_word" >&5
3087 if test -n "$CXX"; then
3088 echo "$as_me:3088: result: $CXX" >&5
3089 echo "${ECHO_T}$CXX" >&6
3091 echo "$as_me:3091: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3096 if test "$CXX" = "g++" ; then
3097 { echo "$as_me:3097: WARNING: ignoring hardcoded g++" >&5
3098 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3099 cf_with_cxx=no; CXX=""; GXX="";
3104 if test "$GXX" = yes; then
3105 echo "$as_me:3105: checking version of g++" >&5
3106 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3107 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3108 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3109 echo "$as_me:3109: result: $GXX_VERSION" >&5
3110 echo "${ECHO_T}$GXX_VERSION" >&6
3113 case $GXX_VERSION in
3115 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3117 { echo "$as_me:3117: WARNING: templates do not work" >&5
3118 echo "$as_me: WARNING: templates do not work" >&2;}
3122 echo "$as_me:3122: checking if you want to build C++ binding and demo" >&5
3123 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3125 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3126 if test "${with_cxx_binding+set}" = set; then
3127 withval="$with_cxx_binding"
3128 cf_with_cxx_binding=$withval
3130 cf_with_cxx_binding=$cf_with_cxx
3132 echo "$as_me:3132: result: $cf_with_cxx_binding" >&5
3133 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3135 echo "$as_me:3135: checking if you want to build with Ada95" >&5
3136 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3138 # Check whether --with-ada or --without-ada was given.
3139 if test "${with_ada+set}" = set; then
3141 cf_with_ada=$withval
3145 echo "$as_me:3145: result: $cf_with_ada" >&5
3146 echo "${ECHO_T}$cf_with_ada" >&6
3148 echo "$as_me:3148: checking if you want to install manpages" >&5
3149 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3151 # Check whether --with-manpages or --without-manpages was given.
3152 if test "${with_manpages+set}" = set; then
3153 withval="$with_manpages"
3154 cf_with_manpages=$withval
3156 cf_with_manpages=yes
3158 echo "$as_me:3158: result: $cf_with_manpages" >&5
3159 echo "${ECHO_T}$cf_with_manpages" >&6
3161 echo "$as_me:3161: checking if you want to build programs such as tic" >&5
3162 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3164 # Check whether --with-progs or --without-progs was given.
3165 if test "${with_progs+set}" = set; then
3166 withval="$with_progs"
3167 cf_with_progs=$withval
3171 echo "$as_me:3171: result: $cf_with_progs" >&5
3172 echo "${ECHO_T}$cf_with_progs" >&6
3174 echo "$as_me:3174: checking if you want to build test-programs" >&5
3175 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3177 # Check whether --with-tests or --without-tests was given.
3178 if test "${with_tests+set}" = set; then
3179 withval="$with_tests"
3180 cf_with_tests=$withval
3184 echo "$as_me:3184: result: $cf_with_tests" >&5
3185 echo "${ECHO_T}$cf_with_tests" >&6
3187 echo "$as_me:3187: checking if you wish to install curses.h" >&5
3188 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3190 # Check whether --with-curses-h or --without-curses-h was given.
3191 if test "${with_curses_h+set}" = set; then
3192 withval="$with_curses_h"
3193 with_curses_h=$withval
3197 echo "$as_me:3197: result: $with_curses_h" >&5
3198 echo "${ECHO_T}$with_curses_h" >&6
3200 modules_to_build="ncurses"
3201 if test "X$cf_with_progs" != Xno ; then
3202 modules_to_build="$modules_to_build progs tack"
3204 modules_to_build="$modules_to_build panel menu form"
3206 test "$program_prefix" != NONE &&
3207 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3208 # Use a double $ so make ignores it.
3209 test "$program_suffix" != NONE &&
3210 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3211 # Double any \ or $. echo might interpret backslashes.
3212 # By default was `s,x,x', remove it if useless.
3213 cat <<\_ACEOF >conftest.sed
3214 s/[\\$]/&&/g;s/;s,x,x,$//
3216 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3219 for ac_prog in mawk gawk nawk awk
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 echo "$as_me:3223: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225 if test "${ac_cv_prog_AWK+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if test -n "$AWK"; then
3229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3231 ac_save_IFS=$IFS; IFS=$ac_path_separator
3233 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 $as_executable_p "$ac_dir/$ac_word" || continue
3237 ac_cv_prog_AWK="$ac_prog"
3238 echo "$as_me:3238: found $ac_dir/$ac_word" >&5
3245 if test -n "$AWK"; then
3246 echo "$as_me:3246: result: $AWK" >&5
3247 echo "${ECHO_T}$AWK" >&6
3249 echo "$as_me:3249: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 test -n "$AWK" && break
3256 test -z "$AWK" && { { echo "$as_me:3256: error: No awk program found" >&5
3257 echo "$as_me: error: No awk program found" >&2;}
3258 { (exit 1); exit 1; }; }
3260 echo "$as_me:3260: checking for egrep" >&5
3261 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3262 if test "${ac_cv_prog_egrep+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3266 then ac_cv_prog_egrep='grep -E'
3267 else ac_cv_prog_egrep='egrep'
3270 echo "$as_me:3270: result: $ac_cv_prog_egrep" >&5
3271 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3272 EGREP=$ac_cv_prog_egrep
3274 test -z "$EGREP" && { { echo "$as_me:3274: error: No egrep program found" >&5
3275 echo "$as_me: error: No egrep program found" >&2;}
3276 { (exit 1); exit 1; }; }
3278 # Find a good install program. We prefer a C program (faster),
3279 # so one script is as good as another. But avoid the broken or
3280 # incompatible versions:
3281 # SysV /etc/install, /usr/sbin/install
3282 # SunOS /usr/etc/install
3283 # IRIX /sbin/install
3285 # AmigaOS /C/install, which installs bootblocks on floppy discs
3286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3289 # ./install, which can be erroneously created by make from ./install.sh.
3290 echo "$as_me:3290: checking for a BSD compatible install" >&5
3291 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3292 if test -z "$INSTALL"; then
3293 if test "${ac_cv_path_install+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_save_IFS=$IFS; IFS=$ac_path_separator
3297 for ac_dir in $PATH; do
3299 # Account for people who put trailing slashes in PATH elements.
3301 / | ./ | .// | /cC/* \
3302 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3305 # OSF1 and SCO ODT 3.0 have their own names for install.
3306 # Don't use installbsd from OSF since it installs stuff as root
3308 for ac_prog in ginstall scoinst install; do
3309 if $as_executable_p "$ac_dir/$ac_prog"; then
3310 if test $ac_prog = install &&
3311 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3312 # AIX install. It has an incompatible calling convention.
3314 elif test $ac_prog = install &&
3315 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3316 # program-specific install script used by HP pwplus--don't use.
3319 ac_cv_path_install="$ac_dir/$ac_prog -c"
3329 if test "${ac_cv_path_install+set}" = set; then
3330 INSTALL=$ac_cv_path_install
3332 # As a last resort, use the slow shell script. We don't cache a
3333 # path for INSTALL within a source directory, because that will
3334 # break other packages using the cache if that directory is
3335 # removed, or if the path is relative.
3336 INSTALL=$ac_install_sh
3339 echo "$as_me:3339: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3354 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3355 test -z "$cf_dir" && cf_dir=.
3356 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3360 for ac_prog in tdlint lint alint splint lclint
3362 # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 echo "$as_me:3364: checking for $ac_word" >&5
3365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366 if test "${ac_cv_prog_LINT+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if test -n "$LINT"; then
3370 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3372 ac_save_IFS=$IFS; IFS=$ac_path_separator
3374 for ac_dir in $ac_dummy; do
3376 test -z "$ac_dir" && ac_dir=.
3377 $as_executable_p "$ac_dir/$ac_word" || continue
3378 ac_cv_prog_LINT="$ac_prog"
3379 echo "$as_me:3379: found $ac_dir/$ac_word" >&5
3385 LINT=$ac_cv_prog_LINT
3386 if test -n "$LINT"; then
3387 echo "$as_me:3387: result: $LINT" >&5
3388 echo "${ECHO_T}$LINT" >&6
3390 echo "$as_me:3390: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3394 test -n "$LINT" && break
3397 echo "$as_me:3397: checking whether ln -s works" >&5
3398 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3400 if test "$LN_S" = "ln -s"; then
3401 echo "$as_me:3401: result: yes" >&5
3402 echo "${ECHO_T}yes" >&6
3404 echo "$as_me:3404: result: no, using $LN_S" >&5
3405 echo "${ECHO_T}no, using $LN_S" >&6
3408 echo "$as_me:3408: checking if $LN_S -f options work" >&5
3409 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3411 rm -f conf$$.src conf$$dst
3413 echo first >conf$$.src
3414 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3419 rm -f conf$$.dst conf$$src
3420 echo "$as_me:3420: result: $cf_prog_ln_sf" >&5
3421 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3423 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3425 echo "$as_me:3425: checking for long file names" >&5
3426 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3427 if test "${ac_cv_sys_long_file_names+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 ac_cv_sys_long_file_names=yes
3431 # Test for long file names in all the places we know might matter:
3432 # . the current directory, where building will happen
3433 # $prefix/lib where we will be installing things
3434 # $exec_prefix/lib likewise
3435 # eval it to expand exec_prefix.
3436 # $TMPDIR if set, where it might want to write temporary files
3437 # if $TMPDIR is not set:
3438 # /tmp where it might want to write temporary files
3441 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3444 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3446 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3447 test -d $ac_dir || continue
3448 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3449 ac_xdir=$ac_dir/cf$$
3450 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3451 ac_tf1=$ac_xdir/conftest9012345
3452 ac_tf2=$ac_xdir/conftest9012346
3453 (echo 1 >$ac_tf1) 2>/dev/null
3454 (echo 2 >$ac_tf2) 2>/dev/null
3455 ac_val=`cat $ac_tf1 2>/dev/null`
3456 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3457 ac_cv_sys_long_file_names=no
3458 rm -rf $ac_xdir 2>/dev/null
3461 rm -rf $ac_xdir 2>/dev/null
3464 echo "$as_me:3464: result: $ac_cv_sys_long_file_names" >&5
3465 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3466 if test $ac_cv_sys_long_file_names = yes; then
3468 cat >>confdefs.h <<\EOF
3469 #define HAVE_LONG_FILE_NAMES 1
3474 # if we find pkg-config, check if we should install the ".pc" files.
3476 echo "$as_me:3476: checking if you want to use pkg-config" >&5
3477 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3479 # Check whether --with-pkg-config or --without-pkg-config was given.
3480 if test "${with_pkg_config+set}" = set; then
3481 withval="$with_pkg_config"
3482 cf_pkg_config=$withval
3486 echo "$as_me:3486: result: $cf_pkg_config" >&5
3487 echo "${ECHO_T}$cf_pkg_config" >&6
3489 case $cf_pkg_config in #(vi
3494 # Extract the first word of "pkg-config", so it can be a program name with args.
3495 set dummy pkg-config; ac_word=$2
3496 echo "$as_me:3496: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3506 ac_save_IFS=$IFS; IFS=$ac_path_separator
3508 for ac_dir in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir=.
3511 if $as_executable_p "$ac_dir/$ac_word"; then
3512 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3513 echo "$as_me:3513: found $ac_dir/$ac_word" >&5
3518 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3522 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3524 if test -n "$PKG_CONFIG"; then
3525 echo "$as_me:3525: result: $PKG_CONFIG" >&5
3526 echo "${ECHO_T}$PKG_CONFIG" >&6
3528 echo "$as_me:3528: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3538 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3539 if test "$PKG_CONFIG" != none ; then
3541 if test "x$prefix" != xNONE; then
3542 cf_path_syntax="$prefix"
3544 cf_path_syntax="$ac_default_prefix"
3547 case ".$PKG_CONFIG" in #(vi
3548 .\$\(*\)*|.\'*\'*) #(vi
3552 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3555 eval PKG_CONFIG="$PKG_CONFIG"
3556 case ".$PKG_CONFIG" in #(vi
3558 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3563 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3566 { { echo "$as_me:3566: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3567 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3568 { (exit 1); exit 1; }; }
3574 if test "$PKG_CONFIG" != no ; then
3575 echo "$as_me:3575: checking if we should install .pc files for $PKG_CONFIG" >&5
3576 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3578 # Leave this as something that can be overridden in the environment.
3579 if test -z "$PKG_CONFIG_LIBDIR" ; then
3580 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3582 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3583 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3585 # Check whether --enable-pc-files or --disable-pc-files was given.
3586 if test "${enable_pc_files+set}" = set; then
3587 enableval="$enable_pc_files"
3588 enable_pc_files=$enableval
3592 echo "$as_me:3592: result: $enable_pc_files" >&5
3593 echo "${ECHO_T}$enable_pc_files" >&6
3595 echo "$as_me:3595: result: no" >&5
3596 echo "${ECHO_T}no" >&6
3597 { echo "$as_me:3597: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3598 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3603 echo "$as_me:3603: checking if we should assume mixed-case filenames" >&5
3604 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3606 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3607 if test "${enable_mixed_case+set}" = set; then
3608 enableval="$enable_mixed_case"
3609 enable_mixedcase=$enableval
3611 enable_mixedcase=auto
3613 echo "$as_me:3613: result: $enable_mixedcase" >&5
3614 echo "${ECHO_T}$enable_mixedcase" >&6
3615 if test "$enable_mixedcase" = "auto" ; then
3617 echo "$as_me:3617: checking if filesystem supports mixed-case filenames" >&5
3618 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3619 if test "${cf_cv_mixedcase+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 if test "$cross_compiling" = yes ; then
3624 case $target_alias in #(vi
3625 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3633 rm -f conftest CONFTEST
3635 if test -f CONFTEST ; then
3640 rm -f conftest CONFTEST
3644 echo "$as_me:3644: result: $cf_cv_mixedcase" >&5
3645 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3646 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3647 #define MIXEDCASE_FILENAMES 1
3651 cf_cv_mixedcase=$enable_mixedcase
3652 if test "$enable_mixedcase" = "yes" ; then
3653 cat >>confdefs.h <<\EOF
3654 #define MIXEDCASE_FILENAMES 1
3660 # do this after mixed-case option (tags/TAGS is not as important as tic).
3661 echo "$as_me:3661: checking whether ${MAKE-make} sets \${MAKE}" >&5
3662 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3663 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3664 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 cat >conftest.make <<\EOF
3669 @echo 'ac_maketemp="${MAKE}"'
3671 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3672 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3673 if test -n "$ac_maketemp"; then
3674 eval ac_cv_prog_make_${ac_make}_set=yes
3676 eval ac_cv_prog_make_${ac_make}_set=no
3680 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3681 echo "$as_me:3681: result: yes" >&5
3682 echo "${ECHO_T}yes" >&6
3685 echo "$as_me:3685: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3687 SET_MAKE="MAKE=${MAKE-make}"
3690 for ac_prog in exctags ctags
3692 # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy $ac_prog; ac_word=$2
3694 echo "$as_me:3694: checking for $ac_word" >&5
3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3696 if test "${ac_cv_prog_CTAGS+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 if test -n "$CTAGS"; then
3700 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3702 ac_save_IFS=$IFS; IFS=$ac_path_separator
3704 for ac_dir in $ac_dummy; do
3706 test -z "$ac_dir" && ac_dir=.
3707 $as_executable_p "$ac_dir/$ac_word" || continue
3708 ac_cv_prog_CTAGS="$ac_prog"
3709 echo "$as_me:3709: found $ac_dir/$ac_word" >&5
3715 CTAGS=$ac_cv_prog_CTAGS
3716 if test -n "$CTAGS"; then
3717 echo "$as_me:3717: result: $CTAGS" >&5
3718 echo "${ECHO_T}$CTAGS" >&6
3720 echo "$as_me:3720: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3724 test -n "$CTAGS" && break
3727 for ac_prog in exetags etags
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 echo "$as_me:3731: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_ETAGS+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -n "$ETAGS"; then
3737 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3739 ac_save_IFS=$IFS; IFS=$ac_path_separator
3741 for ac_dir in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir=.
3744 $as_executable_p "$ac_dir/$ac_word" || continue
3745 ac_cv_prog_ETAGS="$ac_prog"
3746 echo "$as_me:3746: found $ac_dir/$ac_word" >&5
3752 ETAGS=$ac_cv_prog_ETAGS
3753 if test -n "$ETAGS"; then
3754 echo "$as_me:3754: result: $ETAGS" >&5
3755 echo "${ECHO_T}$ETAGS" >&6
3757 echo "$as_me:3757: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3761 test -n "$ETAGS" && break
3764 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3765 set dummy ${CTAGS:-ctags}; ac_word=$2
3766 echo "$as_me:3766: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 if test -n "$MAKE_LOWER_TAGS"; then
3772 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3774 ac_save_IFS=$IFS; IFS=$ac_path_separator
3776 for ac_dir in $ac_dummy; do
3778 test -z "$ac_dir" && ac_dir=.
3779 $as_executable_p "$ac_dir/$ac_word" || continue
3780 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3781 echo "$as_me:3781: found $ac_dir/$ac_word" >&5
3785 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3788 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3789 if test -n "$MAKE_LOWER_TAGS"; then
3790 echo "$as_me:3790: result: $MAKE_LOWER_TAGS" >&5
3791 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3793 echo "$as_me:3793: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3797 if test "$cf_cv_mixedcase" = yes ; then
3798 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3799 set dummy ${ETAGS:-etags}; ac_word=$2
3800 echo "$as_me:3800: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 if test -n "$MAKE_UPPER_TAGS"; then
3806 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3808 ac_save_IFS=$IFS; IFS=$ac_path_separator
3810 for ac_dir in $ac_dummy; do
3812 test -z "$ac_dir" && ac_dir=.
3813 $as_executable_p "$ac_dir/$ac_word" || continue
3814 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3815 echo "$as_me:3815: found $ac_dir/$ac_word" >&5
3819 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3822 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3823 if test -n "$MAKE_UPPER_TAGS"; then
3824 echo "$as_me:3824: result: $MAKE_UPPER_TAGS" >&5
3825 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3827 echo "$as_me:3827: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3835 if test "$MAKE_UPPER_TAGS" = yes ; then
3841 if test "$MAKE_LOWER_TAGS" = yes ; then
3847 echo "$as_me:3847: checking for makeflags variable" >&5
3848 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3849 if test "${cf_cv_makeflags+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3856 cat >cf_makeflags.tmp <<CF_EOF
3859 @ echo '.$cf_option'
3861 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3862 case "$cf_result" in
3864 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3865 case "$cf_result" in
3866 .*CC=*) cf_cv_makeflags=
3868 *) cf_cv_makeflags=$cf_option
3874 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3878 rm -f cf_makeflags.tmp
3881 echo "$as_me:3881: result: $cf_cv_makeflags" >&5
3882 echo "${ECHO_T}$cf_cv_makeflags" >&6
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3887 echo "$as_me:3887: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_RANLIB+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$RANLIB"; then
3893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3895 ac_save_IFS=$IFS; IFS=$ac_path_separator
3897 for ac_dir in $ac_dummy; do
3899 test -z "$ac_dir" && ac_dir=.
3900 $as_executable_p "$ac_dir/$ac_word" || continue
3901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3902 echo "$as_me:3902: found $ac_dir/$ac_word" >&5
3908 RANLIB=$ac_cv_prog_RANLIB
3909 if test -n "$RANLIB"; then
3910 echo "$as_me:3910: result: $RANLIB" >&5
3911 echo "${ECHO_T}$RANLIB" >&6
3913 echo "$as_me:3913: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3918 if test -z "$ac_cv_prog_RANLIB"; then
3919 ac_ct_RANLIB=$RANLIB
3920 # Extract the first word of "ranlib", so it can be a program name with args.
3921 set dummy ranlib; ac_word=$2
3922 echo "$as_me:3922: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$ac_ct_RANLIB"; then
3928 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3930 ac_save_IFS=$IFS; IFS=$ac_path_separator
3932 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 $as_executable_p "$ac_dir/$ac_word" || continue
3936 ac_cv_prog_ac_ct_RANLIB="ranlib"
3937 echo "$as_me:3937: found $ac_dir/$ac_word" >&5
3941 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3945 if test -n "$ac_ct_RANLIB"; then
3946 echo "$as_me:3946: result: $ac_ct_RANLIB" >&5
3947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3949 echo "$as_me:3949: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 RANLIB=$ac_ct_RANLIB
3955 RANLIB="$ac_cv_prog_RANLIB"
3958 if test -n "$ac_tool_prefix"; then
3959 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3960 set dummy ${ac_tool_prefix}ld; ac_word=$2
3961 echo "$as_me:3961: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_LD+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if test -n "$LD"; then
3967 ac_cv_prog_LD="$LD" # Let the user override the test.
3969 ac_save_IFS=$IFS; IFS=$ac_path_separator
3971 for ac_dir in $ac_dummy; do
3973 test -z "$ac_dir" && ac_dir=.
3974 $as_executable_p "$ac_dir/$ac_word" || continue
3975 ac_cv_prog_LD="${ac_tool_prefix}ld"
3976 echo "$as_me:3976: found $ac_dir/$ac_word" >&5
3983 if test -n "$LD"; then
3984 echo "$as_me:3984: result: $LD" >&5
3985 echo "${ECHO_T}$LD" >&6
3987 echo "$as_me:3987: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3992 if test -z "$ac_cv_prog_LD"; then
3994 # Extract the first word of "ld", so it can be a program name with args.
3995 set dummy ld; ac_word=$2
3996 echo "$as_me:3996: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if test -n "$ac_ct_LD"; then
4002 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4004 ac_save_IFS=$IFS; IFS=$ac_path_separator
4006 for ac_dir in $ac_dummy; do
4008 test -z "$ac_dir" && ac_dir=.
4009 $as_executable_p "$ac_dir/$ac_word" || continue
4010 ac_cv_prog_ac_ct_LD="ld"
4011 echo "$as_me:4011: found $ac_dir/$ac_word" >&5
4015 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4018 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4019 if test -n "$ac_ct_LD"; then
4020 echo "$as_me:4020: result: $ac_ct_LD" >&5
4021 echo "${ECHO_T}$ac_ct_LD" >&6
4023 echo "$as_me:4023: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4032 if test -n "$ac_tool_prefix"; then
4033 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}ar; ac_word=$2
4035 echo "$as_me:4035: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037 if test "${ac_cv_prog_AR+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 if test -n "$AR"; then
4041 ac_cv_prog_AR="$AR" # Let the user override the test.
4043 ac_save_IFS=$IFS; IFS=$ac_path_separator
4045 for ac_dir in $ac_dummy; do
4047 test -z "$ac_dir" && ac_dir=.
4048 $as_executable_p "$ac_dir/$ac_word" || continue
4049 ac_cv_prog_AR="${ac_tool_prefix}ar"
4050 echo "$as_me:4050: found $ac_dir/$ac_word" >&5
4057 if test -n "$AR"; then
4058 echo "$as_me:4058: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4061 echo "$as_me:4061: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4066 if test -z "$ac_cv_prog_AR"; then
4068 # Extract the first word of "ar", so it can be a program name with args.
4069 set dummy ar; ac_word=$2
4070 echo "$as_me:4070: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4072 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if test -n "$ac_ct_AR"; then
4076 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4078 ac_save_IFS=$IFS; IFS=$ac_path_separator
4080 for ac_dir in $ac_dummy; do
4082 test -z "$ac_dir" && ac_dir=.
4083 $as_executable_p "$ac_dir/$ac_word" || continue
4084 ac_cv_prog_ac_ct_AR="ar"
4085 echo "$as_me:4085: found $ac_dir/$ac_word" >&5
4089 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4093 if test -n "$ac_ct_AR"; then
4094 echo "$as_me:4094: result: $ac_ct_AR" >&5
4095 echo "${ECHO_T}$ac_ct_AR" >&6
4097 echo "$as_me:4097: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4106 if test -n "$ac_tool_prefix"; then
4107 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4108 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$AR"; then
4115 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
4124 echo "$as_me:4124: found $ac_dir/$ac_word" >&5
4131 if test -n "$AR"; then
4132 echo "$as_me:4132: result: $AR" >&5
4133 echo "${ECHO_T}$AR" >&6
4135 echo "$as_me:4135: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4140 if test -z "$ac_cv_prog_AR"; then
4142 # Extract the first word of "ar", so it can be a program name with args.
4143 set dummy ar; ac_word=$2
4144 echo "$as_me:4144: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$ac_ct_AR"; then
4150 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4152 ac_save_IFS=$IFS; IFS=$ac_path_separator
4154 for ac_dir in $ac_dummy; do
4156 test -z "$ac_dir" && ac_dir=.
4157 $as_executable_p "$ac_dir/$ac_word" || continue
4158 ac_cv_prog_ac_ct_AR="ar"
4159 echo "$as_me:4159: found $ac_dir/$ac_word" >&5
4163 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4166 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4167 if test -n "$ac_ct_AR"; then
4168 echo "$as_me:4168: result: $ac_ct_AR" >&5
4169 echo "${ECHO_T}$ac_ct_AR" >&6
4171 echo "$as_me:4171: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4180 echo "$as_me:4180: checking for options to update archives" >&5
4181 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4182 if test "${cf_cv_ar_flags+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cf_cv_ar_flags=unknown
4187 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4190 # check if $ARFLAGS already contains this choice
4191 if test "x$ARFLAGS" != "x" ; then
4192 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4193 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4199 rm -f conftest.$ac_cv_objext
4202 cat >conftest.$ac_ext <<EOF
4203 #line 4203 "configure"
4204 int testdata[3] = { 123, 456, 789 };
4206 if { (eval echo "$as_me:4206: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>&5
4209 echo "$as_me:4209: \$? = $ac_status" >&5
4210 (exit $ac_status); } ; then
4211 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4212 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4213 if test -f conftest.a ; then
4214 cf_cv_ar_flags=$cf_ar_flags
4218 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4220 echo "${as_me:-configure}:4220: testing cannot compile test-program ..." 1>&5
4225 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4228 echo "$as_me:4228: result: $cf_cv_ar_flags" >&5
4229 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4231 if test -n "$ARFLAGS" ; then
4232 if test -n "$cf_cv_ar_flags" ; then
4233 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4236 ARFLAGS=$cf_cv_ar_flags
4239 echo "$as_me:4239: checking if you have specified an install-prefix" >&5
4240 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4242 # Check whether --with-install-prefix or --without-install-prefix was given.
4243 if test "${with_install_prefix+set}" = set; then
4244 withval="$with_install_prefix"
4245 case "$withval" in #(vi
4248 *) DESTDIR="$withval"
4252 echo "$as_me:4252: result: $DESTDIR" >&5
4253 echo "${ECHO_T}$DESTDIR" >&6
4255 ###############################################################################
4257 # If we're cross-compiling, allow the user to override the tools and their
4258 # options. The configure script is oriented toward identifying the host
4259 # compiler, etc., but we need a build compiler to generate parts of the source.
4261 if test "$cross_compiling" = yes ; then
4263 # defaults that we might want to override
4264 : ${BUILD_CFLAGS:=''}
4265 : ${BUILD_CPPFLAGS:=''}
4266 : ${BUILD_LDFLAGS:=''}
4268 : ${BUILD_EXEEXT:='$x'}
4269 : ${BUILD_OBJEXT:='o'}
4271 # Check whether --with-build-cc or --without-build-cc was given.
4272 if test "${with_build_cc+set}" = set; then
4273 withval="$with_build_cc"
4276 for ac_prog in gcc cc cl
4278 # Extract the first word of "$ac_prog", so it can be a program name with args.
4279 set dummy $ac_prog; ac_word=$2
4280 echo "$as_me:4280: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4288 ac_save_IFS=$IFS; IFS=$ac_path_separator
4290 for ac_dir in $ac_dummy; do
4292 test -z "$ac_dir" && ac_dir=.
4293 $as_executable_p "$ac_dir/$ac_word" || continue
4294 ac_cv_prog_BUILD_CC="$ac_prog"
4295 echo "$as_me:4295: found $ac_dir/$ac_word" >&5
4301 BUILD_CC=$ac_cv_prog_BUILD_CC
4302 if test -n "$BUILD_CC"; then
4303 echo "$as_me:4303: result: $BUILD_CC" >&5
4304 echo "${ECHO_T}$BUILD_CC" >&6
4306 echo "$as_me:4306: result: no" >&5
4307 echo "${ECHO_T}no" >&6
4310 test -n "$BUILD_CC" && break
4314 echo "$as_me:4314: checking for native build C compiler" >&5
4315 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4316 echo "$as_me:4316: result: $BUILD_CC" >&5
4317 echo "${ECHO_T}$BUILD_CC" >&6
4319 echo "$as_me:4319: checking for native build C preprocessor" >&5
4320 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4322 # Check whether --with-build-cpp or --without-build-cpp was given.
4323 if test "${with_build_cpp+set}" = set; then
4324 withval="$with_build_cpp"
4325 BUILD_CPP="$withval"
4327 BUILD_CPP='${BUILD_CC} -E'
4329 echo "$as_me:4329: result: $BUILD_CPP" >&5
4330 echo "${ECHO_T}$BUILD_CPP" >&6
4332 echo "$as_me:4332: checking for native build C flags" >&5
4333 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4335 # Check whether --with-build-cflags or --without-build-cflags was given.
4336 if test "${with_build_cflags+set}" = set; then
4337 withval="$with_build_cflags"
4338 BUILD_CFLAGS="$withval"
4340 echo "$as_me:4340: result: $BUILD_CFLAGS" >&5
4341 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4343 echo "$as_me:4343: checking for native build C preprocessor-flags" >&5
4344 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4346 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4347 if test "${with_build_cppflags+set}" = set; then
4348 withval="$with_build_cppflags"
4349 BUILD_CPPFLAGS="$withval"
4351 echo "$as_me:4351: result: $BUILD_CPPFLAGS" >&5
4352 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4354 echo "$as_me:4354: checking for native build linker-flags" >&5
4355 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4357 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4358 if test "${with_build_ldflags+set}" = set; then
4359 withval="$with_build_ldflags"
4360 BUILD_LDFLAGS="$withval"
4362 echo "$as_me:4362: result: $BUILD_LDFLAGS" >&5
4363 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4365 echo "$as_me:4365: checking for native build linker-libraries" >&5
4366 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4368 # Check whether --with-build-libs or --without-build-libs was given.
4369 if test "${with_build_libs+set}" = set; then
4370 withval="$with_build_libs"
4371 BUILD_LIBS="$withval"
4373 echo "$as_me:4373: result: $BUILD_LIBS" >&5
4374 echo "${ECHO_T}$BUILD_LIBS" >&6
4376 # this assumes we're on Unix.
4380 : ${BUILD_CC:='${CC}'}
4382 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4383 { { echo "$as_me:4383: error: Cross-build requires two compilers.
4384 Use --with-build-cc to specify the native compiler." >&5
4385 echo "$as_me: error: Cross-build requires two compilers.
4386 Use --with-build-cc to specify the native compiler." >&2;}
4387 { (exit 1); exit 1; }; }
4391 : ${BUILD_CC:='${CC}'}
4392 : ${BUILD_CPP:='${CPP}'}
4393 : ${BUILD_CFLAGS:='${CFLAGS}'}
4394 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4395 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4396 : ${BUILD_LIBS:='${LIBS}'}
4397 : ${BUILD_EXEEXT:='$x'}
4398 : ${BUILD_OBJEXT:='o'}
4401 ###############################################################################
4403 ### Options to allow the user to specify the set of libraries which are used.
4404 ### Use "--without-normal --with-shared" to allow the default model to be
4405 ### shared, for example.
4408 echo "$as_me:4408: checking if libtool -version-number should be used" >&5
4409 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4411 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4412 if test "${enable_libtool_version+set}" = set; then
4413 enableval="$enable_libtool_version"
4414 test "$enableval" != no && enableval=yes
4415 if test "$enableval" != "yes" ; then
4416 cf_libtool_version=no
4418 cf_libtool_version=yes
4422 cf_libtool_version=yes
4425 echo "$as_me:4425: result: $cf_libtool_version" >&5
4426 echo "${ECHO_T}$cf_libtool_version" >&6
4428 if test "$cf_libtool_version" = yes ; then
4429 LIBTOOL_VERSION="-version-number"
4431 LIBTOOL_VERSION="-version-info"
4436 # common library maintenance symbols that are convenient for libtool scripts:
4437 LIB_CREATE='${AR} -cr'
4438 LIB_OBJECT='${OBJECTS}'
4442 # symbols used to prop libtool up to enable it to determine what it should be
4450 echo "$as_me:4450: checking if you want to build libraries with libtool" >&5
4451 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4453 # Check whether --with-libtool or --without-libtool was given.
4454 if test "${with_libtool+set}" = set; then
4455 withval="$with_libtool"
4456 with_libtool=$withval
4460 echo "$as_me:4460: result: $with_libtool" >&5
4461 echo "${ECHO_T}$with_libtool" >&6
4462 if test "$with_libtool" != "no"; then
4464 if test "$with_libtool" != "yes" ; then
4466 if test "x$prefix" != xNONE; then
4467 cf_path_syntax="$prefix"
4469 cf_path_syntax="$ac_default_prefix"
4472 case ".$with_libtool" in #(vi
4473 .\$\(*\)*|.\'*\'*) #(vi
4477 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4480 eval with_libtool="$with_libtool"
4481 case ".$with_libtool" in #(vi
4483 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4488 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4491 { { echo "$as_me:4491: error: expected a pathname, not \"$with_libtool\"" >&5
4492 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4493 { (exit 1); exit 1; }; }
4497 LIBTOOL=$with_libtool
4499 # Extract the first word of "libtool", so it can be a program name with args.
4500 set dummy libtool; ac_word=$2
4501 echo "$as_me:4501: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4503 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4511 ac_save_IFS=$IFS; IFS=$ac_path_separator
4513 for ac_dir in $ac_dummy; do
4515 test -z "$ac_dir" && ac_dir=.
4516 if $as_executable_p "$ac_dir/$ac_word"; then
4517 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4518 echo "$as_me:4518: found $ac_dir/$ac_word" >&5
4526 LIBTOOL=$ac_cv_path_LIBTOOL
4528 if test -n "$LIBTOOL"; then
4529 echo "$as_me:4529: result: $LIBTOOL" >&5
4530 echo "${ECHO_T}$LIBTOOL" >&6
4532 echo "$as_me:4532: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4537 if test -z "$LIBTOOL" ; then
4538 { { echo "$as_me:4538: error: Cannot find libtool" >&5
4539 echo "$as_me: error: Cannot find libtool" >&2;}
4540 { (exit 1); exit 1; }; }
4542 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4543 LIB_OBJECT='${OBJECTS:.o=.lo}'
4545 LIB_CLEAN='${LIBTOOL} --mode=clean'
4546 LIB_COMPILE='${LIBTOOL} --mode=compile'
4547 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4548 LIB_INSTALL='${LIBTOOL} --mode=install'
4549 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4552 # Show the version of libtool
4553 echo "$as_me:4553: checking version of libtool" >&5
4554 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4556 # Save the version in a cache variable - this is not entirely a good
4557 # thing, but the version string from libtool is very ugly, and for
4558 # bug reports it might be useful to have the original string. "("
4559 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.].*//'`
4560 echo "$as_me:4560: result: $cf_cv_libtool_version" >&5
4561 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4562 if test -z "$cf_cv_libtool_version" ; then
4563 { { echo "$as_me:4563: error: This is not GNU libtool" >&5
4564 echo "$as_me: error: This is not GNU libtool" >&2;}
4565 { (exit 1); exit 1; }; }
4568 # special hack to add -no-undefined (which libtool should do for itself)
4570 case "$cf_cv_system_name" in #(vi
4571 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4572 LT_UNDEF=-no-undefined
4576 # special hack to add --tag option for C++ compiler
4577 case $cf_cv_libtool_version in #(vi
4578 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4579 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4580 LIBTOOL="$LIBTOOL --tag=CC"
4583 LIBTOOL_CXX="$LIBTOOL"
4591 test -z "$LIBTOOL" && ECHO_LT=
4593 if test "$with_libtool" != "no" ; then
4595 cf_list_models="$cf_list_models libtool"
4599 echo "$as_me:4599: checking if you want to build shared libraries" >&5
4600 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4602 # Check whether --with-shared or --without-shared was given.
4603 if test "${with_shared+set}" = set; then
4604 withval="$with_shared"
4605 with_shared=$withval
4609 echo "$as_me:4609: result: $with_shared" >&5
4610 echo "${ECHO_T}$with_shared" >&6
4611 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4613 echo "$as_me:4613: checking if you want to build static libraries" >&5
4614 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4616 # Check whether --with-normal or --without-normal was given.
4617 if test "${with_normal+set}" = set; then
4618 withval="$with_normal"
4619 with_normal=$withval
4623 echo "$as_me:4623: result: $with_normal" >&5
4624 echo "${ECHO_T}$with_normal" >&6
4625 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4627 echo "$as_me:4627: checking if you want to build debug libraries" >&5
4628 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4630 # Check whether --with-debug or --without-debug was given.
4631 if test "${with_debug+set}" = set; then
4632 withval="$with_debug"
4637 echo "$as_me:4637: result: $with_debug" >&5
4638 echo "${ECHO_T}$with_debug" >&6
4639 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4641 echo "$as_me:4641: checking if you want to build profiling libraries" >&5
4642 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4644 # Check whether --with-profile or --without-profile was given.
4645 if test "${with_profile+set}" = set; then
4646 withval="$with_profile"
4647 with_profile=$withval
4651 echo "$as_me:4651: result: $with_profile" >&5
4652 echo "${ECHO_T}$with_profile" >&6
4653 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4657 ###############################################################################
4659 echo "$as_me:4659: checking for specified models" >&5
4660 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4661 test -z "$cf_list_models" && cf_list_models=normal
4662 test "$with_libtool" != "no" && cf_list_models=libtool
4663 echo "$as_me:4663: result: $cf_list_models" >&5
4664 echo "${ECHO_T}$cf_list_models" >&6
4666 ### Use the first model as the default, and save its suffix for use in building
4667 ### up test-applications.
4668 echo "$as_me:4668: checking for default model" >&5
4669 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4670 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4671 echo "$as_me:4671: result: $DFT_LWR_MODEL" >&5
4672 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4674 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4685 case $cf_cv_system_name in #(vi
4692 cf_prefix=$LIB_PREFIX
4694 LIB_PREFIX=$cf_prefix
4698 ###############################################################################
4700 echo "$as_me:4700: checking if you want to build a separate terminfo library" >&5
4701 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4703 # Check whether --with-termlib or --without-termlib was given.
4704 if test "${with_termlib+set}" = set; then
4705 withval="$with_termlib"
4706 with_termlib=$withval
4710 echo "$as_me:4710: result: $with_termlib" >&5
4711 echo "${ECHO_T}$with_termlib" >&6
4713 echo "$as_me:4713: checking if you want to build a separate tic library" >&5
4714 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4716 # Check whether --with-ticlib or --without-ticlib was given.
4717 if test "${with_ticlib+set}" = set; then
4718 withval="$with_ticlib"
4719 with_ticlib=$withval
4723 echo "$as_me:4723: result: $with_ticlib" >&5
4724 echo "${ECHO_T}$with_ticlib" >&6
4726 ### Checks for special libraries, must be done up-front.
4729 echo "$as_me:4729: checking if you want to link with the GPM mouse library" >&5
4730 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4732 # Check whether --with-gpm or --without-gpm was given.
4733 if test "${with_gpm+set}" = set; then
4739 echo "$as_me:4739: result: $with_gpm" >&5
4740 echo "${ECHO_T}$with_gpm" >&6
4742 if test "$with_gpm" != no ; then
4743 echo "$as_me:4743: checking for gpm.h" >&5
4744 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4745 if test "${ac_cv_header_gpm_h+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 cat >conftest.$ac_ext <<_ACEOF
4749 #line 4749 "configure"
4750 #include "confdefs.h"
4753 if { (eval echo "$as_me:4753: \"$ac_cpp conftest.$ac_ext\"") >&5
4754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4756 egrep -v '^ *\+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:4759: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev/null; then
4761 if test -s conftest.err; then
4762 ac_cpp_err=$ac_c_preproc_warn_flag
4769 if test -z "$ac_cpp_err"; then
4770 ac_cv_header_gpm_h=yes
4772 echo "$as_me: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4774 ac_cv_header_gpm_h=no
4776 rm -f conftest.err conftest.$ac_ext
4778 echo "$as_me:4778: result: $ac_cv_header_gpm_h" >&5
4779 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4780 if test $ac_cv_header_gpm_h = yes; then
4782 cat >>confdefs.h <<\EOF
4783 #define HAVE_GPM_H 1
4786 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4787 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4789 echo "${as_me:-configure}:4789: testing assuming we really have GPM library ..." 1>&5
4791 cat >>confdefs.h <<\EOF
4792 #define HAVE_LIBGPM 1
4796 echo "$as_me:4796: checking for Gpm_Open in -lgpm" >&5
4797 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4798 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 ac_check_lib_save_LIBS=$LIBS
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line 4804 "configure"
4805 #include "confdefs.h"
4807 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4822 rm -f conftest.$ac_objext conftest$ac_exeext
4823 if { (eval echo "$as_me:4823: \"$ac_link\"") >&5
4824 (eval $ac_link) 2>&5
4826 echo "$as_me:4826: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try='test -s conftest$ac_exeext'
4829 { (eval echo "$as_me:4829: \"$ac_try\"") >&5
4832 echo "$as_me:4832: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_cv_lib_gpm_Gpm_Open=yes
4836 echo "$as_me: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4838 ac_cv_lib_gpm_Gpm_Open=no
4840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4841 LIBS=$ac_check_lib_save_LIBS
4843 echo "$as_me:4843: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4844 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4845 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4849 { { echo "$as_me:4849: error: Cannot link with GPM library" >&5
4850 echo "$as_me: error: Cannot link with GPM library" >&2;}
4851 { (exit 1); exit 1; }; }
4859 test "$with_gpm" != maybe && { echo "$as_me:4859: WARNING: Cannot find GPM header" >&5
4860 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4867 if test "$with_gpm" != no ; then
4868 echo "$as_me:4868: checking if you want to load GPM dynamically" >&5
4869 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4871 # Check whether --with-dlsym or --without-dlsym was given.
4872 if test "${with_dlsym+set}" = set; then
4873 withval="$with_dlsym"
4878 echo "$as_me:4878: result: $with_dlsym" >&5
4879 echo "${ECHO_T}$with_dlsym" >&6
4880 if test "$with_dlsym" = yes ; then
4883 echo "$as_me:4883: checking for dlsym" >&5
4884 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4885 if test "${ac_cv_func_dlsym+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 cat >conftest.$ac_ext <<_ACEOF
4889 #line 4889 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char dlsym (); below. */
4894 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4906 /* The GNU C library defines this for functions which it implements
4907 to always fail with ENOSYS. Some functions are actually named
4908 something starting with __ and the normal name is an alias. */
4909 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:4920: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>&5
4923 echo "$as_me:4923: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -s conftest$ac_exeext'
4926 { (eval echo "$as_me:4926: \"$ac_try\"") >&5
4929 echo "$as_me:4929: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_func_dlsym=yes
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4939 echo "$as_me:4939: result: $ac_cv_func_dlsym" >&5
4940 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4941 if test $ac_cv_func_dlsym = yes; then
4946 echo "$as_me:4946: checking for dlsym in -ldl" >&5
4947 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4948 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 ac_check_lib_save_LIBS=$LIBS
4953 cat >conftest.$ac_ext <<_ACEOF
4954 #line 4954 "configure"
4955 #include "confdefs.h"
4957 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:4973: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4976 echo "$as_me:4976: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -s conftest$ac_exeext'
4979 { (eval echo "$as_me:4979: \"$ac_try\"") >&5
4982 echo "$as_me:4982: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_cv_lib_dl_dlsym=yes
4986 echo "$as_me: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4988 ac_cv_lib_dl_dlsym=no
4990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4991 LIBS=$ac_check_lib_save_LIBS
4993 echo "$as_me:4993: result: $ac_cv_lib_dl_dlsym" >&5
4994 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4995 if test $ac_cv_lib_dl_dlsym = yes; then
5003 if test "$cf_have_dlsym" = yes ; then
5004 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5006 echo "$as_me:5006: checking whether able to link to dl*() functions" >&5
5007 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5008 cat >conftest.$ac_ext <<_ACEOF
5009 #line 5009 "configure"
5010 #include "confdefs.h"
5017 if ((obj = dlopen("filename", 0)) != 0) {
5018 if (dlsym(obj, "symbolname") == 0) {
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (eval echo "$as_me:5027: \"$ac_link\"") >&5
5028 (eval $ac_link) 2>&5
5030 echo "$as_me:5030: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -s conftest$ac_exeext'
5033 { (eval echo "$as_me:5033: \"$ac_try\"") >&5
5036 echo "$as_me:5036: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5039 cat >>confdefs.h <<\EOF
5040 #define HAVE_LIBDL 1
5044 echo "$as_me: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5047 { { echo "$as_me:5047: error: Cannot link test program for libdl" >&5
5048 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5049 { (exit 1); exit 1; }; }
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 echo "$as_me:5052: result: ok" >&5
5053 echo "${ECHO_T}ok" >&6
5055 { { echo "$as_me:5055: error: Cannot find dlsym function" >&5
5056 echo "$as_me: error: Cannot find dlsym function" >&2;}
5057 { (exit 1); exit 1; }; }
5060 if test "$with_gpm" != yes ; then
5061 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5063 echo "${as_me:-configure}:5063: testing assuming soname for gpm is $with_gpm ..." 1>&5
5065 cf_cv_gpm_soname="$with_gpm"
5068 echo "$as_me:5068: checking for soname of gpm library" >&5
5069 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5070 if test "${cf_cv_gpm_soname+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 cf_cv_gpm_soname=unknown
5075 if test "$cross_compiling" != yes ; then
5076 cat >conftest.$ac_ext <<CF_EOF
5080 if (Gpm_Open(0,0)) Gpm_Close();
5081 ${cf_cv_main_return:-return}(0);
5084 cf_save_LIBS="$LIBS"
5086 if { (eval echo "$as_me:5086: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>&5
5089 echo "$as_me:5089: \$? = $ac_status" >&5
5090 (exit $ac_status); } ; then
5091 if { (eval echo "$as_me:5091: \"$ac_link\"") >&5
5092 (eval $ac_link) 2>&5
5094 echo "$as_me:5094: \$? = $ac_status" >&5
5095 (exit $ac_status); } ; then
5096 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5097 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5101 LIBS="$cf_save_LIBS"
5105 echo "$as_me:5105: result: $cf_cv_gpm_soname" >&5
5106 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5109 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5110 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5113 SHLIB_LIST="-ldl $SHLIB_LIST"
5115 SHLIB_LIST="-lgpm $SHLIB_LIST"
5116 TEST_LIBS="-lgpm $TEST_LIBS"
5118 cat >>confdefs.h <<\EOF
5119 #define HAVE_LIBGPM 1
5122 echo "$as_me:5122: checking for Gpm_Wgetch in -lgpm" >&5
5123 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5124 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 ac_check_lib_save_LIBS=$LIBS
5129 cat >conftest.$ac_ext <<_ACEOF
5130 #line 5130 "configure"
5131 #include "confdefs.h"
5133 /* Override any gcc2 internal prototype to avoid an error. */
5137 /* We use char because int might match the return type of a gcc2
5138 builtin and then its argument prototype would still apply. */
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:5149: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>&5
5152 echo "$as_me:5152: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try='test -s conftest$ac_exeext'
5155 { (eval echo "$as_me:5155: \"$ac_try\"") >&5
5158 echo "$as_me:5158: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_lib_gpm_Gpm_Wgetch=yes
5162 echo "$as_me: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 ac_cv_lib_gpm_Gpm_Wgetch=no
5166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5167 LIBS=$ac_check_lib_save_LIBS
5169 echo "$as_me:5169: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5170 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5171 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5173 echo "$as_me:5173: checking if GPM is weakly bound to curses library" >&5
5174 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5175 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cf_cv_check_gpm_wgetch=unknown
5180 if test "$cross_compiling" != yes ; then
5182 cat >conftest.$ac_ext <<CF_EOF
5187 ${cf_cv_main_return:-return}(0);
5191 cf_save_LIBS="$LIBS"
5192 # This only works if we can look at the symbol table. If a shared
5193 # library is stripped for install, we cannot use that. So we're forced
5194 # to rely on the static library, noting that some packagers may not
5196 LIBS="-static -lgpm -dynamic $LIBS"
5197 if { (eval echo "$as_me:5197: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>&5
5200 echo "$as_me:5200: \$? = $ac_status" >&5
5201 (exit $ac_status); } ; then
5202 if { (eval echo "$as_me:5202: \"$ac_link\"") >&5
5203 (eval $ac_link) 2>&5
5205 echo "$as_me:5205: \$? = $ac_status" >&5
5206 (exit $ac_status); } ; then
5207 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5208 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5209 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5213 LIBS="$cf_save_LIBS"
5217 echo "$as_me:5217: result: $cf_cv_check_gpm_wgetch" >&5
5218 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5220 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5221 { echo "$as_me:5221: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5222 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5229 # not everyone has "test -c"
5230 if test -c /dev/sysmouse 2>/dev/null ; then
5231 echo "$as_me:5231: checking if you want to use sysmouse" >&5
5232 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5234 # Check whether --with-sysmouse or --without-sysmouse was given.
5235 if test "${with_sysmouse+set}" = set; then
5236 withval="$with_sysmouse"
5237 cf_with_sysmouse=$withval
5239 cf_with_sysmouse=maybe
5241 if test "$cf_with_sysmouse" != no ; then
5242 cat >conftest.$ac_ext <<_ACEOF
5243 #line 5243 "configure"
5244 #include "confdefs.h"
5246 #include <osreldate.h>
5247 #if (__FreeBSD_version >= 400017)
5248 #include <sys/consio.h>
5249 #include <sys/fbio.h>
5251 #include <machine/console.h>
5258 struct mouse_info the_mouse;
5259 ioctl(0, CONS_MOUSECTL, &the_mouse);
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:5266: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5269 echo "$as_me:5269: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest.$ac_objext'
5272 { (eval echo "$as_me:5272: \"$ac_try\"") >&5
5275 echo "$as_me:5275: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 cf_with_sysmouse=yes
5279 echo "$as_me: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5283 rm -f conftest.$ac_objext conftest.$ac_ext
5285 echo "$as_me:5285: result: $cf_with_sysmouse" >&5
5286 echo "${ECHO_T}$cf_with_sysmouse" >&6
5287 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5288 #define USE_SYSMOUSE 1
5293 if test X"$CC_G_OPT" = X"" ; then
5295 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5298 if test X"$CXX_G_OPT" = X"" ; then
5300 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5303 echo "$as_me:5303: checking for default loader flags" >&5
5304 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5305 case $DFT_LWR_MODEL in
5306 libtool) LD_MODEL='' ;;
5307 normal) LD_MODEL='' ;;
5308 debug) LD_MODEL=$CC_G_OPT ;;
5309 profile) LD_MODEL='-pg';;
5310 shared) LD_MODEL='' ;;
5312 echo "$as_me:5312: result: $LD_MODEL" >&5
5313 echo "${ECHO_T}$LD_MODEL" >&6
5315 case $DFT_LWR_MODEL in
5318 echo "$as_me:5318: checking if rpath option should be used" >&5
5319 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5321 # Check whether --enable-rpath or --disable-rpath was given.
5322 if test "${enable_rpath+set}" = set; then
5323 enableval="$enable_rpath"
5324 cf_cv_enable_rpath=$enableval
5326 cf_cv_enable_rpath=no
5328 echo "$as_me:5328: result: $cf_cv_enable_rpath" >&5
5329 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5331 echo "$as_me:5331: checking if shared libraries should be relinked during install" >&5
5332 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5334 # Check whether --enable-relink or --disable-relink was given.
5335 if test "${enable_relink+set}" = set; then
5336 enableval="$enable_relink"
5337 cf_cv_do_relink=$enableval
5341 echo "$as_me:5341: result: $cf_cv_do_relink" >&5
5342 echo "${ECHO_T}$cf_cv_do_relink" >&6
5347 echo "$as_me:5347: checking for an rpath option" >&5
5348 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5349 case $cf_cv_system_name in #(vi
5351 if test "$GCC" = yes; then
5352 LD_RPATH_OPT="-Wl,-rpath,"
5354 LD_RPATH_OPT="-rpath "
5357 linux*|gnu*|k*bsd*-gnu) #(vi
5358 LD_RPATH_OPT="-Wl,-rpath,"
5360 openbsd[2-9].*) #(vi
5361 LD_RPATH_OPT="-Wl,-rpath,"
5364 LD_RPATH_OPT="-rpath "
5367 LD_RPATH_OPT="-Wl,-rpath,"
5370 LD_RPATH_OPT="-rpath "
5378 echo "$as_me:5378: result: $LD_RPATH_OPT" >&5
5379 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5381 case "x$LD_RPATH_OPT" in #(vi
5383 echo "$as_me:5383: checking if we need a space after rpath option" >&5
5384 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5385 cf_save_LIBS="$LIBS"
5386 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line 5388 "configure"
5389 #include "confdefs.h"
5399 rm -f conftest.$ac_objext conftest$ac_exeext
5400 if { (eval echo "$as_me:5400: \"$ac_link\"") >&5
5401 (eval $ac_link) 2>&5
5403 echo "$as_me:5403: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (eval echo "$as_me:5406: \"$ac_try\"") >&5
5409 echo "$as_me:5409: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5413 echo "$as_me: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5418 LIBS="$cf_save_LIBS"
5419 echo "$as_me:5419: result: $cf_rpath_space" >&5
5420 echo "${ECHO_T}$cf_rpath_space" >&6
5421 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5428 INSTALL_LIB="-m 644"
5430 cf_cv_do_symlinks=no
5432 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5434 echo "$as_me:5434: checking if release/abi version should be used for shared libs" >&5
5435 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5437 # Check whether --with-shlib-version or --without-shlib-version was given.
5438 if test "${with_shlib_version+set}" = set; then
5439 withval="$with_shlib_version"
5440 test -z "$withval" && withval=auto
5441 case $withval in #(vi
5443 cf_cv_shlib_version=auto
5445 rel|abi|auto|no) #(vi
5446 cf_cv_shlib_version=$withval
5449 { { echo "$as_me:5449: error: option value must be one of: rel, abi, auto or no" >&5
5450 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5451 { (exit 1); exit 1; }; }
5456 cf_cv_shlib_version=auto
5458 echo "$as_me:5458: result: $cf_cv_shlib_version" >&5
5459 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5463 # Some less-capable ports of gcc support only -fpic
5465 if test "$GCC" = yes
5467 echo "$as_me:5467: checking which $CC option to use" >&5
5468 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5469 cf_save_CFLAGS="$CFLAGS"
5470 for CC_SHARED_OPTS in -fPIC -fpic ''
5472 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line 5474 "configure"
5475 #include "confdefs.h"
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:5486: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>&5
5489 echo "$as_me:5489: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:5492: \"$ac_try\"") >&5
5495 echo "$as_me:5495: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5499 echo "$as_me: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5502 rm -f conftest.$ac_objext conftest.$ac_ext
5504 echo "$as_me:5504: result: $CC_SHARED_OPTS" >&5
5505 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5506 CFLAGS="$cf_save_CFLAGS"
5509 cf_cv_shlib_version_infix=no
5511 case $cf_cv_system_name in #(vi
5513 if test "$GCC" = yes; then
5515 MK_SHARED_LIB='$(CC) -shared'
5519 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5523 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5524 cf_cv_shlib_version=cygdll
5525 cf_cv_shlib_version_infix=cygdll
5526 cat >mk_shared_lib.sh <<-CF_EOF
5529 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5532 Linking shared library
5533 ** SHARED_LIB \$SHARED_LIB
5534 ** IMPORT_LIB \$IMPORT_LIB
5536 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5538 chmod +x mk_shared_lib.sh
5541 EXTRA_CFLAGS="-no-cpp-precomp"
5542 CC_SHARED_OPTS="-dynamic"
5543 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5544 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5545 cf_cv_shlib_version_infix=yes
5546 echo "$as_me:5546: checking if ld -search_paths_first works" >&5
5547 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5548 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 cf_save_LDFLAGS=$LDFLAGS
5553 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line 5555 "configure"
5556 #include "confdefs.h"
5566 rm -f conftest.$ac_objext conftest$ac_exeext
5567 if { (eval echo "$as_me:5567: \"$ac_link\"") >&5
5568 (eval $ac_link) 2>&5
5570 echo "$as_me:5570: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try='test -s conftest$ac_exeext'
5573 { (eval echo "$as_me:5573: \"$ac_try\"") >&5
5576 echo "$as_me:5576: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 cf_cv_ldflags_search_paths_first=yes
5580 echo "$as_me: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5582 cf_cv_ldflags_search_paths_first=no
5584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5585 LDFLAGS=$cf_save_LDFLAGS
5587 echo "$as_me:5587: result: $cf_cv_ldflags_search_paths_first" >&5
5588 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5589 if test $cf_cv_ldflags_search_paths_first = yes; then
5590 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5594 # (tested with gcc 2.7.2 -- I don't have c89)
5595 if test "$GCC" = yes; then
5596 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5599 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5601 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5602 # HP-UX shared libraries must be executable, and should be
5603 # readonly to exploit a quirk in the memory manager.
5604 INSTALL_LIB="-m 555"
5607 if test "$cf_cv_enable_rpath" = yes ; then
5608 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5610 # tested with IRIX 5.2 and 'cc'.
5611 if test "$GCC" != yes; then
5612 CC_SHARED_OPTS='-KPIC'
5613 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5615 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5617 cf_cv_rm_so_locs=yes
5619 linux*|gnu*|k*bsd*-gnu) #(vi
5620 if test "$DFT_LWR_MODEL" = "shared" ; then
5621 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5622 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5624 if test "$cf_cv_enable_rpath" = yes ; then
5625 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5628 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5629 if test "$cf_cv_shlib_version" = rel; then
5630 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5632 cf_cv_shared_soname='`basename $@`'
5635 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5637 openbsd[2-9].*) #(vi
5638 if test "$DFT_LWR_MODEL" = "shared" ; then
5639 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5640 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5642 if test "$cf_cv_enable_rpath" = yes ; then
5643 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5645 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5647 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5648 if test "$cf_cv_shlib_version" = rel; then
5649 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5651 cf_cv_shared_soname='`basename $@`'
5654 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5656 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5657 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5658 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5659 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5662 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5663 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5664 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5665 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
5666 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5669 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5670 if test "$cf_cv_shlib_version" = rel; then
5671 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5673 cf_cv_shared_soname='`basename $@`'
5676 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5679 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5680 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5681 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5682 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5683 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5684 if test "$cf_cv_shlib_version" = auto; then
5685 if test -f /usr/libexec/ld.elf_so; then
5686 cf_cv_shlib_version=abi
5688 cf_cv_shlib_version=rel
5692 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5693 if test "$cf_cv_shlib_version" = rel; then
5694 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5696 cf_cv_shared_soname='`basename $@`'
5699 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5701 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5705 # tested with OSF/1 V3.2 and 'cc'
5706 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5707 # link with shared libs).
5708 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5709 case $host_os in #(vi
5711 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5714 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5715 if test "$DFT_LWR_MODEL" = "shared" ; then
5716 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5717 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5719 cf_cv_rm_so_locs=yes
5721 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5722 # tested with osr5.0.5
5723 if test "$GCC" != yes; then
5724 CC_SHARED_OPTS='-belf -KPIC'
5726 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5727 if test "$cf_cv_enable_rpath" = yes ; then
5728 # only way is to set LD_RUN_PATH but no switch for it
5731 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5732 LINK_PROGS='LD_RUN_PATH=${libdir}'
5733 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5736 # tested with SunOS 4.1.1 and gcc 2.7.0
5737 if test "$GCC" != yes; then
5738 CC_SHARED_OPTS='-KPIC'
5740 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5741 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5744 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5745 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5746 if test "$DFT_LWR_MODEL" = "shared" ; then
5747 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5748 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5750 if test "$cf_cv_enable_rpath" = yes ; then
5751 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5754 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5755 if test "$cf_cv_shlib_version" = rel; then
5756 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5758 cf_cv_shared_soname='`basename $@`'
5761 if test "$GCC" != yes; then
5762 cf_save_CFLAGS="$CFLAGS"
5763 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5765 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5766 cat >conftest.$ac_ext <<_ACEOF
5767 #line 5767 "configure"
5768 #include "confdefs.h"
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:5779: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>&5
5782 echo "$as_me:5782: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:5785: \"$ac_try\"") >&5
5788 echo "$as_me:5788: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5792 echo "$as_me: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 rm -f conftest.$ac_objext conftest.$ac_ext
5797 CFLAGS="$cf_save_CFLAGS"
5798 CC_SHARED_OPTS=$cf_shared_opts
5799 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5801 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5804 sysv5uw7*|unix_sv*) #(vi
5805 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5806 if test "$GCC" != yes; then
5807 CC_SHARED_OPTS='-KPIC'
5809 MK_SHARED_LIB='${LD} -d y -G -o $@'
5812 CC_SHARED_OPTS='unknown'
5813 MK_SHARED_LIB='echo unknown'
5817 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5818 case "$cf_cv_shlib_version" in #(vi
5820 case "$MK_SHARED_LIB" in #(vi
5822 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5825 { echo "$as_me:5825: WARNING: ignored --with-shlib-version" >&5
5826 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5832 if test -n "$cf_ld_rpath_opt" ; then
5833 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5836 if test "$CC_SHARED_OPTS" = "unknown"; then
5837 for model in $cf_list_models; do
5838 if test "$model" = "shared"; then
5839 { { echo "$as_me:5839: error: Shared libraries are not supported in this version" >&5
5840 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5841 { (exit 1); exit 1; }; }
5846 ### If we're building with rpath, try to link non-standard libs that way too.
5847 if test "$DFT_LWR_MODEL" = "shared"; then
5849 echo "$as_me:5849: checking if rpath should be not be set" >&5
5850 echo $ECHO_N "checking if rpath should be not be set... $ECHO_C" >&6
5852 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
5853 if test "${enable_rpath_hack+set}" = set; then
5854 enableval="$enable_rpath_hack"
5855 test "$enableval" != no && enableval=yes
5856 if test "$enableval" != "yes" ; then
5857 cf_disable_rpath_hack=yes
5859 cf_disable_rpath_hack=no
5863 cf_disable_rpath_hack=no
5866 echo "$as_me:5866: result: $cf_disable_rpath_hack" >&5
5867 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
5868 if test "$cf_disable_rpath_hack" = no ; then
5870 echo "$as_me:5870: checking for updated LDFLAGS" >&5
5871 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
5872 if test -n "$LD_RPATH_OPT" ; then
5873 echo "$as_me:5873: result: maybe" >&5
5874 echo "${ECHO_T}maybe" >&6
5878 # Extract the first word of "$ac_prog", so it can be a program name with args.
5879 set dummy $ac_prog; ac_word=$2
5880 echo "$as_me:5880: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 if test -n "$cf_ldd_prog"; then
5886 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
5888 ac_save_IFS=$IFS; IFS=$ac_path_separator
5890 for ac_dir in $ac_dummy; do
5892 test -z "$ac_dir" && ac_dir=.
5893 $as_executable_p "$ac_dir/$ac_word" || continue
5894 ac_cv_prog_cf_ldd_prog="$ac_prog"
5895 echo "$as_me:5895: found $ac_dir/$ac_word" >&5
5901 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
5902 if test -n "$cf_ldd_prog"; then
5903 echo "$as_me:5903: result: $cf_ldd_prog" >&5
5904 echo "${ECHO_T}$cf_ldd_prog" >&6
5906 echo "$as_me:5906: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5910 test -n "$cf_ldd_prog" && break
5912 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
5914 cf_rpath_list="/usr/lib /lib"
5915 if test "$cf_ldd_prog" != no
5917 cat >conftest.$ac_ext <<_ACEOF
5918 #line 5918 "configure"
5919 #include "confdefs.h"
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:5930: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5933 echo "$as_me:5933: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -s conftest$ac_exeext'
5936 { (eval echo "$as_me:5936: \"$ac_try\"") >&5
5939 echo "$as_me:5939: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
5943 echo "$as_me: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
5951 echo "${as_me:-configure}:5951: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
5953 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
5955 echo "${as_me:-configure}:5955: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
5958 for cf_rpath_src in $LDFLAGS
5960 case $cf_rpath_src in #(vi
5963 # check if this refers to a directory which we will ignore
5965 if test -n "$cf_rpath_list"
5967 for cf_rpath_item in $cf_rpath_list
5969 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
5977 if test "$cf_rpath_skip" = no
5979 # transform the option
5980 if test "$LD_RPATH_OPT" = "-R " ; then
5981 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
5983 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
5986 # if we have not already added this, add it now
5987 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
5988 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
5990 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
5992 echo "${as_me:-configure}:5992: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
5994 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
5999 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6001 LDFLAGS=$cf_rpath_dst
6003 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6005 echo "${as_me:-configure}:6005: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6007 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6009 echo "${as_me:-configure}:6009: testing ...checking LIBS $LIBS ..." 1>&5
6012 for cf_rpath_src in $LIBS
6014 case $cf_rpath_src in #(vi
6017 # check if this refers to a directory which we will ignore
6019 if test -n "$cf_rpath_list"
6021 for cf_rpath_item in $cf_rpath_list
6023 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6031 if test "$cf_rpath_skip" = no
6033 # transform the option
6034 if test "$LD_RPATH_OPT" = "-R " ; then
6035 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6037 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6040 # if we have not already added this, add it now
6041 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6042 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6044 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6046 echo "${as_me:-configure}:6046: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6048 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6053 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6057 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6059 echo "${as_me:-configure}:6059: testing ...checked LIBS $LIBS ..." 1>&5
6061 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6063 echo "${as_me:-configure}:6063: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6071 ###############################################################################
6073 ### use option --disable-overwrite to leave out the link to -lcurses
6074 echo "$as_me:6074: checking if you wish to install ncurses overwriting curses" >&5
6075 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6077 # Check whether --enable-overwrite or --disable-overwrite was given.
6078 if test "${enable_overwrite+set}" = set; then
6079 enableval="$enable_overwrite"
6080 with_overwrite=$enableval
6082 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6084 echo "$as_me:6084: result: $with_overwrite" >&5
6085 echo "${ECHO_T}$with_overwrite" >&6
6087 echo "$as_me:6087: checking if external terminfo-database is used" >&5
6088 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6090 # Check whether --enable-database or --disable-database was given.
6091 if test "${enable_database+set}" = set; then
6092 enableval="$enable_database"
6093 use_database=$enableval
6097 echo "$as_me:6097: result: $use_database" >&5
6098 echo "${ECHO_T}$use_database" >&6
6100 case $host_os in #(vi
6102 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6105 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6109 case $cf_cv_system_name in
6110 os2*) PATH_SEPARATOR=';' ;;
6111 *) PATH_SEPARATOR=':' ;;
6114 if test "$use_database" != no ; then
6115 cat >>confdefs.h <<\EOF
6116 #define USE_DATABASE 1
6119 echo "$as_me:6119: checking which terminfo source-file will be installed" >&5
6120 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6122 # Check whether --with-database or --without-database was given.
6123 if test "${with_database+set}" = set; then
6124 withval="$with_database"
6125 TERMINFO_SRC=$withval
6127 echo "$as_me:6127: result: $TERMINFO_SRC" >&5
6128 echo "${ECHO_T}$TERMINFO_SRC" >&6
6130 echo "$as_me:6130: checking whether to use hashed database instead of directory/tree" >&5
6131 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6133 # Check whether --with-hashed-db or --without-hashed-db was given.
6134 if test "${with_hashed_db+set}" = set; then
6135 withval="$with_hashed_db"
6140 echo "$as_me:6140: result: $with_hashed_db" >&5
6141 echo "${ECHO_T}$with_hashed_db" >&6
6146 echo "$as_me:6146: checking for list of fallback descriptions" >&5
6147 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6149 # Check whether --with-fallbacks or --without-fallbacks was given.
6150 if test "${with_fallbacks+set}" = set; then
6151 withval="$with_fallbacks"
6152 with_fallback=$withval
6156 echo "$as_me:6156: result: $with_fallback" >&5
6157 echo "${ECHO_T}$with_fallback" >&6
6158 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6160 echo "$as_me:6160: checking if you want modern xterm or antique" >&5
6161 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6163 # Check whether --with-xterm-new or --without-xterm-new was given.
6164 if test "${with_xterm_new+set}" = set; then
6165 withval="$with_xterm_new"
6166 with_xterm_new=$withval
6170 case $with_xterm_new in
6171 no) with_xterm_new=xterm-old;;
6172 *) with_xterm_new=xterm-new;;
6174 echo "$as_me:6174: result: $with_xterm_new" >&5
6175 echo "${ECHO_T}$with_xterm_new" >&6
6176 WHICH_XTERM=$with_xterm_new
6179 if test "$use_database" = no ; then
6180 TERMINFO="${datadir}/terminfo"
6184 echo "$as_me:6184: checking for list of terminfo directories" >&5
6185 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6187 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6188 if test "${with_terminfo_dirs+set}" = set; then
6189 withval="$with_terminfo_dirs"
6192 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6194 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6196 for cf_src_path in $withval
6199 if test "x$prefix" != xNONE; then
6200 cf_path_syntax="$prefix"
6202 cf_path_syntax="$ac_default_prefix"
6205 case ".$cf_src_path" in #(vi
6206 .\$\(*\)*|.\'*\'*) #(vi
6210 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6213 eval cf_src_path="$cf_src_path"
6214 case ".$cf_src_path" in #(vi
6216 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6221 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6224 { { echo "$as_me:6224: error: expected a pathname, not \"$cf_src_path\"" >&5
6225 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6226 { (exit 1); exit 1; }; }
6230 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6231 cf_dst_path="${cf_dst_path}${cf_src_path}"
6235 eval 'TERMINFO_DIRS="$cf_dst_path"'
6237 echo "$as_me:6237: result: $TERMINFO_DIRS" >&5
6238 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6239 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6240 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6243 echo "$as_me:6243: checking for default terminfo directory" >&5
6244 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6246 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6247 if test "${with_default_terminfo_dir+set}" = set; then
6248 withval="$with_default_terminfo_dir"
6251 withval="${TERMINFO:-${datadir}/terminfo}"
6252 fi; if test -n "${datadir}/terminfo" ; then
6254 if test "x$prefix" != xNONE; then
6255 cf_path_syntax="$prefix"
6257 cf_path_syntax="$ac_default_prefix"
6260 case ".$withval" in #(vi
6261 .\$\(*\)*|.\'*\'*) #(vi
6265 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6268 eval withval="$withval"
6269 case ".$withval" in #(vi
6271 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6276 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6279 { { echo "$as_me:6279: error: expected a pathname, not \"$withval\"" >&5
6280 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6281 { (exit 1); exit 1; }; }
6288 echo "$as_me:6288: result: $TERMINFO" >&5
6289 echo "${ECHO_T}$TERMINFO" >&6
6290 cat >>confdefs.h <<EOF
6291 #define TERMINFO "$TERMINFO"
6296 ### use option --disable-big-core to make tic run on small machines
6297 ### We need 4Mb, check if we can allocate 50% more than that.
6298 echo "$as_me:6298: checking if big-core option selected" >&5
6299 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6301 # Check whether --enable-big-core or --disable-big-core was given.
6302 if test "${enable_big_core+set}" = set; then
6303 enableval="$enable_big_core"
6304 with_big_core=$enableval
6306 if test "$cross_compiling" = yes; then
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line 6310 "configure"
6311 #include "confdefs.h"
6316 unsigned long n = 6000000L;
6317 char *s = malloc(n);
6320 ${cf_cv_main_return:-return}(s == 0);
6323 rm -f conftest$ac_exeext
6324 if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6329 { (eval echo "$as_me:6329: \"$ac_try\"") >&5
6332 echo "$as_me:6332: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6336 echo "$as_me: program exited with status $ac_status" >&5
6337 echo "$as_me: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6341 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:6344: result: $with_big_core" >&5
6345 echo "${ECHO_T}$with_big_core" >&6
6346 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6347 #define HAVE_BIG_CORE 1
6350 ### ISO C only guarantees 512-char strings, we have tables which load faster
6351 ### when constructed using "big" strings. More than the C compiler, the awk
6352 ### program is a limit on most vendor UNIX systems. Check that we can build.
6353 echo "$as_me:6353: checking if big-strings option selected" >&5
6354 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6356 # Check whether --enable-big-strings or --disable-big-strings was given.
6357 if test "${enable_big_strings+set}" = set; then
6358 enableval="$enable_big_strings"
6359 with_big_strings=$enableval
6364 eval with_big_strings=no
6367 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
6368 | $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
6369 eval with_big_strings=yes
6371 eval with_big_strings=no
6377 echo "$as_me:6377: result: $with_big_strings" >&5
6378 echo "${ECHO_T}$with_big_strings" >&6
6381 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6383 ### use option --enable-termcap to compile in the termcap fallback support
6384 echo "$as_me:6384: checking if you want termcap-fallback support" >&5
6385 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6387 # Check whether --enable-termcap or --disable-termcap was given.
6388 if test "${enable_termcap+set}" = set; then
6389 enableval="$enable_termcap"
6390 with_termcap=$enableval
6394 echo "$as_me:6394: result: $with_termcap" >&5
6395 echo "${ECHO_T}$with_termcap" >&6
6397 if test "$with_termcap" != "yes" ; then
6398 if test "$use_database" = no ; then
6399 if test -z "$with_fallback" ; then
6400 { { echo "$as_me:6400: error: You have disabled the database w/o specifying fallbacks" >&5
6401 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6402 { (exit 1); exit 1; }; }
6405 cat >>confdefs.h <<\EOF
6406 #define PURE_TERMINFO 1
6411 if test "$with_ticlib" != no ; then
6412 { { echo "$as_me:6412: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6413 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6414 { (exit 1); exit 1; }; }
6417 cat >>confdefs.h <<\EOF
6418 #define USE_TERMCAP 1
6421 echo "$as_me:6421: checking for list of termcap files" >&5
6422 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6424 # Check whether --with-termpath or --without-termpath was given.
6425 if test "${with_termpath+set}" = set; then
6426 withval="$with_termpath"
6429 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6431 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6433 for cf_src_path in $withval
6436 if test "x$prefix" != xNONE; then
6437 cf_path_syntax="$prefix"
6439 cf_path_syntax="$ac_default_prefix"
6442 case ".$cf_src_path" in #(vi
6443 .\$\(*\)*|.\'*\'*) #(vi
6447 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6450 eval cf_src_path="$cf_src_path"
6451 case ".$cf_src_path" in #(vi
6453 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6458 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6461 { { echo "$as_me:6461: error: expected a pathname, not \"$cf_src_path\"" >&5
6462 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6463 { (exit 1); exit 1; }; }
6467 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6468 cf_dst_path="${cf_dst_path}${cf_src_path}"
6472 eval 'TERMPATH="$cf_dst_path"'
6474 echo "$as_me:6474: result: $TERMPATH" >&5
6475 echo "${ECHO_T}$TERMPATH" >&6
6476 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6477 #define TERMPATH "$TERMPATH"
6480 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6481 echo "$as_me:6481: checking if fast termcap-loader is needed" >&5
6482 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6484 # Check whether --enable-getcap or --disable-getcap was given.
6485 if test "${enable_getcap+set}" = set; then
6486 enableval="$enable_getcap"
6487 with_getcap=$enableval
6491 echo "$as_me:6491: result: $with_getcap" >&5
6492 echo "${ECHO_T}$with_getcap" >&6
6493 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6494 #define USE_GETCAP 1
6497 echo "$as_me:6497: checking if translated termcaps will be cached in ~/.terminfo" >&5
6498 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6500 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6501 if test "${enable_getcap_cache+set}" = set; then
6502 enableval="$enable_getcap_cache"
6503 with_getcap_cache=$enableval
6505 with_getcap_cache=no
6507 echo "$as_me:6507: result: $with_getcap_cache" >&5
6508 echo "${ECHO_T}$with_getcap_cache" >&6
6509 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6510 #define USE_GETCAP_CACHE 1
6515 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6516 echo "$as_me:6516: checking if ~/.terminfo is wanted" >&5
6517 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6519 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6520 if test "${enable_home_terminfo+set}" = set; then
6521 enableval="$enable_home_terminfo"
6522 with_home_terminfo=$enableval
6524 with_home_terminfo=yes
6526 echo "$as_me:6526: result: $with_home_terminfo" >&5
6527 echo "${ECHO_T}$with_home_terminfo" >&6
6528 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6529 #define USE_HOME_TERMINFO 1
6532 echo "$as_me:6532: checking if you want to use restricted environment when running as root" >&5
6533 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6535 # Check whether --enable-root-environ or --disable-root-environ was given.
6536 if test "${enable_root_environ+set}" = set; then
6537 enableval="$enable_root_environ"
6538 with_root_environ=$enableval
6540 with_root_environ=yes
6542 echo "$as_me:6542: result: $with_root_environ" >&5
6543 echo "${ECHO_T}$with_root_environ" >&6
6544 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6545 #define USE_ROOT_ENVIRON 1
6548 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6549 ### to reduce storage requirements for the terminfo database.
6555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6556 echo "$as_me:6556: checking for $ac_func" >&5
6557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_var+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 cat >conftest.$ac_ext <<_ACEOF
6562 #line 6562 "configure"
6563 #include "confdefs.h"
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char $ac_func (); below. */
6567 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6579 /* The GNU C library defines this for functions which it implements
6580 to always fail with ENOSYS. Some functions are actually named
6581 something starting with __ and the normal name is an alias. */
6582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:6593: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>&5
6596 echo "$as_me:6596: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -s conftest$ac_exeext'
6599 { (eval echo "$as_me:6599: \"$ac_try\"") >&5
6602 echo "$as_me:6602: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 eval "$as_ac_var=yes"
6606 echo "$as_me: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 eval "$as_ac_var=no"
6610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6612 echo "$as_me:6612: result: `eval echo '${'$as_ac_var'}'`" >&5
6613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6614 if test `eval echo '${'$as_ac_var'}'` = yes; then
6615 cat >>confdefs.h <<EOF
6616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6622 if test "$cross_compiling" = yes ; then
6628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6629 echo "$as_me:6629: checking for $ac_func" >&5
6630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6631 if eval "test \"\${$as_ac_var+set}\" = set"; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 cat >conftest.$ac_ext <<_ACEOF
6635 #line 6635 "configure"
6636 #include "confdefs.h"
6637 /* System header to define __stub macros and hopefully few prototypes,
6638 which can conflict with char $ac_func (); below. */
6640 /* Override any gcc2 internal prototype to avoid an error. */
6644 /* We use char because int might match the return type of a gcc2
6645 builtin and then its argument prototype would still apply. */
6652 /* The GNU C library defines this for functions which it implements
6653 to always fail with ENOSYS. Some functions are actually named
6654 something starting with __ and the normal name is an alias. */
6655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (eval echo "$as_me:6666: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6669 echo "$as_me:6669: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try='test -s conftest$ac_exeext'
6672 { (eval echo "$as_me:6672: \"$ac_try\"") >&5
6675 echo "$as_me:6675: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6677 eval "$as_ac_var=yes"
6679 echo "$as_me: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6681 eval "$as_ac_var=no"
6683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6685 echo "$as_me:6685: result: `eval echo '${'$as_ac_var'}'`" >&5
6686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6687 if test `eval echo '${'$as_ac_var'}'` = yes; then
6688 cat >>confdefs.h <<EOF
6689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6696 echo "$as_me:6696: checking if link/symlink functions work" >&5
6697 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6698 if test "${cf_cv_link_funcs+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 for cf_func in link symlink ; do
6704 if test "$cross_compiling" = yes; then
6706 eval 'ac_cv_func_'$cf_func'=error'
6708 cat >conftest.$ac_ext <<_ACEOF
6709 #line 6709 "configure"
6710 #include "confdefs.h"
6712 #include <sys/types.h>
6713 #include <sys/stat.h>
6714 #ifdef HAVE_UNISTD_H
6720 char *src = "config.log";
6721 char *dst = "conftest.chk";
6726 fail = ($cf_func("config.log", "conftest.chk") < 0)
6727 || (stat(dst, &dst_sb) < 0)
6728 || (dst_sb.st_mtime != src_sb.st_mtime);
6734 ${cf_cv_main_return:-return} (fail);
6738 rm -f conftest$ac_exeext
6739 if { (eval echo "$as_me:6739: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>&5
6742 echo "$as_me:6742: \$? = $ac_status" >&5
6743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6744 { (eval echo "$as_me:6744: \"$ac_try\"") >&5
6747 echo "$as_me:6747: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6750 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6751 eval 'ac_cv_func_'$cf_func'=yes'
6753 echo "$as_me: program exited with status $ac_status" >&5
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 eval 'ac_cv_func_'$cf_func'=no'
6759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6762 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6765 echo "$as_me:6765: result: $cf_cv_link_funcs" >&5
6766 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6767 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6771 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6772 #define HAVE_SYMLINK 1
6780 # soft links (symbolic links) are useful for some systems where hard links do
6781 # not work, or to make it simpler to copy terminfo trees around.
6782 if test "$ac_cv_func_symlink" = yes ; then
6783 echo "$as_me:6783: checking if tic should use symbolic links" >&5
6784 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6786 # Check whether --enable-symlinks or --disable-symlinks was given.
6787 if test "${enable_symlinks+set}" = set; then
6788 enableval="$enable_symlinks"
6789 with_symlinks=$enableval
6793 echo "$as_me:6793: result: $with_symlinks" >&5
6794 echo "${ECHO_T}$with_symlinks" >&6
6797 # If we have hard links and did not choose to use soft links instead, there is
6798 # no reason to make this choice optional - use the hard links.
6799 if test "$with_symlinks" = no ; then
6800 echo "$as_me:6800: checking if tic should use hard links" >&5
6801 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6802 if test "$ac_cv_func_link" = yes ; then
6807 echo "$as_me:6807: result: $with_links" >&5
6808 echo "${ECHO_T}$with_links" >&6
6811 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6815 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6816 #define USE_SYMLINKS 1
6819 ### use option --enable-broken-linker to force on use of broken-linker support
6820 echo "$as_me:6820: checking if you want broken-linker support code" >&5
6821 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6823 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6824 if test "${enable_broken_linker+set}" = set; then
6825 enableval="$enable_broken_linker"
6826 with_broken_linker=$enableval
6828 with_broken_linker=${BROKEN_LINKER:-no}
6830 echo "$as_me:6830: result: $with_broken_linker" >&5
6831 echo "${ECHO_T}$with_broken_linker" >&6
6834 if test "$with_broken_linker" = yes ; then
6835 cat >>confdefs.h <<\EOF
6836 #define BROKEN_LINKER 1
6840 elif test "$DFT_LWR_MODEL" = shared ; then
6841 case $cf_cv_system_name in #(vi
6843 cat >>confdefs.h <<\EOF
6844 #define BROKEN_LINKER 1
6848 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6850 echo "${as_me:-configure}:6850: testing cygwin linker is broken anyway ..." 1>&5
6856 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6857 echo "$as_me:6857: checking if tputs should process BSD-style prefix padding" >&5
6858 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6860 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6861 if test "${enable_bsdpad+set}" = set; then
6862 enableval="$enable_bsdpad"
6863 with_bsdpad=$enableval
6867 echo "$as_me:6867: result: $with_bsdpad" >&5
6868 echo "${ECHO_T}$with_bsdpad" >&6
6869 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6873 ### use option --enable-widec to turn on use of wide-character support
6882 # Check to define _XOPEN_SOURCE "automatically"
6885 cf_POSIX_C_SOURCE=199506L
6888 case $host_os in #(vi
6890 cf_xopen_source="-D_ALL_SOURCE"
6893 cf_xopen_source="-D_APPLE_C_SOURCE"
6896 cf_xopen_source="-D_DARWIN_C_SOURCE"
6898 freebsd*|dragonfly*) #(vi
6899 # 5.x headers associate
6900 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6901 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6902 cf_POSIX_C_SOURCE=200112L
6904 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6907 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6910 cf_xopen_source="-D_HPUX_SOURCE"
6913 cf_xopen_source="-D_SGI_SOURCE"
6915 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6917 echo "$as_me:6917: checking if we must define _GNU_SOURCE" >&5
6918 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6919 if test "${cf_cv_gnu_source+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 cat >conftest.$ac_ext <<_ACEOF
6924 #line 6924 "configure"
6925 #include "confdefs.h"
6926 #include <sys/types.h>
6931 #ifndef _XOPEN_SOURCE
6938 rm -f conftest.$ac_objext
6939 if { (eval echo "$as_me:6939: \"$ac_compile\"") >&5
6940 (eval $ac_compile) 2>&5
6942 echo "$as_me:6942: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -s conftest.$ac_objext'
6945 { (eval echo "$as_me:6945: \"$ac_try\"") >&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6952 echo "$as_me: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6955 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6956 cat >conftest.$ac_ext <<_ACEOF
6957 #line 6957 "configure"
6958 #include "confdefs.h"
6959 #include <sys/types.h>
6964 #ifdef _XOPEN_SOURCE
6971 rm -f conftest.$ac_objext
6972 if { (eval echo "$as_me:6972: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>&5
6975 echo "$as_me:6975: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -s conftest.$ac_objext'
6978 { (eval echo "$as_me:6978: \"$ac_try\"") >&5
6981 echo "$as_me:6981: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6985 echo "$as_me: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6987 cf_cv_gnu_source=yes
6989 rm -f conftest.$ac_objext conftest.$ac_ext
6993 rm -f conftest.$ac_objext conftest.$ac_ext
6996 echo "$as_me:6996: result: $cf_cv_gnu_source" >&5
6997 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6998 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7002 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
7005 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7008 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7011 cf_xopen_source="-D_OSF_SOURCE"
7014 cf_xopen_source="-D_QNX_SOURCE"
7017 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7019 solaris2.1[0-9]) #(vi
7020 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7022 solaris2.[1-9]) #(vi
7023 cf_xopen_source="-D__EXTENSIONS__"
7026 echo "$as_me:7026: checking if we should define _XOPEN_SOURCE" >&5
7027 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7028 if test "${cf_cv_xopen_source+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line 7033 "configure"
7034 #include "confdefs.h"
7035 #include <sys/types.h>
7040 #ifndef _XOPEN_SOURCE
7047 rm -f conftest.$ac_objext
7048 if { (eval echo "$as_me:7048: \"$ac_compile\"") >&5
7049 (eval $ac_compile) 2>&5
7051 echo "$as_me:7051: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -s conftest.$ac_objext'
7054 { (eval echo "$as_me:7054: \"$ac_try\"") >&5
7057 echo "$as_me:7057: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7059 cf_cv_xopen_source=no
7061 echo "$as_me: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7064 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7065 cat >conftest.$ac_ext <<_ACEOF
7066 #line 7066 "configure"
7067 #include "confdefs.h"
7068 #include <sys/types.h>
7073 #ifdef _XOPEN_SOURCE
7080 rm -f conftest.$ac_objext
7081 if { (eval echo "$as_me:7081: \"$ac_compile\"") >&5
7082 (eval $ac_compile) 2>&5
7084 echo "$as_me:7084: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -s conftest.$ac_objext'
7087 { (eval echo "$as_me:7087: \"$ac_try\"") >&5
7090 echo "$as_me:7090: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 cf_cv_xopen_source=no
7094 echo "$as_me: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7096 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7098 rm -f conftest.$ac_objext conftest.$ac_ext
7102 rm -f conftest.$ac_objext conftest.$ac_ext
7105 echo "$as_me:7105: result: $cf_cv_xopen_source" >&5
7106 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7107 if test "$cf_cv_xopen_source" != no ; then
7109 CFLAGS=`echo "$CFLAGS" | \
7110 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7111 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7113 CPPFLAGS=`echo "$CPPFLAGS" | \
7114 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7115 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7117 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7122 cf_new_extra_cppflags=
7124 for cf_add_cflags in $cf_temp_xopen_source
7126 case $cf_fix_cppflags in
7128 case $cf_add_cflags in #(vi
7129 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7130 case $cf_add_cflags in
7132 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7134 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7135 && test -z "${cf_tst_cflags}" \
7136 && cf_fix_cppflags=yes
7138 if test $cf_fix_cppflags = yes ; then
7139 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7141 elif test "${cf_tst_cflags}" = "\"'" ; then
7142 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7148 *$cf_add_cflags) #(vi
7151 case $cf_add_cflags in #(vi
7153 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7155 CPPFLAGS=`echo "$CPPFLAGS" | \
7156 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7157 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7161 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7166 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7171 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7173 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7175 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7176 && test -z "${cf_tst_cflags}" \
7177 && cf_fix_cppflags=no
7182 if test -n "$cf_new_cflags" ; then
7184 CFLAGS="$CFLAGS $cf_new_cflags"
7187 if test -n "$cf_new_cppflags" ; then
7189 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7192 if test -n "$cf_new_extra_cppflags" ; then
7194 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7199 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7201 cf_save_CFLAGS="$CFLAGS"
7202 cf_save_CPPFLAGS="$CPPFLAGS"
7204 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7205 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7206 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7208 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7209 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7210 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7212 echo "$as_me:7212: checking if we should define _POSIX_C_SOURCE" >&5
7213 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7214 if test "${cf_cv_posix_c_source+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 echo "${as_me:-configure}:7218: testing if the symbol is already defined go no further ..." 1>&5
7220 cat >conftest.$ac_ext <<_ACEOF
7221 #line 7221 "configure"
7222 #include "confdefs.h"
7223 #include <sys/types.h>
7228 #ifndef _POSIX_C_SOURCE
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:7236: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>&5
7239 echo "$as_me:7239: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:7242: \"$ac_try\"") >&5
7245 echo "$as_me:7245: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 cf_cv_posix_c_source=no
7249 echo "$as_me: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 cf_want_posix_source=no
7252 case .$cf_POSIX_C_SOURCE in #(vi
7254 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7257 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7258 cf_want_posix_source=yes
7261 cf_want_posix_source=yes
7264 if test "$cf_want_posix_source" = yes ; then
7265 cat >conftest.$ac_ext <<_ACEOF
7266 #line 7266 "configure"
7267 #include "confdefs.h"
7268 #include <sys/types.h>
7273 #ifdef _POSIX_SOURCE
7280 rm -f conftest.$ac_objext
7281 if { (eval echo "$as_me:7281: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>&5
7284 echo "$as_me:7284: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -s conftest.$ac_objext'
7287 { (eval echo "$as_me:7287: \"$ac_try\"") >&5
7290 echo "$as_me:7290: \$? = $ac_status" >&5
7291 (exit $ac_status); }; }; then
7294 echo "$as_me: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7296 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7298 rm -f conftest.$ac_objext conftest.$ac_ext
7301 echo "${as_me:-configure}:7301: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7303 CFLAGS="$cf_trim_CFLAGS"
7304 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7306 echo "${as_me:-configure}:7306: testing if the second compile does not leave our definition intact error ..." 1>&5
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line 7309 "configure"
7310 #include "confdefs.h"
7311 #include <sys/types.h>
7316 #ifndef _POSIX_C_SOURCE
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:7324: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:7330: \"$ac_try\"") >&5
7333 echo "$as_me:7333: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7337 echo "$as_me: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7339 cf_cv_posix_c_source=no
7341 rm -f conftest.$ac_objext conftest.$ac_ext
7342 CFLAGS="$cf_save_CFLAGS"
7343 CPPFLAGS="$cf_save_CPPFLAGS"
7346 rm -f conftest.$ac_objext conftest.$ac_ext
7349 echo "$as_me:7349: result: $cf_cv_posix_c_source" >&5
7350 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7352 if test "$cf_cv_posix_c_source" != no ; then
7353 CFLAGS="$cf_trim_CFLAGS"
7354 CPPFLAGS="$cf_trim_CPPFLAGS"
7359 cf_new_extra_cppflags=
7361 for cf_add_cflags in $cf_cv_posix_c_source
7363 case $cf_fix_cppflags in
7365 case $cf_add_cflags in #(vi
7366 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7367 case $cf_add_cflags in
7369 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7371 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7372 && test -z "${cf_tst_cflags}" \
7373 && cf_fix_cppflags=yes
7375 if test $cf_fix_cppflags = yes ; then
7376 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7378 elif test "${cf_tst_cflags}" = "\"'" ; then
7379 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7385 *$cf_add_cflags) #(vi
7388 case $cf_add_cflags in #(vi
7390 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7392 CPPFLAGS=`echo "$CPPFLAGS" | \
7393 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7394 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7398 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7403 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7408 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7410 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7412 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7413 && test -z "${cf_tst_cflags}" \
7414 && cf_fix_cppflags=no
7419 if test -n "$cf_new_cflags" ; then
7421 CFLAGS="$CFLAGS $cf_new_cflags"
7424 if test -n "$cf_new_cppflags" ; then
7426 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7429 if test -n "$cf_new_extra_cppflags" ; then
7431 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7439 if test -n "$cf_xopen_source" ; then
7444 cf_new_extra_cppflags=
7446 for cf_add_cflags in $cf_xopen_source
7448 case $cf_fix_cppflags in
7450 case $cf_add_cflags in #(vi
7451 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7452 case $cf_add_cflags in
7454 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7456 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7457 && test -z "${cf_tst_cflags}" \
7458 && cf_fix_cppflags=yes
7460 if test $cf_fix_cppflags = yes ; then
7461 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7463 elif test "${cf_tst_cflags}" = "\"'" ; then
7464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7470 *$cf_add_cflags) #(vi
7473 case $cf_add_cflags in #(vi
7475 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7477 CPPFLAGS=`echo "$CPPFLAGS" | \
7478 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7479 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7483 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7488 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7493 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7495 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7497 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7498 && test -z "${cf_tst_cflags}" \
7499 && cf_fix_cppflags=no
7504 if test -n "$cf_new_cflags" ; then
7506 CFLAGS="$CFLAGS $cf_new_cflags"
7509 if test -n "$cf_new_cppflags" ; then
7511 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7514 if test -n "$cf_new_extra_cppflags" ; then
7516 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7521 # Work around breakage on OS X
7523 echo "$as_me:7523: checking if SIGWINCH is defined" >&5
7524 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
7525 if test "${cf_cv_define_sigwinch+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7530 #line 7530 "configure"
7531 #include "confdefs.h"
7533 #include <sys/types.h>
7534 #include <sys/signal.h>
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:7545: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
7548 echo "$as_me:7548: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:7551: \"$ac_try\"") >&5
7554 echo "$as_me:7554: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 cf_cv_define_sigwinch=yes
7558 echo "$as_me: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7560 cat >conftest.$ac_ext <<_ACEOF
7561 #line 7561 "configure"
7562 #include "confdefs.h"
7564 #undef _XOPEN_SOURCE
7565 #undef _POSIX_SOURCE
7566 #undef _POSIX_C_SOURCE
7567 #include <sys/types.h>
7568 #include <sys/signal.h>
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:7579: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>&5
7582 echo "$as_me:7582: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -s conftest.$ac_objext'
7585 { (eval echo "$as_me:7585: \"$ac_try\"") >&5
7588 echo "$as_me:7588: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 cf_cv_define_sigwinch=maybe
7592 echo "$as_me: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7594 cf_cv_define_sigwinch=no
7596 rm -f conftest.$ac_objext conftest.$ac_ext
7599 rm -f conftest.$ac_objext conftest.$ac_ext
7602 echo "$as_me:7602: result: $cf_cv_define_sigwinch" >&5
7603 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
7605 if test "$cf_cv_define_sigwinch" = maybe ; then
7606 echo "$as_me:7606: checking for actual SIGWINCH definition" >&5
7607 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7608 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 cf_cv_fixup_sigwinch=unknown
7614 while test $cf_sigwinch != 1
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line 7617 "configure"
7618 #include "confdefs.h"
7620 #undef _XOPEN_SOURCE
7621 #undef _POSIX_SOURCE
7622 #undef _POSIX_C_SOURCE
7623 #include <sys/types.h>
7624 #include <sys/signal.h>
7630 #if SIGWINCH != $cf_sigwinch
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:7639: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>&5
7642 echo "$as_me:7642: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -s conftest.$ac_objext'
7645 { (eval echo "$as_me:7645: \"$ac_try\"") >&5
7648 echo "$as_me:7648: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 cf_cv_fixup_sigwinch=$cf_sigwinch
7653 echo "$as_me: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 rm -f conftest.$ac_objext conftest.$ac_ext
7658 cf_sigwinch=`expr $cf_sigwinch - 1`
7662 echo "$as_me:7662: result: $cf_cv_fixup_sigwinch" >&5
7663 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7665 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7666 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7670 # Checks for CODESET support.
7672 echo "$as_me:7672: checking for nl_langinfo and CODESET" >&5
7673 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7674 if test "${am_cv_langinfo_codeset+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat >conftest.$ac_ext <<_ACEOF
7678 #line 7678 "configure"
7679 #include "confdefs.h"
7680 #include <langinfo.h>
7684 char* cs = nl_langinfo(CODESET);
7689 rm -f conftest.$ac_objext conftest$ac_exeext
7690 if { (eval echo "$as_me:7690: \"$ac_link\"") >&5
7691 (eval $ac_link) 2>&5
7693 echo "$as_me:7693: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:7696: \"$ac_try\"") >&5
7699 echo "$as_me:7699: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 am_cv_langinfo_codeset=yes
7703 echo "$as_me: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 am_cv_langinfo_codeset=no
7707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7710 echo "$as_me:7710: result: $am_cv_langinfo_codeset" >&5
7711 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7712 if test $am_cv_langinfo_codeset = yes; then
7714 cat >>confdefs.h <<\EOF
7715 #define HAVE_LANGINFO_CODESET 1
7720 # use these variables to work around a defect in gcc's fixincludes.
7724 echo "$as_me:7724: checking if you want wide-character code" >&5
7725 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7727 # Check whether --enable-widec or --disable-widec was given.
7728 if test "${enable_widec+set}" = set; then
7729 enableval="$enable_widec"
7730 with_widec=$enableval
7734 echo "$as_me:7734: result: $with_widec" >&5
7735 echo "${ECHO_T}$with_widec" >&6
7736 if test "$with_widec" = yes ; then
7737 LIB_SUFFIX="w${LIB_SUFFIX}"
7738 cat >>confdefs.h <<\EOF
7739 #define USE_WIDEC_SUPPORT 1
7742 case "$CFLAGS $CPPFLAGS" in #(vi
7743 *-D_XOPEN_SOURCE=500) #(vi
7747 echo "$as_me:7747: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7748 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line 7750 "configure"
7751 #include "confdefs.h"
7752 #include <sys/types.h>
7758 #ifndef _XOPEN_SOURCE_EXTENDED
7765 rm -f conftest.$ac_objext
7766 if { (eval echo "$as_me:7766: \"$ac_compile\"") >&5
7767 (eval $ac_compile) 2>&5
7769 echo "$as_me:7769: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:7772: \"$ac_try\"") >&5
7775 echo "$as_me:7775: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7779 echo "$as_me: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7783 rm -f conftest.$ac_objext conftest.$ac_ext
7784 echo "$as_me:7784: result: $cf_result" >&5
7785 echo "${ECHO_T}$cf_result" >&6
7787 if test "$cf_result" = yes ; then
7788 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7789 elif test "x" != "x" ; then
7790 echo "$as_me:7790: checking checking for compatible value versus " >&5
7791 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7792 cat >conftest.$ac_ext <<_ACEOF
7793 #line 7793 "configure"
7794 #include "confdefs.h"
7795 #include <sys/types.h>
7801 #if _XOPEN_SOURCE_EXTENDED- < 0
7808 rm -f conftest.$ac_objext
7809 if { (eval echo "$as_me:7809: \"$ac_compile\"") >&5
7810 (eval $ac_compile) 2>&5
7812 echo "$as_me:7812: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -s conftest.$ac_objext'
7815 { (eval echo "$as_me:7815: \"$ac_try\"") >&5
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7826 rm -f conftest.$ac_objext conftest.$ac_ext
7827 echo "$as_me:7827: result: $cf_result" >&5
7828 echo "${ECHO_T}$cf_result" >&6
7829 if test "$cf_result" = no ; then
7830 # perhaps we can override it - try...
7831 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7839 NCURSES_CH_T=cchar_t
7841 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7844 echo "$as_me:7844: checking for $ac_func" >&5
7845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7846 if eval "test \"\${$as_ac_var+set}\" = set"; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 cat >conftest.$ac_ext <<_ACEOF
7850 #line 7850 "configure"
7851 #include "confdefs.h"
7852 /* System header to define __stub macros and hopefully few prototypes,
7853 which can conflict with char $ac_func (); below. */
7855 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7867 /* The GNU C library defines this for functions which it implements
7868 to always fail with ENOSYS. Some functions are actually named
7869 something starting with __ and the normal name is an alias. */
7870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:7887: \"$ac_try\"") >&5
7890 echo "$as_me:7890: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 eval "$as_ac_var=yes"
7894 echo "$as_me: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 eval "$as_ac_var=no"
7898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7900 echo "$as_me:7900: result: `eval echo '${'$as_ac_var'}'`" >&5
7901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7902 if test `eval echo '${'$as_ac_var'}'` = yes; then
7903 cat >>confdefs.h <<EOF
7904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7910 if test "$ac_cv_func_putwc" != yes ; then
7912 echo "$as_me:7912: checking for multibyte character support" >&5
7913 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7914 if test "${cf_cv_utf8_lib+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 cf_save_LIBS="$LIBS"
7919 cat >conftest.$ac_ext <<_ACEOF
7920 #line 7920 "configure"
7921 #include "confdefs.h"
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (eval echo "$as_me:7933: \"$ac_link\"") >&5
7934 (eval $ac_link) 2>&5
7936 echo "$as_me:7936: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (eval echo "$as_me:7939: \"$ac_try\"") >&5
7942 echo "$as_me:7942: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7946 echo "$as_me: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7949 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7950 # will be set on completion of the AC_TRY_LINK below.
7951 cf_cv_header_path_utf8=
7952 cf_cv_library_path_utf8=
7954 echo "${as_me:-configure}:7954: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7956 cf_save_LIBS="$LIBS"
7958 cat >conftest.$ac_ext <<_ACEOF
7959 #line 7959 "configure"
7960 #include "confdefs.h"
7962 #include <libutf8.h>
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:7972: \"$ac_link\"") >&5
7973 (eval $ac_link) 2>&5
7975 echo "$as_me:7975: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -s conftest$ac_exeext'
7978 { (eval echo "$as_me:7978: \"$ac_try\"") >&5
7981 echo "$as_me:7981: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7984 cf_cv_find_linkage_utf8=yes
7985 cf_cv_header_path_utf8=/usr/include
7986 cf_cv_library_path_utf8=/usr/lib
7989 echo "$as_me: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7992 LIBS="-lutf8 $cf_save_LIBS"
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line 7995 "configure"
7996 #include "confdefs.h"
7998 #include <libutf8.h>
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (eval echo "$as_me:8008: \"$ac_link\"") >&5
8009 (eval $ac_link) 2>&5
8011 echo "$as_me:8011: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:8014: \"$ac_try\"") >&5
8017 echo "$as_me:8017: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8020 cf_cv_find_linkage_utf8=yes
8021 cf_cv_header_path_utf8=/usr/include
8022 cf_cv_library_path_utf8=/usr/lib
8023 cf_cv_library_file_utf8="-lutf8"
8026 echo "$as_me: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8029 cf_cv_find_linkage_utf8=no
8030 LIBS="$cf_save_LIBS"
8032 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8034 echo "${as_me:-configure}:8034: testing find linkage for utf8 library ..." 1>&5
8036 echo "${as_me:-configure}:8036: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8038 cf_save_CPPFLAGS="$CPPFLAGS"
8039 cf_test_CPPFLAGS="$CPPFLAGS"
8043 # collect the current set of include-directories from compiler flags
8044 cf_header_path_list=""
8045 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8046 for cf_header_path in $CPPFLAGS $CFLAGS
8048 case $cf_header_path in #(vi
8050 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8052 test "$cf_header_path" != "NONE" && \
8053 test -d "$cf_header_path" && \
8055 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8056 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8057 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8058 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8059 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8060 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8063 cf_header_path_list="$cf_header_path_list $cf_search"
8069 # add the variations for the package we are looking for
8073 test "/usr" != "$prefix" && \
8075 (test $prefix = NONE || test "/usr" != "$prefix") && {
8076 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8077 test -d /usr/include && cf_search="$cf_search /usr/include"
8078 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8079 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8080 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8081 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8084 test "$prefix" != "NONE" && \
8085 test -d "$prefix" && \
8087 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8088 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8089 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8090 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8091 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8092 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8095 test "/usr/local" != "$prefix" && \
8096 test -d "/usr/local" && \
8097 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8098 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8099 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8100 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8101 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8102 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8103 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8106 test "/opt" != "$prefix" && \
8108 (test $prefix = NONE || test "/opt" != "$prefix") && {
8109 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8110 test -d /opt/include && cf_search="$cf_search /opt/include"
8111 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8112 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8113 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8114 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8117 test "$HOME" != "$prefix" && \
8118 test -d "$HOME" && \
8119 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8120 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8121 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8122 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8123 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8124 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8125 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8128 test "$includedir" != NONE && \
8129 test "$includedir" != "/usr/include" && \
8130 test -d "$includedir" && {
8131 test -d $includedir && cf_search="$cf_search $includedir"
8132 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8135 test "$oldincludedir" != NONE && \
8136 test "$oldincludedir" != "/usr/include" && \
8137 test -d "$oldincludedir" && {
8138 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8139 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8142 cf_search="$cf_search $cf_header_path_list"
8144 for cf_cv_header_path_utf8 in $cf_search
8146 if test -d $cf_cv_header_path_utf8 ; then
8147 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8149 echo "${as_me:-configure}:8149: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8151 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line 8153 "configure"
8154 #include "confdefs.h"
8156 #include <libutf8.h>
8165 rm -f conftest.$ac_objext
8166 if { (eval echo "$as_me:8166: \"$ac_compile\"") >&5
8167 (eval $ac_compile) 2>&5
8169 echo "$as_me:8169: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -s conftest.$ac_objext'
8172 { (eval echo "$as_me:8172: \"$ac_try\"") >&5
8175 echo "$as_me:8175: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8178 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8180 echo "${as_me:-configure}:8180: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8182 cf_cv_find_linkage_utf8=maybe
8183 cf_test_CPPFLAGS="$CPPFLAGS"
8186 echo "$as_me: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8189 CPPFLAGS="$cf_save_CPPFLAGS"
8192 rm -f conftest.$ac_objext conftest.$ac_ext
8196 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8198 echo "${as_me:-configure}:8198: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8200 cf_save_LIBS="$LIBS"
8201 cf_save_LDFLAGS="$LDFLAGS"
8203 if test "$cf_cv_find_linkage_utf8" != yes ; then
8206 cf_library_path_list=""
8207 if test -n "${LDFLAGS}${LIBS}" ; then
8208 for cf_library_path in $LDFLAGS $LIBS
8210 case $cf_library_path in #(vi
8212 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8214 test "$cf_library_path" != "NONE" && \
8215 test -d "$cf_library_path" && \
8217 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8218 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8219 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8220 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8221 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8222 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8225 cf_library_path_list="$cf_library_path_list $cf_search"
8233 test "/usr" != "$prefix" && \
8235 (test $prefix = NONE || test "/usr" != "$prefix") && {
8236 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8237 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8238 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8239 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8240 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8241 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8244 test "$prefix" != "NONE" && \
8245 test -d "$prefix" && \
8247 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8248 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8249 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8250 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8251 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8252 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8255 test "/usr/local" != "$prefix" && \
8256 test -d "/usr/local" && \
8257 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8258 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8259 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8260 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8261 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8262 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8263 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8266 test "/opt" != "$prefix" && \
8268 (test $prefix = NONE || test "/opt" != "$prefix") && {
8269 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8270 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8271 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8272 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8273 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8274 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8277 test "$HOME" != "$prefix" && \
8278 test -d "$HOME" && \
8279 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8280 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8281 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8282 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8283 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8284 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8285 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
8288 cf_search="$cf_library_path_list $cf_search"
8290 for cf_cv_library_path_utf8 in $cf_search
8292 if test -d $cf_cv_library_path_utf8 ; then
8293 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8295 echo "${as_me:-configure}:8295: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8297 CPPFLAGS="$cf_test_CPPFLAGS"
8298 LIBS="-lutf8 $cf_save_LIBS"
8299 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line 8301 "configure"
8302 #include "confdefs.h"
8304 #include <libutf8.h>
8313 rm -f conftest.$ac_objext conftest$ac_exeext
8314 if { (eval echo "$as_me:8314: \"$ac_link\"") >&5
8315 (eval $ac_link) 2>&5
8317 echo "$as_me:8317: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:8320: \"$ac_try\"") >&5
8323 echo "$as_me:8323: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8326 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8328 echo "${as_me:-configure}:8328: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8330 cf_cv_find_linkage_utf8=yes
8331 cf_cv_library_file_utf8="-lutf8"
8334 echo "$as_me: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8337 CPPFLAGS="$cf_save_CPPFLAGS"
8338 LIBS="$cf_save_LIBS"
8339 LDFLAGS="$cf_save_LDFLAGS"
8342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8345 CPPFLAGS="$cf_save_CPPFLAGS"
8346 LDFLAGS="$cf_save_LDFLAGS"
8350 cf_cv_find_linkage_utf8=no
8354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8359 LIBS="$cf_save_LIBS"
8361 if test "$cf_cv_find_linkage_utf8" = yes ; then
8362 cf_cv_utf8_lib=add-on
8368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8370 echo "$as_me:8370: result: $cf_cv_utf8_lib" >&5
8371 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
8373 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8375 if test "$cf_cv_utf8_lib" = "add-on" ; then
8376 cat >>confdefs.h <<\EOF
8377 #define HAVE_LIBUTF8_H 1
8380 if test -n "$cf_cv_header_path_utf8" ; then
8381 for cf_add_incdir in $cf_cv_header_path_utf8
8383 while test $cf_add_incdir != /usr/include
8385 if test -d $cf_add_incdir
8388 if test -n "$CFLAGS$CPPFLAGS" ; then
8389 # a loop is needed to ensure we can add subdirs of existing dirs
8390 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8391 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8392 cf_have_incdir=yes; break
8397 if test "$cf_have_incdir" = no ; then
8398 if test "$cf_add_incdir" = /usr/local/include ; then
8399 if test "$GCC" = yes
8401 cf_save_CPPFLAGS=$CPPFLAGS
8402 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 #line 8404 "configure"
8405 #include "confdefs.h"
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:8416: \"$ac_compile\"") >&5
8417 (eval $ac_compile) 2>&5
8419 echo "$as_me:8419: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -s conftest.$ac_objext'
8422 { (eval echo "$as_me:8422: \"$ac_try\"") >&5
8425 echo "$as_me:8425: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8429 echo "$as_me: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8433 rm -f conftest.$ac_objext conftest.$ac_ext
8434 CPPFLAGS=$cf_save_CPPFLAGS
8439 if test "$cf_have_incdir" = no ; then
8440 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8442 echo "${as_me:-configure}:8442: testing adding $cf_add_incdir to include-path ..." 1>&5
8444 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8446 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8447 test "$cf_top_incdir" = "$cf_add_incdir" && break
8448 cf_add_incdir="$cf_top_incdir"
8457 if test -n "$cf_cv_library_path_utf8" ; then
8458 for cf_add_libdir in $cf_cv_library_path_utf8
8460 if test $cf_add_libdir = /usr/lib ; then
8462 elif test -d $cf_add_libdir
8465 if test -n "$LDFLAGS$LIBS" ; then
8466 # a loop is needed to ensure we can add subdirs of existing dirs
8467 for cf_test_libdir in $LDFLAGS $LIBS ; do
8468 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8469 cf_have_libdir=yes; break
8473 if test "$cf_have_libdir" = no ; then
8474 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8476 echo "${as_me:-configure}:8476: testing adding $cf_add_libdir to library-path ..." 1>&5
8478 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8484 LIBS="$cf_cv_library_file_utf8 $LIBS"
8487 if test "$cf_cv_utf8_lib" != no ; then
8492 # This is needed on Tru64 5.0 to declare mbstate_t
8493 echo "$as_me:8493: checking if we must include wchar.h to declare mbstate_t" >&5
8494 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
8495 if test "${cf_cv_mbstate_t+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line 8500 "configure"
8501 #include "confdefs.h"
8506 #ifdef HAVE_LIBUTF8_H
8507 #include <libutf8.h>
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:8518: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:8524: \"$ac_try\"") >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8531 echo "$as_me: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line 8534 "configure"
8535 #include "confdefs.h"
8541 #ifdef HAVE_LIBUTF8_H
8542 #include <libutf8.h>
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:8553: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>&5
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest.$ac_objext'
8559 { (eval echo "$as_me:8559: \"$ac_try\"") >&5
8562 echo "$as_me:8562: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8566 echo "$as_me: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 cf_cv_mbstate_t=unknown
8570 rm -f conftest.$ac_objext conftest.$ac_ext
8572 rm -f conftest.$ac_objext conftest.$ac_ext
8574 echo "$as_me:8574: result: $cf_cv_mbstate_t" >&5
8575 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
8577 if test "$cf_cv_mbstate_t" = yes ; then
8578 cat >>confdefs.h <<\EOF
8579 #define NEED_WCHAR_H 1
8585 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
8586 if test "$cf_cv_mbstate_t" = unknown ; then
8590 # This is needed on Tru64 5.0 to declare wchar_t
8591 echo "$as_me:8591: checking if we must include wchar.h to declare wchar_t" >&5
8592 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
8593 if test "${cf_cv_wchar_t+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cat >conftest.$ac_ext <<_ACEOF
8598 #line 8598 "configure"
8599 #include "confdefs.h"
8604 #ifdef HAVE_LIBUTF8_H
8605 #include <libutf8.h>
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:8616: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>&5
8619 echo "$as_me:8619: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -s conftest.$ac_objext'
8622 { (eval echo "$as_me:8622: \"$ac_try\"") >&5
8625 echo "$as_me:8625: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8629 echo "$as_me: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 cat >conftest.$ac_ext <<_ACEOF
8632 #line 8632 "configure"
8633 #include "confdefs.h"
8639 #ifdef HAVE_LIBUTF8_H
8640 #include <libutf8.h>
8650 rm -f conftest.$ac_objext
8651 if { (eval echo "$as_me:8651: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8654 echo "$as_me:8654: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:8657: \"$ac_try\"") >&5
8660 echo "$as_me:8660: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8664 echo "$as_me: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 cf_cv_wchar_t=unknown
8668 rm -f conftest.$ac_objext conftest.$ac_ext
8670 rm -f conftest.$ac_objext conftest.$ac_ext
8672 echo "$as_me:8672: result: $cf_cv_wchar_t" >&5
8673 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8675 if test "$cf_cv_wchar_t" = yes ; then
8676 cat >>confdefs.h <<\EOF
8677 #define NEED_WCHAR_H 1
8683 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8684 if test "$cf_cv_wchar_t" = unknown ; then
8688 # if we find wchar_t in either place, use substitution to provide a fallback.
8689 if test "$cf_cv_wchar_t" != unknown ; then
8690 NCURSES_OK_WCHAR_T=1
8693 # This is needed on Tru64 5.0 to declare wint_t
8694 echo "$as_me:8694: checking if we must include wchar.h to declare wint_t" >&5
8695 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8696 if test "${cf_cv_wint_t+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8701 #line 8701 "configure"
8702 #include "confdefs.h"
8707 #ifdef HAVE_LIBUTF8_H
8708 #include <libutf8.h>
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:8719: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>&5
8722 echo "$as_me:8722: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -s conftest.$ac_objext'
8725 { (eval echo "$as_me:8725: \"$ac_try\"") >&5
8728 echo "$as_me:8728: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8732 echo "$as_me: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line 8735 "configure"
8736 #include "confdefs.h"
8742 #ifdef HAVE_LIBUTF8_H
8743 #include <libutf8.h>
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:8754: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>&5
8757 echo "$as_me:8757: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -s conftest.$ac_objext'
8760 { (eval echo "$as_me:8760: \"$ac_try\"") >&5
8763 echo "$as_me:8763: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8767 echo "$as_me: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 cf_cv_wint_t=unknown
8771 rm -f conftest.$ac_objext conftest.$ac_ext
8773 rm -f conftest.$ac_objext conftest.$ac_ext
8775 echo "$as_me:8775: result: $cf_cv_wint_t" >&5
8776 echo "${ECHO_T}$cf_cv_wint_t" >&6
8778 if test "$cf_cv_wint_t" = yes ; then
8779 cat >>confdefs.h <<\EOF
8780 #define NEED_WCHAR_H 1
8786 # if we do not find wint_t in either place, use substitution to provide a fallback.
8787 if test "$cf_cv_wint_t" = unknown ; then
8791 # if we find wint_t in either place, use substitution to provide a fallback.
8792 if test "$cf_cv_wint_t" != unknown ; then
8796 if test "$NCURSES_MBSTATE_T" != 0; then
8797 cat >>confdefs.h <<\EOF
8798 #define NEED_MBSTATE_T_DEF 1
8804 ### use option --disable-lp64 to allow long chtype
8805 case $cf_cv_abi_version in
8807 default_with_lp64=no
8810 default_with_lp64=yes
8814 echo "$as_me:8814: checking whether to enable _LP64 definition in curses.h" >&5
8815 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8817 # Check whether --enable-lp64 or --disable-lp64 was given.
8818 if test "${enable_lp64+set}" = set; then
8819 enableval="$enable_lp64"
8820 with_lp64=$enableval
8822 with_lp64=$default_with_lp64
8824 echo "$as_me:8824: result: $with_lp64" >&5
8825 echo "${ECHO_T}$with_lp64" >&6
8827 if test "$with_lp64" = yes ; then
8833 # Check whether --enable-largefile or --disable-largefile was given.
8834 if test "${enable_largefile+set}" = set; then
8835 enableval="$enable_largefile"
8838 if test "$enable_largefile" != no; then
8840 echo "$as_me:8840: checking for special C compiler options needed for large files" >&5
8841 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8842 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 ac_cv_sys_largefile_CC=no
8846 if test "$GCC" != yes; then
8849 # IRIX 6.2 and later do not support large files by default,
8850 # so use the C compiler's -n32 option if that helps.
8851 cat >conftest.$ac_ext <<_ACEOF
8852 #line 8852 "configure"
8853 #include "confdefs.h"
8854 #include <sys/types.h>
8855 /* Check that off_t can represent 2**63 - 1 correctly.
8856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8857 since some C++ compilers masquerading as C compilers
8858 incorrectly reject 9223372036854775807. */
8859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8861 && LARGE_OFF_T % 2147483647 == 1)
8871 rm -f conftest.$ac_objext
8872 if { (eval echo "$as_me:8872: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>&5
8875 echo "$as_me:8875: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -s conftest.$ac_objext'
8878 { (eval echo "$as_me:8878: \"$ac_try\"") >&5
8881 echo "$as_me:8881: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8885 echo "$as_me: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8888 rm -f conftest.$ac_objext
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:8891: \"$ac_compile\"") >&5
8892 (eval $ac_compile) 2>&5
8894 echo "$as_me:8894: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -s conftest.$ac_objext'
8897 { (eval echo "$as_me:8897: \"$ac_try\"") >&5
8900 echo "$as_me:8900: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_sys_largefile_CC=' -n32'; break
8904 echo "$as_me: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 rm -f conftest.$ac_objext
8911 rm -f conftest.$ac_ext
8914 echo "$as_me:8914: result: $ac_cv_sys_largefile_CC" >&5
8915 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8916 if test "$ac_cv_sys_largefile_CC" != no; then
8917 CC=$CC$ac_cv_sys_largefile_CC
8920 echo "$as_me:8920: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8921 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8922 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 ac_cv_sys_file_offset_bits=no
8927 cat >conftest.$ac_ext <<_ACEOF
8928 #line 8928 "configure"
8929 #include "confdefs.h"
8930 #include <sys/types.h>
8931 /* Check that off_t can represent 2**63 - 1 correctly.
8932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8933 since some C++ compilers masquerading as C compilers
8934 incorrectly reject 9223372036854775807. */
8935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8937 && LARGE_OFF_T % 2147483647 == 1)
8947 rm -f conftest.$ac_objext
8948 if { (eval echo "$as_me:8948: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8951 echo "$as_me:8951: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:8954: \"$ac_try\"") >&5
8957 echo "$as_me:8957: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8964 rm -f conftest.$ac_objext conftest.$ac_ext
8965 cat >conftest.$ac_ext <<_ACEOF
8966 #line 8966 "configure"
8967 #include "confdefs.h"
8968 #define _FILE_OFFSET_BITS 64
8969 #include <sys/types.h>
8970 /* Check that off_t can represent 2**63 - 1 correctly.
8971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8972 since some C++ compilers masquerading as C compilers
8973 incorrectly reject 9223372036854775807. */
8974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8976 && LARGE_OFF_T % 2147483647 == 1)
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:8987: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>&5
8990 echo "$as_me:8990: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -s conftest.$ac_objext'
8993 { (eval echo "$as_me:8993: \"$ac_try\"") >&5
8996 echo "$as_me:8996: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_sys_file_offset_bits=64; break
9000 echo "$as_me: failed program was:" >&5
9001 cat conftest.$ac_ext >&5
9003 rm -f conftest.$ac_objext conftest.$ac_ext
9007 echo "$as_me:9007: result: $ac_cv_sys_file_offset_bits" >&5
9008 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9009 if test "$ac_cv_sys_file_offset_bits" != no; then
9011 cat >>confdefs.h <<EOF
9012 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9017 echo "$as_me:9017: checking for _LARGE_FILES value needed for large files" >&5
9018 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9019 if test "${ac_cv_sys_large_files+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 ac_cv_sys_large_files=no
9024 cat >conftest.$ac_ext <<_ACEOF
9025 #line 9025 "configure"
9026 #include "confdefs.h"
9027 #include <sys/types.h>
9028 /* Check that off_t can represent 2**63 - 1 correctly.
9029 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9030 since some C++ compilers masquerading as C compilers
9031 incorrectly reject 9223372036854775807. */
9032 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9033 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9034 && LARGE_OFF_T % 2147483647 == 1)
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:9045: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9048 echo "$as_me:9048: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:9051: \"$ac_try\"") >&5
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9058 echo "$as_me: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 rm -f conftest.$ac_objext conftest.$ac_ext
9062 cat >conftest.$ac_ext <<_ACEOF
9063 #line 9063 "configure"
9064 #include "confdefs.h"
9065 #define _LARGE_FILES 1
9066 #include <sys/types.h>
9067 /* Check that off_t can represent 2**63 - 1 correctly.
9068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9069 since some C++ compilers masquerading as C compilers
9070 incorrectly reject 9223372036854775807. */
9071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9073 && LARGE_OFF_T % 2147483647 == 1)
9083 rm -f conftest.$ac_objext
9084 if { (eval echo "$as_me:9084: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>&5
9087 echo "$as_me:9087: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -s conftest.$ac_objext'
9090 { (eval echo "$as_me:9090: \"$ac_try\"") >&5
9093 echo "$as_me:9093: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_sys_large_files=1; break
9097 echo "$as_me: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9100 rm -f conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me:9104: result: $ac_cv_sys_large_files" >&5
9105 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9106 if test "$ac_cv_sys_large_files" != no; then
9108 cat >>confdefs.h <<EOF
9109 #define _LARGE_FILES $ac_cv_sys_large_files
9116 if test "$enable_largefile" != no ; then
9117 echo "$as_me:9117: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9118 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9119 if test "${ac_cv_sys_largefile_source+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 ac_cv_sys_largefile_source=no
9124 cat >conftest.$ac_ext <<_ACEOF
9125 #line 9125 "configure"
9126 #include "confdefs.h"
9136 rm -f conftest.$ac_objext
9137 if { (eval echo "$as_me:9137: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>&5
9140 echo "$as_me:9140: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -s conftest.$ac_objext'
9143 { (eval echo "$as_me:9143: \"$ac_try\"") >&5
9146 echo "$as_me:9146: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9150 echo "$as_me: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 rm -f conftest.$ac_objext conftest.$ac_ext
9154 cat >conftest.$ac_ext <<_ACEOF
9155 #line 9155 "configure"
9156 #include "confdefs.h"
9157 #define _LARGEFILE_SOURCE 1
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:9168: \"$ac_compile\"") >&5
9169 (eval $ac_compile) 2>&5
9171 echo "$as_me:9171: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -s conftest.$ac_objext'
9174 { (eval echo "$as_me:9174: \"$ac_try\"") >&5
9177 echo "$as_me:9177: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_sys_largefile_source=1; break
9181 echo "$as_me: failed program was:" >&5
9182 cat conftest.$ac_ext >&5
9184 rm -f conftest.$ac_objext conftest.$ac_ext
9188 echo "$as_me:9188: result: $ac_cv_sys_largefile_source" >&5
9189 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9190 if test "$ac_cv_sys_largefile_source" != no; then
9192 cat >>confdefs.h <<EOF
9193 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9199 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9200 # in glibc 2.1.3, but that breaks too many other things.
9201 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9202 echo "$as_me:9202: checking for fseeko" >&5
9203 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9204 if test "${ac_cv_func_fseeko+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 #line 9208 "configure"
9209 #include "confdefs.h"
9214 return fseeko && fseeko (stdin, 0, 0);
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:9220: \"$ac_link\"") >&5
9221 (eval $ac_link) 2>&5
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:9226: \"$ac_try\"") >&5
9229 echo "$as_me:9229: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_func_fseeko=yes
9233 echo "$as_me: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 ac_cv_func_fseeko=no
9237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9239 echo "$as_me:9239: result: $ac_cv_func_fseeko" >&5
9240 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9241 if test $ac_cv_func_fseeko = yes; then
9243 cat >>confdefs.h <<\EOF
9244 #define HAVE_FSEEKO 1
9249 # Normally we would collect these definitions in the config.h,
9250 # but (like _XOPEN_SOURCE), some environments rely on having these
9251 # defined before any of the system headers are included. Another
9252 # case comes up with C++, e.g., on AIX the compiler compiles the
9253 # header files by themselves before looking at the body files it is
9254 # told to compile. For ncurses, those header files do not include
9256 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9257 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9258 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9260 echo "$as_me:9260: checking whether to use struct dirent64" >&5
9261 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9262 if test "${cf_cv_struct_dirent64+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line 9267 "configure"
9268 #include "confdefs.h"
9270 #include <sys/types.h>
9277 /* if transitional largefile support is setup, this is true */
9278 extern struct dirent64 * readdir(DIR *);
9279 struct dirent64 *x = readdir((DIR *)0);
9280 struct dirent *y = readdir((DIR *)0);
9287 rm -f conftest.$ac_objext
9288 if { (eval echo "$as_me:9288: \"$ac_compile\"") >&5
9289 (eval $ac_compile) 2>&5
9291 echo "$as_me:9291: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -s conftest.$ac_objext'
9294 { (eval echo "$as_me:9294: \"$ac_try\"") >&5
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 cf_cv_struct_dirent64=yes
9301 echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 cf_cv_struct_dirent64=no
9305 rm -f conftest.$ac_objext conftest.$ac_ext
9308 echo "$as_me:9308: result: $cf_cv_struct_dirent64" >&5
9309 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9310 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
9311 #define HAVE_STRUCT_DIRENT64 1
9316 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
9317 echo "$as_me:9317: checking if you want tparm not to use X/Open fixed-parameter list" >&5
9318 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
9320 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
9321 if test "${enable_tparm_varargs+set}" = set; then
9322 enableval="$enable_tparm_varargs"
9323 with_tparm_varargs=$enableval
9325 with_tparm_varargs=yes
9327 echo "$as_me:9327: result: $with_tparm_varargs" >&5
9328 echo "${ECHO_T}$with_tparm_varargs" >&6
9329 NCURSES_TPARM_VARARGS=0
9330 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
9332 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
9333 if test "$with_ticlib" != no ; then
9334 echo "$as_me:9334: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
9335 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
9337 # Check whether --enable-tic-depends or --disable-tic-depends was given.
9338 if test "${enable_tic_depends+set}" = set; then
9339 enableval="$enable_tic_depends"
9340 with_tic_depends=$enableval
9342 with_tic_depends=yes
9344 echo "$as_me:9344: result: $with_tic_depends" >&5
9345 echo "${ECHO_T}$with_tic_depends" >&6
9350 ### use option --with-bool to override bool's type
9351 echo "$as_me:9351: checking for type of bool" >&5
9352 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
9354 # Check whether --with-bool or --without-bool was given.
9355 if test "${with_bool+set}" = set; then
9356 withval="$with_bool"
9357 NCURSES_BOOL="$withval"
9361 echo "$as_me:9361: result: $NCURSES_BOOL" >&5
9362 echo "${ECHO_T}$NCURSES_BOOL" >&6
9364 echo "$as_me:9364: checking for alternate terminal capabilities file" >&5
9365 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
9367 # Check whether --with-caps or --without-caps was given.
9368 if test "${with_caps+set}" = set; then
9369 withval="$with_caps"
9370 TERMINFO_CAPS=Caps.$withval
9374 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
9375 echo "$as_me:9375: result: $TERMINFO_CAPS" >&5
9376 echo "${ECHO_T}$TERMINFO_CAPS" >&6
9378 ### use option --with-chtype to override chtype's type
9379 echo "$as_me:9379: checking for type of chtype" >&5
9380 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
9382 # Check whether --with-chtype or --without-chtype was given.
9383 if test "${with_chtype+set}" = set; then
9384 withval="$with_chtype"
9385 NCURSES_CHTYPE="$withval"
9389 echo "$as_me:9389: result: $NCURSES_CHTYPE" >&5
9390 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
9392 ### use option --with-ospeed to override ospeed's type
9393 echo "$as_me:9393: checking for type of ospeed" >&5
9394 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
9396 # Check whether --with-ospeed or --without-ospeed was given.
9397 if test "${with_ospeed+set}" = set; then
9398 withval="$with_ospeed"
9399 NCURSES_OSPEED="$withval"
9401 NCURSES_OSPEED=short
9403 echo "$as_me:9403: result: $NCURSES_OSPEED" >&5
9404 echo "${ECHO_T}$NCURSES_OSPEED" >&6
9406 ### use option --with-mmask-t to override mmask_t's type
9407 echo "$as_me:9407: checking for type of mmask_t" >&5
9408 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
9410 # Check whether --with-mmask-t or --without-mmask-t was given.
9411 if test "${with_mmask_t+set}" = set; then
9412 withval="$with_mmask_t"
9413 NCURSES_MMASK_T="$withval"
9415 NCURSES_MMASK_T=auto
9417 echo "$as_me:9417: result: $NCURSES_MMASK_T" >&5
9418 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
9420 ### use option --with-ccharw-max to override CCHARW_MAX size
9421 echo "$as_me:9421: checking for size CCHARW_MAX" >&5
9422 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
9424 # Check whether --with-ccharw-max or --without-ccharw-max was given.
9425 if test "${with_ccharw_max+set}" = set; then
9426 withval="$with_ccharw_max"
9427 NCURSES_CCHARW_MAX="$withval"
9429 NCURSES_CCHARW_MAX=5
9431 echo "$as_me:9431: result: $NCURSES_CCHARW_MAX" >&5
9432 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
9434 ### Enable compiling-in rcs id's
9435 echo "$as_me:9435: checking if RCS identifiers should be compiled-in" >&5
9436 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9438 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9439 if test "${with_rcs_ids+set}" = set; then
9440 withval="$with_rcs_ids"
9441 with_rcs_ids=$withval
9445 echo "$as_me:9445: result: $with_rcs_ids" >&5
9446 echo "${ECHO_T}$with_rcs_ids" >&6
9447 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
9448 #define USE_RCS_IDS 1
9451 ###############################################################################
9453 echo "$as_me:9453: checking format of man-pages" >&5
9454 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
9456 # Check whether --with-manpage-format or --without-manpage-format was given.
9457 if test "${with_manpage_format+set}" = set; then
9458 withval="$with_manpage_format"
9459 MANPAGE_FORMAT=$withval
9461 MANPAGE_FORMAT=unknown
9464 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
9465 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
9469 case $MANPAGE_FORMAT in
9471 if test -z "$MANPATH" ; then
9472 MANPATH="/usr/man:/usr/share/man"
9475 # look for the 'date' man-page (it's most likely to be installed!)
9481 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
9482 for cf_dir in $MANPATH; do
9483 test -z "$cf_dir" && cf_dir=/usr/man
9484 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
9486 cf_test=`echo $cf_name | sed -e 's/*//'`
9487 if test "x$cf_test" = "x$cf_name" ; then
9490 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
9491 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
9492 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
9493 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
9507 # if we found a match in either man* or cat*, stop looking
9508 if test -n "$MANPAGE_FORMAT" ; then
9510 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
9511 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
9517 test $cf_found=yes && break
9520 # only check the first directory in $MANPATH where we find manpages
9521 if test -n "$MANPAGE_FORMAT" ; then
9525 # if we did not find the example, just assume it is normal
9526 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
9530 for cf_option in $MANPAGE_FORMAT; do
9531 case $cf_option in #(vi
9532 gzip|compress|BSDI|normal|formatted|catonly)
9535 cf_unknown="$cf_unknown $cf_option"
9542 echo "$as_me:9542: result: $MANPAGE_FORMAT" >&5
9543 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
9544 if test -n "$cf_unknown" ; then
9545 { echo "$as_me:9545: WARNING: Unexpected manpage-format $cf_unknown" >&5
9546 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
9549 echo "$as_me:9549: checking for manpage renaming" >&5
9550 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
9552 # Check whether --with-manpage-renames or --without-manpage-renames was given.
9553 if test "${with_manpage_renames+set}" = set; then
9554 withval="$with_manpage_renames"
9555 MANPAGE_RENAMES=$withval
9560 case ".$MANPAGE_RENAMES" in #(vi
9564 # Debian 'man' program?
9565 if test -f /etc/debian_version ; then
9566 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
9573 if test "$MANPAGE_RENAMES" != no ; then
9574 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
9575 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
9576 elif test ! -f $MANPAGE_RENAMES ; then
9577 { { echo "$as_me:9577: error: not a filename: $MANPAGE_RENAMES" >&5
9578 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
9579 { (exit 1); exit 1; }; }
9582 test ! -d man && mkdir man
9584 # Construct a sed-script to perform renaming within man-pages
9585 if test -n "$MANPAGE_RENAMES" ; then
9586 test ! -d man && mkdir man
9587 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
9591 echo "$as_me:9591: result: $MANPAGE_RENAMES" >&5
9592 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
9594 echo "$as_me:9594: checking if manpage aliases will be installed" >&5
9595 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
9597 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
9598 if test "${with_manpage_aliases+set}" = set; then
9599 withval="$with_manpage_aliases"
9600 MANPAGE_ALIASES=$withval
9605 echo "$as_me:9605: result: $MANPAGE_ALIASES" >&5
9606 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
9608 case "x$LN_S" in #(vi
9618 if test "$MANPAGE_ALIASES" = yes ; then
9619 echo "$as_me:9619: checking if manpage symlinks should be used" >&5
9620 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
9622 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
9623 if test "${with_manpage_symlinks+set}" = set; then
9624 withval="$with_manpage_symlinks"
9625 MANPAGE_SYMLINKS=$withval
9627 MANPAGE_SYMLINKS=$cf_use_symlinks
9630 if test "$$cf_use_symlinks" = no; then
9631 if test "$MANPAGE_SYMLINKS" = yes ; then
9632 { echo "$as_me:9632: WARNING: cannot make symlinks" >&5
9633 echo "$as_me: WARNING: cannot make symlinks" >&2;}
9638 echo "$as_me:9638: result: $MANPAGE_SYMLINKS" >&5
9639 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
9642 echo "$as_me:9642: checking for manpage tbl" >&5
9643 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
9645 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
9646 if test "${with_manpage_tbl+set}" = set; then
9647 withval="$with_manpage_tbl"
9648 MANPAGE_TBL=$withval
9653 echo "$as_me:9653: result: $MANPAGE_TBL" >&5
9654 echo "${ECHO_T}$MANPAGE_TBL" >&6
9656 if test "$prefix" = "NONE" ; then
9657 cf_prefix="$ac_default_prefix"
9662 case "$MANPAGE_FORMAT" in # (vi
9677 test ! -d man && mkdir man
9681 case "$MANPAGE_FORMAT" in #(vi
9684 cf_compress=compress
9692 cf_edit_man=./edit_man.sh
9693 cf_man_alias=`pwd`/man_alias.sed
9695 cat >$cf_edit_man <<CF_EOF
9697 # this script is generated by the configure-script CF_MAN_PAGES macro.
9702 NCURSES_MAJOR="$NCURSES_MAJOR"
9703 NCURSES_MINOR="$NCURSES_MINOR"
9704 NCURSES_PATCH="$NCURSES_PATCH"
9706 NCURSES_OSPEED="$NCURSES_OSPEED"
9707 TERMINFO="$TERMINFO"
9710 INSTALL_DATA="$INSTALL_DATA"
9712 transform="$program_transform_name"
9714 TMP=\${TMPDIR:=/tmp}/man\$\$
9715 trap "rm -f \$TMP" 0 1 2 5 15
9727 top_srcdir=\$srcdir/..
9730 if test "\$form" = normal ; then
9731 if test "$cf_format" = yes ; then
9732 if test "$cf_inboth" = no ; then
9733 sh \$0 format \$verb \$mandir \$srcdir \$*
9737 cf_subdir=\$mandir/man
9738 cf_tables=$MANPAGE_TBL
9740 cf_subdir=\$mandir/cat
9744 # process the list of source-files
9747 *.orig|*.rej) ;; #(vi
9749 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9750 if test \$verb = installing ; then
9751 if test ! -d \$cf_subdir\${section} ; then
9752 mkdir -p \$cf_subdir\$section
9756 # replace variables in man page
9757 if test ! -f $cf_man_alias ; then
9758 cat >>$cf_man_alias <<-CF_EOF2
9759 s,@DATADIR@,\$datadir,g
9760 s,@TERMINFO@,\$TERMINFO,g
9761 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9762 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9763 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9764 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9767 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9769 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9770 cf_name=`echo $cf_name|sed "$program_transform_name"`
9771 cat >>$cf_edit_man <<-CF_EOF
9772 s,@$cf_NAME@,$cf_name,g
9776 cat >>$cf_edit_man <<CF_EOF
9778 echo "...made $cf_man_alias"
9782 cf_source=\`basename \$i\`
9784 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9785 if test ! -f \$inalias ; then
9786 echo .. skipped \$cf_source
9791 if test "$MANPAGE_ALIASES" != no ; then
9792 cat >>$cf_edit_man <<CF_EOF
9793 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9797 if test "$MANPAGE_RENAMES" = no ; then
9798 cat >>$cf_edit_man <<CF_EOF
9799 # perform program transformations for section 1 man pages
9800 if test \$section = 1 ; then
9801 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9803 cf_target=\$cf_subdir\${section}/\$cf_source
9807 cat >>$cf_edit_man <<CF_EOF
9808 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9809 if test -z "\$cf_target" ; then
9810 echo '? missing rename for '\$cf_source
9811 cf_target="\$cf_source"
9813 cf_target="\$cf_subdir\${section}/\${cf_target}"
9818 cat >>$cf_edit_man <<CF_EOF
9819 sed -f $cf_man_alias \\
9822 if test -f $MANPAGE_RENAMES ; then
9823 cat >>$cf_edit_man <<CF_EOF
9824 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9827 cat >>$cf_edit_man <<CF_EOF
9832 cat >>$cf_edit_man <<CF_EOF
9833 if test \$cf_tables = yes ; then
9834 tbl \$TMP >\$TMP.out
9839 if test $with_curses_h != yes ; then
9840 cat >>$cf_edit_man <<CF_EOF
9841 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9846 cat >>$cf_edit_man <<CF_EOF
9847 if test \$form = format ; then
9848 nroff -man \$TMP >\$TMP.out
9853 if test -n "$cf_compress" ; then
9854 cat >>$cf_edit_man <<CF_EOF
9855 if test \$verb = installing ; then
9856 if ( $cf_compress -f \$TMP )
9858 mv \$TMP.$cf_so_strip \$TMP
9861 cf_target="\$cf_target.$cf_so_strip"
9865 case "$MANPAGE_FORMAT" in #(vi
9867 cat >>$cf_edit_man <<CF_EOF
9868 if test \$form = format ; then
9869 # BSDI installs only .0 suffixes in the cat directories
9870 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9876 cat >>$cf_edit_man <<CF_EOF
9877 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9878 if test \$verb = installing ; then
9879 echo \$verb \$cf_target
9880 \$INSTALL_DATA \$TMP \$cf_target
9881 test -d \$cf_subdir\${section} &&
9882 test -n "\$aliases" && (
9883 cd \$cf_subdir\${section} && (
9884 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9885 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9886 cf_target=\`basename \$cf_target\`
9887 for cf_alias in \$aliases
9889 if test \$section = 1 ; then
9890 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9893 if test "$MANPAGE_SYMLINKS" = yes ; then
9894 if test -f \$cf_alias\${suffix} ; then
9895 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9900 echo .. \$verb alias \$cf_alias\${suffix}
9902 case "x$LN_S" in #(vi
9904 cat >>$cf_edit_man <<CF_EOF
9905 $LN_S \$cf_target \$cf_alias\${suffix}
9909 cat >>$cf_edit_man <<CF_EOF
9910 rm -f \$cf_alias\${suffix}
9911 $LN_S \$cf_target \$cf_alias\${suffix}
9915 cat >>$cf_edit_man <<CF_EOF
9916 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
9917 echo ".so \$cf_source" >\$TMP
9919 if test -n "$cf_compress" ; then
9920 cat >>$cf_edit_man <<CF_EOF
9921 if test -n "$cf_so_strip" ; then
9922 $cf_compress -f \$TMP
9923 mv \$TMP.$cf_so_strip \$TMP
9927 cat >>$cf_edit_man <<CF_EOF
9928 echo .. \$verb alias \$cf_alias\${suffix}
9929 rm -f \$cf_alias\${suffix}
9930 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
9935 elif test \$verb = removing ; then
9936 test -f \$cf_target && (
9937 echo \$verb \$cf_target
9940 test -d \$cf_subdir\${section} &&
9941 test -n "\$aliases" && (
9942 cd \$cf_subdir\${section} && (
9943 for cf_alias in \$aliases
9945 if test \$section = 1 ; then
9946 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9949 echo .. \$verb alias \$cf_alias\${suffix}
9950 rm -f \$cf_alias\${suffix}
9962 if test $cf_inboth = yes ; then
9963 if test \$form != format ; then
9964 sh \$0 format \$verb \$mandir \$srcdir \$*
9970 chmod 755 $cf_edit_man
9972 ###############################################################################
9974 ### Note that some functions (such as const) are normally disabled anyway.
9975 echo "$as_me:9975: checking if you want to build with function extensions" >&5
9976 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9978 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9979 if test "${enable_ext_funcs+set}" = set; then
9980 enableval="$enable_ext_funcs"
9981 with_ext_funcs=$enableval
9985 echo "$as_me:9985: result: $with_ext_funcs" >&5
9986 echo "${ECHO_T}$with_ext_funcs" >&6
9987 if test "$with_ext_funcs" = yes ; then
9989 cat >>confdefs.h <<\EOF
9990 #define HAVE_CURSES_VERSION 1
9993 cat >>confdefs.h <<\EOF
9994 #define HAVE_HAS_KEY 1
9997 cat >>confdefs.h <<\EOF
9998 #define HAVE_RESIZETERM 1
10001 cat >>confdefs.h <<\EOF
10002 #define HAVE_RESIZE_TERM 1
10005 cat >>confdefs.h <<\EOF
10006 #define HAVE_USE_DEFAULT_COLORS 1
10009 cat >>confdefs.h <<\EOF
10010 #define HAVE_WRESIZE 1
10013 cat >>confdefs.h <<\EOF
10014 #define NCURSES_EXT_FUNCS 1
10017 GENERATED_EXT_FUNCS=generated
10019 NCURSES_EXT_FUNCS=0
10020 GENERATED_EXT_FUNCS=
10023 echo "$as_me:10023: checking if you want to build with experimental SCREEN extensions" >&5
10024 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10026 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10027 if test "${enable_sp_funcs+set}" = set; then
10028 enableval="$enable_sp_funcs"
10029 with_sp_funcs=$enableval
10033 echo "$as_me:10033: result: $with_sp_funcs" >&5
10034 echo "${ECHO_T}$with_sp_funcs" >&6
10035 if test "$with_sp_funcs" = yes ; then
10037 cat >>confdefs.h <<\EOF
10038 #define NCURSES_SP_FUNCS 1
10041 GENERATED_SP_FUNCS=generated
10044 GENERATED_SP_FUNCS=
10047 echo "$as_me:10047: checking if you want to build with experimental terminal-driver" >&5
10048 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10050 # Check whether --enable-term-driver or --disable-term-driver was given.
10051 if test "${enable_term_driver+set}" = set; then
10052 enableval="$enable_term_driver"
10053 with_term_driver=$enableval
10055 with_term_driver=no
10057 echo "$as_me:10057: result: $with_term_driver" >&5
10058 echo "${ECHO_T}$with_term_driver" >&6
10059 if test "$with_term_driver" = yes ; then
10060 cat >>confdefs.h <<\EOF
10061 #define USE_TERM_DRIVER 1
10064 if test "$with_sp_funcs" != yes ; then
10065 { { echo "$as_me:10065: error: The term-driver option relies upon sp-funcs" >&5
10066 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10067 { (exit 1); exit 1; }; }
10071 ### use option --enable-const to turn on use of const beyond that in XSI.
10072 echo "$as_me:10072: checking for extended use of const keyword" >&5
10073 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10075 # Check whether --enable-const or --disable-const was given.
10076 if test "${enable_const+set}" = set; then
10077 enableval="$enable_const"
10078 with_ext_const=$enableval
10082 echo "$as_me:10082: result: $with_ext_const" >&5
10083 echo "${ECHO_T}$with_ext_const" >&6
10084 NCURSES_CONST='/*nothing*/'
10085 if test "$with_ext_const" = yes ; then
10086 NCURSES_CONST=const
10089 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10090 echo "$as_me:10090: checking if you want to use extended colors" >&5
10091 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10093 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10094 if test "${enable_ext_colors+set}" = set; then
10095 enableval="$enable_ext_colors"
10096 with_ext_colors=$enableval
10100 echo "$as_me:10100: result: $with_ext_colors" >&5
10101 echo "${ECHO_T}$with_ext_colors" >&6
10102 NCURSES_EXT_COLORS=0
10103 if test "$with_ext_colors" = yes ; then
10104 if test "$with_widec" != yes ; then
10105 { { echo "$as_me:10105: error: This option applies only to wide-character library" >&5
10106 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10107 { (exit 1); exit 1; }; }
10109 # cannot be ABI 5 since it changes sizeof(cchar_t)
10111 if test "${with_abi_version+set}" != set; then
10112 case $cf_cv_rel_version in
10114 cf_cv_rel_version=6.0
10115 cf_cv_abi_version=6
10116 { echo "$as_me:10116: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10117 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10123 NCURSES_EXT_COLORS=1
10124 cat >>confdefs.h <<\EOF
10125 #define NCURSES_EXT_COLORS 1
10130 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10131 echo "$as_me:10131: checking if you want to use extended mouse encoding" >&5
10132 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10134 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10135 if test "${enable_ext_mouse+set}" = set; then
10136 enableval="$enable_ext_mouse"
10137 with_ext_mouse=$enableval
10141 echo "$as_me:10141: result: $with_ext_mouse" >&5
10142 echo "${ECHO_T}$with_ext_mouse" >&6
10143 NCURSES_MOUSE_VERSION=1
10144 if test "$with_ext_mouse" = yes ; then
10145 NCURSES_MOUSE_VERSION=2
10147 if test "${with_abi_version+set}" != set; then
10148 case $cf_cv_rel_version in
10150 cf_cv_rel_version=6.0
10151 cf_cv_abi_version=6
10152 { echo "$as_me:10152: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10153 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10160 echo "$as_me:10160: checking if you want \$NCURSES_NO_PADDING code" >&5
10161 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10163 # Check whether --enable-no-padding or --disable-no-padding was given.
10164 if test "${enable_no_padding+set}" = set; then
10165 enableval="$enable_no_padding"
10166 with_no_padding=$enableval
10168 with_no_padding=$with_ext_funcs
10170 echo "$as_me:10170: result: $with_no_padding" >&5
10171 echo "${ECHO_T}$with_no_padding" >&6
10172 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10173 #define NCURSES_NO_PADDING 1
10176 echo "$as_me:10176: checking for ANSI C header files" >&5
10177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10178 if test "${ac_cv_header_stdc+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10182 #line 10182 "configure"
10183 #include "confdefs.h"
10184 #include <stdlib.h>
10185 #include <stdarg.h>
10186 #include <string.h>
10190 if { (eval echo "$as_me:10190: \"$ac_cpp conftest.$ac_ext\"") >&5
10191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10193 egrep -v '^ *\+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:10196: \$? = $ac_status" >&5
10197 (exit $ac_status); } >/dev/null; then
10198 if test -s conftest.err; then
10199 ac_cpp_err=$ac_c_preproc_warn_flag
10206 if test -z "$ac_cpp_err"; then
10207 ac_cv_header_stdc=yes
10209 echo "$as_me: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 ac_cv_header_stdc=no
10213 rm -f conftest.err conftest.$ac_ext
10215 if test $ac_cv_header_stdc = yes; then
10216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10217 cat >conftest.$ac_ext <<_ACEOF
10218 #line 10218 "configure"
10219 #include "confdefs.h"
10220 #include <string.h>
10223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10224 egrep "memchr" >/dev/null 2>&1; then
10227 ac_cv_header_stdc=no
10233 if test $ac_cv_header_stdc = yes; then
10234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line 10236 "configure"
10237 #include "confdefs.h"
10238 #include <stdlib.h>
10241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10242 egrep "free" >/dev/null 2>&1; then
10245 ac_cv_header_stdc=no
10251 if test $ac_cv_header_stdc = yes; then
10252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10253 if test "$cross_compiling" = yes; then
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line 10257 "configure"
10258 #include "confdefs.h"
10260 #if ((' ' & 0x0FF) == 0x020)
10261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10264 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10265 || ('j' <= (c) && (c) <= 'r') \
10266 || ('s' <= (c) && (c) <= 'z'))
10267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10275 for (i = 0; i < 256; i++)
10276 if (XOR (islower (i), ISLOWER (i))
10277 || toupper (i) != TOUPPER (i))
10278 $ac_main_return(2);
10279 $ac_main_return (0);
10282 rm -f conftest$ac_exeext
10283 if { (eval echo "$as_me:10283: \"$ac_link\"") >&5
10284 (eval $ac_link) 2>&5
10286 echo "$as_me:10286: \$? = $ac_status" >&5
10287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10288 { (eval echo "$as_me:10288: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:10291: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10295 echo "$as_me: program exited with status $ac_status" >&5
10296 echo "$as_me: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10298 ac_cv_header_stdc=no
10300 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10304 echo "$as_me:10304: result: $ac_cv_header_stdc" >&5
10305 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10306 if test $ac_cv_header_stdc = yes; then
10308 cat >>confdefs.h <<\EOF
10309 #define STDC_HEADERS 1
10314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10317 inttypes.h stdint.h unistd.h
10319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320 echo "$as_me:10320: checking for $ac_header" >&5
10321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 cat >conftest.$ac_ext <<_ACEOF
10326 #line 10326 "configure"
10327 #include "confdefs.h"
10328 $ac_includes_default
10329 #include <$ac_header>
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:10332: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10335 echo "$as_me:10335: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:10338: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10341 echo "$as_me:10341: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 eval "$as_ac_Header=yes"
10345 echo "$as_me: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10347 eval "$as_ac_Header=no"
10349 rm -f conftest.$ac_objext conftest.$ac_ext
10351 echo "$as_me:10351: result: `eval echo '${'$as_ac_Header'}'`" >&5
10352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10354 cat >>confdefs.h <<EOF
10355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10361 echo "$as_me:10361: checking for signed char" >&5
10362 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
10363 if test "${ac_cv_type_signed_char+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 cat >conftest.$ac_ext <<_ACEOF
10367 #line 10367 "configure"
10368 #include "confdefs.h"
10369 $ac_includes_default
10373 if ((signed char *) 0)
10375 if (sizeof (signed char))
10381 rm -f conftest.$ac_objext
10382 if { (eval echo "$as_me:10382: \"$ac_compile\"") >&5
10383 (eval $ac_compile) 2>&5
10385 echo "$as_me:10385: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -s conftest.$ac_objext'
10388 { (eval echo "$as_me:10388: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:10391: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_type_signed_char=yes
10395 echo "$as_me: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10397 ac_cv_type_signed_char=no
10399 rm -f conftest.$ac_objext conftest.$ac_ext
10401 echo "$as_me:10401: result: $ac_cv_type_signed_char" >&5
10402 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
10404 echo "$as_me:10404: checking size of signed char" >&5
10405 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
10406 if test "${ac_cv_sizeof_signed_char+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 if test "$ac_cv_type_signed_char" = yes; then
10410 if test "$cross_compiling" = yes; then
10411 # Depending upon the size, compute the lo and hi bounds.
10412 cat >conftest.$ac_ext <<_ACEOF
10413 #line 10413 "configure"
10414 #include "confdefs.h"
10415 $ac_includes_default
10419 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
10424 rm -f conftest.$ac_objext
10425 if { (eval echo "$as_me:10425: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>&5
10428 echo "$as_me:10428: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -s conftest.$ac_objext'
10431 { (eval echo "$as_me:10431: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10434 echo "$as_me:10434: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10438 cat >conftest.$ac_ext <<_ACEOF
10439 #line 10439 "configure"
10440 #include "confdefs.h"
10441 $ac_includes_default
10445 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:10451: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10454 echo "$as_me:10454: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -s conftest.$ac_objext'
10457 { (eval echo "$as_me:10457: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10460 echo "$as_me:10460: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
10462 ac_hi=$ac_mid; break
10464 echo "$as_me: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10466 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10468 rm -f conftest.$ac_objext conftest.$ac_ext
10471 echo "$as_me: failed program was:" >&5
10472 cat conftest.$ac_ext >&5
10475 cat >conftest.$ac_ext <<_ACEOF
10476 #line 10476 "configure"
10477 #include "confdefs.h"
10478 $ac_includes_default
10482 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
10487 rm -f conftest.$ac_objext
10488 if { (eval echo "$as_me:10488: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>&5
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -s conftest.$ac_objext'
10494 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 ac_lo=$ac_mid; break
10501 echo "$as_me: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10503 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10505 rm -f conftest.$ac_objext conftest.$ac_ext
10508 rm -f conftest.$ac_objext conftest.$ac_ext
10509 # Binary search between lo and hi bounds.
10510 while test "x$ac_lo" != "x$ac_hi"; do
10511 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line 10513 "configure"
10514 #include "confdefs.h"
10515 $ac_includes_default
10519 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10524 rm -f conftest.$ac_objext
10525 if { (eval echo "$as_me:10525: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10528 echo "$as_me:10528: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -s conftest.$ac_objext'
10531 { (eval echo "$as_me:10531: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10534 echo "$as_me:10534: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10538 echo "$as_me: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 ac_lo=`expr $ac_mid + 1`
10542 rm -f conftest.$ac_objext conftest.$ac_ext
10544 ac_cv_sizeof_signed_char=$ac_lo
10546 if test "$cross_compiling" = yes; then
10547 { { echo "$as_me:10547: error: cannot run test program while cross compiling" >&5
10548 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10549 { (exit 1); exit 1; }; }
10551 cat >conftest.$ac_ext <<_ACEOF
10552 #line 10552 "configure"
10553 #include "confdefs.h"
10554 $ac_includes_default
10558 FILE *f = fopen ("conftest.val", "w");
10560 $ac_main_return (1);
10561 fprintf (f, "%d", (sizeof (signed char)));
10567 rm -f conftest$ac_exeext
10568 if { (eval echo "$as_me:10568: \"$ac_link\"") >&5
10569 (eval $ac_link) 2>&5
10571 echo "$as_me:10571: \$? = $ac_status" >&5
10572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10573 { (eval echo "$as_me:10573: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:10576: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_sizeof_signed_char=`cat conftest.val`
10580 echo "$as_me: program exited with status $ac_status" >&5
10581 echo "$as_me: failed program was:" >&5
10582 cat conftest.$ac_ext >&5
10584 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10589 ac_cv_sizeof_signed_char=0
10592 echo "$as_me:10592: result: $ac_cv_sizeof_signed_char" >&5
10593 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10594 cat >>confdefs.h <<EOF
10595 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10598 if test "$ac_cv_sizeof_signed_char" = 1 ; then
10599 NCURSES_SBOOL="signed char"
10601 NCURSES_SBOOL="char"
10603 echo "$as_me:10603: checking if you want to use signed Boolean array in term.h" >&5
10604 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
10606 # Check whether --enable-signed-char or --disable-signed-char was given.
10607 if test "${enable_signed_char+set}" = set; then
10608 enableval="$enable_signed_char"
10609 with_signed_char=$enableval
10611 with_signed_char=no
10613 echo "$as_me:10613: result: $with_signed_char" >&5
10614 echo "${ECHO_T}$with_signed_char" >&6
10615 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
10617 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
10618 echo "$as_me:10618: checking if you want SIGWINCH handler" >&5
10619 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
10621 # Check whether --enable-sigwinch or --disable-sigwinch was given.
10622 if test "${enable_sigwinch+set}" = set; then
10623 enableval="$enable_sigwinch"
10624 with_sigwinch=$enableval
10626 with_sigwinch=$with_ext_funcs
10628 echo "$as_me:10628: result: $with_sigwinch" >&5
10629 echo "${ECHO_T}$with_sigwinch" >&6
10630 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
10631 #define USE_SIGWINCH 1
10634 ### use option --enable-tcap-names to allow user to define new capabilities
10635 echo "$as_me:10635: checking if you want user-definable terminal capabilities like termcap" >&5
10636 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
10638 # Check whether --enable-tcap-names or --disable-tcap-names was given.
10639 if test "${enable_tcap_names+set}" = set; then
10640 enableval="$enable_tcap_names"
10641 with_tcap_names=$enableval
10643 with_tcap_names=$with_ext_funcs
10645 echo "$as_me:10645: result: $with_tcap_names" >&5
10646 echo "${ECHO_T}$with_tcap_names" >&6
10648 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
10650 ###############################################################################
10651 # These options are relatively safe to experiment with.
10653 echo "$as_me:10653: checking if you want all development code" >&5
10654 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
10656 # Check whether --with-develop or --without-develop was given.
10657 if test "${with_develop+set}" = set; then
10658 withval="$with_develop"
10659 with_develop=$withval
10663 echo "$as_me:10663: result: $with_develop" >&5
10664 echo "${ECHO_T}$with_develop" >&6
10666 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
10667 echo "$as_me:10667: checking if you want hard-tabs code" >&5
10668 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
10670 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
10671 if test "${enable_hard_tabs+set}" = set; then
10672 enableval="$enable_hard_tabs"
10675 enable_hard_tabs=$with_develop
10677 echo "$as_me:10677: result: $enable_hard_tabs" >&5
10678 echo "${ECHO_T}$enable_hard_tabs" >&6
10679 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
10680 #define USE_HARD_TABS 1
10683 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
10684 echo "$as_me:10684: checking if you want limited support for xmc" >&5
10685 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
10687 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
10688 if test "${enable_xmc_glitch+set}" = set; then
10689 enableval="$enable_xmc_glitch"
10692 enable_xmc_glitch=$with_develop
10694 echo "$as_me:10694: result: $enable_xmc_glitch" >&5
10695 echo "${ECHO_T}$enable_xmc_glitch" >&6
10696 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10697 #define USE_XMC_SUPPORT 1
10700 ###############################################################################
10701 # These are just experimental, probably should not be in a package:
10703 echo "$as_me:10703: checking if you do not want to assume colors are white-on-black" >&5
10704 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10706 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10707 if test "${enable_assumed_color+set}" = set; then
10708 enableval="$enable_assumed_color"
10709 with_assumed_color=$enableval
10711 with_assumed_color=yes
10713 echo "$as_me:10713: result: $with_assumed_color" >&5
10714 echo "${ECHO_T}$with_assumed_color" >&6
10715 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10716 #define USE_ASSUMED_COLOR 1
10719 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10720 echo "$as_me:10720: checking if you want hashmap scrolling-optimization code" >&5
10721 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10723 # Check whether --enable-hashmap or --disable-hashmap was given.
10724 if test "${enable_hashmap+set}" = set; then
10725 enableval="$enable_hashmap"
10726 with_hashmap=$enableval
10730 echo "$as_me:10730: result: $with_hashmap" >&5
10731 echo "${ECHO_T}$with_hashmap" >&6
10732 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10733 #define USE_HASHMAP 1
10736 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10737 echo "$as_me:10737: checking if you want colorfgbg code" >&5
10738 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10740 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10741 if test "${enable_colorfgbg+set}" = set; then
10742 enableval="$enable_colorfgbg"
10743 with_colorfgbg=$enableval
10747 echo "$as_me:10747: result: $with_colorfgbg" >&5
10748 echo "${ECHO_T}$with_colorfgbg" >&6
10749 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10750 #define USE_COLORFGBG 1
10753 ### use option --enable-interop to turn on use of bindings used for interop
10754 echo "$as_me:10754: checking if you want interop bindings" >&5
10755 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
10757 # Check whether --enable-interop or --disable-interop was given.
10758 if test "${enable_interop+set}" = set; then
10759 enableval="$enable_interop"
10760 with_exp_interop=$enableval
10762 with_exp_interop=no
10764 echo "$as_me:10764: result: $with_exp_interop" >&5
10765 echo "${ECHO_T}$with_exp_interop" >&6
10767 NCURSES_INTEROP_FUNCS=0
10768 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
10770 # This is still experimental (20080329), but should ultimately be moved to
10771 # the script-block --with-normal, etc.
10773 echo "$as_me:10773: checking if you want to link with the pthread library" >&5
10774 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10776 # Check whether --with-pthread or --without-pthread was given.
10777 if test "${with_pthread+set}" = set; then
10778 withval="$with_pthread"
10779 with_pthread=$withval
10783 echo "$as_me:10783: result: $with_pthread" >&5
10784 echo "${ECHO_T}$with_pthread" >&6
10786 if test "$with_pthread" != no ; then
10787 echo "$as_me:10787: checking for pthread.h" >&5
10788 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10789 if test "${ac_cv_header_pthread_h+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line 10793 "configure"
10794 #include "confdefs.h"
10795 #include <pthread.h>
10797 if { (eval echo "$as_me:10797: \"$ac_cpp conftest.$ac_ext\"") >&5
10798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10800 egrep -v '^ *\+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:10803: \$? = $ac_status" >&5
10804 (exit $ac_status); } >/dev/null; then
10805 if test -s conftest.err; then
10806 ac_cpp_err=$ac_c_preproc_warn_flag
10813 if test -z "$ac_cpp_err"; then
10814 ac_cv_header_pthread_h=yes
10816 echo "$as_me: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 ac_cv_header_pthread_h=no
10820 rm -f conftest.err conftest.$ac_ext
10822 echo "$as_me:10822: result: $ac_cv_header_pthread_h" >&5
10823 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10824 if test $ac_cv_header_pthread_h = yes; then
10826 cat >>confdefs.h <<\EOF
10827 #define HAVE_PTHREADS_H 1
10830 echo "$as_me:10830: checking if we can link with the pthread library" >&5
10831 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10832 cf_save_LIBS="$LIBS"
10833 LIBS="-lpthread $LIBS"
10834 cat >conftest.$ac_ext <<_ACEOF
10835 #line 10835 "configure"
10836 #include "confdefs.h"
10838 #include <pthread.h>
10844 int rc = pthread_create(0,0,0,0);
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (eval echo "$as_me:10851: \"$ac_link\"") >&5
10852 (eval $ac_link) 2>&5
10854 echo "$as_me:10854: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -s conftest$ac_exeext'
10857 { (eval echo "$as_me:10857: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10860 echo "$as_me:10860: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10864 echo "$as_me: failed program was:" >&5
10865 cat conftest.$ac_ext >&5
10868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10869 LIBS="$cf_save_LIBS"
10870 echo "$as_me:10870: result: $with_pthread" >&5
10871 echo "${ECHO_T}$with_pthread" >&6
10873 if test "$with_pthread" = yes ; then
10874 LIBS="-lpthread $LIBS"
10875 cat >>confdefs.h <<\EOF
10876 #define HAVE_LIBPTHREADS 1
10880 { { echo "$as_me:10880: error: Cannot link with pthread library" >&5
10881 echo "$as_me: error: Cannot link with pthread library" >&2;}
10882 { (exit 1); exit 1; }; }
10889 if test "x$with_pthread" != xno; then
10890 echo "$as_me:10890: checking for pthread_kill" >&5
10891 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
10892 if test "${ac_cv_func_pthread_kill+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 cat >conftest.$ac_ext <<_ACEOF
10896 #line 10896 "configure"
10897 #include "confdefs.h"
10898 /* System header to define __stub macros and hopefully few prototypes,
10899 which can conflict with char pthread_kill (); below. */
10900 #include <assert.h>
10901 /* Override any gcc2 internal prototype to avoid an error. */
10905 /* We use char because int might match the return type of a gcc2
10906 builtin and then its argument prototype would still apply. */
10907 char pthread_kill ();
10913 /* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:10927: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
10930 echo "$as_me:10930: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (eval echo "$as_me:10933: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:10936: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_func_pthread_kill=yes
10940 echo "$as_me: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10942 ac_cv_func_pthread_kill=no
10944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10946 echo "$as_me:10946: result: $ac_cv_func_pthread_kill" >&5
10947 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
10948 if test $ac_cv_func_pthread_kill = yes; then
10950 echo "$as_me:10950: checking if you want to allow EINTR in wgetch with pthreads" >&5
10951 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
10953 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
10954 if test "${enable_pthreads_eintr+set}" = set; then
10955 enableval="$enable_pthreads_eintr"
10956 use_pthreads_eintr=$enableval
10958 use_pthreads_eintr=no
10960 echo "$as_me:10960: result: $use_pthreads_eintr" >&5
10961 echo "${ECHO_T}$use_pthreads_eintr" >&6
10962 if test $use_pthreads_eintr = yes ; then
10963 cat >>confdefs.h <<\EOF
10964 #define USE_PTHREADS_EINTR 1
10970 echo "$as_me:10970: checking if you want to use weak-symbols for pthreads" >&5
10971 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
10973 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
10974 if test "${enable_weak_symbols+set}" = set; then
10975 enableval="$enable_weak_symbols"
10976 use_weak_symbols=$enableval
10978 use_weak_symbols=no
10980 echo "$as_me:10980: result: $use_weak_symbols" >&5
10981 echo "${ECHO_T}$use_weak_symbols" >&6
10982 if test "$use_weak_symbols" = yes ; then
10984 echo "$as_me:10984: checking if $CC supports weak symbols" >&5
10985 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
10986 if test "${cf_cv_weak_symbols+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line 10991 "configure"
10992 #include "confdefs.h"
10999 #if defined(__GNUC__)
11000 # if defined __USE_ISOC99
11001 # define _cat_pragma(exp) _Pragma(#exp)
11002 # define _weak_pragma(exp) _cat_pragma(weak name)
11004 # define _weak_pragma(exp)
11006 # define _declare(name) __extension__ extern __typeof__(name) name
11007 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11010 weak_symbol(fopen);
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:11017: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>&5
11020 echo "$as_me:11020: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:11023: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 cf_cv_weak_symbols=yes
11030 echo "$as_me: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 cf_cv_weak_symbols=no
11034 rm -f conftest.$ac_objext conftest.$ac_ext
11037 echo "$as_me:11037: result: $cf_cv_weak_symbols" >&5
11038 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11041 cf_cv_weak_symbols=no
11044 if test $cf_cv_weak_symbols = yes ; then
11045 cat >>confdefs.h <<\EOF
11046 #define USE_WEAK_SYMBOLS 1
11053 if test "$with_pthread" = "yes" ; then
11054 cat >>confdefs.h <<\EOF
11055 #define USE_PTHREADS 1
11058 enable_reentrant=yes
11059 if test $cf_cv_weak_symbols = yes ; then
11064 # Reentrant code has to be opaque; there's little advantage to making ncurses
11065 # opaque outside of that, so there is no --enable-opaque option. We can use
11066 # this option without --with-pthreads, but this will be always set for
11068 echo "$as_me:11068: checking if you want experimental reentrant code" >&5
11069 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11071 # Check whether --enable-reentrant or --disable-reentrant was given.
11072 if test "${enable_reentrant+set}" = set; then
11073 enableval="$enable_reentrant"
11074 with_reentrant=$enableval
11078 echo "$as_me:11078: result: $with_reentrant" >&5
11079 echo "${ECHO_T}$with_reentrant" >&6
11080 if test "$with_reentrant" = yes ; then
11081 cf_cv_enable_reentrant=1
11082 cf_cv_enable_opaque="NCURSES_INTERNALS"
11085 if test $cf_cv_weak_symbols = yes ; then
11087 # remove pthread library from $LIBS
11088 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11090 TEST_LIBS="-lpthread $TEST_LIBS"
11091 TEST_LIBS2="-lpthread $TEST_LIBS2"
11093 LIB_SUFFIX="t${LIB_SUFFIX}"
11095 cat >>confdefs.h <<\EOF
11096 #define USE_REENTRANT 1
11099 if test "${with_abi_version+set}" != set; then
11100 case $cf_cv_rel_version in
11102 cf_cv_rel_version=6.0
11103 cf_cv_abi_version=6
11104 { echo "$as_me:11104: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11105 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11111 cf_cv_enable_reentrant=0
11112 cf_cv_enable_opaque="NCURSES_OPAQUE"
11114 NCURSES_SIZE_T=short
11117 ### Allow using a different wrap-prefix
11118 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11119 echo "$as_me:11119: checking for prefix used to wrap public variables" >&5
11120 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11122 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11123 if test "${with_wrap_prefix+set}" = set; then
11124 withval="$with_wrap_prefix"
11125 NCURSES_WRAP_PREFIX=$withval
11127 NCURSES_WRAP_PREFIX=_nc_
11129 echo "$as_me:11129: result: $NCURSES_WRAP_PREFIX" >&5
11130 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11132 NCURSES_WRAP_PREFIX=_nc_
11135 cat >>confdefs.h <<EOF
11136 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11139 echo "$as_me:11139: checking if you want experimental safe-sprintf code" >&5
11140 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11142 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11143 if test "${enable_safe_sprintf+set}" = set; then
11144 enableval="$enable_safe_sprintf"
11145 with_safe_sprintf=$enableval
11147 with_safe_sprintf=no
11149 echo "$as_me:11149: result: $with_safe_sprintf" >&5
11150 echo "${ECHO_T}$with_safe_sprintf" >&6
11151 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11152 #define USE_SAFE_SPRINTF 1
11155 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11156 # when hashmap is used scroll hints are useless
11157 if test "$with_hashmap" = no ; then
11158 echo "$as_me:11158: checking if you want to experiment without scrolling-hints code" >&5
11159 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11161 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11162 if test "${enable_scroll_hints+set}" = set; then
11163 enableval="$enable_scroll_hints"
11164 with_scroll_hints=$enableval
11166 with_scroll_hints=yes
11168 echo "$as_me:11168: result: $with_scroll_hints" >&5
11169 echo "${ECHO_T}$with_scroll_hints" >&6
11170 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11171 #define USE_SCROLL_HINTS 1
11176 echo "$as_me:11176: checking if you want experimental wgetch-events code" >&5
11177 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11179 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11180 if test "${enable_wgetch_events+set}" = set; then
11181 enableval="$enable_wgetch_events"
11182 with_wgetch_events=$enableval
11184 with_wgetch_events=no
11186 echo "$as_me:11186: result: $with_wgetch_events" >&5
11187 echo "${ECHO_T}$with_wgetch_events" >&6
11188 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
11189 #define NCURSES_WGETCH_EVENTS 1
11192 ###############################################################################
11194 ### use option --disable-echo to suppress full display compiling commands
11195 echo "$as_me:11195: checking if you want to display full commands during build" >&5
11196 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
11198 # Check whether --enable-echo or --disable-echo was given.
11199 if test "${enable_echo+set}" = set; then
11200 enableval="$enable_echo"
11201 with_echo=$enableval
11205 if test "$with_echo" = yes; then
11208 ECHO_LINK='@ echo linking $@ ... ;'
11209 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11210 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11212 echo "$as_me:11212: result: $with_echo" >&5
11213 echo "${ECHO_T}$with_echo" >&6
11215 ### use option --enable-warnings to turn on all gcc warnings
11216 echo "$as_me:11216: checking if you want to see compiler warnings" >&5
11217 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
11219 # Check whether --enable-warnings or --disable-warnings was given.
11220 if test "${enable_warnings+set}" = set; then
11221 enableval="$enable_warnings"
11222 with_warnings=$enableval
11224 echo "$as_me:11224: result: $with_warnings" >&5
11225 echo "${ECHO_T}$with_warnings" >&6
11227 if test "x$with_warnings" = "xyes"; then
11229 ADAFLAGS="$ADAFLAGS -gnatg"
11233 if test "$GCC" = yes ; then
11236 echo "$as_me:11236: checking if this is really Intel C compiler" >&5
11237 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
11238 cf_save_CFLAGS="$CFLAGS"
11239 CFLAGS="$CFLAGS -no-gcc"
11240 cat >conftest.$ac_ext <<_ACEOF
11241 #line 11241 "configure"
11242 #include "confdefs.h"
11248 #ifdef __INTEL_COMPILER
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:11258: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>&5
11261 echo "$as_me:11261: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -s conftest.$ac_objext'
11264 { (eval echo "$as_me:11264: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:11267: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11270 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11273 echo "$as_me: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11276 rm -f conftest.$ac_objext conftest.$ac_ext
11277 CFLAGS="$cf_save_CFLAGS"
11278 echo "$as_me:11278: result: $INTEL_COMPILER" >&5
11279 echo "${ECHO_T}$INTEL_COMPILER" >&6
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11285 "${as_me:-configure}"
11286 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11289 if test "$INTEL_COMPILER" = yes
11291 # The "-wdXXX" options suppress warnings:
11292 # remark #1419: external declaration in primary source file
11293 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11294 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11295 # remark #193: zero used for undefined preprocessing identifier
11296 # remark #593: variable "curs_sb_left_arrow" was set but never used
11297 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11298 # remark #869: parameter "tw" was never referenced
11299 # remark #981: operands are evaluated in unspecified order
11300 # warning #279: controlling expression is constant
11302 { echo "$as_me:11302: checking for $CC warning options..." >&5
11303 echo "$as_me: checking for $CC warning options..." >&6;}
11304 cf_save_CFLAGS="$CFLAGS"
11305 EXTRA_CFLAGS="-Wall"
11317 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11318 if { (eval echo "$as_me:11318: \"$ac_compile\"") >&5
11319 (eval $ac_compile) 2>&5
11321 echo "$as_me:11321: \$? = $ac_status" >&5
11322 (exit $ac_status); }; then
11323 test -n "$verbose" && echo "$as_me:11323: result: ... -$cf_opt" >&5
11324 echo "${ECHO_T}... -$cf_opt" >&6
11325 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11328 CFLAGS="$cf_save_CFLAGS"
11330 elif test "$GCC" = yes
11332 { echo "$as_me:11332: checking for $CC warning options..." >&5
11333 echo "$as_me: checking for $CC warning options..." >&6;}
11334 cf_save_CFLAGS="$CFLAGS"
11337 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
11338 for cf_opt in W Wall \
11339 Wbad-function-cast \
11343 Wmissing-declarations \
11344 Wmissing-prototypes \
11348 Wstrict-prototypes \
11349 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
11351 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11352 if { (eval echo "$as_me:11352: \"$ac_compile\"") >&5
11353 (eval $ac_compile) 2>&5
11355 echo "$as_me:11355: \$? = $ac_status" >&5
11356 (exit $ac_status); }; then
11357 test -n "$verbose" && echo "$as_me:11357: result: ... -$cf_opt" >&5
11358 echo "${ECHO_T}... -$cf_opt" >&6
11359 case $cf_opt in #(vi
11361 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
11364 case $GCC_VERSION in
11366 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
11368 echo "${as_me:-configure}:11368: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
11374 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11377 CFLAGS="$cf_save_CFLAGS"
11381 if test "$cf_with_cxx" = yes ; then
11385 if test "$GCC" = yes ; then
11388 echo "$as_me:11388: checking if this is really Intel C++ compiler" >&5
11389 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
11390 cf_save_CFLAGS="$CXXFLAGS"
11391 CXXFLAGS="$CXXFLAGS -no-gcc"
11392 cat >conftest.$ac_ext <<_ACEOF
11393 #line 11393 "configure"
11394 #include "confdefs.h"
11400 #ifdef __INTEL_COMPILER
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:11410: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11413 echo "$as_me:11413: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (eval echo "$as_me:11416: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:11419: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 INTEL_CPLUSPLUS=yes
11422 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11425 echo "$as_me: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11428 rm -f conftest.$ac_objext conftest.$ac_ext
11429 CXXFLAGS="$cf_save_CFLAGS"
11430 echo "$as_me:11430: result: $INTEL_CPLUSPLUS" >&5
11431 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
11437 ac_cpp='$CXXCPP $CPPFLAGS'
11438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11441 ac_main_return=return
11443 cat > conftest.$ac_ext <<EOF
11444 #line 11444 "configure"
11445 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11448 if test "$INTEL_CPLUSPLUS" = yes
11450 # The "-wdXXX" options suppress warnings:
11451 # remark #1419: external declaration in primary source file
11452 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11453 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11454 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11455 # remark #193: zero used for undefined preprocessing identifier
11456 # remark #593: variable "curs_sb_left_arrow" was set but never used
11457 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11458 # remark #869: parameter "tw" was never referenced
11459 # remark #981: operands are evaluated in unspecified order
11460 # warning #269: invalid format string conversion
11462 { echo "$as_me:11462: checking for $CC warning options..." >&5
11463 echo "$as_me: checking for $CC warning options..." >&6;}
11464 cf_save_CXXFLAGS="$CXXFLAGS"
11465 EXTRA_CXXFLAGS="-Wall"
11478 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
11479 if { (eval echo "$as_me:11479: \"$ac_compile\"") >&5
11480 (eval $ac_compile) 2>&5
11482 echo "$as_me:11482: \$? = $ac_status" >&5
11483 (exit $ac_status); }; then
11484 test -n "$verbose" && echo "$as_me:11484: result: ... -$cf_opt" >&5
11485 echo "${ECHO_T}... -$cf_opt" >&6
11486 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11489 CXXFLAGS="$cf_save_CXXFLAGS"
11491 elif test "$GXX" = yes
11493 { echo "$as_me:11493: checking for $CXX warning options..." >&5
11494 echo "$as_me: checking for $CXX warning options..." >&6;}
11495 cf_save_CXXFLAGS="$CXXFLAGS"
11496 EXTRA_CXXFLAGS="-W -Wall"
11497 cf_gxx_extra_warnings=""
11498 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
11499 case "$GCC_VERSION" in
11503 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
11509 Woverloaded-virtual \
11515 Wmissing-prototypes \
11518 Wstrict-prototypes \
11519 Wundef $cf_gxx_extra_warnings Wno-unused
11521 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
11522 if { (eval echo "$as_me:11522: \"$ac_compile\"") >&5
11523 (eval $ac_compile) 2>&5
11525 echo "$as_me:11525: \$? = $ac_status" >&5
11526 (exit $ac_status); }; then
11527 test -n "$verbose" && echo "$as_me:11527: result: ... -$cf_opt" >&5
11528 echo "${ECHO_T}... -$cf_opt" >&6
11529 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11531 test -n "$verbose" && echo "$as_me:11531: result: ... no -$cf_opt" >&5
11532 echo "${ECHO_T}... no -$cf_opt" >&6
11535 CXXFLAGS="$cf_save_CXXFLAGS"
11540 ac_cpp='$CPP $CPPFLAGS'
11541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11544 ac_main_return=return
11549 if test "$GCC" = yes
11551 cat > conftest.i <<EOF
11553 #define GCC_PRINTF 0
11556 #define GCC_SCANF 0
11558 #ifndef GCC_NORETURN
11559 #define GCC_NORETURN /* nothing */
11562 #define GCC_UNUSED /* nothing */
11565 if test "$GCC" = yes
11567 { echo "$as_me:11567: checking for $CC __attribute__ directives..." >&5
11568 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11570 "${as_me:-configure}"
11571 #include "confdefs.h"
11572 #include "conftest.h"
11573 #include "conftest.i"
11575 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11577 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
11580 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11582 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
11584 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
11585 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
11586 extern void foo(void) GCC_NORETURN;
11587 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
11589 cf_printf_attribute=no
11590 cf_scanf_attribute=no
11591 for cf_attribute in scanf printf unused noreturn
11594 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11596 cf_directive="__attribute__(($cf_attribute))"
11597 echo "checking for $CC $cf_directive" 1>&5
11599 case $cf_attribute in #(vi
11601 cf_printf_attribute=yes
11602 cat >conftest.h <<EOF
11603 #define GCC_$cf_ATTRIBUTE 1
11607 cf_scanf_attribute=yes
11608 cat >conftest.h <<EOF
11609 #define GCC_$cf_ATTRIBUTE 1
11613 cat >conftest.h <<EOF
11614 #define GCC_$cf_ATTRIBUTE $cf_directive
11619 if { (eval echo "$as_me:11619: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11622 echo "$as_me:11622: \$? = $ac_status" >&5
11623 (exit $ac_status); }; then
11624 test -n "$verbose" && echo "$as_me:11624: result: ... $cf_attribute" >&5
11625 echo "${ECHO_T}... $cf_attribute" >&6
11626 cat conftest.h >>confdefs.h
11627 case $cf_attribute in #(vi
11629 if test "$cf_printf_attribute" = no ; then
11630 cat >>confdefs.h <<EOF
11631 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
11634 cat >>confdefs.h <<EOF
11635 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11640 if test "$cf_scanf_attribute" = no ; then
11641 cat >>confdefs.h <<EOF
11642 #define GCC_SCANFLIKE(fmt,var) /* nothing */
11645 cat >>confdefs.h <<EOF
11646 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11654 fgrep define conftest.i >>confdefs.h
11659 ### use option --enable-assertions to turn on generation of assertion code
11660 echo "$as_me:11660: checking if you want to enable runtime assertions" >&5
11661 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
11663 # Check whether --enable-assertions or --disable-assertions was given.
11664 if test "${enable_assertions+set}" = set; then
11665 enableval="$enable_assertions"
11666 with_assertions=$enableval
11670 echo "$as_me:11670: result: $with_assertions" >&5
11671 echo "${ECHO_T}$with_assertions" >&6
11674 if test "$with_assertions" = no
11676 cat >>confdefs.h <<\EOF
11680 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11683 ADAFLAGS="$ADAFLAGS -gnata"
11688 ### use option --disable-leaks to suppress "permanent" leaks, for testing
11690 echo "$as_me:11690: checking if you want to use dmalloc for testing" >&5
11691 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
11693 # Check whether --with-dmalloc or --without-dmalloc was given.
11694 if test "${with_dmalloc+set}" = set; then
11695 withval="$with_dmalloc"
11696 cat >>confdefs.h <<\EOF
11697 #define USE_DMALLOC 1
11700 : ${with_cflags:=-g}
11701 : ${with_no_leaks:=yes}
11706 echo "$as_me:11706: result: ${with_dmalloc:-no}" >&5
11707 echo "${ECHO_T}${with_dmalloc:-no}" >&6
11709 case .$with_cflags in #(vi
11711 case .$CFLAGS in #(vi
11719 cf_new_extra_cppflags=
11721 for cf_add_cflags in -g
11723 case $cf_fix_cppflags in
11725 case $cf_add_cflags in #(vi
11726 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11727 case $cf_add_cflags in
11729 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11731 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11732 && test -z "${cf_tst_cflags}" \
11733 && cf_fix_cppflags=yes
11735 if test $cf_fix_cppflags = yes ; then
11736 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11738 elif test "${cf_tst_cflags}" = "\"'" ; then
11739 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11744 case "$CPPFLAGS" in
11745 *$cf_add_cflags) #(vi
11748 case $cf_add_cflags in #(vi
11750 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11752 CPPFLAGS=`echo "$CPPFLAGS" | \
11753 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11754 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11758 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11763 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11768 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11770 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11772 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11773 && test -z "${cf_tst_cflags}" \
11774 && cf_fix_cppflags=no
11779 if test -n "$cf_new_cflags" ; then
11781 CFLAGS="$CFLAGS $cf_new_cflags"
11784 if test -n "$cf_new_cppflags" ; then
11786 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11789 if test -n "$cf_new_extra_cppflags" ; then
11791 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11799 if test "$with_dmalloc" = yes ; then
11800 echo "$as_me:11800: checking for dmalloc.h" >&5
11801 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
11802 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11806 #line 11806 "configure"
11807 #include "confdefs.h"
11808 #include <dmalloc.h>
11810 if { (eval echo "$as_me:11810: \"$ac_cpp conftest.$ac_ext\"") >&5
11811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11813 egrep -v '^ *\+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:11816: \$? = $ac_status" >&5
11817 (exit $ac_status); } >/dev/null; then
11818 if test -s conftest.err; then
11819 ac_cpp_err=$ac_c_preproc_warn_flag
11826 if test -z "$ac_cpp_err"; then
11827 ac_cv_header_dmalloc_h=yes
11829 echo "$as_me: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 ac_cv_header_dmalloc_h=no
11833 rm -f conftest.err conftest.$ac_ext
11835 echo "$as_me:11835: result: $ac_cv_header_dmalloc_h" >&5
11836 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
11837 if test $ac_cv_header_dmalloc_h = yes; then
11839 echo "$as_me:11839: checking for dmalloc_debug in -ldmalloc" >&5
11840 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
11841 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-ldmalloc $LIBS"
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line 11847 "configure"
11848 #include "confdefs.h"
11850 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856 char dmalloc_debug ();
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:11866: \"$ac_link\"") >&5
11867 (eval $ac_link) 2>&5
11869 echo "$as_me:11869: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -s conftest$ac_exeext'
11872 { (eval echo "$as_me:11872: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:11875: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_cv_lib_dmalloc_dmalloc_debug=yes
11879 echo "$as_me: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11881 ac_cv_lib_dmalloc_dmalloc_debug=no
11883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11886 echo "$as_me:11886: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11887 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11888 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11889 cat >>confdefs.h <<EOF
11890 #define HAVE_LIBDMALLOC 1
11893 LIBS="-ldmalloc $LIBS"
11901 echo "$as_me:11901: checking if you want to use dbmalloc for testing" >&5
11902 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
11904 # Check whether --with-dbmalloc or --without-dbmalloc was given.
11905 if test "${with_dbmalloc+set}" = set; then
11906 withval="$with_dbmalloc"
11907 cat >>confdefs.h <<\EOF
11908 #define USE_DBMALLOC 1
11911 : ${with_cflags:=-g}
11912 : ${with_no_leaks:=yes}
11917 echo "$as_me:11917: result: ${with_dbmalloc:-no}" >&5
11918 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
11920 case .$with_cflags in #(vi
11922 case .$CFLAGS in #(vi
11930 cf_new_extra_cppflags=
11932 for cf_add_cflags in -g
11934 case $cf_fix_cppflags in
11936 case $cf_add_cflags in #(vi
11937 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11938 case $cf_add_cflags in
11940 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11942 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11943 && test -z "${cf_tst_cflags}" \
11944 && cf_fix_cppflags=yes
11946 if test $cf_fix_cppflags = yes ; then
11947 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11949 elif test "${cf_tst_cflags}" = "\"'" ; then
11950 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11955 case "$CPPFLAGS" in
11956 *$cf_add_cflags) #(vi
11959 case $cf_add_cflags in #(vi
11961 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11963 CPPFLAGS=`echo "$CPPFLAGS" | \
11964 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11965 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11969 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11974 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11979 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11981 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11983 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11984 && test -z "${cf_tst_cflags}" \
11985 && cf_fix_cppflags=no
11990 if test -n "$cf_new_cflags" ; then
11992 CFLAGS="$CFLAGS $cf_new_cflags"
11995 if test -n "$cf_new_cppflags" ; then
11997 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12000 if test -n "$cf_new_extra_cppflags" ; then
12002 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12010 if test "$with_dbmalloc" = yes ; then
12011 echo "$as_me:12011: checking for dbmalloc.h" >&5
12012 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12013 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 cat >conftest.$ac_ext <<_ACEOF
12017 #line 12017 "configure"
12018 #include "confdefs.h"
12019 #include <dbmalloc.h>
12021 if { (eval echo "$as_me:12021: \"$ac_cpp conftest.$ac_ext\"") >&5
12022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12024 egrep -v '^ *\+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:12027: \$? = $ac_status" >&5
12028 (exit $ac_status); } >/dev/null; then
12029 if test -s conftest.err; then
12030 ac_cpp_err=$ac_c_preproc_warn_flag
12037 if test -z "$ac_cpp_err"; then
12038 ac_cv_header_dbmalloc_h=yes
12040 echo "$as_me: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12042 ac_cv_header_dbmalloc_h=no
12044 rm -f conftest.err conftest.$ac_ext
12046 echo "$as_me:12046: result: $ac_cv_header_dbmalloc_h" >&5
12047 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
12048 if test $ac_cv_header_dbmalloc_h = yes; then
12050 echo "$as_me:12050: checking for debug_malloc in -ldbmalloc" >&5
12051 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
12052 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-ldbmalloc $LIBS"
12057 cat >conftest.$ac_ext <<_ACEOF
12058 #line 12058 "configure"
12059 #include "confdefs.h"
12061 /* Override any gcc2 internal prototype to avoid an error. */
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12067 char debug_malloc ();
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (eval echo "$as_me:12077: \"$ac_link\"") >&5
12078 (eval $ac_link) 2>&5
12080 echo "$as_me:12080: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -s conftest$ac_exeext'
12083 { (eval echo "$as_me:12083: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:12086: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_cv_lib_dbmalloc_debug_malloc=yes
12090 echo "$as_me: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12092 ac_cv_lib_dbmalloc_debug_malloc=no
12094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12097 echo "$as_me:12097: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
12098 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
12099 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
12100 cat >>confdefs.h <<EOF
12101 #define HAVE_LIBDBMALLOC 1
12104 LIBS="-ldbmalloc $LIBS"
12112 echo "$as_me:12112: checking if you want to use valgrind for testing" >&5
12113 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
12115 # Check whether --with-valgrind or --without-valgrind was given.
12116 if test "${with_valgrind+set}" = set; then
12117 withval="$with_valgrind"
12118 cat >>confdefs.h <<\EOF
12119 #define USE_VALGRIND 1
12122 : ${with_cflags:=-g}
12123 : ${with_no_leaks:=yes}
12128 echo "$as_me:12128: result: ${with_valgrind:-no}" >&5
12129 echo "${ECHO_T}${with_valgrind:-no}" >&6
12131 case .$with_cflags in #(vi
12133 case .$CFLAGS in #(vi
12141 cf_new_extra_cppflags=
12143 for cf_add_cflags in -g
12145 case $cf_fix_cppflags in
12147 case $cf_add_cflags in #(vi
12148 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12149 case $cf_add_cflags in
12151 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12153 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12154 && test -z "${cf_tst_cflags}" \
12155 && cf_fix_cppflags=yes
12157 if test $cf_fix_cppflags = yes ; then
12158 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12160 elif test "${cf_tst_cflags}" = "\"'" ; then
12161 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12166 case "$CPPFLAGS" in
12167 *$cf_add_cflags) #(vi
12170 case $cf_add_cflags in #(vi
12172 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12174 CPPFLAGS=`echo "$CPPFLAGS" | \
12175 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12176 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12180 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12185 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12190 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12192 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12194 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12195 && test -z "${cf_tst_cflags}" \
12196 && cf_fix_cppflags=no
12201 if test -n "$cf_new_cflags" ; then
12203 CFLAGS="$CFLAGS $cf_new_cflags"
12206 if test -n "$cf_new_cppflags" ; then
12208 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12211 if test -n "$cf_new_extra_cppflags" ; then
12213 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12221 echo "$as_me:12221: checking if you want to perform memory-leak testing" >&5
12222 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
12224 # Check whether --enable-leaks or --disable-leaks was given.
12225 if test "${enable_leaks+set}" = set; then
12226 enableval="$enable_leaks"
12227 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
12229 : ${with_no_leaks:=no}
12231 echo "$as_me:12231: result: $with_no_leaks" >&5
12232 echo "${ECHO_T}$with_no_leaks" >&6
12234 if test "$with_no_leaks" = yes ; then
12235 cat >>confdefs.h <<\EOF
12239 cat >>confdefs.h <<\EOF
12240 #define YY_NO_LEAKS 1
12245 cat >>confdefs.h <<\EOF
12246 #define HAVE_NC_ALLOC_H 1
12249 ### use option --enable-expanded to generate certain macros as functions
12251 # Check whether --enable-expanded or --disable-expanded was given.
12252 if test "${enable_expanded+set}" = set; then
12253 enableval="$enable_expanded"
12254 test "$enableval" = yes && cat >>confdefs.h <<\EOF
12255 #define NCURSES_EXPANDED 1
12260 ### use option --disable-macros to suppress macros in favor of functions
12262 # Check whether --enable-macros or --disable-macros was given.
12263 if test "${enable_macros+set}" = set; then
12264 enableval="$enable_macros"
12265 test "$enableval" = no && cat >>confdefs.h <<\EOF
12266 #define NCURSES_NOMACROS 1
12271 # Normally we only add trace() to the debug-library. Allow this to be
12272 # extended to all models of the ncurses library:
12274 case "$CFLAGS $CPPFLAGS" in
12280 echo "$as_me:12280: checking whether to add trace feature to all models" >&5
12281 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
12283 # Check whether --with-trace or --without-trace was given.
12284 if test "${with_trace+set}" = set; then
12285 withval="$with_trace"
12286 cf_with_trace=$withval
12288 cf_with_trace=$cf_all_traces
12290 echo "$as_me:12290: result: $cf_with_trace" >&5
12291 echo "${ECHO_T}$cf_with_trace" >&6
12293 if test "$cf_with_trace" = yes ; then
12300 cf_new_extra_cppflags=
12302 for cf_add_cflags in -DTRACE
12304 case $cf_fix_cppflags in
12306 case $cf_add_cflags in #(vi
12307 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12308 case $cf_add_cflags in
12310 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12312 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12313 && test -z "${cf_tst_cflags}" \
12314 && cf_fix_cppflags=yes
12316 if test $cf_fix_cppflags = yes ; then
12317 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12319 elif test "${cf_tst_cflags}" = "\"'" ; then
12320 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12325 case "$CPPFLAGS" in
12326 *$cf_add_cflags) #(vi
12329 case $cf_add_cflags in #(vi
12331 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12333 CPPFLAGS=`echo "$CPPFLAGS" | \
12334 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12335 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12339 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12344 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12349 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12351 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12353 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12354 && test -z "${cf_tst_cflags}" \
12355 && cf_fix_cppflags=no
12360 if test -n "$cf_new_cflags" ; then
12362 CFLAGS="$CFLAGS $cf_new_cflags"
12365 if test -n "$cf_new_cppflags" ; then
12367 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12370 if test -n "$cf_new_extra_cppflags" ; then
12372 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12380 ### Checks for libraries.
12381 case $cf_cv_system_name in #(vi
12385 echo "$as_me:12385: checking for gettimeofday" >&5
12386 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
12387 if test "${ac_cv_func_gettimeofday+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12391 #line 12391 "configure"
12392 #include "confdefs.h"
12393 /* System header to define __stub macros and hopefully few prototypes,
12394 which can conflict with char gettimeofday (); below. */
12395 #include <assert.h>
12396 /* Override any gcc2 internal prototype to avoid an error. */
12400 /* We use char because int might match the return type of a gcc2
12401 builtin and then its argument prototype would still apply. */
12402 char gettimeofday ();
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:12422: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>&5
12425 echo "$as_me:12425: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -s conftest$ac_exeext'
12428 { (eval echo "$as_me:12428: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:12431: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_cv_func_gettimeofday=yes
12435 echo "$as_me: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 ac_cv_func_gettimeofday=no
12439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12441 echo "$as_me:12441: result: $ac_cv_func_gettimeofday" >&5
12442 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
12443 if test $ac_cv_func_gettimeofday = yes; then
12444 cat >>confdefs.h <<\EOF
12445 #define HAVE_GETTIMEOFDAY 1
12450 echo "$as_me:12450: checking for gettimeofday in -lbsd" >&5
12451 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
12452 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 ac_check_lib_save_LIBS=$LIBS
12457 cat >conftest.$ac_ext <<_ACEOF
12458 #line 12458 "configure"
12459 #include "confdefs.h"
12461 /* Override any gcc2 internal prototype to avoid an error. */
12465 /* We use char because int might match the return type of a gcc2
12466 builtin and then its argument prototype would still apply. */
12467 char gettimeofday ();
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (eval echo "$as_me:12477: \"$ac_link\"") >&5
12478 (eval $ac_link) 2>&5
12480 echo "$as_me:12480: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:12483: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:12486: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_lib_bsd_gettimeofday=yes
12490 echo "$as_me: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12492 ac_cv_lib_bsd_gettimeofday=no
12494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_lib_save_LIBS
12497 echo "$as_me:12497: result: $ac_cv_lib_bsd_gettimeofday" >&5
12498 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
12499 if test $ac_cv_lib_bsd_gettimeofday = yes; then
12500 cat >>confdefs.h <<\EOF
12501 #define HAVE_GETTIMEOFDAY 1
12511 echo "$as_me:12511: checking if -lm needed for math functions" >&5
12512 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
12513 if test "${cf_cv_need_libm+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line 12518 "configure"
12519 #include "confdefs.h"
12527 double x = rand(); printf("result = %g\n", sin(x))
12532 rm -f conftest.$ac_objext conftest$ac_exeext
12533 if { (eval echo "$as_me:12533: \"$ac_link\"") >&5
12534 (eval $ac_link) 2>&5
12536 echo "$as_me:12536: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -s conftest$ac_exeext'
12539 { (eval echo "$as_me:12539: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:12542: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12546 echo "$as_me: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 cf_cv_need_libm=yes
12550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12552 echo "$as_me:12552: result: $cf_cv_need_libm" >&5
12553 echo "${ECHO_T}$cf_cv_need_libm" >&6
12554 if test "$cf_cv_need_libm" = yes
12559 ### Checks for header files.
12560 echo "$as_me:12560: checking for ANSI C header files" >&5
12561 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12562 if test "${ac_cv_header_stdc+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12566 #line 12566 "configure"
12567 #include "confdefs.h"
12568 #include <stdlib.h>
12569 #include <stdarg.h>
12570 #include <string.h>
12574 if { (eval echo "$as_me:12574: \"$ac_cpp conftest.$ac_ext\"") >&5
12575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12577 egrep -v '^ *\+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:12580: \$? = $ac_status" >&5
12581 (exit $ac_status); } >/dev/null; then
12582 if test -s conftest.err; then
12583 ac_cpp_err=$ac_c_preproc_warn_flag
12590 if test -z "$ac_cpp_err"; then
12591 ac_cv_header_stdc=yes
12593 echo "$as_me: failed program was:" >&5
12594 cat conftest.$ac_ext >&5
12595 ac_cv_header_stdc=no
12597 rm -f conftest.err conftest.$ac_ext
12599 if test $ac_cv_header_stdc = yes; then
12600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12601 cat >conftest.$ac_ext <<_ACEOF
12602 #line 12602 "configure"
12603 #include "confdefs.h"
12604 #include <string.h>
12607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12608 egrep "memchr" >/dev/null 2>&1; then
12611 ac_cv_header_stdc=no
12617 if test $ac_cv_header_stdc = yes; then
12618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12619 cat >conftest.$ac_ext <<_ACEOF
12620 #line 12620 "configure"
12621 #include "confdefs.h"
12622 #include <stdlib.h>
12625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12626 egrep "free" >/dev/null 2>&1; then
12629 ac_cv_header_stdc=no
12635 if test $ac_cv_header_stdc = yes; then
12636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12637 if test "$cross_compiling" = yes; then
12640 cat >conftest.$ac_ext <<_ACEOF
12641 #line 12641 "configure"
12642 #include "confdefs.h"
12644 #if ((' ' & 0x0FF) == 0x020)
12645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12648 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12649 || ('j' <= (c) && (c) <= 'r') \
12650 || ('s' <= (c) && (c) <= 'z'))
12651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12659 for (i = 0; i < 256; i++)
12660 if (XOR (islower (i), ISLOWER (i))
12661 || toupper (i) != TOUPPER (i))
12662 $ac_main_return(2);
12663 $ac_main_return (0);
12666 rm -f conftest$ac_exeext
12667 if { (eval echo "$as_me:12667: \"$ac_link\"") >&5
12668 (eval $ac_link) 2>&5
12670 echo "$as_me:12670: \$? = $ac_status" >&5
12671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12672 { (eval echo "$as_me:12672: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:12675: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12679 echo "$as_me: program exited with status $ac_status" >&5
12680 echo "$as_me: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12682 ac_cv_header_stdc=no
12684 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12688 echo "$as_me:12688: result: $ac_cv_header_stdc" >&5
12689 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12690 if test $ac_cv_header_stdc = yes; then
12692 cat >>confdefs.h <<\EOF
12693 #define STDC_HEADERS 1
12698 ac_header_dirent=no
12699 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12700 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12701 echo "$as_me:12701: checking for $ac_hdr that defines DIR" >&5
12702 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 cat >conftest.$ac_ext <<_ACEOF
12707 #line 12707 "configure"
12708 #include "confdefs.h"
12709 #include <sys/types.h>
12721 rm -f conftest.$ac_objext
12722 if { (eval echo "$as_me:12722: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>&5
12725 echo "$as_me:12725: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:12728: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:12731: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_Header=yes"
12735 echo "$as_me: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 eval "$as_ac_Header=no"
12739 rm -f conftest.$ac_objext conftest.$ac_ext
12741 echo "$as_me:12741: result: `eval echo '${'$as_ac_Header'}'`" >&5
12742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12744 cat >>confdefs.h <<EOF
12745 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12748 ac_header_dirent=$ac_hdr; break
12752 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12753 if test $ac_header_dirent = dirent.h; then
12754 echo "$as_me:12754: checking for opendir in -ldir" >&5
12755 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
12756 if test "${ac_cv_lib_dir_opendir+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 ac_check_lib_save_LIBS=$LIBS
12761 cat >conftest.$ac_ext <<_ACEOF
12762 #line 12762 "configure"
12763 #include "confdefs.h"
12765 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:12781: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>&5
12784 echo "$as_me:12784: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:12787: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12790 echo "$as_me:12790: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_lib_dir_opendir=yes
12794 echo "$as_me: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12796 ac_cv_lib_dir_opendir=no
12798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12799 LIBS=$ac_check_lib_save_LIBS
12801 echo "$as_me:12801: result: $ac_cv_lib_dir_opendir" >&5
12802 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
12803 if test $ac_cv_lib_dir_opendir = yes; then
12808 echo "$as_me:12808: checking for opendir in -lx" >&5
12809 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
12810 if test "${ac_cv_lib_x_opendir+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 ac_check_lib_save_LIBS=$LIBS
12815 cat >conftest.$ac_ext <<_ACEOF
12816 #line 12816 "configure"
12817 #include "confdefs.h"
12819 /* Override any gcc2 internal prototype to avoid an error. */
12823 /* We use char because int might match the return type of a gcc2
12824 builtin and then its argument prototype would still apply. */
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (eval echo "$as_me:12835: \"$ac_link\"") >&5
12836 (eval $ac_link) 2>&5
12838 echo "$as_me:12838: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -s conftest$ac_exeext'
12841 { (eval echo "$as_me:12841: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12844 echo "$as_me:12844: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_cv_lib_x_opendir=yes
12848 echo "$as_me: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 ac_cv_lib_x_opendir=no
12852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12855 echo "$as_me:12855: result: $ac_cv_lib_x_opendir" >&5
12856 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12857 if test $ac_cv_lib_x_opendir = yes; then
12863 echo "$as_me:12863: checking whether time.h and sys/time.h may both be included" >&5
12864 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12865 if test "${ac_cv_header_time+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 cat >conftest.$ac_ext <<_ACEOF
12869 #line 12869 "configure"
12870 #include "confdefs.h"
12871 #include <sys/types.h>
12872 #include <sys/time.h>
12878 if ((struct tm *) 0)
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:12885: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>&5
12888 echo "$as_me:12888: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:12891: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:12894: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_header_time=yes
12898 echo "$as_me: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12900 ac_cv_header_time=no
12902 rm -f conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me:12904: result: $ac_cv_header_time" >&5
12905 echo "${ECHO_T}$ac_cv_header_time" >&6
12906 if test $ac_cv_header_time = yes; then
12908 cat >>confdefs.h <<\EOF
12909 #define TIME_WITH_SYS_TIME 1
12916 cf_regex_libs="regex re"
12917 case $host_os in #(vi
12919 cf_regex_libs="regex.dll $cf_regex_libs"
12923 echo "$as_me:12923: checking for regcomp" >&5
12924 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
12925 if test "${ac_cv_func_regcomp+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 cat >conftest.$ac_ext <<_ACEOF
12929 #line 12929 "configure"
12930 #include "confdefs.h"
12931 /* System header to define __stub macros and hopefully few prototypes,
12932 which can conflict with char regcomp (); below. */
12933 #include <assert.h>
12934 /* Override any gcc2 internal prototype to avoid an error. */
12938 /* We use char because int might match the return type of a gcc2
12939 builtin and then its argument prototype would still apply. */
12946 /* The GNU C library defines this for functions which it implements
12947 to always fail with ENOSYS. Some functions are actually named
12948 something starting with __ and the normal name is an alias. */
12949 #if defined (__stub_regcomp) || defined (__stub___regcomp)
12959 rm -f conftest.$ac_objext conftest$ac_exeext
12960 if { (eval echo "$as_me:12960: \"$ac_link\"") >&5
12961 (eval $ac_link) 2>&5
12963 echo "$as_me:12963: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (eval echo "$as_me:12966: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:12969: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_cv_func_regcomp=yes
12973 echo "$as_me: failed program was:" >&5
12974 cat conftest.$ac_ext >&5
12975 ac_cv_func_regcomp=no
12977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12979 echo "$as_me:12979: result: $ac_cv_func_regcomp" >&5
12980 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
12981 if test $ac_cv_func_regcomp = yes; then
12982 cf_regex_func=regcomp
12985 for cf_regex_lib in $cf_regex_libs
12987 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
12988 echo "$as_me:12988: checking for regcomp in -l$cf_regex_lib" >&5
12989 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
12990 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 ac_check_lib_save_LIBS=$LIBS
12994 LIBS="-l$cf_regex_lib $LIBS"
12995 cat >conftest.$ac_ext <<_ACEOF
12996 #line 12996 "configure"
12997 #include "confdefs.h"
12999 /* Override any gcc2 internal prototype to avoid an error. */
13003 /* We use char because int might match the return type of a gcc2
13004 builtin and then its argument prototype would still apply. */
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (eval echo "$as_me:13015: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>&5
13018 echo "$as_me:13018: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (eval echo "$as_me:13021: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:13024: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 eval "$as_ac_Lib=yes"
13028 echo "$as_me: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 eval "$as_ac_Lib=no"
13032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13035 echo "$as_me:13035: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13036 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13037 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13039 LIBS="-l$cf_regex_lib $LIBS"
13040 cf_regex_func=regcomp
13048 if test "$cf_regex_func" = no ; then
13049 echo "$as_me:13049: checking for compile" >&5
13050 echo $ECHO_N "checking for compile... $ECHO_C" >&6
13051 if test "${ac_cv_func_compile+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 cat >conftest.$ac_ext <<_ACEOF
13055 #line 13055 "configure"
13056 #include "confdefs.h"
13057 /* System header to define __stub macros and hopefully few prototypes,
13058 which can conflict with char compile (); below. */
13059 #include <assert.h>
13060 /* Override any gcc2 internal prototype to avoid an error. */
13064 /* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
13072 /* The GNU C library defines this for functions which it implements
13073 to always fail with ENOSYS. Some functions are actually named
13074 something starting with __ and the normal name is an alias. */
13075 #if defined (__stub_compile) || defined (__stub___compile)
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (eval echo "$as_me:13086: \"$ac_link\"") >&5
13087 (eval $ac_link) 2>&5
13089 echo "$as_me:13089: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -s conftest$ac_exeext'
13092 { (eval echo "$as_me:13092: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13095 echo "$as_me:13095: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_cv_func_compile=yes
13099 echo "$as_me: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13101 ac_cv_func_compile=no
13103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105 echo "$as_me:13105: result: $ac_cv_func_compile" >&5
13106 echo "${ECHO_T}$ac_cv_func_compile" >&6
13107 if test $ac_cv_func_compile = yes; then
13108 cf_regex_func=compile
13111 echo "$as_me:13111: checking for compile in -lgen" >&5
13112 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
13113 if test "${ac_cv_lib_gen_compile+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 ac_check_lib_save_LIBS=$LIBS
13118 cat >conftest.$ac_ext <<_ACEOF
13119 #line 13119 "configure"
13120 #include "confdefs.h"
13122 /* Override any gcc2 internal prototype to avoid an error. */
13126 /* We use char because int might match the return type of a gcc2
13127 builtin and then its argument prototype would still apply. */
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:13138: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13141 echo "$as_me:13141: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:13144: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13147 echo "$as_me:13147: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 ac_cv_lib_gen_compile=yes
13151 echo "$as_me: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 ac_cv_lib_gen_compile=no
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 echo "$as_me:13158: result: $ac_cv_lib_gen_compile" >&5
13159 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
13160 if test $ac_cv_lib_gen_compile = yes; then
13163 cf_regex_func=compile
13170 if test "$cf_regex_func" = no ; then
13171 { echo "$as_me:13171: WARNING: cannot find regular expression library" >&5
13172 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
13175 echo "$as_me:13175: checking for regular-expression headers" >&5
13176 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
13177 if test "${cf_cv_regex_hdrs+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 cf_cv_regex_hdrs=no
13182 case $cf_regex_func in #(vi
13184 for cf_regex_hdr in regexp.h regexpr.h
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line 13187 "configure"
13188 #include "confdefs.h"
13189 #include <$cf_regex_hdr>
13194 char *p = compile("", "", "", 0);
13195 int x = step("", "");
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (eval echo "$as_me:13202: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>&5
13205 echo "$as_me:13205: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -s conftest$ac_exeext'
13208 { (eval echo "$as_me:13208: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:13211: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13214 cf_cv_regex_hdrs=$cf_regex_hdr
13218 echo "$as_me: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13225 for cf_regex_hdr in regex.h
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #line 13228 "configure"
13229 #include "confdefs.h"
13230 #include <sys/types.h>
13231 #include <$cf_regex_hdr>
13237 int x = regcomp(p, "", 0);
13238 int y = regexec(p, "", 0, 0, 0);
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:13246: \"$ac_link\"") >&5
13247 (eval $ac_link) 2>&5
13249 echo "$as_me:13249: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -s conftest$ac_exeext'
13252 { (eval echo "$as_me:13252: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:13255: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13258 cf_cv_regex_hdrs=$cf_regex_hdr
13262 echo "$as_me: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13271 echo "$as_me:13271: result: $cf_cv_regex_hdrs" >&5
13272 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
13274 case $cf_cv_regex_hdrs in #(vi
13275 no) { echo "$as_me:13275: WARNING: no regular expression header found" >&5
13276 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
13277 regex.h) cat >>confdefs.h <<\EOF
13278 #define HAVE_REGEX_H_FUNCS 1
13281 regexp.h) cat >>confdefs.h <<\EOF
13282 #define HAVE_REGEXP_H_FUNCS 1
13285 regexpr.h) cat >>confdefs.h <<\EOF
13286 #define HAVE_REGEXPR_H_FUNCS 1
13309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13310 echo "$as_me:13310: checking for $ac_header" >&5
13311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 cat >conftest.$ac_ext <<_ACEOF
13316 #line 13316 "configure"
13317 #include "confdefs.h"
13318 #include <$ac_header>
13320 if { (eval echo "$as_me:13320: \"$ac_cpp conftest.$ac_ext\"") >&5
13321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13323 egrep -v '^ *\+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 echo "$as_me:13326: \$? = $ac_status" >&5
13327 (exit $ac_status); } >/dev/null; then
13328 if test -s conftest.err; then
13329 ac_cpp_err=$ac_c_preproc_warn_flag
13336 if test -z "$ac_cpp_err"; then
13337 eval "$as_ac_Header=yes"
13339 echo "$as_me: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 eval "$as_ac_Header=no"
13343 rm -f conftest.err conftest.$ac_ext
13345 echo "$as_me:13345: result: `eval echo '${'$as_ac_Header'}'`" >&5
13346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13348 cat >>confdefs.h <<EOF
13349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13355 # check for ISC (this may also define _POSIX_SOURCE)
13356 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
13357 if test "$ISC" = yes ; then
13359 echo "$as_me:13359: checking for main in -lcposix" >&5
13360 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
13361 if test "${ac_cv_lib_cposix_main+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-lcposix $LIBS"
13366 cat >conftest.$ac_ext <<_ACEOF
13367 #line 13367 "configure"
13368 #include "confdefs.h"
13378 rm -f conftest.$ac_objext conftest$ac_exeext
13379 if { (eval echo "$as_me:13379: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>&5
13382 echo "$as_me:13382: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -s conftest$ac_exeext'
13385 { (eval echo "$as_me:13385: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:13388: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_lib_cposix_main=yes
13392 echo "$as_me: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 ac_cv_lib_cposix_main=no
13396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13397 LIBS=$ac_check_lib_save_LIBS
13399 echo "$as_me:13399: result: $ac_cv_lib_cposix_main" >&5
13400 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
13401 if test $ac_cv_lib_cposix_main = yes; then
13402 cat >>confdefs.h <<EOF
13403 #define HAVE_LIBCPOSIX 1
13406 LIBS="-lcposix $LIBS"
13410 echo "$as_me:13410: checking for bzero in -linet" >&5
13411 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
13412 if test "${ac_cv_lib_inet_bzero+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-linet $LIBS"
13417 cat >conftest.$ac_ext <<_ACEOF
13418 #line 13418 "configure"
13419 #include "confdefs.h"
13421 /* Override any gcc2 internal prototype to avoid an error. */
13425 /* We use char because int might match the return type of a gcc2
13426 builtin and then its argument prototype would still apply. */
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (eval echo "$as_me:13437: \"$ac_link\"") >&5
13438 (eval $ac_link) 2>&5
13440 echo "$as_me:13440: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (eval echo "$as_me:13443: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:13446: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_lib_inet_bzero=yes
13450 echo "$as_me: failed program was:" >&5
13451 cat conftest.$ac_ext >&5
13452 ac_cv_lib_inet_bzero=no
13454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13455 LIBS=$ac_check_lib_save_LIBS
13457 echo "$as_me:13457: result: $ac_cv_lib_inet_bzero" >&5
13458 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
13459 if test $ac_cv_lib_inet_bzero = yes; then
13460 LIBS="-linet $LIBS"
13464 echo "$as_me:13464: checking if sys/time.h works with sys/select.h" >&5
13465 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13466 if test "${cf_cv_sys_time_select+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 cat >conftest.$ac_ext <<_ACEOF
13471 #line 13471 "configure"
13472 #include "confdefs.h"
13474 #include <sys/types.h>
13475 #ifdef HAVE_SYS_TIME_H
13476 #include <sys/time.h>
13478 #ifdef HAVE_SYS_SELECT_H
13479 #include <sys/select.h>
13490 rm -f conftest.$ac_objext
13491 if { (eval echo "$as_me:13491: \"$ac_compile\"") >&5
13492 (eval $ac_compile) 2>&5
13494 echo "$as_me:13494: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -s conftest.$ac_objext'
13497 { (eval echo "$as_me:13497: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:13500: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 cf_cv_sys_time_select=yes
13504 echo "$as_me: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13506 cf_cv_sys_time_select=no
13508 rm -f conftest.$ac_objext conftest.$ac_ext
13512 echo "$as_me:13512: result: $cf_cv_sys_time_select" >&5
13513 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13514 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13515 #define HAVE_SYS_TIME_SELECT 1
13518 ### checks for compiler characteristics
13520 ac_cpp='$CPP $CPPFLAGS'
13521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13524 ac_main_return=return
13526 echo "$as_me:13526: checking for $CC option to accept ANSI C" >&5
13527 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13528 if test "${ac_cv_prog_cc_stdc+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_cv_prog_cc_stdc=no
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line 13534 "configure"
13535 #include "confdefs.h"
13536 #include <stdarg.h>
13538 #include <sys/types.h>
13539 #include <sys/stat.h>
13540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13541 struct buf { int x; };
13542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13543 static char *e (p, i)
13549 static char *f (char * (*g) (char **, int), char **p, ...)
13554 s = g (p, va_arg (v,int));
13558 int test (int i, double x);
13559 struct s1 {int (*f) (int a);};
13560 struct s2 {int (*f) (double a);};
13561 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13567 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13572 # Don't try gcc -ansi; that turns off useful extensions and
13573 # breaks some systems' header files.
13574 # AIX -qlanglvl=ansi
13575 # Ultrix and OSF/1 -std1
13576 # HP-UX 10.20 and later -Ae
13577 # HP-UX older versions -Aa -D_HPUX_SOURCE
13578 # SVR4 -Xc -D__EXTENSIONS__
13579 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13581 CC="$ac_save_CC $ac_arg"
13582 rm -f conftest.$ac_objext
13583 if { (eval echo "$as_me:13583: \"$ac_compile\"") >&5
13584 (eval $ac_compile) 2>&5
13586 echo "$as_me:13586: \$? = $ac_status" >&5
13587 (exit $ac_status); } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:13589: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:13592: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_prog_cc_stdc=$ac_arg
13597 echo "$as_me: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13600 rm -f conftest.$ac_objext
13602 rm -f conftest.$ac_ext conftest.$ac_objext
13607 case "x$ac_cv_prog_cc_stdc" in
13609 echo "$as_me:13609: result: none needed" >&5
13610 echo "${ECHO_T}none needed" >&6 ;;
13612 echo "$as_me:13612: result: $ac_cv_prog_cc_stdc" >&5
13613 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13614 CC="$CC $ac_cv_prog_cc_stdc" ;;
13617 echo "$as_me:13617: checking for an ANSI C-conforming const" >&5
13618 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13619 if test "${ac_cv_c_const+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 cat >conftest.$ac_ext <<_ACEOF
13623 #line 13623 "configure"
13624 #include "confdefs.h"
13629 /* FIXME: Include the comments suggested by Paul. */
13630 #ifndef __cplusplus
13631 /* Ultrix mips cc rejects this. */
13632 typedef int charset[2];
13634 /* SunOS 4.1.1 cc rejects this. */
13635 char const *const *ccp;
13637 /* NEC SVR4.0.2 mips cc rejects this. */
13638 struct point {int x, y;};
13639 static struct point const zero = {0,0};
13640 /* AIX XL C 1.02.0.0 rejects this.
13641 It does not let you subtract one const X* pointer from another in
13642 an arm of an if-expression whose if-part is not a constant
13644 const char *g = "string";
13645 ccp = &g + (g ? g-g : 0);
13646 /* HPUX 7.0 cc rejects these. */
13649 ccp = (char const *const *) p;
13650 { /* SCO 3.2v4 cc rejects this. */
13652 char const *s = 0 ? (char *) 0 : (char const *) 0;
13656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13657 int x[] = {25, 17};
13658 const int *foo = &x[0];
13661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13662 typedef const int *iptr;
13666 { /* AIX XL C 1.02.0.0 rejects this saying
13667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13668 struct s { int j; const int *ap[3]; };
13669 struct s *b; b->j = 5;
13671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13672 const int foo = 10;
13680 rm -f conftest.$ac_objext
13681 if { (eval echo "$as_me:13681: \"$ac_compile\"") >&5
13682 (eval $ac_compile) 2>&5
13684 echo "$as_me:13684: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try='test -s conftest.$ac_objext'
13687 { (eval echo "$as_me:13687: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13690 echo "$as_me:13690: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13694 echo "$as_me: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13698 rm -f conftest.$ac_objext conftest.$ac_ext
13700 echo "$as_me:13700: result: $ac_cv_c_const" >&5
13701 echo "${ECHO_T}$ac_cv_c_const" >&6
13702 if test $ac_cv_c_const = no; then
13704 cat >>confdefs.h <<\EOF
13710 echo "$as_me:13710: checking for inline" >&5
13711 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13712 if test "${ac_cv_c_inline+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 for ac_kw in inline __inline__ __inline; do
13717 cat >conftest.$ac_ext <<_ACEOF
13718 #line 13718 "configure"
13719 #include "confdefs.h"
13720 #ifndef __cplusplus
13721 static $ac_kw int static_foo () {return 0; }
13722 $ac_kw int foo () {return 0; }
13726 rm -f conftest.$ac_objext
13727 if { (eval echo "$as_me:13727: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>&5
13730 echo "$as_me:13730: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:13733: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13736 echo "$as_me:13736: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_c_inline=$ac_kw; break
13740 echo "$as_me: failed program was:" >&5
13741 cat conftest.$ac_ext >&5
13743 rm -f conftest.$ac_objext conftest.$ac_ext
13747 echo "$as_me:13747: result: $ac_cv_c_inline" >&5
13748 echo "${ECHO_T}$ac_cv_c_inline" >&6
13749 case $ac_cv_c_inline in
13752 cat >>confdefs.h <<\EOF
13756 *) cat >>confdefs.h <<EOF
13757 #define inline $ac_cv_c_inline
13763 if test "$ac_cv_c_inline" != no ; then
13764 NCURSES_INLINE=inline
13765 if test "$INTEL_COMPILER" = yes
13768 elif test "$GCC" = yes
13770 echo "$as_me:13770: checking if $CC supports options to tune inlining" >&5
13771 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
13772 if test "${cf_cv_gcc_inline+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 cf_save_CFLAGS=$CFLAGS
13777 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line 13779 "configure"
13780 #include "confdefs.h"
13781 inline int foo(void) { return 1; }
13785 ${cf_cv_main_return:-return} foo()
13790 rm -f conftest.$ac_objext
13791 if { (eval echo "$as_me:13791: \"$ac_compile\"") >&5
13792 (eval $ac_compile) 2>&5
13794 echo "$as_me:13794: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:13797: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13800 echo "$as_me:13800: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 cf_cv_gcc_inline=yes
13804 echo "$as_me: failed program was:" >&5
13805 cat conftest.$ac_ext >&5
13806 cf_cv_gcc_inline=no
13808 rm -f conftest.$ac_objext conftest.$ac_ext
13809 CFLAGS=$cf_save_CFLAGS
13812 echo "$as_me:13812: result: $cf_cv_gcc_inline" >&5
13813 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
13814 if test "$cf_cv_gcc_inline" = yes ; then
13819 cf_new_extra_cppflags=
13821 for cf_add_cflags in --param max-inline-insns-single=1200
13823 case $cf_fix_cppflags in
13825 case $cf_add_cflags in #(vi
13826 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13827 case $cf_add_cflags in
13829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13831 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13832 && test -z "${cf_tst_cflags}" \
13833 && cf_fix_cppflags=yes
13835 if test $cf_fix_cppflags = yes ; then
13836 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13838 elif test "${cf_tst_cflags}" = "\"'" ; then
13839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13844 case "$CPPFLAGS" in
13845 *$cf_add_cflags) #(vi
13848 case $cf_add_cflags in #(vi
13850 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13852 CPPFLAGS=`echo "$CPPFLAGS" | \
13853 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13854 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13858 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13863 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13868 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13872 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13873 && test -z "${cf_tst_cflags}" \
13874 && cf_fix_cppflags=no
13879 if test -n "$cf_new_cflags" ; then
13881 CFLAGS="$CFLAGS $cf_new_cflags"
13884 if test -n "$cf_new_cppflags" ; then
13886 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13889 if test -n "$cf_new_extra_cppflags" ; then
13891 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13898 echo "$as_me:13898: checking for signal global datatype" >&5
13899 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
13900 if test "${cf_cv_sig_atomic_t+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 "volatile sig_atomic_t" \
13909 cat >conftest.$ac_ext <<_ACEOF
13910 #line 13910 "configure"
13911 #include "confdefs.h"
13913 #include <sys/types.h>
13914 #include <signal.h>
13919 static void handler(int sig)
13926 signal(SIGINT, handler);
13932 rm -f conftest.$ac_objext
13933 if { (eval echo "$as_me:13933: \"$ac_compile\"") >&5
13934 (eval $ac_compile) 2>&5
13936 echo "$as_me:13936: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -s conftest.$ac_objext'
13939 { (eval echo "$as_me:13939: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13942 echo "$as_me:13942: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }; then
13944 cf_cv_sig_atomic_t=$cf_type
13946 echo "$as_me: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13948 cf_cv_sig_atomic_t=no
13950 rm -f conftest.$ac_objext conftest.$ac_ext
13951 test "$cf_cv_sig_atomic_t" != no && break
13956 echo "$as_me:13956: result: $cf_cv_sig_atomic_t" >&5
13957 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
13958 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
13959 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
13962 if test $NCURSES_CHTYPE = auto ; then
13964 echo "$as_me:13964: checking for type of chtype" >&5
13965 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13966 if test "${cf_cv_typeof_chtype+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 if test "$cross_compiling" = yes; then
13971 cf_cv_typeof_chtype=long
13973 cat >conftest.$ac_ext <<_ACEOF
13974 #line 13974 "configure"
13975 #include "confdefs.h"
13977 #define WANT_BITS 31
13981 FILE *fp = fopen("cf_test.out", "w");
13983 char *result = "long";
13984 if (sizeof(unsigned long) > sizeof(unsigned int)) {
13987 for (n = 0; n < WANT_BITS; n++) {
13990 if (y != 1 || x == 0) {
13996 * If x is nonzero, an int is big enough for the bits
13999 result = (x != 0) ? "int" : "long";
14004 ${cf_cv_main_return:-return}(0);
14008 rm -f conftest$ac_exeext
14009 if { (eval echo "$as_me:14009: \"$ac_link\"") >&5
14010 (eval $ac_link) 2>&5
14012 echo "$as_me:14012: \$? = $ac_status" >&5
14013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14014 { (eval echo "$as_me:14014: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:14017: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 cf_cv_typeof_chtype=`cat cf_test.out`
14021 echo "$as_me: program exited with status $ac_status" >&5
14022 echo "$as_me: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14024 cf_cv_typeof_chtype=long
14026 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14032 echo "$as_me:14032: result: $cf_cv_typeof_chtype" >&5
14033 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
14035 cat >>confdefs.h <<EOF
14036 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
14040 cf_cv_typeof_chtype=$NCURSES_CHTYPE
14042 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
14044 echo "$as_me:14044: checking if unsigned literals are legal" >&5
14045 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
14046 if test "${cf_cv_unsigned_literals+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 cat >conftest.$ac_ext <<_ACEOF
14051 #line 14051 "configure"
14052 #include "confdefs.h"
14057 long x = 1L + 1UL + 1U + 1
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:14063: \"$ac_compile\"") >&5
14064 (eval $ac_compile) 2>&5
14066 echo "$as_me:14066: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (eval echo "$as_me:14069: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:14072: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 cf_cv_unsigned_literals=yes
14076 echo "$as_me: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14078 cf_cv_unsigned_literals=no
14080 rm -f conftest.$ac_objext conftest.$ac_ext
14084 echo "$as_me:14084: result: $cf_cv_unsigned_literals" >&5
14085 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
14088 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
14089 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
14091 if test $NCURSES_MMASK_T = auto ; then
14092 cf_cv_typeof_mmask_t=long
14094 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
14096 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
14098 ### Checks for external-data
14100 echo "$as_me:14100: checking if external errno is declared" >&5
14101 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
14102 if test "${cf_cv_dcl_errno+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 cat >conftest.$ac_ext <<_ACEOF
14107 #line 14107 "configure"
14108 #include "confdefs.h"
14110 #ifdef HAVE_STDLIB_H
14111 #include <stdlib.h>
14114 #include <sys/types.h>
14119 int x = (int) errno
14124 rm -f conftest.$ac_objext
14125 if { (eval echo "$as_me:14125: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>&5
14128 echo "$as_me:14128: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -s conftest.$ac_objext'
14131 { (eval echo "$as_me:14131: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:14134: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 cf_cv_dcl_errno=yes
14138 echo "$as_me: failed program was:" >&5
14139 cat conftest.$ac_ext >&5
14142 rm -f conftest.$ac_objext conftest.$ac_ext
14145 echo "$as_me:14145: result: $cf_cv_dcl_errno" >&5
14146 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
14148 if test "$cf_cv_dcl_errno" = no ; then
14150 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14152 cat >>confdefs.h <<EOF
14153 #define $cf_result 1
14158 # It's possible (for near-UNIX clones) that the data doesn't exist
14160 echo "$as_me:14160: checking if external errno exists" >&5
14161 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
14162 if test "${cf_cv_have_errno+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 cat >conftest.$ac_ext <<_ACEOF
14167 #line 14167 "configure"
14168 #include "confdefs.h"
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:14182: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>&5
14185 echo "$as_me:14185: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:14188: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:14191: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 cf_cv_have_errno=yes
14195 echo "$as_me: failed program was:" >&5
14196 cat conftest.$ac_ext >&5
14197 cf_cv_have_errno=no
14199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14202 echo "$as_me:14202: result: $cf_cv_have_errno" >&5
14203 echo "${ECHO_T}$cf_cv_have_errno" >&6
14205 if test "$cf_cv_have_errno" = yes ; then
14207 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14209 cat >>confdefs.h <<EOF
14210 #define $cf_result 1
14215 echo "$as_me:14215: checking if data-only library module links" >&5
14216 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
14217 if test "${cf_cv_link_dataonly+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 cat >conftest.$ac_ext <<EOF
14223 #line 14223 "configure"
14224 int testdata[3] = { 123, 456, 789 };
14226 if { (eval echo "$as_me:14226: \"$ac_compile\"") >&5
14227 (eval $ac_compile) 2>&5
14229 echo "$as_me:14229: \$? = $ac_status" >&5
14230 (exit $ac_status); } ; then
14231 mv conftest.o data.o && \
14232 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
14234 rm -f conftest.$ac_ext data.o
14235 cat >conftest.$ac_ext <<EOF
14236 #line 14236 "configure"
14240 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
14242 extern int testdata[3];
14243 return testdata[0] == 123
14244 && testdata[1] == 456
14245 && testdata[2] == 789;
14249 if { (eval echo "$as_me:14249: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>&5
14252 echo "$as_me:14252: \$? = $ac_status" >&5
14253 (exit $ac_status); }; then
14254 mv conftest.o func.o && \
14255 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
14257 rm -f conftest.$ac_ext func.o
14258 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
14259 cf_saveLIBS="$LIBS"
14260 LIBS="conftest.a $LIBS"
14261 if test "$cross_compiling" = yes; then
14262 cf_cv_link_dataonly=unknown
14264 cat >conftest.$ac_ext <<_ACEOF
14265 #line 14265 "configure"
14266 #include "confdefs.h"
14270 extern int testfunc();
14271 ${cf_cv_main_return:-return} (!testfunc());
14275 rm -f conftest$ac_exeext
14276 if { (eval echo "$as_me:14276: \"$ac_link\"") >&5
14277 (eval $ac_link) 2>&5
14279 echo "$as_me:14279: \$? = $ac_status" >&5
14280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14281 { (eval echo "$as_me:14281: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:14284: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 cf_cv_link_dataonly=yes
14288 echo "$as_me: program exited with status $ac_status" >&5
14289 echo "$as_me: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 cf_cv_link_dataonly=no
14293 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14295 LIBS="$cf_saveLIBS"
14299 echo "$as_me:14299: result: $cf_cv_link_dataonly" >&5
14300 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
14302 if test "$cf_cv_link_dataonly" = no ; then
14303 cat >>confdefs.h <<\EOF
14304 #define BROKEN_LINKER 1
14310 ### Checks for library functions.
14333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14334 echo "$as_me:14334: checking for $ac_func" >&5
14335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_var+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14340 #line 14340 "configure"
14341 #include "confdefs.h"
14342 /* System header to define __stub macros and hopefully few prototypes,
14343 which can conflict with char $ac_func (); below. */
14344 #include <assert.h>
14345 /* Override any gcc2 internal prototype to avoid an error. */
14349 /* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14357 /* The GNU C library defines this for functions which it implements
14358 to always fail with ENOSYS. Some functions are actually named
14359 something starting with __ and the normal name is an alias. */
14360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (eval echo "$as_me:14371: \"$ac_link\"") >&5
14372 (eval $ac_link) 2>&5
14374 echo "$as_me:14374: \$? = $ac_status" >&5
14375 (exit $ac_status); } &&
14376 { ac_try='test -s conftest$ac_exeext'
14377 { (eval echo "$as_me:14377: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:14380: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 eval "$as_ac_var=yes"
14384 echo "$as_me: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 eval "$as_ac_var=no"
14388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14390 echo "$as_me:14390: result: `eval echo '${'$as_ac_var'}'`" >&5
14391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14392 if test `eval echo '${'$as_ac_var'}'` = yes; then
14393 cat >>confdefs.h <<EOF
14394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14400 if test "$with_getcap" = "yes" ; then
14402 echo "$as_me:14402: checking for terminal-capability database functions" >&5
14403 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
14404 if test "${cf_cv_cgetent+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 cat >conftest.$ac_ext <<_ACEOF
14409 #line 14409 "configure"
14410 #include "confdefs.h"
14412 #include <stdlib.h>
14419 char *db_array = temp;
14420 cgetent(&buf, /* int *, */ &db_array, "vt100");
14421 cgetcap(buf, "tc", '=');
14422 cgetmatch(buf, "tc");
14428 rm -f conftest.$ac_objext conftest$ac_exeext
14429 if { (eval echo "$as_me:14429: \"$ac_link\"") >&5
14430 (eval $ac_link) 2>&5
14432 echo "$as_me:14432: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -s conftest$ac_exeext'
14435 { (eval echo "$as_me:14435: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14438 echo "$as_me:14438: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14442 echo "$as_me: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14450 echo "$as_me:14450: result: $cf_cv_cgetent" >&5
14451 echo "${ECHO_T}$cf_cv_cgetent" >&6
14452 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
14453 #define HAVE_BSD_CGETENT 1
14458 echo "$as_me:14458: checking for isascii" >&5
14459 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
14460 if test "${cf_cv_have_isascii+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 cat >conftest.$ac_ext <<_ACEOF
14465 #line 14465 "configure"
14466 #include "confdefs.h"
14471 int x = isascii(' ')
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:14477: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>&5
14480 echo "$as_me:14480: \$? = $ac_status" >&5
14481 (exit $ac_status); } &&
14482 { ac_try='test -s conftest$ac_exeext'
14483 { (eval echo "$as_me:14483: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:14486: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 cf_cv_have_isascii=yes
14490 echo "$as_me: failed program was:" >&5
14491 cat conftest.$ac_ext >&5
14492 cf_cv_have_isascii=no
14494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14497 echo "$as_me:14497: result: $cf_cv_have_isascii" >&5
14498 echo "${ECHO_T}$cf_cv_have_isascii" >&6
14499 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
14500 #define HAVE_ISASCII 1
14503 if test "$ac_cv_func_sigaction" = yes; then
14504 echo "$as_me:14504: checking whether sigaction needs _POSIX_SOURCE" >&5
14505 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14507 #line 14507 "configure"
14508 #include "confdefs.h"
14510 #include <sys/types.h>
14511 #include <signal.h>
14515 struct sigaction act
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:14521: \"$ac_compile\"") >&5
14522 (eval $ac_compile) 2>&5
14524 echo "$as_me:14524: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:14527: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:14530: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14534 echo "$as_me: failed program was:" >&5
14535 cat conftest.$ac_ext >&5
14537 cat >conftest.$ac_ext <<_ACEOF
14538 #line 14538 "configure"
14539 #include "confdefs.h"
14541 #define _POSIX_SOURCE
14542 #include <sys/types.h>
14543 #include <signal.h>
14547 struct sigaction act
14552 rm -f conftest.$ac_objext
14553 if { (eval echo "$as_me:14553: \"$ac_compile\"") >&5
14554 (eval $ac_compile) 2>&5
14556 echo "$as_me:14556: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (eval echo "$as_me:14559: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14562 echo "$as_me:14562: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14565 cat >>confdefs.h <<\EOF
14566 #define SVR4_ACTION 1
14570 echo "$as_me: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14576 rm -f conftest.$ac_objext conftest.$ac_ext
14577 echo "$as_me:14577: result: $sigact_bad" >&5
14578 echo "${ECHO_T}$sigact_bad" >&6
14581 echo "$as_me:14581: checking if nanosleep really works" >&5
14582 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
14583 if test "${cf_cv_func_nanosleep+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 if test "$cross_compiling" = yes; then
14588 cf_cv_func_nanosleep=unknown
14590 cat >conftest.$ac_ext <<_ACEOF
14591 #line 14591 "configure"
14592 #include "confdefs.h"
14598 #ifdef HAVE_SYS_TIME_H
14599 #include <sys/time.h>
14603 struct timespec ts1, ts2;
14606 ts1.tv_nsec = 750000000;
14610 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
14611 ${cf_cv_main_return:-return}(code != 0);
14615 rm -f conftest$ac_exeext
14616 if { (eval echo "$as_me:14616: \"$ac_link\"") >&5
14617 (eval $ac_link) 2>&5
14619 echo "$as_me:14619: \$? = $ac_status" >&5
14620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14621 { (eval echo "$as_me:14621: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626 cf_cv_func_nanosleep=yes
14628 echo "$as_me: program exited with status $ac_status" >&5
14629 echo "$as_me: failed program was:" >&5
14630 cat conftest.$ac_ext >&5
14631 cf_cv_func_nanosleep=no
14633 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14636 echo "$as_me:14636: result: $cf_cv_func_nanosleep" >&5
14637 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
14639 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
14640 #define HAVE_NANOSLEEP 1
14649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14650 echo "$as_me:14650: checking for $ac_header" >&5
14651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 cat >conftest.$ac_ext <<_ACEOF
14656 #line 14656 "configure"
14657 #include "confdefs.h"
14658 #include <$ac_header>
14660 if { (eval echo "$as_me:14660: \"$ac_cpp conftest.$ac_ext\"") >&5
14661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14663 egrep -v '^ *\+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 echo "$as_me:14666: \$? = $ac_status" >&5
14667 (exit $ac_status); } >/dev/null; then
14668 if test -s conftest.err; then
14669 ac_cpp_err=$ac_c_preproc_warn_flag
14676 if test -z "$ac_cpp_err"; then
14677 eval "$as_ac_Header=yes"
14679 echo "$as_me: failed program was:" >&5
14680 cat conftest.$ac_ext >&5
14681 eval "$as_ac_Header=no"
14683 rm -f conftest.err conftest.$ac_ext
14685 echo "$as_me:14685: result: `eval echo '${'$as_ac_Header'}'`" >&5
14686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14688 cat >>confdefs.h <<EOF
14689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14695 if test "$ISC" = yes ; then
14697 for ac_header in sys/termio.h
14699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14700 echo "$as_me:14700: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line 14706 "configure"
14707 #include "confdefs.h"
14708 #include <$ac_header>
14710 if { (eval echo "$as_me:14710: \"$ac_cpp conftest.$ac_ext\"") >&5
14711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14713 egrep -v '^ *\+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 echo "$as_me:14716: \$? = $ac_status" >&5
14717 (exit $ac_status); } >/dev/null; then
14718 if test -s conftest.err; then
14719 ac_cpp_err=$ac_c_preproc_warn_flag
14726 if test -z "$ac_cpp_err"; then
14727 eval "$as_ac_Header=yes"
14729 echo "$as_me: failed program was:" >&5
14730 cat conftest.$ac_ext >&5
14731 eval "$as_ac_Header=no"
14733 rm -f conftest.err conftest.$ac_ext
14735 echo "$as_me:14735: result: `eval echo '${'$as_ac_Header'}'`" >&5
14736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14738 cat >>confdefs.h <<EOF
14739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14746 if test "$ac_cv_header_termios_h" = yes ; then
14747 case "$CFLAGS $CPPFLAGS" in
14749 termios_bad=dunno ;;
14750 *) termios_bad=maybe ;;
14752 if test "$termios_bad" = maybe ; then
14753 echo "$as_me:14753: checking whether termios.h needs _POSIX_SOURCE" >&5
14754 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
14755 cat >conftest.$ac_ext <<_ACEOF
14756 #line 14756 "configure"
14757 #include "confdefs.h"
14758 #include <termios.h>
14762 struct termios foo; int x = foo.c_iflag
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:14768: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>&5
14771 echo "$as_me:14771: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -s conftest.$ac_objext'
14774 { (eval echo "$as_me:14774: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14777 echo "$as_me:14777: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14781 echo "$as_me: failed program was:" >&5
14782 cat conftest.$ac_ext >&5
14784 cat >conftest.$ac_ext <<_ACEOF
14785 #line 14785 "configure"
14786 #include "confdefs.h"
14788 #define _POSIX_SOURCE
14789 #include <termios.h>
14793 struct termios foo; int x = foo.c_iflag
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:14799: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:14805: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 termios_bad=unknown
14812 echo "$as_me: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 termios_bad=yes cat >>confdefs.h <<\EOF
14815 #define SVR4_TERMIO 1
14819 rm -f conftest.$ac_objext conftest.$ac_ext
14822 rm -f conftest.$ac_objext conftest.$ac_ext
14823 echo "$as_me:14823: result: $termios_bad" >&5
14824 echo "${ECHO_T}$termios_bad" >&6
14828 echo "$as_me:14828: checking for tcgetattr" >&5
14829 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
14830 if test "${cf_cv_have_tcgetattr+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 cat >conftest.$ac_ext <<_ACEOF
14835 #line 14835 "configure"
14836 #include "confdefs.h"
14838 #include <sys/types.h>
14839 #ifdef HAVE_UNISTD_H
14840 #include <unistd.h>
14842 #ifdef HAVE_TERMIOS_H
14843 #include <termios.h>
14844 #define TTY struct termios
14846 #ifdef HAVE_TERMIO_H
14847 #include <termio.h>
14848 #define TTY struct termio
14857 tcgetattr(1, &foo);
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (eval echo "$as_me:14863: \"$ac_link\"") >&5
14864 (eval $ac_link) 2>&5
14866 echo "$as_me:14866: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -s conftest$ac_exeext'
14869 { (eval echo "$as_me:14869: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:14872: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 cf_cv_have_tcgetattr=yes
14876 echo "$as_me: failed program was:" >&5
14877 cat conftest.$ac_ext >&5
14878 cf_cv_have_tcgetattr=no
14880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14882 echo "$as_me:14882: result: $cf_cv_have_tcgetattr" >&5
14883 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
14884 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
14885 #define HAVE_TCGETATTR 1
14888 echo "$as_me:14888: checking for vsscanf function or workaround" >&5
14889 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
14890 if test "${cf_cv_func_vsscanf+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 cat >conftest.$ac_ext <<_ACEOF
14895 #line 14895 "configure"
14896 #include "confdefs.h"
14898 #include <stdarg.h>
14905 vsscanf("from", "%d", ap)
14910 rm -f conftest.$ac_objext conftest$ac_exeext
14911 if { (eval echo "$as_me:14911: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>&5
14914 echo "$as_me:14914: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:14917: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:14920: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 cf_cv_func_vsscanf=vsscanf
14924 echo "$as_me: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14927 cat >conftest.$ac_ext <<_ACEOF
14928 #line 14928 "configure"
14929 #include "confdefs.h"
14931 #include <stdarg.h>
14938 char *str = "from";
14940 strbuf._flag = _IOREAD;
14941 strbuf._ptr = strbuf._base = (unsigned char *) str;
14942 strbuf._cnt = strlen(str);
14943 strbuf._file = _NFILE;
14944 return (vfscanf(&strbuf, "%d", ap))
14949 rm -f conftest.$ac_objext conftest$ac_exeext
14950 if { (eval echo "$as_me:14950: \"$ac_link\"") >&5
14951 (eval $ac_link) 2>&5
14953 echo "$as_me:14953: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
14955 { ac_try='test -s conftest$ac_exeext'
14956 { (eval echo "$as_me:14956: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14959 echo "$as_me:14959: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 cf_cv_func_vsscanf=vfscanf
14963 echo "$as_me: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14966 cat >conftest.$ac_ext <<_ACEOF
14967 #line 14967 "configure"
14968 #include "confdefs.h"
14970 #include <stdarg.h>
14977 char *str = "from";
14979 strbuf._flag = _IOREAD;
14980 strbuf._ptr = strbuf._base = (unsigned char *) str;
14981 strbuf._cnt = strlen(str);
14982 strbuf._file = _NFILE;
14983 return (_doscan(&strbuf, "%d", ap))
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (eval echo "$as_me:14989: \"$ac_link\"") >&5
14990 (eval $ac_link) 2>&5
14992 echo "$as_me:14992: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -s conftest$ac_exeext'
14995 { (eval echo "$as_me:14995: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14998 echo "$as_me:14998: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15000 cf_cv_func_vsscanf=_doscan
15002 echo "$as_me: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15005 cf_cv_func_vsscanf=no
15007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15013 echo "$as_me:15013: result: $cf_cv_func_vsscanf" >&5
15014 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
15016 case $cf_cv_func_vsscanf in #(vi
15017 vsscanf) cat >>confdefs.h <<\EOF
15018 #define HAVE_VSSCANF 1
15021 vfscanf) cat >>confdefs.h <<\EOF
15022 #define HAVE_VFSCANF 1
15025 _doscan) cat >>confdefs.h <<\EOF
15026 #define HAVE__DOSCAN 1
15031 echo "$as_me:15031: checking for working mkstemp" >&5
15032 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
15033 if test "${cf_cv_func_mkstemp+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 if test "$cross_compiling" = yes; then
15039 echo "$as_me:15039: checking for mkstemp" >&5
15040 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
15041 if test "${ac_cv_func_mkstemp+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 cat >conftest.$ac_ext <<_ACEOF
15045 #line 15045 "configure"
15046 #include "confdefs.h"
15047 /* System header to define __stub macros and hopefully few prototypes,
15048 which can conflict with char mkstemp (); below. */
15049 #include <assert.h>
15050 /* Override any gcc2 internal prototype to avoid an error. */
15054 /* We use char because int might match the return type of a gcc2
15055 builtin and then its argument prototype would still apply. */
15062 /* The GNU C library defines this for functions which it implements
15063 to always fail with ENOSYS. Some functions are actually named
15064 something starting with __ and the normal name is an alias. */
15065 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
15075 rm -f conftest.$ac_objext conftest$ac_exeext
15076 if { (eval echo "$as_me:15076: \"$ac_link\"") >&5
15077 (eval $ac_link) 2>&5
15079 echo "$as_me:15079: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -s conftest$ac_exeext'
15082 { (eval echo "$as_me:15082: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:15085: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_cv_func_mkstemp=yes
15089 echo "$as_me: failed program was:" >&5
15090 cat conftest.$ac_ext >&5
15091 ac_cv_func_mkstemp=no
15093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15095 echo "$as_me:15095: result: $ac_cv_func_mkstemp" >&5
15096 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
15099 cat >conftest.$ac_ext <<_ACEOF
15100 #line 15100 "configure"
15101 #include "confdefs.h"
15103 #include <sys/types.h>
15104 #include <stdlib.h>
15106 #include <string.h>
15107 #include <sys/stat.h>
15110 char *tmpl = "conftestXXXXXX";
15118 for (n = 0; n < 2; ++n) {
15119 strcpy(name[n], tmpl);
15120 if ((fd = mkstemp(name[n])) >= 0) {
15121 if (!strcmp(name[n], tmpl)
15122 || stat(name[n], &sb) != 0
15123 || (sb.st_mode & S_IFMT) != S_IFREG
15124 || (sb.st_mode & 077) != 0) {
15131 && !strcmp(name[0], name[1]))
15133 ${cf_cv_main_return:-return}(result);
15137 rm -f conftest$ac_exeext
15138 if { (eval echo "$as_me:15138: \"$ac_link\"") >&5
15139 (eval $ac_link) 2>&5
15141 echo "$as_me:15141: \$? = $ac_status" >&5
15142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15143 { (eval echo "$as_me:15143: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15146 echo "$as_me:15146: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 cf_cv_func_mkstemp=yes
15151 echo "$as_me: program exited with status $ac_status" >&5
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 cf_cv_func_mkstemp=no
15157 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15161 echo "$as_me:15161: result: $cf_cv_func_mkstemp" >&5
15162 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
15163 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
15164 cat >>confdefs.h <<\EOF
15165 #define HAVE_MKSTEMP 1
15170 # setup for prototype of fallback for vsscanf()
15172 if test "$cf_cv_func_vsscanf" = vsscanf ; then
15178 if test "$cross_compiling" = yes ; then
15179 { echo "$as_me:15179: WARNING: cross compiling: assume setvbuf params not reversed" >&5
15180 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
15182 echo "$as_me:15182: checking whether setvbuf arguments are reversed" >&5
15183 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
15184 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 if test "$cross_compiling" = yes; then
15188 { { echo "$as_me:15188: error: cannot run test program while cross compiling" >&5
15189 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15190 { (exit 1); exit 1; }; }
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line 15193 "configure"
15194 #include "confdefs.h"
15196 /* If setvbuf has the reversed format, exit 0. */
15200 /* This call has the arguments reversed.
15201 A reversed system may check and see that the address of main
15202 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
15203 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
15204 $ac_main_return(1);
15205 putc('\r', stdout);
15206 $ac_main_return(0); /* Non-reversed systems segv here. */
15209 rm -f conftest$ac_exeext
15210 if { (eval echo "$as_me:15210: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15215 { (eval echo "$as_me:15215: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:15218: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_func_setvbuf_reversed=yes
15222 echo "$as_me: program exited with status $ac_status" >&5
15223 echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15225 ac_cv_func_setvbuf_reversed=no
15227 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15229 rm -f core core.* *.core
15231 echo "$as_me:15231: result: $ac_cv_func_setvbuf_reversed" >&5
15232 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
15233 if test $ac_cv_func_setvbuf_reversed = yes; then
15235 cat >>confdefs.h <<\EOF
15236 #define SETVBUF_REVERSED 1
15242 echo "$as_me:15242: checking return type of signal handlers" >&5
15243 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15244 if test "${ac_cv_type_signal+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 cat >conftest.$ac_ext <<_ACEOF
15248 #line 15248 "configure"
15249 #include "confdefs.h"
15250 #include <sys/types.h>
15251 #include <signal.h>
15256 extern "C" void (*signal (int, void (*)(int)))(int);
15258 void (*signal ()) ();
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:15270: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>&5
15273 echo "$as_me:15273: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:15276: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:15279: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_type_signal=void
15283 echo "$as_me: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15285 ac_cv_type_signal=int
15287 rm -f conftest.$ac_objext conftest.$ac_ext
15289 echo "$as_me:15289: result: $ac_cv_type_signal" >&5
15290 echo "${ECHO_T}$ac_cv_type_signal" >&6
15292 cat >>confdefs.h <<EOF
15293 #define RETSIGTYPE $ac_cv_type_signal
15296 echo "$as_me:15296: checking for type sigaction_t" >&5
15297 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
15298 if test "${cf_cv_type_sigaction+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 cat >conftest.$ac_ext <<_ACEOF
15303 #line 15303 "configure"
15304 #include "confdefs.h"
15306 #include <signal.h>
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:15316: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>&5
15319 echo "$as_me:15319: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:15322: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:15325: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 cf_cv_type_sigaction=yes
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 cf_cv_type_sigaction=no
15333 rm -f conftest.$ac_objext conftest.$ac_ext
15336 echo "$as_me:15336: result: $cf_cv_type_sigaction" >&5
15337 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
15338 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
15339 #define HAVE_TYPE_SIGACTION 1
15342 echo "$as_me:15342: checking declaration of size-change" >&5
15343 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
15344 if test "${cf_cv_sizechange+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 cf_cv_sizechange=unknown
15349 cf_save_CPPFLAGS="$CPPFLAGS"
15351 for cf_opts in "" "NEED_PTEM_H"
15354 CPPFLAGS="$cf_save_CPPFLAGS"
15355 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
15356 cat >conftest.$ac_ext <<_ACEOF
15357 #line 15357 "configure"
15358 #include "confdefs.h"
15359 #include <sys/types.h>
15360 #ifdef HAVE_TERMIOS_H
15361 #include <termios.h>
15363 #ifdef HAVE_TERMIO_H
15364 #include <termio.h>
15368 /* This is a workaround for SCO: they neglected to define struct winsize in
15369 * termios.h -- it's only in termio.h and ptem.h
15371 #include <sys/stream.h>
15372 #include <sys/ptem.h>
15374 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
15375 #include <sys/ioctl.h>
15383 struct ttysize win; /* FIXME: what system is this? */
15384 int y = win.ts_lines;
15385 int x = win.ts_cols;
15388 struct winsize win;
15389 int y = win.ws_row;
15390 int x = win.ws_col;
15392 no TIOCGSIZE or TIOCGWINSZ
15393 #endif /* TIOCGWINSZ */
15394 #endif /* TIOCGSIZE */
15400 rm -f conftest.$ac_objext
15401 if { (eval echo "$as_me:15401: \"$ac_compile\"") >&5
15402 (eval $ac_compile) 2>&5
15404 echo "$as_me:15404: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -s conftest.$ac_objext'
15407 { (eval echo "$as_me:15407: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15410 echo "$as_me:15410: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 cf_cv_sizechange=yes
15414 echo "$as_me: failed program was:" >&5
15415 cat conftest.$ac_ext >&5
15416 cf_cv_sizechange=no
15418 rm -f conftest.$ac_objext conftest.$ac_ext
15420 CPPFLAGS="$cf_save_CPPFLAGS"
15421 if test "$cf_cv_sizechange" = yes ; then
15422 echo "size-change succeeded ($cf_opts)" >&5
15423 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
15429 echo "$as_me:15429: result: $cf_cv_sizechange" >&5
15430 echo "${ECHO_T}$cf_cv_sizechange" >&6
15431 if test "$cf_cv_sizechange" != no ; then
15432 cat >>confdefs.h <<\EOF
15433 #define HAVE_SIZECHANGE 1
15436 case $cf_cv_sizechange in #(vi
15438 cat >>confdefs.h <<EOF
15439 #define $cf_cv_sizechange 1
15446 echo "$as_me:15446: checking for memmove" >&5
15447 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
15448 if test "${ac_cv_func_memmove+set}" = set; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 cat >conftest.$ac_ext <<_ACEOF
15452 #line 15452 "configure"
15453 #include "confdefs.h"
15454 /* System header to define __stub macros and hopefully few prototypes,
15455 which can conflict with char memmove (); below. */
15456 #include <assert.h>
15457 /* Override any gcc2 internal prototype to avoid an error. */
15461 /* We use char because int might match the return type of a gcc2
15462 builtin and then its argument prototype would still apply. */
15469 /* The GNU C library defines this for functions which it implements
15470 to always fail with ENOSYS. Some functions are actually named
15471 something starting with __ and the normal name is an alias. */
15472 #if defined (__stub_memmove) || defined (__stub___memmove)
15482 rm -f conftest.$ac_objext conftest$ac_exeext
15483 if { (eval echo "$as_me:15483: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>&5
15486 echo "$as_me:15486: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -s conftest$ac_exeext'
15489 { (eval echo "$as_me:15489: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15492 echo "$as_me:15492: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_cv_func_memmove=yes
15496 echo "$as_me: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15498 ac_cv_func_memmove=no
15500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15502 echo "$as_me:15502: result: $ac_cv_func_memmove" >&5
15503 echo "${ECHO_T}$ac_cv_func_memmove" >&6
15504 if test $ac_cv_func_memmove = yes; then
15508 echo "$as_me:15508: checking for bcopy" >&5
15509 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
15510 if test "${ac_cv_func_bcopy+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 cat >conftest.$ac_ext <<_ACEOF
15514 #line 15514 "configure"
15515 #include "confdefs.h"
15516 /* System header to define __stub macros and hopefully few prototypes,
15517 which can conflict with char bcopy (); below. */
15518 #include <assert.h>
15519 /* Override any gcc2 internal prototype to avoid an error. */
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15531 /* The GNU C library defines this for functions which it implements
15532 to always fail with ENOSYS. Some functions are actually named
15533 something starting with __ and the normal name is an alias. */
15534 #if defined (__stub_bcopy) || defined (__stub___bcopy)
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (eval echo "$as_me:15545: \"$ac_link\"") >&5
15546 (eval $ac_link) 2>&5
15548 echo "$as_me:15548: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -s conftest$ac_exeext'
15551 { (eval echo "$as_me:15551: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:15554: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_func_bcopy=yes
15558 echo "$as_me: failed program was:" >&5
15559 cat conftest.$ac_ext >&5
15560 ac_cv_func_bcopy=no
15562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15564 echo "$as_me:15564: result: $ac_cv_func_bcopy" >&5
15565 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
15566 if test $ac_cv_func_bcopy = yes; then
15568 echo "$as_me:15568: checking if bcopy does overlapping moves" >&5
15569 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
15570 if test "${cf_cv_good_bcopy+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 if test "$cross_compiling" = yes; then
15575 cf_cv_good_bcopy=unknown
15577 cat >conftest.$ac_ext <<_ACEOF
15578 #line 15578 "configure"
15579 #include "confdefs.h"
15582 static char data[] = "abcdefghijklmnopqrstuwwxyz";
15584 bcopy(data, temp, sizeof(data));
15585 bcopy(temp+10, temp, 15);
15586 bcopy(temp+5, temp+15, 10);
15587 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
15591 rm -f conftest$ac_exeext
15592 if { (eval echo "$as_me:15592: \"$ac_link\"") >&5
15593 (eval $ac_link) 2>&5
15595 echo "$as_me:15595: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (eval echo "$as_me:15597: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:15600: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 cf_cv_good_bcopy=yes
15604 echo "$as_me: program exited with status $ac_status" >&5
15605 echo "$as_me: failed program was:" >&5
15606 cat conftest.$ac_ext >&5
15607 cf_cv_good_bcopy=no
15609 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15613 echo "$as_me:15613: result: $cf_cv_good_bcopy" >&5
15614 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
15617 cf_cv_good_bcopy=no
15620 if test "$cf_cv_good_bcopy" = yes ; then
15621 cat >>confdefs.h <<\EOF
15622 #define USE_OK_BCOPY 1
15626 cat >>confdefs.h <<\EOF
15627 #define USE_MY_MEMMOVE 1
15634 echo "$as_me:15634: checking if poll really works" >&5
15635 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
15636 if test "${cf_cv_working_poll+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 if test "$cross_compiling" = yes; then
15641 cf_cv_working_poll=unknown
15643 cat >conftest.$ac_ext <<_ACEOF
15644 #line 15644 "configure"
15645 #include "confdefs.h"
15651 #include <sys/poll.h>
15654 struct pollfd myfds;
15658 myfds.events = POLLIN;
15660 ret = poll(&myfds, 1, 100);
15661 ${cf_cv_main_return:-return}(ret != 0);
15664 rm -f conftest$ac_exeext
15665 if { (eval echo "$as_me:15665: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>&5
15668 echo "$as_me:15668: \$? = $ac_status" >&5
15669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15670 { (eval echo "$as_me:15670: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:15673: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 cf_cv_working_poll=yes
15677 echo "$as_me: program exited with status $ac_status" >&5
15678 echo "$as_me: failed program was:" >&5
15679 cat conftest.$ac_ext >&5
15680 cf_cv_working_poll=no
15682 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15685 echo "$as_me:15685: result: $cf_cv_working_poll" >&5
15686 echo "${ECHO_T}$cf_cv_working_poll" >&6
15687 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
15688 #define HAVE_WORKING_POLL 1
15691 echo "$as_me:15691: checking for va_copy" >&5
15692 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
15693 if test "${cf_cv_have_va_copy+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 cat >conftest.$ac_ext <<_ACEOF
15698 #line 15698 "configure"
15699 #include "confdefs.h"
15701 #include <stdarg.h>
15707 static va_list dst;
15708 static va_list src;
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (eval echo "$as_me:15715: \"$ac_link\"") >&5
15716 (eval $ac_link) 2>&5
15718 echo "$as_me:15718: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try='test -s conftest$ac_exeext'
15721 { (eval echo "$as_me:15721: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15724 echo "$as_me:15724: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 cf_cv_have_va_copy=yes
15728 echo "$as_me: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 cf_cv_have_va_copy=no
15732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15734 echo "$as_me:15734: result: $cf_cv_have_va_copy" >&5
15735 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
15737 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
15738 #define HAVE_VA_COPY 1
15741 echo "$as_me:15741: checking for __va_copy" >&5
15742 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
15743 if test "${cf_cv_have___va_copy+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 cat >conftest.$ac_ext <<_ACEOF
15748 #line 15748 "configure"
15749 #include "confdefs.h"
15751 #include <stdarg.h>
15757 static va_list dst;
15758 static va_list src;
15759 __va_copy(dst, src)
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (eval echo "$as_me:15765: \"$ac_link\"") >&5
15766 (eval $ac_link) 2>&5
15768 echo "$as_me:15768: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest$ac_exeext'
15771 { (eval echo "$as_me:15771: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:15774: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 cf_cv_have___va_copy=yes
15778 echo "$as_me: failed program was:" >&5
15779 cat conftest.$ac_ext >&5
15780 cf_cv_have___va_copy=no
15782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15784 echo "$as_me:15784: result: $cf_cv_have___va_copy" >&5
15785 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
15787 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
15788 #define HAVE___VA_COPY 1
15791 echo "$as_me:15791: checking for pid_t" >&5
15792 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15793 if test "${ac_cv_type_pid_t+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 cat >conftest.$ac_ext <<_ACEOF
15797 #line 15797 "configure"
15798 #include "confdefs.h"
15799 $ac_includes_default
15805 if (sizeof (pid_t))
15811 rm -f conftest.$ac_objext
15812 if { (eval echo "$as_me:15812: \"$ac_compile\"") >&5
15813 (eval $ac_compile) 2>&5
15815 echo "$as_me:15815: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -s conftest.$ac_objext'
15818 { (eval echo "$as_me:15818: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15821 echo "$as_me:15821: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823 ac_cv_type_pid_t=yes
15825 echo "$as_me: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15827 ac_cv_type_pid_t=no
15829 rm -f conftest.$ac_objext conftest.$ac_ext
15831 echo "$as_me:15831: result: $ac_cv_type_pid_t" >&5
15832 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15833 if test $ac_cv_type_pid_t = yes; then
15837 cat >>confdefs.h <<EOF
15843 for ac_header in unistd.h vfork.h
15845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15846 echo "$as_me:15846: checking for $ac_header" >&5
15847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 cat >conftest.$ac_ext <<_ACEOF
15852 #line 15852 "configure"
15853 #include "confdefs.h"
15854 #include <$ac_header>
15856 if { (eval echo "$as_me:15856: \"$ac_cpp conftest.$ac_ext\"") >&5
15857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15859 egrep -v '^ *\+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 echo "$as_me:15862: \$? = $ac_status" >&5
15863 (exit $ac_status); } >/dev/null; then
15864 if test -s conftest.err; then
15865 ac_cpp_err=$ac_c_preproc_warn_flag
15872 if test -z "$ac_cpp_err"; then
15873 eval "$as_ac_Header=yes"
15875 echo "$as_me: failed program was:" >&5
15876 cat conftest.$ac_ext >&5
15877 eval "$as_ac_Header=no"
15879 rm -f conftest.err conftest.$ac_ext
15881 echo "$as_me:15881: result: `eval echo '${'$as_ac_Header'}'`" >&5
15882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15884 cat >>confdefs.h <<EOF
15885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15891 for ac_func in fork vfork
15893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15894 echo "$as_me:15894: checking for $ac_func" >&5
15895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15896 if eval "test \"\${$as_ac_var+set}\" = set"; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15900 #line 15900 "configure"
15901 #include "confdefs.h"
15902 /* System header to define __stub macros and hopefully few prototypes,
15903 which can conflict with char $ac_func (); below. */
15904 #include <assert.h>
15905 /* Override any gcc2 internal prototype to avoid an error. */
15909 /* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15917 /* The GNU C library defines this for functions which it implements
15918 to always fail with ENOSYS. Some functions are actually named
15919 something starting with __ and the normal name is an alias. */
15920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15930 rm -f conftest.$ac_objext conftest$ac_exeext
15931 if { (eval echo "$as_me:15931: \"$ac_link\"") >&5
15932 (eval $ac_link) 2>&5
15934 echo "$as_me:15934: \$? = $ac_status" >&5
15935 (exit $ac_status); } &&
15936 { ac_try='test -s conftest$ac_exeext'
15937 { (eval echo "$as_me:15937: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15940 echo "$as_me:15940: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 eval "$as_ac_var=yes"
15944 echo "$as_me: failed program was:" >&5
15945 cat conftest.$ac_ext >&5
15946 eval "$as_ac_var=no"
15948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15950 echo "$as_me:15950: result: `eval echo '${'$as_ac_var'}'`" >&5
15951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15952 if test `eval echo '${'$as_ac_var'}'` = yes; then
15953 cat >>confdefs.h <<EOF
15954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15960 ac_cv_func_fork_works=$ac_cv_func_fork
15961 if test "x$ac_cv_func_fork" = xyes; then
15962 echo "$as_me:15962: checking for working fork" >&5
15963 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15964 if test "${ac_cv_func_fork_works+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 if test "$cross_compiling" = yes; then
15968 ac_cv_func_fork_works=cross
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* By Rüdiger Kuhlmann. */
15972 #include <sys/types.h>
15974 # include <unistd.h>
15976 /* Some systems only have a dummy stub for fork() */
15980 $ac_main_return (1);
15981 $ac_main_return (0);
15984 rm -f conftest$ac_exeext
15985 if { (eval echo "$as_me:15985: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>&5
15988 echo "$as_me:15988: \$? = $ac_status" >&5
15989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990 { (eval echo "$as_me:15990: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:15993: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_cv_func_fork_works=yes
15997 echo "$as_me: program exited with status $ac_status" >&5
15998 echo "$as_me: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 ac_cv_func_fork_works=no
16002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16005 echo "$as_me:16005: result: $ac_cv_func_fork_works" >&5
16006 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16009 if test "x$ac_cv_func_fork_works" = xcross; then
16011 *-*-amigaos* | *-*-msdosdjgpp*)
16012 # Override, as these systems have only a dummy fork() stub
16013 ac_cv_func_fork_works=no
16016 ac_cv_func_fork_works=yes
16019 { echo "$as_me:16019: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
16020 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
16022 ac_cv_func_vfork_works=$ac_cv_func_vfork
16023 if test "x$ac_cv_func_vfork" = xyes; then
16024 echo "$as_me:16024: checking for working vfork" >&5
16025 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16026 if test "${ac_cv_func_vfork_works+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 if test "$cross_compiling" = yes; then
16030 ac_cv_func_vfork_works=cross
16032 cat >conftest.$ac_ext <<_ACEOF
16033 #line 16033 "configure"
16034 #include "confdefs.h"
16035 /* Thanks to Paul Eggert for this test. */
16037 #include <sys/types.h>
16038 #include <sys/stat.h>
16040 # include <unistd.h>
16043 # include <vfork.h>
16045 /* On some sparc systems, changes by the child to local and incoming
16046 argument registers are propagated back to the parent. The compiler
16047 is told about this with #include <vfork.h>, but some compilers
16048 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16049 static variable whose address is put into a register that is
16050 clobbered by the vfork. */
16053 sparc_address_test (int arg)
16055 sparc_address_test (arg) int arg;
16058 static pid_t child;
16076 pid_t parent = getpid ();
16079 sparc_address_test ();
16084 /* Here is another test for sparc vfork register problems. This
16085 test uses lots of local variables, at least as many local
16086 variables as main has allocated so far including compiler
16087 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16088 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16089 reuse the register of parent for one of the local variables,
16090 since it will think that parent can't possibly be used any more
16091 in this routine. Assigning to the local variable will thus
16092 munge parent in the parent process. */
16094 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16095 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16096 /* Convince the compiler that p..p7 are live; otherwise, it might
16097 use the same hardware register for all 8 local variables. */
16098 if (p != p1 || p != p2 || p != p3 || p != p4
16099 || p != p5 || p != p6 || p != p7)
16102 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16103 from child file descriptors. If the child closes a descriptor
16104 before it execs or exits, this munges the parent's descriptor
16105 as well. Test for this by closing stdout in the child. */
16106 _exit(close(fileno(stdout)) != 0);
16111 while (wait(&status) != child)
16114 /* Was there some problem with vforking? */
16117 /* Did the child fail? (This shouldn't happen.) */
16120 /* Did the vfork/compiler bug occur? */
16121 || parent != getpid()
16123 /* Did the file descriptor bug occur? */
16124 || fstat(fileno(stdout), &st) != 0
16129 rm -f conftest$ac_exeext
16130 if { (eval echo "$as_me:16130: \"$ac_link\"") >&5
16131 (eval $ac_link) 2>&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16135 { (eval echo "$as_me:16135: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:16138: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_cv_func_vfork_works=yes
16142 echo "$as_me: program exited with status $ac_status" >&5
16143 echo "$as_me: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 ac_cv_func_vfork_works=no
16147 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16150 echo "$as_me:16150: result: $ac_cv_func_vfork_works" >&5
16151 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16154 if test "x$ac_cv_func_fork_works" = xcross; then
16155 ac_cv_func_vfork_works=ac_cv_func_vfork
16156 { echo "$as_me:16156: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
16157 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
16160 if test "x$ac_cv_func_vfork_works" = xyes; then
16162 cat >>confdefs.h <<\EOF
16163 #define HAVE_WORKING_VFORK 1
16168 cat >>confdefs.h <<\EOF
16173 if test "x$ac_cv_func_fork_works" = xyes; then
16175 cat >>confdefs.h <<\EOF
16176 #define HAVE_WORKING_FORK 1
16181 # special check for test/ditto.c
16183 echo "$as_me:16183: checking for openpty in -lutil" >&5
16184 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16185 if test "${ac_cv_lib_util_openpty+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 ac_check_lib_save_LIBS=$LIBS
16189 LIBS="-lutil $LIBS"
16190 cat >conftest.$ac_ext <<_ACEOF
16191 #line 16191 "configure"
16192 #include "confdefs.h"
16194 /* Override any gcc2 internal prototype to avoid an error. */
16198 /* We use char because int might match the return type of a gcc2
16199 builtin and then its argument prototype would still apply. */
16209 rm -f conftest.$ac_objext conftest$ac_exeext
16210 if { (eval echo "$as_me:16210: \"$ac_link\"") >&5
16211 (eval $ac_link) 2>&5
16213 echo "$as_me:16213: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -s conftest$ac_exeext'
16216 { (eval echo "$as_me:16216: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16219 echo "$as_me:16219: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 ac_cv_lib_util_openpty=yes
16223 echo "$as_me: failed program was:" >&5
16224 cat conftest.$ac_ext >&5
16225 ac_cv_lib_util_openpty=no
16227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16228 LIBS=$ac_check_lib_save_LIBS
16230 echo "$as_me:16230: result: $ac_cv_lib_util_openpty" >&5
16231 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16232 if test $ac_cv_lib_util_openpty = yes; then
16238 echo "$as_me:16238: checking for openpty header" >&5
16239 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16240 if test "${cf_cv_func_openpty+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 cf_save_LIBS="$LIBS"
16245 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
16246 for cf_header in pty.h libutil.h util.h
16248 cat >conftest.$ac_ext <<_ACEOF
16249 #line 16249 "configure"
16250 #include "confdefs.h"
16252 #include <$cf_header>
16258 int x = openpty((int *)0, (int *)0, (char *)0,
16259 (struct termios *)0, (struct winsize *)0);
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (eval echo "$as_me:16266: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>&5
16269 echo "$as_me:16269: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:16272: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:16275: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16278 cf_cv_func_openpty=$cf_header
16282 echo "$as_me: failed program was:" >&5
16283 cat conftest.$ac_ext >&5
16285 cf_cv_func_openpty=no
16288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16290 LIBS="$cf_save_LIBS"
16293 echo "$as_me:16293: result: $cf_cv_func_openpty" >&5
16294 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16296 if test "$cf_cv_func_openpty" != no ; then
16297 cat >>confdefs.h <<EOF
16298 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16301 cat >>confdefs.h <<\EOF
16302 #define USE_XTERM_PTY 1
16305 if test "$cf_cv_lib_util" = yes ; then
16306 TEST_LIBS="-lutil $TEST_LIBS"
16310 if test "$with_hashed_db" != no ; then
16311 cat >>confdefs.h <<\EOF
16312 #define USE_HASHED_DB 1
16315 case $with_hashed_db in #(vi
16319 if test -d "$with_hashed_db" ; then
16321 if test -n "$with_hashed_db/include" ; then
16322 for cf_add_incdir in $with_hashed_db/include
16324 while test $cf_add_incdir != /usr/include
16326 if test -d $cf_add_incdir
16329 if test -n "$CFLAGS$CPPFLAGS" ; then
16330 # a loop is needed to ensure we can add subdirs of existing dirs
16331 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16332 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16333 cf_have_incdir=yes; break
16338 if test "$cf_have_incdir" = no ; then
16339 if test "$cf_add_incdir" = /usr/local/include ; then
16340 if test "$GCC" = yes
16342 cf_save_CPPFLAGS=$CPPFLAGS
16343 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16344 cat >conftest.$ac_ext <<_ACEOF
16345 #line 16345 "configure"
16346 #include "confdefs.h"
16356 rm -f conftest.$ac_objext
16357 if { (eval echo "$as_me:16357: \"$ac_compile\"") >&5
16358 (eval $ac_compile) 2>&5
16360 echo "$as_me:16360: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (eval echo "$as_me:16363: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16366 echo "$as_me:16366: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16370 echo "$as_me: failed program was:" >&5
16371 cat conftest.$ac_ext >&5
16374 rm -f conftest.$ac_objext conftest.$ac_ext
16375 CPPFLAGS=$cf_save_CPPFLAGS
16380 if test "$cf_have_incdir" = no ; then
16381 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16383 echo "${as_me:-configure}:16383: testing adding $cf_add_incdir to include-path ..." 1>&5
16385 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16387 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16388 test "$cf_top_incdir" = "$cf_add_incdir" && break
16389 cf_add_incdir="$cf_top_incdir"
16398 if test -n "$with_hashed_db/lib" ; then
16399 for cf_add_libdir in $with_hashed_db/lib
16401 if test $cf_add_libdir = /usr/lib ; then
16403 elif test -d $cf_add_libdir
16406 if test -n "$LDFLAGS$LIBS" ; then
16407 # a loop is needed to ensure we can add subdirs of existing dirs
16408 for cf_test_libdir in $LDFLAGS $LIBS ; do
16409 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
16410 cf_have_libdir=yes; break
16414 if test "$cf_have_libdir" = no ; then
16415 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
16417 echo "${as_me:-configure}:16417: testing adding $cf_add_libdir to library-path ..." 1>&5
16419 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
16428 echo "$as_me:16428: checking for db.h" >&5
16429 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
16430 if test "${ac_cv_header_db_h+set}" = set; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16434 #line 16434 "configure"
16435 #include "confdefs.h"
16438 if { (eval echo "$as_me:16438: \"$ac_cpp conftest.$ac_ext\"") >&5
16439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16441 egrep -v '^ *\+' conftest.er1 >conftest.err
16443 cat conftest.err >&5
16444 echo "$as_me:16444: \$? = $ac_status" >&5
16445 (exit $ac_status); } >/dev/null; then
16446 if test -s conftest.err; then
16447 ac_cpp_err=$ac_c_preproc_warn_flag
16454 if test -z "$ac_cpp_err"; then
16455 ac_cv_header_db_h=yes
16457 echo "$as_me: failed program was:" >&5
16458 cat conftest.$ac_ext >&5
16459 ac_cv_header_db_h=no
16461 rm -f conftest.err conftest.$ac_ext
16463 echo "$as_me:16463: result: $ac_cv_header_db_h" >&5
16464 echo "${ECHO_T}$ac_cv_header_db_h" >&6
16465 if test $ac_cv_header_db_h = yes; then
16467 echo "$as_me:16467: checking for version of db" >&5
16468 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
16469 if test "${cf_cv_hashed_db_version+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 cf_cv_hashed_db_version=unknown
16475 for cf_db_version in 1 2 3 4 5
16478 echo "${as_me:-configure}:16478: testing checking for db version $cf_db_version ..." 1>&5
16480 cat >conftest.$ac_ext <<_ACEOF
16481 #line 16481 "configure"
16482 #include "confdefs.h"
16484 $ac_includes_default
16487 #ifdef DB_VERSION_MAJOR
16488 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
16489 #if $cf_db_version == DB_VERSION_MAJOR
16495 #if $cf_db_version == 1
16496 /* ok: assuming this is DB 1.8.5 */
16510 rm -f conftest.$ac_objext
16511 if { (eval echo "$as_me:16511: \"$ac_compile\"") >&5
16512 (eval $ac_compile) 2>&5
16514 echo "$as_me:16514: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -s conftest.$ac_objext'
16517 { (eval echo "$as_me:16517: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:16520: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16523 cf_cv_hashed_db_version=$cf_db_version
16527 echo "$as_me: failed program was:" >&5
16528 cat conftest.$ac_ext >&5
16530 rm -f conftest.$ac_objext conftest.$ac_ext
16534 echo "$as_me:16534: result: $cf_cv_hashed_db_version" >&5
16535 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
16537 if test "$cf_cv_hashed_db_version" = unknown ; then
16538 { { echo "$as_me:16538: error: Cannot determine version of db" >&5
16539 echo "$as_me: error: Cannot determine version of db" >&2;}
16540 { (exit 1); exit 1; }; }
16543 echo "$as_me:16543: checking for db libraries" >&5
16544 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
16545 if test "${cf_cv_hashed_db_libs+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 cf_cv_hashed_db_libs=unknown
16550 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
16552 cf_save_libs="$LIBS"
16553 if test -n "$cf_db_libs"; then
16554 LIBS="-l$cf_db_libs $LIBS"
16557 echo "${as_me:-configure}:16557: testing checking for library "$cf_db_libs" ..." 1>&5
16559 cat >conftest.$ac_ext <<_ACEOF
16560 #line 16560 "configure"
16561 #include "confdefs.h"
16563 $ac_includes_default
16570 char *path = "/tmp/foo";
16571 #ifdef DB_VERSION_MAJOR
16572 #if DB_VERSION_MAJOR >= 4
16574 db_create(&result, NULL, 0);
16575 result->open(result,
16582 #elif DB_VERSION_MAJOR >= 3
16584 db_create(&result, NULL, 0);
16585 result->open(result,
16591 #elif DB_VERSION_MAJOR >= 2
16600 #endif /* DB_VERSION_MAJOR */
16602 DB *result = dbopen(path,
16608 ${cf_cv_main_return:-return}(result != 0)
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (eval echo "$as_me:16615: \"$ac_link\"") >&5
16616 (eval $ac_link) 2>&5
16618 echo "$as_me:16618: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:16621: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:16624: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16627 if test -n "$cf_db_libs" ; then
16628 cf_cv_hashed_db_libs=$cf_db_libs
16630 cf_cv_hashed_db_libs=default
16632 LIBS="$cf_save_libs"
16636 echo "$as_me: failed program was:" >&5
16637 cat conftest.$ac_ext >&5
16639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16640 LIBS="$cf_save_libs"
16644 echo "$as_me:16644: result: $cf_cv_hashed_db_libs" >&5
16645 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
16647 if test "$cf_cv_hashed_db_libs" = unknown ; then
16648 { { echo "$as_me:16648: error: Cannot determine library for db" >&5
16649 echo "$as_me: error: Cannot determine library for db" >&2;}
16650 { (exit 1); exit 1; }; }
16651 elif test "$cf_cv_hashed_db_libs" != default ; then
16652 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
16658 { { echo "$as_me:16658: error: Cannot find db.h" >&5
16659 echo "$as_me: error: Cannot find db.h" >&2;}
16660 { (exit 1); exit 1; }; }
16666 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
16667 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16668 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16671 # Just in case, check if the C compiler has a bool type.
16673 echo "$as_me:16673: checking if we should include stdbool.h" >&5
16674 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
16676 if test "${cf_cv_header_stdbool_h+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16680 cat >conftest.$ac_ext <<_ACEOF
16681 #line 16681 "configure"
16682 #include "confdefs.h"
16692 rm -f conftest.$ac_objext
16693 if { (eval echo "$as_me:16693: \"$ac_compile\"") >&5
16694 (eval $ac_compile) 2>&5
16696 echo "$as_me:16696: \$? = $ac_status" >&5
16697 (exit $ac_status); } &&
16698 { ac_try='test -s conftest.$ac_objext'
16699 { (eval echo "$as_me:16699: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16702 echo "$as_me:16702: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 cf_cv_header_stdbool_h=0
16706 echo "$as_me: failed program was:" >&5
16707 cat conftest.$ac_ext >&5
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line 16709 "configure"
16710 #include "confdefs.h"
16713 #include <stdbool.h>
16724 rm -f conftest.$ac_objext
16725 if { (eval echo "$as_me:16725: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>&5
16728 echo "$as_me:16728: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -s conftest.$ac_objext'
16731 { (eval echo "$as_me:16731: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16734 echo "$as_me:16734: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 cf_cv_header_stdbool_h=1
16738 echo "$as_me: failed program was:" >&5
16739 cat conftest.$ac_ext >&5
16740 cf_cv_header_stdbool_h=0
16742 rm -f conftest.$ac_objext conftest.$ac_ext
16744 rm -f conftest.$ac_objext conftest.$ac_ext
16747 if test "$cf_cv_header_stdbool_h" = 1
16748 then echo "$as_me:16748: result: yes" >&5
16749 echo "${ECHO_T}yes" >&6
16750 else echo "$as_me:16750: result: no" >&5
16751 echo "${ECHO_T}no" >&6
16754 echo "$as_me:16754: checking for builtin bool type" >&5
16755 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
16757 if test "${cf_cv_cc_bool_type+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 cat >conftest.$ac_ext <<_ACEOF
16762 #line 16762 "configure"
16763 #include "confdefs.h"
16766 #include <sys/types.h>
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:16777: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>&5
16780 echo "$as_me:16780: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (eval echo "$as_me:16783: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 echo "$as_me:16786: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 cf_cv_cc_bool_type=1
16790 echo "$as_me: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16792 cf_cv_cc_bool_type=0
16794 rm -f conftest.$ac_objext conftest.$ac_ext
16798 if test "$cf_cv_cc_bool_type" = 1
16799 then echo "$as_me:16799: result: yes" >&5
16800 echo "${ECHO_T}yes" >&6
16801 else echo "$as_me:16801: result: no" >&5
16802 echo "${ECHO_T}no" >&6
16805 # Check for C++ compiler characteristics (and ensure that it's there!)
16806 if test -n "$CXX" ; then
16808 ac_cpp='$CXXCPP $CPPFLAGS'
16809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16812 ac_main_return=return
16814 if test -n "$GXX" ; then
16815 case $cf_cv_system_name in #(vi
16817 cf_stdcpp_libname=stdcpp
16820 cf_stdcpp_libname=stdc++
16823 echo "$as_me:16823: checking for library $cf_stdcpp_libname" >&5
16824 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
16825 if test "${cf_cv_libstdcpp+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 LIBS="-l$cf_stdcpp_libname $LIBS"
16831 cat >conftest.$ac_ext <<_ACEOF
16832 #line 16832 "configure"
16833 #include "confdefs.h"
16835 #include <strstream.h>
16841 strstreambuf foo(buf, sizeof(buf))
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (eval echo "$as_me:16848: \"$ac_link\"") >&5
16849 (eval $ac_link) 2>&5
16851 echo "$as_me:16851: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -s conftest$ac_exeext'
16854 { (eval echo "$as_me:16854: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16857 echo "$as_me:16857: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 cf_cv_libstdcpp=yes
16861 echo "$as_me: failed program was:" >&5
16862 cat conftest.$ac_ext >&5
16865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16869 echo "$as_me:16869: result: $cf_cv_libstdcpp" >&5
16870 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
16871 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
16874 echo "$as_me:16874: checking whether $CXX understands -c and -o together" >&5
16875 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
16876 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 cat > conftest.$ac_ext <<CF_EOF
16884 ${cf_cv_main_return:-return}(0);
16887 # We do the test twice because some compilers refuse to overwrite an
16888 # existing .o file with -o, though they will create one.
16889 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16890 if { (eval echo "$as_me:16890: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16893 echo "$as_me:16893: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 test -f conftest2.$ac_objext && { (eval echo "$as_me:16895: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16898 echo "$as_me:16898: \$? = $ac_status" >&5
16899 (exit $ac_status); };
16901 eval cf_cv_prog_CXX_c_o=yes
16903 eval cf_cv_prog_CXX_c_o=no
16908 if test $cf_cv_prog_CXX_c_o = yes; then
16909 echo "$as_me:16909: result: yes" >&5
16910 echo "${ECHO_T}yes" >&6
16912 echo "$as_me:16912: result: no" >&5
16913 echo "${ECHO_T}no" >&6
16916 case $GXX_VERSION in
16922 cf_cxx_library=unknown
16923 case $cf_cv_system_name in #(vi
16931 if test "$GXX" = yes; then
16932 echo "$as_me:16932: checking for lib$cf_gpp_libname" >&5
16933 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
16935 LIBS="-l$cf_gpp_libname $LIBS"
16936 cat >conftest.$ac_ext <<_ACEOF
16937 #line 16937 "configure"
16938 #include "confdefs.h"
16940 #include <$cf_gpp_libname/builtin.h>
16945 two_arg_error_handler_t foo2 = lib_error_handler
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (eval echo "$as_me:16951: \"$ac_link\"") >&5
16952 (eval $ac_link) 2>&5
16954 echo "$as_me:16954: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -s conftest$ac_exeext'
16957 { (eval echo "$as_me:16957: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:16960: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16963 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
16964 if test "$cf_gpp_libname" = cpp ; then
16965 cat >>confdefs.h <<\EOF
16966 #define HAVE_GPP_BUILTIN_H 1
16970 cat >>confdefs.h <<\EOF
16971 #define HAVE_GXX_BUILTIN_H 1
16976 echo "$as_me: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16978 cat >conftest.$ac_ext <<_ACEOF
16979 #line 16979 "configure"
16980 #include "confdefs.h"
16982 #include <builtin.h>
16987 two_arg_error_handler_t foo2 = lib_error_handler
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (eval echo "$as_me:16993: \"$ac_link\"") >&5
16994 (eval $ac_link) 2>&5
16996 echo "$as_me:16996: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -s conftest$ac_exeext'
16999 { (eval echo "$as_me:16999: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17002 echo "$as_me:17002: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17005 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
17006 cat >>confdefs.h <<\EOF
17007 #define HAVE_BUILTIN_H 1
17011 echo "$as_me: failed program was:" >&5
17012 cat conftest.$ac_ext >&5
17015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17019 echo "$as_me:17019: result: $cf_cxx_library" >&5
17020 echo "${ECHO_T}$cf_cxx_library" >&6
17030 ac_cpp='$CXXCPP $CPPFLAGS'
17031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17034 ac_main_return=return
17035 echo "$as_me:17035: checking how to run the C++ preprocessor" >&5
17036 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17037 if test -z "$CXXCPP"; then
17038 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 # Double quotes because CXXCPP needs to be expanded
17042 for CXXCPP in "$CXX -E" "/lib/cpp"
17044 ac_preproc_ok=false
17045 for ac_cxx_preproc_warn_flag in '' yes
17047 # Use a header file that comes with gcc, so configuring glibc
17048 # with a fresh cross-compiler works.
17049 # On the NeXT, cc -E runs the code through the compiler's parser,
17050 # not just through cpp. "Syntax error" is here to catch this case.
17051 cat >conftest.$ac_ext <<_ACEOF
17052 #line 17052 "configure"
17053 #include "confdefs.h"
17054 #include <assert.h>
17057 if { (eval echo "$as_me:17057: \"$ac_cpp conftest.$ac_ext\"") >&5
17058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17060 egrep -v '^ *\+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 echo "$as_me:17063: \$? = $ac_status" >&5
17064 (exit $ac_status); } >/dev/null; then
17065 if test -s conftest.err; then
17066 ac_cpp_err=$ac_cxx_preproc_warn_flag
17073 if test -z "$ac_cpp_err"; then
17076 echo "$as_me: failed program was:" >&5
17077 cat conftest.$ac_ext >&5
17078 # Broken: fails on valid input.
17081 rm -f conftest.err conftest.$ac_ext
17083 # OK, works on sane cases. Now check whether non-existent headers
17084 # can be detected and how.
17085 cat >conftest.$ac_ext <<_ACEOF
17086 #line 17086 "configure"
17087 #include "confdefs.h"
17088 #include <ac_nonexistent.h>
17090 if { (eval echo "$as_me:17090: \"$ac_cpp conftest.$ac_ext\"") >&5
17091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17093 egrep -v '^ *\+' conftest.er1 >conftest.err
17095 cat conftest.err >&5
17096 echo "$as_me:17096: \$? = $ac_status" >&5
17097 (exit $ac_status); } >/dev/null; then
17098 if test -s conftest.err; then
17099 ac_cpp_err=$ac_cxx_preproc_warn_flag
17106 if test -z "$ac_cpp_err"; then
17107 # Broken: success on invalid input.
17110 echo "$as_me: failed program was:" >&5
17111 cat conftest.$ac_ext >&5
17112 # Passes both tests.
17116 rm -f conftest.err conftest.$ac_ext
17119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17120 rm -f conftest.err conftest.$ac_ext
17121 if $ac_preproc_ok; then
17126 ac_cv_prog_CXXCPP=$CXXCPP
17129 CXXCPP=$ac_cv_prog_CXXCPP
17131 ac_cv_prog_CXXCPP=$CXXCPP
17133 echo "$as_me:17133: result: $CXXCPP" >&5
17134 echo "${ECHO_T}$CXXCPP" >&6
17135 ac_preproc_ok=false
17136 for ac_cxx_preproc_warn_flag in '' yes
17138 # Use a header file that comes with gcc, so configuring glibc
17139 # with a fresh cross-compiler works.
17140 # On the NeXT, cc -E runs the code through the compiler's parser,
17141 # not just through cpp. "Syntax error" is here to catch this case.
17142 cat >conftest.$ac_ext <<_ACEOF
17143 #line 17143 "configure"
17144 #include "confdefs.h"
17145 #include <assert.h>
17148 if { (eval echo "$as_me:17148: \"$ac_cpp conftest.$ac_ext\"") >&5
17149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17151 egrep -v '^ *\+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:17154: \$? = $ac_status" >&5
17155 (exit $ac_status); } >/dev/null; then
17156 if test -s conftest.err; then
17157 ac_cpp_err=$ac_cxx_preproc_warn_flag
17164 if test -z "$ac_cpp_err"; then
17167 echo "$as_me: failed program was:" >&5
17168 cat conftest.$ac_ext >&5
17169 # Broken: fails on valid input.
17172 rm -f conftest.err conftest.$ac_ext
17174 # OK, works on sane cases. Now check whether non-existent headers
17175 # can be detected and how.
17176 cat >conftest.$ac_ext <<_ACEOF
17177 #line 17177 "configure"
17178 #include "confdefs.h"
17179 #include <ac_nonexistent.h>
17181 if { (eval echo "$as_me:17181: \"$ac_cpp conftest.$ac_ext\"") >&5
17182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17184 egrep -v '^ *\+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:17187: \$? = $ac_status" >&5
17188 (exit $ac_status); } >/dev/null; then
17189 if test -s conftest.err; then
17190 ac_cpp_err=$ac_cxx_preproc_warn_flag
17197 if test -z "$ac_cpp_err"; then
17198 # Broken: success on invalid input.
17201 echo "$as_me: failed program was:" >&5
17202 cat conftest.$ac_ext >&5
17203 # Passes both tests.
17207 rm -f conftest.err conftest.$ac_ext
17210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17211 rm -f conftest.err conftest.$ac_ext
17212 if $ac_preproc_ok; then
17215 { { echo "$as_me:17215: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
17216 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
17217 { (exit 1); exit 1; }; }
17221 ac_cpp='$CXXCPP $CPPFLAGS'
17222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17225 ac_main_return=return
17227 for ac_header in iostream typeinfo
17229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17230 echo "$as_me:17230: checking for $ac_header" >&5
17231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 cat >conftest.$ac_ext <<_ACEOF
17236 #line 17236 "configure"
17237 #include "confdefs.h"
17238 #include <$ac_header>
17240 if { (eval echo "$as_me:17240: \"$ac_cpp conftest.$ac_ext\"") >&5
17241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17243 egrep -v '^ *\+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 echo "$as_me:17246: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev/null; then
17248 if test -s conftest.err; then
17249 ac_cpp_err=$ac_cxx_preproc_warn_flag
17256 if test -z "$ac_cpp_err"; then
17257 eval "$as_ac_Header=yes"
17259 echo "$as_me: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17261 eval "$as_ac_Header=no"
17263 rm -f conftest.err conftest.$ac_ext
17265 echo "$as_me:17265: result: `eval echo '${'$as_ac_Header'}'`" >&5
17266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17268 cat >>confdefs.h <<EOF
17269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17275 if test x"$ac_cv_header_iostream" = xyes ; then
17276 echo "$as_me:17276: checking if iostream uses std-namespace" >&5
17277 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
17278 cat >conftest.$ac_ext <<_ACEOF
17279 #line 17279 "configure"
17280 #include "confdefs.h"
17282 #include <iostream>
17289 cerr << "testing" << endl;
17295 rm -f conftest.$ac_objext
17296 if { (eval echo "$as_me:17296: \"$ac_compile\"") >&5
17297 (eval $ac_compile) 2>&5
17299 echo "$as_me:17299: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -s conftest.$ac_objext'
17302 { (eval echo "$as_me:17302: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17305 echo "$as_me:17305: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 cf_iostream_namespace=yes
17309 echo "$as_me: failed program was:" >&5
17310 cat conftest.$ac_ext >&5
17311 cf_iostream_namespace=no
17313 rm -f conftest.$ac_objext conftest.$ac_ext
17314 echo "$as_me:17314: result: $cf_iostream_namespace" >&5
17315 echo "${ECHO_T}$cf_iostream_namespace" >&6
17316 if test "$cf_iostream_namespace" = yes ; then
17317 cat >>confdefs.h <<\EOF
17318 #define IOSTREAM_NAMESPACE 1
17324 echo "$as_me:17324: checking if we should include stdbool.h" >&5
17325 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17327 if test "${cf_cv_header_stdbool_h+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 cat >conftest.$ac_ext <<_ACEOF
17332 #line 17332 "configure"
17333 #include "confdefs.h"
17343 rm -f conftest.$ac_objext
17344 if { (eval echo "$as_me:17344: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>&5
17347 echo "$as_me:17347: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
17349 { ac_try='test -s conftest.$ac_objext'
17350 { (eval echo "$as_me:17350: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17353 echo "$as_me:17353: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 cf_cv_header_stdbool_h=0
17357 echo "$as_me: failed program was:" >&5
17358 cat conftest.$ac_ext >&5
17359 cat >conftest.$ac_ext <<_ACEOF
17360 #line 17360 "configure"
17361 #include "confdefs.h"
17364 #include <stdbool.h>
17375 rm -f conftest.$ac_objext
17376 if { (eval echo "$as_me:17376: \"$ac_compile\"") >&5
17377 (eval $ac_compile) 2>&5
17379 echo "$as_me:17379: \$? = $ac_status" >&5
17380 (exit $ac_status); } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (eval echo "$as_me:17382: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:17385: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 cf_cv_header_stdbool_h=1
17389 echo "$as_me: failed program was:" >&5
17390 cat conftest.$ac_ext >&5
17391 cf_cv_header_stdbool_h=0
17393 rm -f conftest.$ac_objext conftest.$ac_ext
17395 rm -f conftest.$ac_objext conftest.$ac_ext
17398 if test "$cf_cv_header_stdbool_h" = 1
17399 then echo "$as_me:17399: result: yes" >&5
17400 echo "${ECHO_T}yes" >&6
17401 else echo "$as_me:17401: result: no" >&5
17402 echo "${ECHO_T}no" >&6
17405 echo "$as_me:17405: checking for builtin bool type" >&5
17406 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17408 if test "${cf_cv_builtin_bool+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17413 #line 17413 "configure"
17414 #include "confdefs.h"
17417 #include <sys/types.h>
17427 rm -f conftest.$ac_objext
17428 if { (eval echo "$as_me:17428: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>&5
17431 echo "$as_me:17431: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -s conftest.$ac_objext'
17434 { (eval echo "$as_me:17434: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:17437: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 cf_cv_builtin_bool=1
17441 echo "$as_me: failed program was:" >&5
17442 cat conftest.$ac_ext >&5
17443 cf_cv_builtin_bool=0
17445 rm -f conftest.$ac_objext conftest.$ac_ext
17449 if test "$cf_cv_builtin_bool" = 1
17450 then echo "$as_me:17450: result: yes" >&5
17451 echo "${ECHO_T}yes" >&6
17452 else echo "$as_me:17452: result: no" >&5
17453 echo "${ECHO_T}no" >&6
17456 echo "$as_me:17456: checking for size of bool" >&5
17457 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17458 if test "${cf_cv_type_of_bool+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 if test "$cross_compiling" = yes; then
17464 cf_cv_type_of_bool=unknown
17466 cat >conftest.$ac_ext <<_ACEOF
17467 #line 17467 "configure"
17468 #include "confdefs.h"
17470 #include <stdlib.h>
17473 #if defined(__cplusplus)
17475 #ifdef HAVE_GXX_BUILTIN_H
17476 #include <g++/builtin.h>
17477 #elif HAVE_GPP_BUILTIN_H
17478 #include <gpp/builtin.h>
17479 #elif HAVE_BUILTIN_H
17480 #include <builtin.h>
17485 #if $cf_cv_header_stdbool_h
17486 #include <stdbool.h>
17493 FILE *fp = fopen("cf_test.out", "w");
17496 if ((bool)(-x) >= 0)
17497 fputs("unsigned ", fp);
17498 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17499 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17500 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17501 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17504 ${cf_cv_main_return:-return}(0);
17508 rm -f conftest$ac_exeext
17509 if { (eval echo "$as_me:17509: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>&5
17512 echo "$as_me:17512: \$? = $ac_status" >&5
17513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17514 { (eval echo "$as_me:17514: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:17517: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 cf_cv_type_of_bool=`cat cf_test.out`
17520 if test -z "$cf_cv_type_of_bool"; then
17521 cf_cv_type_of_bool=unknown
17524 echo "$as_me: program exited with status $ac_status" >&5
17525 echo "$as_me: failed program was:" >&5
17526 cat conftest.$ac_ext >&5
17527 cf_cv_type_of_bool=unknown
17529 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17535 echo "$as_me:17535: result: $cf_cv_type_of_bool" >&5
17536 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17537 if test "$cf_cv_type_of_bool" = unknown ; then
17538 case .$NCURSES_BOOL in #(vi
17539 .auto|.) NCURSES_BOOL=unsigned;;
17541 { echo "$as_me:17541: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17542 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17543 cf_cv_type_of_bool=$NCURSES_BOOL
17546 echo "$as_me:17546: checking for special defines needed for etip.h" >&5
17547 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
17548 cf_save_CXXFLAGS="$CXXFLAGS"
17550 for cf_math in "" MATH_H
17552 for cf_excp in "" MATH_EXCEPTION
17554 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
17555 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
17556 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
17557 cat >conftest.$ac_ext <<_ACEOF
17558 #line 17558 "configure"
17559 #include "confdefs.h"
17561 #include <etip.h.in>
17571 rm -f conftest.$ac_objext
17572 if { (eval echo "$as_me:17572: \"$ac_compile\"") >&5
17573 (eval $ac_compile) 2>&5
17575 echo "$as_me:17575: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -s conftest.$ac_objext'
17578 { (eval echo "$as_me:17578: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:17581: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17584 test -n "$cf_math" && cat >>confdefs.h <<EOF
17585 #define ETIP_NEEDS_${cf_math} 1
17588 test -n "$cf_excp" && cat >>confdefs.h <<EOF
17589 #define ETIP_NEEDS_${cf_excp} 1
17592 cf_result="$cf_math $cf_excp"
17596 echo "$as_me: failed program was:" >&5
17597 cat conftest.$ac_ext >&5
17599 rm -f conftest.$ac_objext conftest.$ac_ext
17602 echo "$as_me:17602: result: $cf_result" >&5
17603 echo "${ECHO_T}$cf_result" >&6
17604 CXXFLAGS="$cf_save_CXXFLAGS"
17606 if test -n "$CXX"; then
17607 echo "$as_me:17607: checking if $CXX accepts parameter initialization" >&5
17608 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
17609 if test "${cf_cv_cpp_param_init+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 ac_cpp='$CXXCPP $CPPFLAGS'
17615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17618 ac_main_return=return
17620 if test "$cross_compiling" = yes; then
17621 cf_cv_cpp_param_init=unknown
17623 cat >conftest.$ac_ext <<_ACEOF
17624 #line 17624 "configure"
17625 #include "confdefs.h"
17635 TEST::TEST(int x = 1) // some compilers do not like second initializer
17642 rm -f conftest$ac_exeext
17643 if { (eval echo "$as_me:17643: \"$ac_link\"") >&5
17644 (eval $ac_link) 2>&5
17646 echo "$as_me:17646: \$? = $ac_status" >&5
17647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17648 { (eval echo "$as_me:17648: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 echo "$as_me:17651: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 cf_cv_cpp_param_init=yes
17655 echo "$as_me: program exited with status $ac_status" >&5
17656 echo "$as_me: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17658 cf_cv_cpp_param_init=no
17660 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17663 ac_cpp='$CXXCPP $CPPFLAGS'
17664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17667 ac_main_return=return
17670 echo "$as_me:17670: result: $cf_cv_cpp_param_init" >&5
17671 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
17673 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
17674 #define CPP_HAS_PARAM_INIT 1
17677 if test -n "$CXX"; then
17679 echo "$as_me:17679: checking if $CXX accepts static_cast" >&5
17680 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
17681 if test "${cf_cv_cpp_static_cast+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 ac_cpp='$CXXCPP $CPPFLAGS'
17687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17690 ac_main_return=return
17692 cat >conftest.$ac_ext <<_ACEOF
17693 #line 17693 "configure"
17694 #include "confdefs.h"
17699 NCursesPanel(int nlines,
17709 template<class T> class NCursesUserPanel : public NCursesPanel
17712 NCursesUserPanel (int nlines,
17716 const T* p_UserData = static_cast<T*>(0))
17717 : NCursesPanel (nlines, ncols, begin_y, begin_x)
17720 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
17724 virtual ~NCursesUserPanel() {};
17731 const char* p_UserData = static_cast<char*>(0)
17736 rm -f conftest.$ac_objext
17737 if { (eval echo "$as_me:17737: \"$ac_compile\"") >&5
17738 (eval $ac_compile) 2>&5
17740 echo "$as_me:17740: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (eval echo "$as_me:17743: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17746 echo "$as_me:17746: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
17748 cf_cv_cpp_static_cast=yes
17750 echo "$as_me: failed program was:" >&5
17751 cat conftest.$ac_ext >&5
17752 cf_cv_cpp_static_cast=no
17754 rm -f conftest.$ac_objext conftest.$ac_ext
17757 ac_cpp='$CXXCPP $CPPFLAGS'
17758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17761 ac_main_return=return
17764 echo "$as_me:17764: result: $cf_cv_cpp_static_cast" >&5
17765 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
17769 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
17770 #define CPP_HAS_STATIC_CAST 1
17774 CXX_ARFLAGS='$(ARFLAGS)'
17775 case $cf_cv_system_name in #(vi
17777 if test "$GXX" != yes ; then
17779 CXX_ARFLAGS='-ar -o'
17783 CXXLDFLAGS="-u main"
17786 if test "$GXX" != yes ; then
17788 CXX_ARFLAGS='-xar -o'
17795 cf_cv_builtin_bool=1
17797 # Just because we are not configuring against C++ right now does not
17798 # mean that a user will not want to use C++. Some distributors disable
17799 # the C++ portion of this configuration as a shortcut (or just to avoid
17800 # compiling the demo in the c++ directory). So we need a reasonable
17801 # default for the 'bool' type.
17803 # Caveat: since the storage of the bool type is not standardized, it
17806 if test "$NCURSES_BOOL" != auto ; then
17807 cf_cv_type_of_bool=$NCURSES_BOOL
17808 cf_cv_header_stdbool_h=0
17810 if test "$cf_cv_header_stdbool_h" = 1 ; then
17812 echo "$as_me:17812: checking for size of bool" >&5
17813 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17814 if test "${cf_cv_type_of_bool+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 if test "$cross_compiling" = yes; then
17820 cf_cv_type_of_bool=unknown
17822 cat >conftest.$ac_ext <<_ACEOF
17823 #line 17823 "configure"
17824 #include "confdefs.h"
17826 #include <stdlib.h>
17829 #if defined(__cplusplus)
17831 #ifdef HAVE_GXX_BUILTIN_H
17832 #include <g++/builtin.h>
17833 #elif HAVE_GPP_BUILTIN_H
17834 #include <gpp/builtin.h>
17835 #elif HAVE_BUILTIN_H
17836 #include <builtin.h>
17841 #if $cf_cv_header_stdbool_h
17842 #include <stdbool.h>
17849 FILE *fp = fopen("cf_test.out", "w");
17852 if ((bool)(-x) >= 0)
17853 fputs("unsigned ", fp);
17854 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17855 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17856 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17857 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17860 ${cf_cv_main_return:-return}(0);
17864 rm -f conftest$ac_exeext
17865 if { (eval echo "$as_me:17865: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>&5
17868 echo "$as_me:17868: \$? = $ac_status" >&5
17869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17870 { (eval echo "$as_me:17870: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:17873: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 cf_cv_type_of_bool=`cat cf_test.out`
17876 if test -z "$cf_cv_type_of_bool"; then
17877 cf_cv_type_of_bool=unknown
17880 echo "$as_me: program exited with status $ac_status" >&5
17881 echo "$as_me: failed program was:" >&5
17882 cat conftest.$ac_ext >&5
17883 cf_cv_type_of_bool=unknown
17885 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17891 echo "$as_me:17891: result: $cf_cv_type_of_bool" >&5
17892 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17893 if test "$cf_cv_type_of_bool" = unknown ; then
17894 case .$NCURSES_BOOL in #(vi
17895 .auto|.) NCURSES_BOOL=unsigned;;
17897 { echo "$as_me:17897: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17898 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17899 cf_cv_type_of_bool=$NCURSES_BOOL
17903 echo "$as_me:17903: checking for fallback type of bool" >&5
17904 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
17905 case "$host_cpu" in #(vi
17906 i?86) cf_cv_type_of_bool=char ;; #(vi
17907 *) cf_cv_type_of_bool=int ;;
17909 echo "$as_me:17909: result: $cf_cv_type_of_bool" >&5
17910 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17915 # If the C compiler did not declare bool, and we did not determine that the C++
17916 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
17917 # ncurses library use the same type as C++ bool. Note that this allows one to
17918 # specify the type of bool in a configure-script option and postpone
17919 # integration with the C++ compiler provided that the types are compatible.
17921 if test $cf_cv_cc_bool_type = 1
17923 # oops: C has a bool. Unlikely, but C++ could differ.
17925 elif test $cf_cv_builtin_bool = 0
17930 # this is the normal case
17931 USE_CXX_BOOL='defined(__cplusplus)'
17934 if test -f "${srcdir}/Ada95/Makefile.in" ; then
17936 if test "$cf_with_ada" != "no" ; then
17937 if test "$with_libtool" != "no"; then
17938 { echo "$as_me:17938: WARNING: libtool does not support Ada - disabling feature" >&5
17939 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
17944 if test "$cf_with_ada" != "no" ; then
17946 cf_ada_make=gnatmake
17947 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
17948 set dummy $cf_ada_make; ac_word=$2
17949 echo "$as_me:17949: checking for $ac_word" >&5
17950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17951 if test "${ac_cv_prog_gnat_exists+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 if test -n "$gnat_exists"; then
17955 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
17957 ac_save_IFS=$IFS; IFS=$ac_path_separator
17959 for ac_dir in $ac_dummy; do
17961 test -z "$ac_dir" && ac_dir=.
17962 $as_executable_p "$ac_dir/$ac_word" || continue
17963 ac_cv_prog_gnat_exists="yes"
17964 echo "$as_me:17964: found $ac_dir/$ac_word" >&5
17968 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
17971 gnat_exists=$ac_cv_prog_gnat_exists
17972 if test -n "$gnat_exists"; then
17973 echo "$as_me:17973: result: $gnat_exists" >&5
17974 echo "${ECHO_T}$gnat_exists" >&6
17976 echo "$as_me:17976: result: no" >&5
17977 echo "${ECHO_T}no" >&6
17980 if test "$ac_cv_prog_gnat_exists" = no; then
17984 echo "$as_me:17984: checking for gnat version" >&5
17985 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
17986 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
17987 grep '[0-9].[0-9][0-9]*' |\
17988 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
17989 echo "$as_me:17989: result: $cf_gnat_version" >&5
17990 echo "${ECHO_T}$cf_gnat_version" >&6
17992 case $cf_gnat_version in #(vi
17993 3.1[1-9]*|3.[2-9]*|[4-9].*) #(vi
17994 cf_cv_prog_gnat_correct=yes
17997 { echo "$as_me:17997: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
17998 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
17999 cf_cv_prog_gnat_correct=no
18003 echo "$as_me:18003: checking if GNAT supports generics" >&5
18004 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
18005 case $cf_gnat_version in #(vi
18006 3.[1-9]*|[4-9].*) #(vi
18007 cf_gnat_generics=yes
18010 cf_gnat_generics=no
18013 echo "$as_me:18013: result: $cf_gnat_generics" >&5
18014 echo "${ECHO_T}$cf_gnat_generics" >&6
18016 if test "$cf_gnat_generics" = yes
18018 cf_compile_generics=generics
18019 cf_generic_objects="\${GENOBJS}"
18021 cf_compile_generics=
18022 cf_generic_objects=
18025 echo "$as_me:18025: checking if GNAT supports project files" >&5
18026 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
18027 case $cf_gnat_version in #(vi
18029 cf_gnat_projects=no
18032 case $cf_cv_system_name in #(vi
18034 cf_gnat_projects=no
18037 cf_gnat_projects=yes
18042 echo "$as_me:18042: result: $cf_gnat_projects" >&5
18043 echo "${ECHO_T}$cf_gnat_projects" >&6
18045 if test "$cf_gnat_projects" = yes
18047 USE_OLD_MAKERULES="#"
18048 USE_GNAT_PROJECTS=""
18050 USE_OLD_MAKERULES=""
18051 USE_GNAT_PROJECTS="#"
18054 # Extract the first word of "m4", so it can be a program name with args.
18055 set dummy m4; ac_word=$2
18056 echo "$as_me:18056: checking for $ac_word" >&5
18057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18058 if test "${ac_cv_prog_M4_exists+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18061 if test -n "$M4_exists"; then
18062 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
18064 ac_save_IFS=$IFS; IFS=$ac_path_separator
18066 for ac_dir in $ac_dummy; do
18068 test -z "$ac_dir" && ac_dir=.
18069 $as_executable_p "$ac_dir/$ac_word" || continue
18070 ac_cv_prog_M4_exists="yes"
18071 echo "$as_me:18071: found $ac_dir/$ac_word" >&5
18075 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
18078 M4_exists=$ac_cv_prog_M4_exists
18079 if test -n "$M4_exists"; then
18080 echo "$as_me:18080: result: $M4_exists" >&5
18081 echo "${ECHO_T}$M4_exists" >&6
18083 echo "$as_me:18083: result: no" >&5
18084 echo "${ECHO_T}no" >&6
18087 if test "$ac_cv_prog_M4_exists" = no; then
18088 cf_cv_prog_gnat_correct=no
18089 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
18091 if test "$cf_cv_prog_gnat_correct" = yes; then
18092 echo "$as_me:18092: checking if GNAT works" >&5
18093 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
18096 cat >>conftest.ads <<CF_EOF
18097 procedure conftest;
18099 cat >>conftest.adb <<CF_EOF
18102 procedure conftest is
18104 Text_IO.Put ("Hello World");
18106 GNAT.OS_Lib.OS_Exit (0);
18109 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18110 if ( ./conftest 1>&5 2>&1 ) ; then
18111 cf_cv_prog_gnat_correct=yes
18113 cf_cv_prog_gnat_correct=no
18116 cf_cv_prog_gnat_correct=no
18120 echo "$as_me:18120: result: $cf_cv_prog_gnat_correct" >&5
18121 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
18125 if test "$cf_cv_prog_gnat_correct" = yes; then
18127 ADAFLAGS="$ADAFLAGS -O3 -gnatpn"
18129 echo "$as_me:18129: checking if GNAT pragma Unreferenced works" >&5
18130 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
18131 if test "${cf_cv_pragma_unreferenced+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 cat >>conftest.ads <<CF_EOF
18137 procedure conftest;
18139 cat >>conftest.adb <<CF_EOF
18142 procedure conftest is
18144 pragma Unreferenced (test);
18147 Text_IO.Put ("Hello World");
18149 GNAT.OS_Lib.OS_Exit (0);
18152 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18153 cf_cv_pragma_unreferenced=yes
18155 cf_cv_pragma_unreferenced=no
18160 echo "$as_me:18160: result: $cf_cv_pragma_unreferenced" >&5
18161 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
18163 # if the pragma is supported, use it (needed in the Trace code).
18164 if test $cf_cv_pragma_unreferenced = yes ; then
18170 echo "$as_me:18170: checking for ada-compiler" >&5
18171 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
18173 # Check whether --with-ada-compiler or --without-ada-compiler was given.
18174 if test "${with_ada_compiler+set}" = set; then
18175 withval="$with_ada_compiler"
18176 cf_ada_compiler=$withval
18178 cf_ada_compiler=gnatmake
18181 echo "$as_me:18181: result: $cf_ada_compiler" >&5
18182 echo "${ECHO_T}$cf_ada_compiler" >&6
18184 cf_ada_package=terminal_interface
18186 echo "$as_me:18186: checking for ada-include" >&5
18187 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
18189 # Check whether --with-ada-include or --without-ada-include was given.
18190 if test "${with_ada_include+set}" = set; then
18191 withval="$with_ada_include"
18194 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
18195 fi; if test -n "$prefix/share/ada/adainclude" ; then
18197 if test "x$prefix" != xNONE; then
18198 cf_path_syntax="$prefix"
18200 cf_path_syntax="$ac_default_prefix"
18203 case ".$withval" in #(vi
18204 .\$\(*\)*|.\'*\'*) #(vi
18208 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18210 .\${*prefix}*) #(vi
18211 eval withval="$withval"
18212 case ".$withval" in #(vi
18214 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18219 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18222 { { echo "$as_me:18222: error: expected a pathname, not \"$withval\"" >&5
18223 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18224 { (exit 1); exit 1; }; }
18229 ADA_INCLUDE="$withval"
18231 echo "$as_me:18231: result: $ADA_INCLUDE" >&5
18232 echo "${ECHO_T}$ADA_INCLUDE" >&6
18234 echo "$as_me:18234: checking for ada-objects" >&5
18235 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
18237 # Check whether --with-ada-objects or --without-ada-objects was given.
18238 if test "${with_ada_objects+set}" = set; then
18239 withval="$with_ada_objects"
18242 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
18243 fi; if test -n "$prefix/lib/ada/adalib" ; then
18245 if test "x$prefix" != xNONE; then
18246 cf_path_syntax="$prefix"
18248 cf_path_syntax="$ac_default_prefix"
18251 case ".$withval" in #(vi
18252 .\$\(*\)*|.\'*\'*) #(vi
18256 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18258 .\${*prefix}*) #(vi
18259 eval withval="$withval"
18260 case ".$withval" in #(vi
18262 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18267 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18270 { { echo "$as_me:18270: error: expected a pathname, not \"$withval\"" >&5
18271 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18272 { (exit 1); exit 1; }; }
18277 ADA_OBJECTS="$withval"
18279 echo "$as_me:18279: result: $ADA_OBJECTS" >&5
18280 echo "${ECHO_T}$ADA_OBJECTS" >&6
18282 echo "$as_me:18282: checking if an Ada95 shared-library should be built" >&5
18283 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
18285 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
18286 if test "${with_ada_sharedlib+set}" = set; then
18287 withval="$with_ada_sharedlib"
18288 with_ada_sharedlib=$withval
18290 with_ada_sharedlib=no
18292 echo "$as_me:18292: result: $with_ada_sharedlib" >&5
18293 echo "${ECHO_T}$with_ada_sharedlib" >&6
18295 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
18296 MAKE_ADA_SHAREDLIB="#"
18298 if test "x$with_ada_sharedlib" != xno
18300 MAKE_ADA_SHAREDLIB=
18301 if test "x$with_ada_sharedlib" != xyes
18303 ADA_SHAREDLIB="$with_ada_sharedlib"
18313 ### Construct the ncurses library-subsets, if any, from this set of keywords:
18314 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
18316 ### ticlib modules may be a separate library, otherwise contained in termlib.
18317 ### termlib modules may be a separate library, otherwise contained in ncurses.
18319 ### The of "+" or " " between the tokens controls the way the script
18320 ### chooses to split module lists into libraries.
18322 ### (see CF_LIB_RULES).
18323 echo "$as_me:18323: checking for library subsets" >&5
18324 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
18327 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
18328 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
18329 if test "$with_ticlib" != no ; then
18330 LIB_SUBSETS="${LIB_SUBSETS} "
18332 LIB_SUBSETS="${LIB_SUBSETS}+"
18336 LIB_SUBSETS="${LIB_SUBSETS}termlib"
18337 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
18339 if test "$with_termlib" != no ; then
18340 LIB_SUBSETS="${LIB_SUBSETS} "
18342 LIB_SUBSETS="${LIB_SUBSETS}+"
18345 LIB_SUBSETS="${LIB_SUBSETS}base"
18347 # Most term-driver calls are to tinfo, but some like init_pair are to the
18348 # base library (so it resides in base).
18349 if test "$with_term_driver" != no ; then
18350 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
18351 case $cf_cv_system_name in #(vi
18353 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
18356 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
18361 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
18362 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
18364 echo "$as_me:18364: result: $LIB_SUBSETS" >&5
18365 echo "${ECHO_T}$LIB_SUBSETS" >&6
18367 ### Construct the list of include-directories to be generated
18369 CPPFLAGS="$CPPFLAGS -I. -I../include"
18370 if test "$srcdir" != "."; then
18371 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
18373 if test "$GCC" != yes; then
18374 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18375 elif test "$includedir" != "/usr/include"; then
18376 if test "$includedir" = '${prefix}/include' ; then
18377 if test $prefix != /usr ; then
18378 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18381 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18385 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
18386 if test "$srcdir" != "."; then
18387 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
18389 if test "$GCC" != yes; then
18390 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18391 elif test "$includedir" != "/usr/include"; then
18392 if test "$includedir" = '${prefix}/include' ; then
18393 if test $prefix != /usr ; then
18394 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18397 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18401 ### Build up pieces for makefile rules
18402 echo "$as_me:18402: checking default library suffix" >&5
18403 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
18405 case $DFT_LWR_MODEL in
18406 libtool) DFT_ARG_SUFFIX='' ;;
18407 normal) DFT_ARG_SUFFIX='' ;;
18408 debug) DFT_ARG_SUFFIX='_g' ;;
18409 profile) DFT_ARG_SUFFIX='_p' ;;
18410 shared) DFT_ARG_SUFFIX='' ;;
18412 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
18413 echo "$as_me:18413: result: $DFT_ARG_SUFFIX" >&5
18414 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
18416 echo "$as_me:18416: checking default library-dependency suffix" >&5
18417 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
18419 case $DFT_LWR_MODEL in #(vi
18421 DFT_LIB_SUFFIX='.la'
18422 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18425 DFT_LIB_SUFFIX='.a'
18426 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18429 DFT_LIB_SUFFIX='_g.a'
18430 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18433 DFT_LIB_SUFFIX='_p.a'
18434 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18437 case $cf_cv_system_name in
18439 DFT_LIB_SUFFIX='.a'
18440 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18443 DFT_LIB_SUFFIX='.dll'
18444 DFT_DEP_SUFFIX='.dll.a'
18447 DFT_LIB_SUFFIX='.dylib'
18448 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18453 DFT_LIB_SUFFIX='.so'
18454 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18457 DFT_LIB_SUFFIX='.sl'
18458 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18462 *) DFT_LIB_SUFFIX='.so'
18463 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18467 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
18468 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
18469 echo "$as_me:18469: result: $DFT_DEP_SUFFIX" >&5
18470 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
18472 echo "$as_me:18472: checking default object directory" >&5
18473 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
18475 case $DFT_LWR_MODEL in
18476 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
18477 normal) DFT_OBJ_SUBDIR='objects' ;;
18478 debug) DFT_OBJ_SUBDIR='obj_g' ;;
18479 profile) DFT_OBJ_SUBDIR='obj_p' ;;
18481 case $cf_cv_system_name in #(vi
18483 DFT_OBJ_SUBDIR='objects' ;;
18485 DFT_OBJ_SUBDIR='obj_s' ;;
18488 echo "$as_me:18488: result: $DFT_OBJ_SUBDIR" >&5
18489 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
18491 # libtool thinks it can make c++ shared libraries (perhaps only g++)
18492 if test "$cf_with_cxx" = yes ; then
18493 echo "$as_me:18493: checking c++ library-dependency suffix" >&5
18494 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
18495 if test "$with_libtool" != "no"; then
18496 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
18499 case normal in #(vi
18501 CXX_LIB_SUFFIX='.la'
18502 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18505 CXX_LIB_SUFFIX='.a'
18506 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18509 CXX_LIB_SUFFIX='_g.a'
18510 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18513 CXX_LIB_SUFFIX='_p.a'
18514 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18517 case $cf_cv_system_name in
18519 CXX_LIB_SUFFIX='.a'
18520 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18523 CXX_LIB_SUFFIX='.dll'
18524 CXX_DEP_SUFFIX='.dll.a'
18527 CXX_LIB_SUFFIX='.dylib'
18528 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18533 CXX_LIB_SUFFIX='.so'
18534 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18537 CXX_LIB_SUFFIX='.sl'
18538 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18542 *) CXX_LIB_SUFFIX='.so'
18543 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18547 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
18548 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
18550 echo "$as_me:18550: result: $CXX_LIB_SUFFIX" >&5
18551 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
18555 # do not want -ldl in build except as needed for -lncurses dependency
18556 if test "$with_dlsym" = yes ; then
18557 if test $DFT_LWR_MODEL = shared || \
18558 test $DFT_LWR_MODEL = libtool ; then
18560 # remove dl library from $LIBS
18561 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18565 ### Set up low-level terminfo dependencies for makefiles.
18567 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
18568 # do not need libdl
18570 if test "$with_dlsym" = yes ; then
18572 # remove dl library from $SHLIB_LIST
18573 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18577 if test "$with_ticlib" != no ; then
18579 if test "$with_ticlib" != yes ; then
18580 TICS_NAME=$with_ticlib
18581 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18582 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18583 TICS_LIB_SUFFIX="${with_ticlib}"
18585 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
18586 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
18587 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
18589 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
18591 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18594 if test "$with_termlib" != no ; then
18596 if test "$with_termlib" != yes ; then
18597 TINFO_NAME=$with_termlib
18598 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18599 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18600 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18601 TINFO_LIB_SUFFIX="${with_termlib}"
18603 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18604 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
18605 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
18606 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
18609 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18610 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18611 if test "$DFT_LWR_MODEL" = "libtool"; then
18612 TEST_ARGS="${TEST_DEPS}"
18613 TEST_ARG2="${TEST_DEP2}"
18614 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18615 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
18616 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
18618 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
18619 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
18620 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18621 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18622 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18625 # the next lines are needed for linking libtic over libncurses
18626 TINFO_NAME=${LIB_NAME}
18627 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18628 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
18629 if test "$with_tic_depends" = yes ; then
18630 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18632 TICS_LIST="$SHLIB_LIST"
18635 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18638 if test "$DFT_LWR_MODEL" = shared ; then
18639 case $cf_cv_system_name in #(vi
18641 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
18647 if test "$with_dlsym" = yes ; then
18649 # remove dl library from $TICS_LIST
18650 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18654 if test "$DFT_LWR_MODEL" = "libtool"; then
18659 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
18661 case $DFT_LWR_MODEL in
18662 normal|debug|profile)
18664 if test "$GCC" = yes ; then
18665 case $cf_cv_system_name in #(
18666 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
18670 *) #( normally, except when broken
18671 LDFLAGS_STATIC=-static
18672 LDFLAGS_SHARED=-dynamic
18676 case $cf_cv_system_name in #(
18677 aix[456]*) #( from ld manpage
18678 LDFLAGS_STATIC=-bstatic
18679 LDFLAGS_SHARED=-bdynamic
18681 hpux*) #( from ld manpage for hpux10.20, hpux11.11
18682 # We could also use just "archive" and "shared".
18683 LDFLAGS_STATIC=-Wl,-a,archive_shared
18684 LDFLAGS_SHARED=-Wl,-a,shared_archive
18686 irix*) #( from ld manpage IRIX64
18687 LDFLAGS_STATIC=-Bstatic
18688 LDFLAGS_SHARED=-Bdynamic
18690 osf[45]*) #( from ld manpage osf4.0d, osf5.1
18691 # alternative "-oldstyle_liblookup" (not in cc manpage)
18692 LDFLAGS_STATIC=-noso
18693 LDFLAGS_SHARED=-so_archive
18696 LDFLAGS_STATIC=-Bstatic
18697 LDFLAGS_SHARED=-Bdynamic
18702 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
18704 echo "$as_me:18704: checking if linker supports switching between static/dynamic" >&5
18705 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
18707 rm -f libconftest.a
18708 cat >conftest.$ac_ext <<EOF
18709 #line 18709 "configure"
18711 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
18713 if { (eval echo "$as_me:18713: \"$ac_compile\"") >&5
18714 (eval $ac_compile) 2>&5
18716 echo "$as_me:18716: \$? = $ac_status" >&5
18717 (exit $ac_status); } ; then
18718 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
18719 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
18723 cf_save_LIBS="$LIBS"
18725 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
18726 cat >conftest.$ac_ext <<_ACEOF
18727 #line 18727 "configure"
18728 #include "confdefs.h"
18730 #line 18730 "configure"
18732 int cf_ldflags_static(FILE *fp);
18738 return cf_ldflags_static(stdin);
18744 rm -f conftest.$ac_objext conftest$ac_exeext
18745 if { (eval echo "$as_me:18745: \"$ac_link\"") >&5
18746 (eval $ac_link) 2>&5
18748 echo "$as_me:18748: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -s conftest$ac_exeext'
18751 { (eval echo "$as_me:18751: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18754 echo "$as_me:18754: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 cf_ldflags_static=yes
18758 echo "$as_me: failed program was:" >&5
18759 cat conftest.$ac_ext >&5
18760 cf_ldflags_static=no
18762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18764 rm -f libconftest.*
18765 LIBS="$cf_save_LIBS"
18767 echo "$as_me:18767: result: $cf_ldflags_static" >&5
18768 echo "${ECHO_T}$cf_ldflags_static" >&6
18770 if test $cf_ldflags_static != yes
18783 echo "$as_me:18783: checking where we will install curses.h" >&5
18784 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
18785 test "$with_overwrite" = no && \
18786 test "x$includedir" = 'x${prefix}/include' && \
18787 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
18788 echo "$as_me:18788: result: $includedir" >&5
18789 echo "${ECHO_T}$includedir" >&6
18791 ### Resolve a conflict between normal and wide-curses by forcing applications
18792 ### that will need libutf8 to add it to their configure script.
18793 if test "$with_overwrite" != no ; then
18794 if test "$NCURSES_LIBUTF8" = 1 ; then
18795 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
18796 { echo "$as_me:18796: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
18797 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
18800 WITH_OVERWRITE=$with_overwrite
18802 # used to separate tack out of the tree
18805 ### predefined stuff for the test programs
18806 cat >>confdefs.h <<\EOF
18807 #define HAVE_SLK_COLOR 1
18810 ### Construct the list of subdirectories for which we'll customize makefiles
18811 ### with the appropriate compile-rules.
18813 echo "$as_me:18813: checking for src modules" >&5
18814 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
18816 # dependencies and linker-arguments for test-programs
18817 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
18818 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
18819 if test "$DFT_LWR_MODEL" = "libtool"; then
18820 TEST_ARGS="${TEST_DEPS}"
18821 TEST_ARG2="${TEST_DEP2}"
18823 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
18824 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
18828 for cf_dir in $modules_to_build
18830 if test -f $srcdir/$cf_dir/modules; then
18832 # We may/may not have tack in the distribution, though the
18834 if test $cf_dir = tack ; then
18835 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
18840 if test -z "$cf_cv_src_modules"; then
18841 cf_cv_src_modules=$cf_dir
18843 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
18846 # Make the ncurses_cfg.h file record the library interface files as
18847 # well. These are header files that are the same name as their
18848 # directory. Ncurses is the only library that does not follow
18850 if test $cf_dir = tack ; then
18852 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
18854 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18856 cat >>confdefs.h <<EOF
18857 #define HAVE_${cf_have_include}_H 1
18860 cat >>confdefs.h <<EOF
18861 #define HAVE_LIB${cf_have_include} 1
18864 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
18865 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
18866 if test "$DFT_LWR_MODEL" = "libtool"; then
18867 TEST_ARGS="${TEST_DEPS}"
18868 TEST_ARG2="${TEST_DEP2}"
18870 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
18871 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
18876 echo "$as_me:18876: result: $cf_cv_src_modules" >&5
18877 echo "${ECHO_T}$cf_cv_src_modules" >&6
18879 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
18880 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
18883 if test "x$cf_with_manpages" != xno ; then
18884 SRC_SUBDIRS="$SRC_SUBDIRS man"
18886 SRC_SUBDIRS="$SRC_SUBDIRS include"
18887 for cf_dir in $cf_cv_src_modules
18889 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
18891 if test "x$cf_with_tests" != "xno" ; then
18892 SRC_SUBDIRS="$SRC_SUBDIRS test"
18894 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
18895 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
18898 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
18899 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
18900 ADA_SUBDIRS="gen src"
18901 if test "x$cf_with_tests" != "xno" ; then
18902 ADA_SUBDIRS="$ADA_SUBDIRS samples"
18907 for cf_dir in $SRC_SUBDIRS
18909 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
18912 if test -n "$ADA_SUBDIRS"; then
18913 for cf_dir in $ADA_SUBDIRS
18915 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
18920 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
18921 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
18922 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
18926 for cf_item in $cf_list_models
18930 libtool) cf_subdir='obj_lo' ;;
18931 normal) cf_subdir='objects' ;;
18932 debug) cf_subdir='obj_g' ;;
18933 profile) cf_subdir='obj_p' ;;
18935 case $cf_cv_system_name in #(vi
18937 cf_subdir='objects' ;;
18939 cf_subdir='obj_s' ;;
18943 for cf_item2 in $DIRS_TO_MAKE
18945 test $cf_item2 = $cf_subdir && break
18947 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
18949 for cf_dir in $DIRS_TO_MAKE
18951 test ! -d $cf_dir && mkdir $cf_dir
18954 # symbols that differ when compiling Ada95 by itself.
18955 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
18957 # values to use as strings
18958 cat >>confdefs.h <<EOF
18959 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
18962 cat >>confdefs.h <<EOF
18963 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
18966 ### Now that we're done running tests, add the compiler-warnings, if any
18971 cf_new_extra_cppflags=
18973 for cf_add_cflags in $EXTRA_CFLAGS
18975 case $cf_fix_cppflags in
18977 case $cf_add_cflags in #(vi
18978 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
18979 case $cf_add_cflags in
18981 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18983 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
18984 && test -z "${cf_tst_cflags}" \
18985 && cf_fix_cppflags=yes
18987 if test $cf_fix_cppflags = yes ; then
18988 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18990 elif test "${cf_tst_cflags}" = "\"'" ; then
18991 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18996 case "$CPPFLAGS" in
18997 *$cf_add_cflags) #(vi
19000 case $cf_add_cflags in #(vi
19002 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19004 CPPFLAGS=`echo "$CPPFLAGS" | \
19005 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19006 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19010 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
19015 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
19020 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19022 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19024 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
19025 && test -z "${cf_tst_cflags}" \
19026 && cf_fix_cppflags=no
19031 if test -n "$cf_new_cflags" ; then
19033 CFLAGS="$CFLAGS $cf_new_cflags"
19036 if test -n "$cf_new_cppflags" ; then
19038 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
19041 if test -n "$cf_new_extra_cppflags" ; then
19043 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
19046 ### Define substitutions for header files to avoid name-pollution
19048 if test "$cf_cv_have_tcgetattr" = yes ; then
19054 if test "$ac_cv_header_termio_h" = yes ; then
19060 if test "$ac_cv_header_termios_h" = yes ; then
19066 ################################################################################
19067 test "$use_database" = yes && \
19068 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
19070 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
19071 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
19073 if test x"$enable_pc_files" = xyes ; then \
19074 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
19080 # Extract the first word of "tic", so it can be a program name with args.
19081 set dummy tic; ac_word=$2
19082 echo "$as_me:19082: checking for $ac_word" >&5
19083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19084 if test "${ac_cv_path_TIC_PATH+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19089 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
19092 ac_save_IFS=$IFS; IFS=$ac_path_separator
19093 ac_dummy="$PATH:/usr/local/ncurses/bin"
19094 for ac_dir in $ac_dummy; do
19096 test -z "$ac_dir" && ac_dir=.
19097 if $as_executable_p "$ac_dir/$ac_word"; then
19098 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
19099 echo "$as_me:19099: found $ac_dir/$ac_word" >&5
19104 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
19108 TIC_PATH=$ac_cv_path_TIC_PATH
19110 if test -n "$TIC_PATH"; then
19111 echo "$as_me:19111: result: $TIC_PATH" >&5
19112 echo "${ECHO_T}$TIC_PATH" >&6
19114 echo "$as_me:19114: result: no" >&5
19115 echo "${ECHO_T}no" >&6
19118 if test -n "$FALLBACK_LIST"
19120 if test "$TIC_PATH" = unknown
19122 { echo "$as_me:19122: WARNING: no tic program found for fallbacks" >&5
19123 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
19127 if test "x$cf_with_tests" != xno ; then
19134 case $cf_cv_system_name in #(vi
19136 SUB_SCRIPTS="mk-dlls.sh"
19140 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"
19141 ac_config_commands="$ac_config_commands default"
19142 cat >confcache <<\_ACEOF
19143 # This file is a shell script that caches the results of configure
19144 # tests run on this system so they can be shared between configure
19145 # scripts and configure runs, see configure's option --config-cache.
19146 # It is not useful on other systems. If it contains results you don't
19147 # want to keep, you may remove or edit it.
19149 # config.status only pays attention to the cache file if you give it
19150 # the --recheck option to rerun configure.
19152 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19154 # following values.
19158 # The following way of writing the cache mishandles newlines in values,
19159 # but we know of no workaround that is simple, portable, and efficient.
19160 # So, don't put newlines in cache variables' values.
19161 # Ultrix sh set writes to stderr and can't be redirected directly,
19162 # and sets the high bit in the cache file unless we assign to the vars.
19165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19167 # `set' does not quote correctly, so add quotes (double-quote
19168 # substitution turns \\\\ into \\, and sed turns \\ into \).
19171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19174 # `set' quotes correctly as required by POSIX, so do not add quotes.
19176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19185 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19187 if cmp -s $cache_file confcache; then :; else
19188 if test -w $cache_file; then
19189 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19190 cat confcache >$cache_file
19192 echo "not updating unwritable cache $cache_file"
19197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19198 # Let make expand exec_prefix.
19199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19203 # trailing colons and then remove the whole line if VPATH becomes empty
19204 # (actually we leave an empty line to preserve line numbers).
19205 if test "x$srcdir" = x.; then
19206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19207 s/:*\$(srcdir):*/:/;
19208 s/:*\${srcdir}:*/:/;
19210 s/^\([^=]*=[ ]*\):*/\1/;
19216 DEFS=-DHAVE_CONFIG_H
19218 : ${CONFIG_STATUS=./config.status}
19219 ac_clean_files_save=$ac_clean_files
19220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19221 { echo "$as_me:19221: creating $CONFIG_STATUS" >&5
19222 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19223 cat >$CONFIG_STATUS <<_ACEOF
19225 # Generated automatically by configure.
19226 # Run this file to recreate the current configuration.
19227 # Compiler output produced by configure, useful for debugging
19228 # configure, is in config.log if it exists.
19231 SHELL=\${CONFIG_SHELL-$SHELL}
19232 ac_cs_invocation="\$0 \$@"
19236 cat >>$CONFIG_STATUS <<\_ACEOF
19237 # Be Bourne compatible
19238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19241 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19245 # Name of the executable.
19246 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19248 if expr a : '\(a\)' >/dev/null 2>&1; then
19254 rm -f conf$$ conf$$.exe conf$$.file
19256 if ln -s conf$$.file conf$$ 2>/dev/null; then
19257 # We could just check for DJGPP; but this test a) works b) is more generic
19258 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19259 if test -f conf$$.exe; then
19260 # Don't use ln at all; we don't have any links
19265 elif ln conf$$.file conf$$ 2>/dev/null; then
19270 rm -f conf$$ conf$$.exe conf$$.file
19272 as_executable_p="test -f"
19274 # Support unset when possible.
19275 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19282 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19283 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19284 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19285 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19286 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19287 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19288 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19289 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19292 # We need space, tab and new line, in precisely that order.
19298 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19304 # Files that config.status was made for.
19305 if test -n "$ac_config_files"; then
19306 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19309 if test -n "$ac_config_headers"; then
19310 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19313 if test -n "$ac_config_links"; then
19314 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19317 if test -n "$ac_config_commands"; then
19318 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19321 cat >>$CONFIG_STATUS <<\EOF
19324 \`$as_me' instantiates files from templates according to the
19325 current configuration.
19327 Usage: $0 [OPTIONS] [FILE]...
19329 -h, --help print this help, then exit
19330 -V, --version print version number, then exit
19331 -d, --debug don't remove temporary files
19332 --recheck update $as_me by reconfiguring in the same conditions
19333 --file=FILE[:TEMPLATE]
19334 instantiate the configuration file FILE
19335 --header=FILE[:TEMPLATE]
19336 instantiate the configuration header FILE
19338 Configuration files:
19341 Configuration headers:
19344 Configuration commands:
19347 Report bugs to <dickey@invisible-island.net>."
19350 cat >>$CONFIG_STATUS <<EOF
19353 configured by $0, generated by GNU Autoconf 2.52.20101001,
19354 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19356 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19357 Free Software Foundation, Inc.
19358 This config.status script is free software; the Free Software Foundation
19359 gives unlimited permission to copy, distribute and modify it."
19364 cat >>$CONFIG_STATUS <<\EOF
19365 # If no file are specified by the user, then we need to provide default
19366 # value. By we need to know if files were specified by the user.
19372 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19373 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19375 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19379 *) # This is not an option, so the user has probably given explicit
19381 ac_need_defaults=false;;
19385 # Handling of the options.
19387 cat >>$CONFIG_STATUS <<EOF
19388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19389 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19390 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19392 cat >>$CONFIG_STATUS <<\EOF
19393 --version | --vers* | -V )
19394 echo "$ac_cs_version"; exit 0 ;;
19396 # Conflict between --help and --header
19397 { { echo "$as_me:19397: error: ambiguous option: $1
19398 Try \`$0 --help' for more information." >&5
19399 echo "$as_me: error: ambiguous option: $1
19400 Try \`$0 --help' for more information." >&2;}
19401 { (exit 1); exit 1; }; };;
19402 --help | --hel | -h )
19403 echo "$ac_cs_usage"; exit 0 ;;
19404 --debug | --d* | -d )
19406 --file | --fil | --fi | --f )
19408 CONFIG_FILES="$CONFIG_FILES $1"
19409 ac_need_defaults=false;;
19410 --header | --heade | --head | --hea )
19412 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19413 ac_need_defaults=false;;
19415 # This is an error.
19416 -*) { { echo "$as_me:19416: error: unrecognized option: $1
19417 Try \`$0 --help' for more information." >&5
19418 echo "$as_me: error: unrecognized option: $1
19419 Try \`$0 --help' for more information." >&2;}
19420 { (exit 1); exit 1; }; } ;;
19422 *) ac_config_targets="$ac_config_targets $1" ;;
19431 ## ----------------------- ##
19432 ## Running config.status. ##
19433 ## ----------------------- ##
19435 This file was extended by $as_me 2.52.20101001, executed with
19436 CONFIG_FILES = $CONFIG_FILES
19437 CONFIG_HEADERS = $CONFIG_HEADERS
19438 CONFIG_LINKS = $CONFIG_LINKS
19439 CONFIG_COMMANDS = $CONFIG_COMMANDS
19440 > $ac_cs_invocation
19441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19446 cat >>$CONFIG_STATUS <<EOF
19448 # INIT-COMMANDS section.
19451 ### Special initialization commands, used to pass information from the
19452 ### configuration-run into config.status
19455 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
19456 DFT_LWR_MODEL="$DFT_LWR_MODEL"
19457 ECHO_LINK="$ECHO_LINK"
19458 LDCONFIG="$LDCONFIG"
19459 LIBTOOL_VERSION="$LIBTOOL_VERSION"
19460 LIB_NAME="$LIB_NAME"
19461 LIB_SUBSETS="$LIB_SUBSETS"
19462 LIB_SUFFIX="$LIB_SUFFIX"
19463 LIB_TRACING="$LIB_TRACING"
19465 MAKE_TERMINFO="$MAKE_TERMINFO"
19466 NCURSES_MAJOR="$NCURSES_MAJOR"
19467 NCURSES_MINOR="$NCURSES_MINOR"
19468 NCURSES_OSPEED="$NCURSES_OSPEED"
19469 NCURSES_PATCH="$NCURSES_PATCH"
19470 SRC_SUBDIRS="$SRC_SUBDIRS"
19471 TERMINFO="$TERMINFO"
19472 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
19473 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
19474 TICS_NAME="$TICS_NAME"
19475 TIC_PATH="$TIC_PATH"
19476 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
19477 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
19478 TINFO_NAME="$TINFO_NAME"
19479 TINFO_SUFFIX="$TINFO_SUFFIX"
19480 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
19481 WITH_CURSES_H="$with_curses_h"
19482 WITH_ECHO="$with_echo"
19483 WITH_OVERWRITE="$with_overwrite"
19484 cf_LIST_MODELS="$cf_list_models"
19485 cf_cv_abi_version="$cf_cv_abi_version"
19486 cf_cv_do_relink="$cf_cv_do_relink"
19487 cf_cv_do_symlinks="$cf_cv_do_symlinks"
19488 cf_cv_enable_lp64="$cf_cv_enable_lp64"
19489 cf_cv_enable_opaque="$cf_cv_enable_opaque"
19490 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
19491 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
19492 cf_cv_rel_version="$cf_cv_rel_version"
19493 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
19494 cf_cv_shared_soname='$cf_cv_shared_soname'
19495 cf_cv_shlib_version="$cf_cv_shlib_version"
19496 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
19497 cf_cv_system_name="$cf_cv_system_name"
19498 cf_with_ada="$cf_with_ada"
19499 cf_with_cxx_binding="$cf_with_cxx_binding"
19500 cf_with_manpages="$cf_with_manpages"
19501 cf_with_tests="$cf_with_tests"
19507 cat >>$CONFIG_STATUS <<\EOF
19508 for ac_config_target in $ac_config_targets
19510 case "$ac_config_target" in
19511 # Handling of arguments.
19512 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
19513 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
19514 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
19515 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
19516 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
19517 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
19518 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
19519 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19520 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19521 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
19522 *) { { echo "$as_me:19522: error: invalid argument: $ac_config_target" >&5
19523 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19524 { (exit 1); exit 1; }; };;
19528 # If the user did not use the arguments to specify the items to instantiate,
19529 # then the envvar interface is used. Set only those that are not.
19530 # We use the long form for the default assignment because of an extremely
19531 # bizarre bug on SunOS 4.1.3.
19532 if $ac_need_defaults; then
19533 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19534 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19535 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19538 # Create a temporary directory, and hook for its removal unless debugging.
19541 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19542 trap '{ (exit 1); exit 1; }' 1 2 13 15
19545 # Create a (secure) tmp directory for tmp files.
19548 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19549 test -n "$tmp" && test -d "$tmp"
19552 tmp=$TMPDIR/cs$$-$RANDOM
19553 (umask 077 && mkdir $tmp)
19556 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19557 { (exit 1); exit 1; }
19562 cat >>$CONFIG_STATUS <<EOF
19565 # CONFIG_FILES section.
19568 # No need to generate the scripts if there are no CONFIG_FILES.
19569 # This happens for instance when ./config.status config.h
19570 if test -n "\$CONFIG_FILES"; then
19571 # Protect against being on the right side of a sed subst in config.status.
19572 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19573 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19574 s,@SHELL@,$SHELL,;t t
19575 s,@exec_prefix@,$exec_prefix,;t t
19576 s,@prefix@,$prefix,;t t
19577 s,@program_transform_name@,$program_transform_name,;t t
19578 s,@bindir@,$bindir,;t t
19579 s,@sbindir@,$sbindir,;t t
19580 s,@libexecdir@,$libexecdir,;t t
19581 s,@datadir@,$datadir,;t t
19582 s,@sysconfdir@,$sysconfdir,;t t
19583 s,@sharedstatedir@,$sharedstatedir,;t t
19584 s,@localstatedir@,$localstatedir,;t t
19585 s,@libdir@,$libdir,;t t
19586 s,@includedir@,$includedir,;t t
19587 s,@oldincludedir@,$oldincludedir,;t t
19588 s,@infodir@,$infodir,;t t
19589 s,@mandir@,$mandir,;t t
19590 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19591 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19592 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19593 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19594 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19595 s,@build_alias@,$build_alias,;t t
19596 s,@host_alias@,$host_alias,;t t
19597 s,@target_alias@,$target_alias,;t t
19598 s,@ECHO_C@,$ECHO_C,;t t
19599 s,@ECHO_N@,$ECHO_N,;t t
19600 s,@ECHO_T@,$ECHO_T,;t t
19601 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19602 s,@DEFS@,$DEFS,;t t
19603 s,@LIBS@,$LIBS,;t t
19604 s,@top_builddir@,$top_builddir,;t t
19605 s,@EGREP@,$EGREP,;t t
19606 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
19607 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
19608 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
19609 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19610 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19611 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
19612 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
19613 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
19614 s,@build@,$build,;t t
19615 s,@build_cpu@,$build_cpu,;t t
19616 s,@build_vendor@,$build_vendor,;t t
19617 s,@build_os@,$build_os,;t t
19618 s,@host@,$host,;t t
19619 s,@host_cpu@,$host_cpu,;t t
19620 s,@host_vendor@,$host_vendor,;t t
19621 s,@host_os@,$host_os,;t t
19622 s,@target@,$target,;t t
19623 s,@target_cpu@,$target_cpu,;t t
19624 s,@target_vendor@,$target_vendor,;t t
19625 s,@target_os@,$target_os,;t t
19627 s,@CFLAGS@,$CFLAGS,;t t
19628 s,@LDFLAGS@,$LDFLAGS,;t t
19629 s,@CPPFLAGS@,$CPPFLAGS,;t t
19630 s,@ac_ct_CC@,$ac_ct_CC,;t t
19631 s,@EXEEXT@,$EXEEXT,;t t
19632 s,@OBJEXT@,$OBJEXT,;t t
19634 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19635 s,@PROG_EXT@,$PROG_EXT,;t t
19636 s,@LDCONFIG@,$LDCONFIG,;t t
19638 s,@CXXFLAGS@,$CXXFLAGS,;t t
19639 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19641 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19642 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19643 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19644 s,@LINT@,$LINT,;t t
19645 s,@LINT_OPTS@,$LINT_OPTS,;t t
19646 s,@LN_S@,$LN_S,;t t
19647 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19648 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
19649 s,@SET_MAKE@,$SET_MAKE,;t t
19650 s,@CTAGS@,$CTAGS,;t t
19651 s,@ETAGS@,$ETAGS,;t t
19652 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19653 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19654 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
19655 s,@RANLIB@,$RANLIB,;t t
19656 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19658 s,@ac_ct_LD@,$ac_ct_LD,;t t
19660 s,@ac_ct_AR@,$ac_ct_AR,;t t
19661 s,@ARFLAGS@,$ARFLAGS,;t t
19662 s,@DESTDIR@,$DESTDIR,;t t
19663 s,@BUILD_CC@,$BUILD_CC,;t t
19664 s,@BUILD_CPP@,$BUILD_CPP,;t t
19665 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19666 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19667 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19668 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
19669 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19670 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
19671 s,@cf_list_models@,$cf_list_models,;t t
19672 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
19673 s,@LIBTOOL@,$LIBTOOL,;t t
19674 s,@LT_UNDEF@,$LT_UNDEF,;t t
19675 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
19676 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19677 s,@LIB_CREATE@,$LIB_CREATE,;t t
19678 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
19679 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
19680 s,@LIB_PREP@,$LIB_PREP,;t t
19681 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19682 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19683 s,@LIB_LINK@,$LIB_LINK,;t t
19684 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
19685 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
19686 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
19687 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19688 s,@TICS_NAME@,$TICS_NAME,;t t
19689 s,@TINFO_NAME@,$TINFO_NAME,;t t
19690 s,@LIB_NAME@,$LIB_NAME,;t t
19691 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
19692 s,@CC_G_OPT@,$CC_G_OPT,;t t
19693 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
19694 s,@LD_MODEL@,$LD_MODEL,;t t
19695 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19696 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
19697 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19698 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
19699 s,@LINK_PROGS@,$LINK_PROGS,;t t
19700 s,@LINK_TESTS@,$LINK_TESTS,;t t
19701 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19702 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19703 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
19704 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
19705 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19706 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
19707 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
19708 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
19709 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
19710 s,@TERMINFO@,$TERMINFO,;t t
19711 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
19712 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
19713 s,@TERMPATH@,$TERMPATH,;t t
19714 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
19715 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
19716 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
19717 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
19718 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
19719 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
19720 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
19721 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
19722 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
19723 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
19724 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
19725 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
19726 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
19727 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
19728 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
19729 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
19730 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
19731 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
19732 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
19733 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
19734 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
19735 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
19736 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
19737 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
19738 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
19739 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
19740 s,@PTHREAD@,$PTHREAD,;t t
19741 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
19742 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
19743 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
19744 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
19745 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19746 s,@ECHO_LINK@,$ECHO_LINK,;t t
19747 s,@ADAFLAGS@,$ADAFLAGS,;t t
19748 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19749 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
19750 s,@ADA_TRACE@,$ADA_TRACE,;t t
19751 s,@MATH_LIB@,$MATH_LIB,;t t
19752 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
19753 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
19754 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
19755 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
19756 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
19757 s,@TEST_LIBS@,$TEST_LIBS,;t t
19758 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
19759 s,@CXXCPP@,$CXXCPP,;t t
19760 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
19761 s,@CXX_AR@,$CXX_AR,;t t
19762 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
19763 s,@CXXLIBS@,$CXXLIBS,;t t
19764 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
19765 s,@gnat_exists@,$gnat_exists,;t t
19766 s,@cf_compile_generics@,$cf_compile_generics,;t t
19767 s,@cf_generic_objects@,$cf_generic_objects,;t t
19768 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
19769 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
19770 s,@M4_exists@,$M4_exists,;t t
19771 s,@cf_ada_make@,$cf_ada_make,;t t
19772 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
19773 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
19774 s,@cf_ada_package@,$cf_ada_package,;t t
19775 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
19776 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
19777 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
19778 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
19779 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
19780 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
19781 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19782 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19783 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
19784 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
19785 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
19786 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
19787 s,@TICS_ARGS@,$TICS_ARGS,;t t
19788 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
19789 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
19790 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
19791 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
19792 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
19793 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19794 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19795 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
19796 s,@TICS_LIST@,$TICS_LIST,;t t
19797 s,@TINFO_LIST@,$TINFO_LIST,;t t
19798 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
19799 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
19800 s,@TEST_ARGS@,$TEST_ARGS,;t t
19801 s,@TEST_DEPS@,$TEST_DEPS,;t t
19802 s,@TEST_ARG2@,$TEST_ARG2,;t t
19803 s,@TEST_DEP2@,$TEST_DEP2,;t t
19804 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
19805 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
19806 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
19807 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
19808 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
19809 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
19810 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
19811 s,@cross_compiling@,$cross_compiling,;t t
19812 s,@TIC_PATH@,$TIC_PATH,;t t
19813 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
19818 cat >>$CONFIG_STATUS <<\EOF
19819 # Split the substitutions into bite-sized pieces for seds with
19820 # small command number limits, like on Digital OSF/1 and HP-UX.
19821 ac_max_sed_lines=48
19822 ac_sed_frag=1 # Number of current file.
19823 ac_beg=1 # First line for current file.
19824 ac_end=$ac_max_sed_lines # Line after last line for current file.
19827 while $ac_more_lines; do
19828 if test $ac_beg -gt 1; then
19829 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19831 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19833 if test ! -s $tmp/subs.frag; then
19834 ac_more_lines=false
19836 # The purpose of the label and of the branching condition is to
19837 # speed up the sed processing (if there are no `@' at all, there
19838 # is no need to browse any of the substitutions).
19839 # These are the two extra sed commands mentioned above.
19841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19842 if test -z "$ac_sed_cmds"; then
19843 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19845 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19847 ac_sed_frag=`expr $ac_sed_frag + 1`
19849 ac_end=`expr $ac_end + $ac_max_sed_lines`
19852 if test -z "$ac_sed_cmds"; then
19855 fi # test -n "$CONFIG_FILES"
19858 cat >>$CONFIG_STATUS <<\EOF
19859 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19862 - | *:- | *:-:* ) # input from stdin
19864 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19866 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19868 * ) ac_file_in=$ac_file.in ;;
19871 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19872 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19873 X"$ac_file" : 'X\(//\)[^/]' \| \
19874 X"$ac_file" : 'X\(//\)$' \| \
19875 X"$ac_file" : 'X\(/\)' \| \
19876 . : '\(.\)' 2>/dev/null ||
19878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19880 /^X\(\/\/\)$/{ s//\1/; q; }
19881 /^X\(\/\).*/{ s//\1/; q; }
19883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19884 { case "$ac_dir" in
19885 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19889 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19890 case $as_mkdir_dir in
19891 # Skip DOS drivespec
19892 ?:) as_incr_dir=$as_mkdir_dir ;;
19894 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19895 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19900 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19901 # A "../" for each directory in $ac_dir_suffix.
19902 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19904 ac_dir_suffix= ac_dots=
19909 if test -z "$ac_dots"; then
19912 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19914 [\\/]* | ?:[\\/]* )
19915 ac_srcdir=$srcdir$ac_dir_suffix;
19916 ac_top_srcdir=$srcdir ;;
19917 *) # Relative path.
19918 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19919 ac_top_srcdir=$ac_dots$srcdir ;;
19923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19924 *) ac_INSTALL=$ac_dots$INSTALL ;;
19927 if test x"$ac_file" != x-; then
19928 { echo "$as_me:19928: creating $ac_file" >&5
19929 echo "$as_me: creating $ac_file" >&6;}
19932 # Let's still pretend it is `configure' which instantiates (i.e., don't
19933 # use $as_me), people would be surprised to read:
19934 # /* config.h. Generated automatically by config.status. */
19935 configure_input="Generated automatically from `echo $ac_file_in |
19936 sed 's,.*/,,'` by configure."
19938 # First look for the input files in the build tree, otherwise in the
19940 ac_file_inputs=`IFS=:
19941 for f in $ac_file_in; do
19943 -) echo $tmp/stdin ;;
19945 # Absolute (can't be DOS-style, as IFS=:)
19946 test -f "$f" || { { echo "$as_me:19946: error: cannot find input file: $f" >&5
19947 echo "$as_me: error: cannot find input file: $f" >&2;}
19948 { (exit 1); exit 1; }; }
19951 if test -f "$f"; then
19954 elif test -f "$srcdir/$f"; then
19959 { { echo "$as_me:19959: error: cannot find input file: $f" >&5
19960 echo "$as_me: error: cannot find input file: $f" >&2;}
19961 { (exit 1); exit 1; }; }
19964 done` || { (exit 1); exit 1; }
19966 cat >>$CONFIG_STATUS <<EOF
19970 cat >>$CONFIG_STATUS <<\EOF
19972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19973 s,@configure_input@,$configure_input,;t t
19974 s,@srcdir@,$ac_srcdir,;t t
19975 s,@top_srcdir@,$ac_top_srcdir,;t t
19976 s,@INSTALL@,$ac_INSTALL,;t t
19977 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19979 if test x"$ac_file" != x-; then
19980 mv $tmp/out $ac_file
19988 cat >>$CONFIG_STATUS <<\EOF
19991 # CONFIG_HEADER section.
19994 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19995 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19997 # ac_d sets the value in "#define NAME VALUE" lines.
19998 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19999 ac_dB='[ ].*$,\1#\2'
20002 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20003 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20004 ac_iB='\([ ]\),\1#\2define\3'
20007 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20008 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20009 ac_uB='$,\1#\2define\3'
20013 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20014 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20016 - | *:- | *:-:* ) # input from stdin
20018 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20019 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20020 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20021 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20022 * ) ac_file_in=$ac_file.in ;;
20025 test x"$ac_file" != x- && { echo "$as_me:20025: creating $ac_file" >&5
20026 echo "$as_me: creating $ac_file" >&6;}
20028 # First look for the input files in the build tree, otherwise in the
20030 ac_file_inputs=`IFS=:
20031 for f in $ac_file_in; do
20033 -) echo $tmp/stdin ;;
20035 # Absolute (can't be DOS-style, as IFS=:)
20036 test -f "$f" || { { echo "$as_me:20036: error: cannot find input file: $f" >&5
20037 echo "$as_me: error: cannot find input file: $f" >&2;}
20038 { (exit 1); exit 1; }; }
20041 if test -f "$f"; then
20044 elif test -f "$srcdir/$f"; then
20049 { { echo "$as_me:20049: error: cannot find input file: $f" >&5
20050 echo "$as_me: error: cannot find input file: $f" >&2;}
20051 { (exit 1); exit 1; }; }
20054 done` || { (exit 1); exit 1; }
20055 # Remove the trailing spaces.
20056 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20060 # Transform confdefs.h into a list of #define's. We won't use it as a sed
20061 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
20062 # be either 'cat' or 'sort'.
20063 cat confdefs.h | uniq >conftest.vals
20065 # Break up conftest.vals because some shells have a limit on
20066 # the size of here documents, and old seds have small limits too.
20068 rm -f conftest.tail
20069 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
20070 while grep . conftest.vals >/dev/null
20072 # Write chunks of a limited-size here document to conftest.frag.
20073 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
20074 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
20075 echo 'CEOF' >> $CONFIG_STATUS
20076 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20077 rm -f conftest.vals
20078 mv conftest.tail conftest.vals
20080 rm -f conftest.vals
20082 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
20084 echo ' cat >> conftest.edit <<CEOF
20085 /@DEFS@/r conftest.frag
20088 sed -f conftest.edit $tmp/in > $tmp/out
20090 mv $tmp/out $tmp/in
20091 rm -f conftest.edit conftest.frag
20092 ' >> $CONFIG_STATUS
20094 cat >>$CONFIG_STATUS <<\EOF
20095 # Let's still pretend it is `configure' which instantiates (i.e., don't
20096 # use $as_me), people would be surprised to read:
20097 # /* config.h. Generated automatically by config.status. */
20098 if test x"$ac_file" = x-; then
20099 echo "/* Generated automatically by configure. */" >$tmp/config.h
20101 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
20103 cat $tmp/in >>$tmp/config.h
20105 if test x"$ac_file" != x-; then
20106 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20107 { echo "$as_me:20107: $ac_file is unchanged" >&5
20108 echo "$as_me: $ac_file is unchanged" >&6;}
20110 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20111 X"$ac_file" : 'X\(//\)[^/]' \| \
20112 X"$ac_file" : 'X\(//\)$' \| \
20113 X"$ac_file" : 'X\(/\)' \| \
20114 . : '\(.\)' 2>/dev/null ||
20116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20118 /^X\(\/\/\)$/{ s//\1/; q; }
20119 /^X\(\/\).*/{ s//\1/; q; }
20121 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20122 { case "$ac_dir" in
20123 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20127 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20128 case $as_mkdir_dir in
20129 # Skip DOS drivespec
20130 ?:) as_incr_dir=$as_mkdir_dir ;;
20132 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20133 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20140 mv $tmp/config.h $ac_file
20144 rm -f $tmp/config.h
20148 cat >>$CONFIG_STATUS <<\EOF
20150 # CONFIG_COMMANDS section.
20152 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20153 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20154 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20158 if test "x$cf_with_tests" != xno ; then
20162 if test ! -d $srcdir/$cf_dir; then
20164 elif test -f $srcdir/$cf_dir/programs; then
20165 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
20171 case $cf_cv_system_name in #(vi
20175 *) LIB_PREFIX='lib'
20178 cf_prefix=$LIB_PREFIX
20180 if test $cf_cv_shlib_version = cygdll ; then
20181 TINFO_NAME=$TINFO_ARG_SUFFIX
20185 if test -n "$TINFO_SUFFIX" ; then
20186 case $TINFO_SUFFIX in
20188 TINFO_NAME="${TINFO_NAME}tw"
20189 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
20192 TINFO_NAME="${TINFO_NAME}t"
20193 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
20196 TINFO_NAME="${TINFO_NAME}w"
20197 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
20202 for cf_dir in $SRC_SUBDIRS
20204 if test ! -d $srcdir/$cf_dir ; then
20206 elif test -f $srcdir/$cf_dir/modules; then
20210 for cf_item in $cf_LIST_MODELS
20213 case $cf_item in #(vi
20216 cf_depsuf=$cf_suffix
20220 cf_depsuf=$cf_suffix
20224 cf_depsuf=$cf_suffix
20228 cf_depsuf=$cf_suffix
20231 case $cf_cv_system_name in
20234 cf_depsuf=$cf_suffix
20242 cf_depsuf=$cf_suffix
20248 cf_depsuf=$cf_suffix
20252 cf_depsuf=$cf_suffix
20257 cf_depsuf=$cf_suffix
20261 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20262 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20264 if test $cf_item = shared ; then
20265 if test "$cf_cv_do_symlinks" = yes ; then
20266 case "$cf_cv_shlib_version" in #(vi
20268 case "$cf_cv_system_name" in #(vi
20270 case .${LIB_SUFFIX} in
20272 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20273 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
20276 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20277 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
20280 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20281 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
20284 cf_suffix='.${REL_VERSION}'"$cf_suffix"
20288 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
20292 case "$cf_cv_system_name" in #(vi
20294 case .${LIB_SUFFIX} in
20296 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20297 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
20300 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20301 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
20304 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20305 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
20308 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
20312 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
20317 # cygwin needs import library, and has unique naming convention
20318 # use autodetected ${cf_prefix} for import lib and static lib, but
20319 # use 'cyg' prefix for shared lib.
20320 if test $cf_cv_shlib_version = cygdll ; then
20321 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
20322 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
20326 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
20329 if test $cf_dir = ncurses ; then
20330 cf_subsets="$LIB_SUBSETS"
20331 cf_r_parts="$cf_subsets"
20332 cf_liblist="$LIBS_TO_MAKE"
20334 while test -n "$cf_r_parts"
20336 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
20337 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
20338 if test "$cf_l_parts" != "$cf_r_parts" ; then
20340 case $cf_l_parts in #(vi
20342 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
20345 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
20351 if test -n "$cf_item"; then
20352 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
20359 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
20362 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
20363 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
20364 $cf_dir/Makefile >$cf_dir/Makefile.out
20365 mv $cf_dir/Makefile.out $cf_dir/Makefile
20367 $AWK -f $srcdir/mk-0th.awk \
20368 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
20369 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20371 for cf_subset in $cf_subsets
20374 for cf_item in $cf_LIST_MODELS
20376 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
20378 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20380 case $cf_item in #(vi
20383 cf_depsuf=$cf_suffix
20387 cf_depsuf=$cf_suffix
20391 cf_depsuf=$cf_suffix
20395 cf_depsuf=$cf_suffix
20398 case $cf_cv_system_name in
20401 cf_depsuf=$cf_suffix
20409 cf_depsuf=$cf_suffix
20415 cf_depsuf=$cf_suffix
20419 cf_depsuf=$cf_suffix
20424 cf_depsuf=$cf_suffix
20428 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20429 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20432 libtool) cf_subdir='obj_lo' ;;
20433 normal) cf_subdir='objects' ;;
20434 debug) cf_subdir='obj_g' ;;
20435 profile) cf_subdir='obj_p' ;;
20437 case $cf_cv_system_name in #(vi
20439 cf_subdir='objects' ;;
20441 cf_subdir='obj_s' ;;
20445 # Test for case where we build libtinfo with a different name.
20447 if test $cf_dir = ncurses ; then
20450 cf_libname=${cf_libname}$LIB_SUFFIX
20453 cf_libname=$TINFO_LIB_SUFFIX
20456 cf_libname=$TICS_LIB_SUFFIX
20460 cf_libname=${cf_libname}$LIB_SUFFIX
20462 if test -n "${DFT_ARG_SUFFIX}" ; then
20463 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
20464 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
20467 # These dependencies really are for development, not
20468 # builds, but they are useful in porting, too.
20469 cf_depend="../include/ncurses_cfg.h"
20470 if test "$srcdir" = "."; then
20473 cf_reldir="\${srcdir}"
20476 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
20477 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
20478 elif test -f $srcdir/$cf_dir/curses.priv.h; then
20479 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
20483 old_cf_suffix="$cf_suffix"
20484 if test "$cf_cv_shlib_version_infix" = yes ; then
20485 if test -n "$LIB_SUFFIX" ; then
20486 case $LIB_SUFFIX in
20488 cf_libname=`echo $cf_libname | sed 's/tw$//'`
20489 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
20493 cf_libname=`echo $cf_libname | sed 's/t$//'`
20494 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
20498 cf_libname=`echo $cf_libname | sed 's/w$//'`
20499 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20506 $AWK -f $srcdir/mk-1st.awk \
20507 name=${cf_libname}${cf_dir_suffix} \
20508 traces=$LIB_TRACING \
20511 prefix=$cf_prefix \
20512 suffix=$cf_suffix \
20513 subset=$cf_subset \
20515 TermlibRoot=$TINFO_NAME \
20516 TermlibSuffix=$TINFO_SUFFIX \
20517 ShlibVer=$cf_cv_shlib_version \
20518 ShlibVerInfix=$cf_cv_shlib_version_infix \
20519 ReLink=${cf_cv_do_relink:-no} \
20520 DoLinks=$cf_cv_do_symlinks \
20521 rmSoLocs=$cf_cv_rm_so_locs \
20522 ldconfig="$LDCONFIG" \
20523 overwrite=$WITH_OVERWRITE \
20524 depend="$cf_depend" \
20526 libtool_version="$LIBTOOL_VERSION" \
20527 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20529 cf_suffix="$old_cf_suffix"
20531 for cf_subdir2 in $cf_subdirs lib
20533 test $cf_subdir = $cf_subdir2 && break
20535 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
20536 $AWK -f $srcdir/mk-2nd.awk \
20538 traces=$LIB_TRACING \
20541 subset=$cf_subset \
20544 crenames=$cf_cv_prog_CC_c_o \
20545 cxxrenames=$cf_cv_prog_CXX_c_o \
20546 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20547 cf_subdirs="$cf_subdirs $cf_subdir"
20552 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
20555 for cf_dir in $SRC_SUBDIRS
20557 if test ! -d $srcdir/$cf_dir ; then
20561 if test -f $cf_dir/Makefile ; then
20564 echo 'libs \' >> Makefile
20565 echo 'install.libs \' >> Makefile
20566 echo 'uninstall.libs ::' >> Makefile
20567 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
20572 if test -f $srcdir/$cf_dir/modules; then
20574 if test -f $srcdir/$cf_dir/headers; then
20575 cat >> Makefile <<CF_EOF
20576 install.includes \\
20577 uninstall.includes \\
20580 if test "$cf_dir" != "c++" ; then
20581 echo 'lint \' >> Makefile
20583 cat >> Makefile <<CF_EOF
20589 uninstall.$cf_dir ::
20590 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20592 elif test -f $srcdir/$cf_dir/headers; then
20593 cat >> Makefile <<CF_EOF
20598 install.includes \\
20599 uninstall.includes ::
20600 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20605 cat >> Makefile <<CF_EOF
20607 install.libs uninstall.libs \\
20608 install.data uninstall.data ::
20609 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
20612 if test "x$cf_with_manpages" = xyes; then
20613 cat >> Makefile <<CF_EOF
20617 cd man && \${MAKE} \${CF_MFLAGS} \$@
20621 cat >> Makefile <<CF_EOF
20624 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
20625 rm -f headers.sh headers.sed mk_shared_lib.sh
20626 rm -f edit_man.* man_alias.*
20627 rm -rf \${DIRS_TO_MAKE}
20630 # Special case: tack's manpage lives in its own directory.
20631 if test "x$cf_with_manpages" = xyes; then
20632 if test -d tack ; then
20633 if test -f $srcdir/$tack.h; then
20634 cat >> Makefile <<CF_EOF
20638 cd tack && \${MAKE} \${CF_MFLAGS} \$@
20644 rm -f headers.sed headers.sh
20646 echo creating headers.sh
20647 cat >headers.sh <<CF_EOF
20649 # This shell script is generated by the 'configure' script. It is invoked in a
20650 # subdirectory of the build tree. It generates a sed-script in the parent
20651 # directory that is used to adjust includes for header files that reside in a
20652 # subdirectory of /usr/include, etc.
20654 while test \$# != 3
20656 PRG="\$PRG \$1"; shift
20661 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
20662 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
20663 echo installing \$SRC in \$DST
20666 if test $WITH_CURSES_H = yes; then
20667 cat >>headers.sh <<CF_EOF
20670 END=\`basename \$DST\`
20671 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
20673 NAME=\`basename \$i\`
20674 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
20678 echo "" >> \$TMPSED
20684 cat >>headers.sh <<CF_EOF
20687 END=\`basename \$DST\`
20688 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
20690 NAME=\`basename \$i\`
20691 if test "\$NAME" = "curses.h"
20693 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
20696 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
20700 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
20705 cat >>headers.sh <<CF_EOF
20707 sed -f \$TMPSED \$SRC > \$TMPSRC
20708 NAME=\`basename \$SRC\`
20710 if test $WITH_CURSES_H != yes; then
20711 cat >>headers.sh <<CF_EOF
20712 test "\$NAME" = "curses.h" && NAME=ncurses.h
20715 cat >>headers.sh <<CF_EOF
20716 # Just in case someone gzip'd manpages, remove the conflicting copy.
20717 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
20719 eval \$PRG \$TMPSRC \$DST/\$NAME
20720 rm -f \$TMPSRC \$TMPSED
20723 chmod 0755 headers.sh
20725 for cf_dir in $SRC_SUBDIRS
20727 if test ! -d $srcdir/$cf_dir ; then
20731 if test -f $srcdir/$cf_dir/headers; then
20732 $AWK -f $srcdir/mk-hdr.awk \
20733 subset="$LIB_SUBSETS" \
20734 compat="$WITH_CURSES_H" \
20735 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
20738 if test -f $srcdir/$cf_dir/modules; then
20739 if test "$cf_dir" != "c++" ; then
20740 cat >>$cf_dir/Makefile <<"CF_EOF"
20741 depend : ${AUTO_SRC}
20742 makedepend -- ${CPPFLAGS} -- ${C_SRC}
20744 # DO NOT DELETE THIS LINE -- make depend depends on it.
20750 if test "x$cf_with_ada" != xno ; then
20751 if test -z "$USE_OLD_MAKERULES" ; then
20752 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
20760 cat >>$CONFIG_STATUS <<\EOF
20762 { (exit 0); exit 0; }
20764 chmod +x $CONFIG_STATUS
20765 ac_clean_files=$ac_clean_files_save
20767 # configure is writing to config.log, and then calls config.status.
20768 # config.status does its own redirection, appending to config.log.
20769 # Unfortunately, on DOS this fails, as config.log is still kept open
20770 # by configure, so config.status won't be able to write to it; its
20771 # output is simply discarded. So we exec the FD to /dev/null,
20772 # effectively closing config.log, so it can be properly (re)opened and
20773 # appended to by config.status. When coming back to configure, we
20774 # need to make the FD available again.
20775 if test "$no_create" != yes; then
20778 $SHELL $CONFIG_STATUS || ac_cs_success=false
20780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20781 # would make configure fail if this is the last instruction.
20782 $ac_cs_success || { (exit 1); exit 1; }
20784 ${MAKE:-make} preinstall