2 # From configure.in Revision: 1.623 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20150926.
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 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable SCREEN-extensions
794 --enable-term-driver enable terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20150926. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1303 if test "x$cf_cv_abi_version" != "x$withval"
1305 { echo "$as_me:1305: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1306 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1307 case $cf_cv_rel_version in
1309 cf_cv_rel_version=$withval.0
1312 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1316 cf_cv_abi_version=$withval
1319 if test -n "$cf_cv_abi_version" ; then
1320 case $cf_cv_abi_version in
1324 { { echo "$as_me:1324: error: ABI version is not a number: $cf_cv_abi_version" >&5
1325 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1326 { (exit 1); exit 1; }; }
1330 { { echo "$as_me:1330: error: ABI version value is empty" >&5
1331 echo "$as_me: error: ABI version value is empty" >&2;}
1332 { (exit 1); exit 1; }; }
1335 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1337 case $cf_cv_rel_version in
1339 cf_cv_rel_version=$with_abi_version.0
1345 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1346 if test -f $ac_dir/install-sh; then
1348 ac_install_sh="$ac_aux_dir/install-sh -c"
1350 elif test -f $ac_dir/install.sh; then
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1354 elif test -f $ac_dir/shtool; then
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:1361: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1362 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1363 { (exit 1); exit 1; }; }
1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:1371: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:1375: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:1384: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:1400: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:1409: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:1414: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1422 echo "$as_me:1422: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 # The aliases save the names the user supplied, while $host etc.
1444 # will get canonicalized.
1445 test -n "$target_alias" &&
1446 test "$program_prefix$program_suffix$program_transform_name" = \
1448 program_prefix=${target_alias}-
1449 system_name="$host_os"
1451 system_name="`(uname -s -r) 2>/dev/null`"
1452 if test -z "$system_name" ; then
1453 system_name="`(hostname) 2>/dev/null`"
1456 test -n "$system_name" &&
1457 cat >>confdefs.h <<EOF
1458 #define SYSTEM_NAME "$system_name"
1461 if test "${cf_cv_system_name+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 cf_cv_system_name="$system_name"
1467 test -z "$system_name" && system_name="$cf_cv_system_name"
1468 test -n "$cf_cv_system_name" && echo "$as_me:1468: result: Configuring for $cf_cv_system_name" >&5
1469 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1471 if test ".$system_name" != ".$cf_cv_system_name" ; then
1472 echo "$as_me:1472: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1473 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1474 { { echo "$as_me:1474: error: \"Please remove config.cache and try again.\"" >&5
1475 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1476 { (exit 1); exit 1; }; }
1479 # Check whether --with-system-type or --without-system-type was given.
1480 if test "${with_system_type+set}" = set; then
1481 withval="$with_system_type"
1482 { echo "$as_me:1482: WARNING: overriding system type to $withval" >&5
1483 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1484 cf_cv_system_name=$withval
1489 ### Save the given $CFLAGS to allow user-override.
1490 cf_user_CFLAGS="$CFLAGS"
1492 ### Default install-location
1494 echo "$as_me:1494: checking for prefix" >&5
1495 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1496 if test "x$prefix" = "xNONE" ; then
1497 case "$cf_cv_system_name" in
1498 # non-vendor systems don't have a conflict
1499 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1502 (*) prefix=$ac_default_prefix
1506 echo "$as_me:1506: result: $prefix" >&5
1507 echo "${ECHO_T}$prefix" >&6
1509 if test "x$prefix" = "xNONE" ; then
1510 echo "$as_me:1510: checking for default include-directory" >&5
1511 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1512 test -n "$verbose" && echo 1>&6
1515 $includedir/ncurses \
1517 $prefix/include/ncurses \
1518 /usr/local/include \
1519 /usr/local/include/ncurses \
1521 /usr/include/ncurses
1523 cf_dir=`eval echo $cf_symbol`
1524 if test -f $cf_dir/curses.h ; then
1525 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1526 includedir="$cf_symbol"
1527 test -n "$verbose" && echo $ac_n " found " 1>&6
1531 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1533 echo "$as_me:1533: result: $includedir" >&5
1534 echo "${ECHO_T}$includedir" >&6
1537 ### Defaults for ncurses ABI
1539 case x$cf_cv_abi_version in
1541 cf_dft_ext_colors=yes
1542 cf_dft_ext_const=yes
1543 cf_dft_ext_mouse=yes
1544 cf_dft_ext_putwin=yes
1545 cf_dft_ext_spfuncs=yes
1546 cf_dft_filter_syms=yes
1547 cf_dft_chtype=uint32_t
1548 cf_dft_mmask_t=uint32_t
1550 cf_dft_tparm_arg=intptr_t
1551 cf_dft_with_lp64=yes
1554 cf_dft_ext_colors=no
1557 cf_dft_ext_putwin=no
1558 cf_dft_ext_spfuncs=no
1559 cf_dft_filter_syms=no
1563 cf_dft_tparm_arg=long
1568 ### Checks for programs.
1570 # Check whether --with-ada or --without-ada was given.
1571 if test "${with_ada+set}" = set; then
1573 cf_with_ada=$withval
1577 if test "x$cf_with_ada" = xyes
1579 cf_PROG_CC="gnatgcc gcc cc"
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 ac_main_return=return
1590 if test -n "$ac_tool_prefix"; then
1591 for ac_prog in $cf_PROG_CC
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:1595: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 ac_save_IFS=$IFS; IFS=$ac_path_separator
1605 for ac_dir in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir=.
1608 $as_executable_p "$ac_dir/$ac_word" || continue
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:1610: found $ac_dir/$ac_word" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:1618: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:1621: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1625 test -n "$CC" && break
1628 if test -z "$CC"; then
1630 for ac_prog in $cf_PROG_CC
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo "$as_me:1634: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 ac_save_IFS=$IFS; IFS=$ac_path_separator
1644 for ac_dir in $ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 $as_executable_p "$ac_dir/$ac_word" || continue
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:1649: found $ac_dir/$ac_word" >&5
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:1657: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1660 echo "$as_me:1660: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$ac_ct_CC" && break
1670 test -z "$CC" && { { echo "$as_me:1670: error: no acceptable cc found in \$PATH" >&5
1671 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1672 { (exit 1); exit 1; }; }
1674 # Provide some information about the compiler.
1675 echo "$as_me:1675:" \
1676 "checking for C compiler version" >&5
1677 ac_compiler=`set X $ac_compile; echo $2`
1678 { (eval echo "$as_me:1678: \"$ac_compiler --version </dev/null >&5\"") >&5
1679 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 echo "$as_me:1681: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:1683: \"$ac_compiler -v </dev/null >&5\"") >&5
1684 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -V </dev/null >&5\"") >&5
1689 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1694 cat >conftest.$ac_ext <<_ACEOF
1695 #line 1695 "configure"
1696 #include "confdefs.h"
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1711 echo "$as_me:1711: checking for C compiler default output" >&5
1712 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:1714: \"$ac_link_default\"") >&5
1715 (eval $ac_link_default) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # Find the output, starting from the most likely. This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1723 ls a.out conftest 2>/dev/null;
1724 ls a.* conftest.* 2>/dev/null`; do
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1727 a.out ) # We found the default executable, but exeext='' is most
1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1738 echo "$as_me: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 { { echo "$as_me:1740: error: C compiler cannot create executables" >&5
1741 echo "$as_me: error: C compiler cannot create executables" >&2;}
1742 { (exit 77); exit 77; }; }
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:1746: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:1751: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756 if { ac_try='./$ac_file'
1757 { (eval echo "$as_me:1757: \"$ac_try\"") >&5
1760 echo "$as_me:1760: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 if test "$cross_compiling" = maybe; then
1767 { { echo "$as_me:1767: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'." >&5
1769 echo "$as_me: error: cannot run C compiled programs.
1770 If you meant to cross compile, use \`--host'." >&2;}
1771 { (exit 1); exit 1; }; }
1775 echo "$as_me:1775: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1778 rm -f a.out a.exe conftest$ac_cv_exeext
1779 ac_clean_files=$ac_clean_files_save
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether we are cross compiling" >&5
1783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1784 echo "$as_me:1784: result: $cross_compiling" >&5
1785 echo "${ECHO_T}$cross_compiling" >&6
1787 echo "$as_me:1787: checking for executable suffix" >&5
1788 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1789 if { (eval echo "$as_me:1789: \"$ac_link\"") >&5
1790 (eval $ac_link) 2>&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1796 # work properly (i.e., refer to `conftest.exe'), while it won't with
1798 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1801 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 { { echo "$as_me:1808: error: cannot compute EXEEXT: cannot compile and link" >&5
1809 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1810 { (exit 1); exit 1; }; }
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:1814: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1820 echo "$as_me:1820: checking for object suffix" >&5
1821 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line 1826 "configure"
1827 #include "confdefs.h"
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:1853: error: cannot compute OBJEXT: cannot compile" >&5
1854 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1864 echo "$as_me:1864: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:1891: \"$ac_try\"") >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:1906: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1912 echo "$as_me:1912: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:1930: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:1936: \"$ac_try\"") >&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1949 echo "$as_me:1949: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 # Some people use a C++ compiler to compile C. Since we use `exit',
1967 # in C++ we need to declare it. In case someone uses the same compiler
1968 # for both compiling C and C++ we need to have the C++ compiler decide
1969 # the declaration of exit, since it's the most demanding environment.
1970 cat >conftest.$ac_ext <<_ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 for ac_declaration in \
1989 '#include <stdlib.h>' \
1990 'extern "C" void std::exit (int) throw (); using std::exit;' \
1991 'extern "C" void std::exit (int); using std::exit;' \
1992 'extern "C" void exit (int) throw ();' \
1993 'extern "C" void exit (int);' \
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line 1997 "configure"
1998 #include "confdefs.h"
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 ac_main_return=return
2079 if test "$GCC" = yes ; then
2080 echo "$as_me:2080: checking version of $CC" >&5
2081 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2082 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2083 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2084 echo "$as_me:2084: result: $GCC_VERSION" >&5
2085 echo "${ECHO_T}$GCC_VERSION" >&6
2088 echo "$as_me:2088: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_cv_prog_cc_stdc=no
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2100 #include <sys/types.h>
2101 #include <sys/stat.h>
2102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2103 struct buf { int x; };
2104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2105 static char *e (p, i)
2111 static char *f (char * (*g) (char **, int), char **p, ...)
2116 s = g (p, va_arg (v,int));
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2134 # Don't try gcc -ansi; that turns off useful extensions and
2135 # breaks some systems' header files.
2136 # AIX -qlanglvl=ansi
2137 # Ultrix and OSF/1 -std1
2138 # HP-UX 10.20 and later -Ae
2139 # HP-UX older versions -Aa -D_HPUX_SOURCE
2140 # SVR4 -Xc -D__EXTENSIONS__
2141 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143 CC="$ac_save_CC $ac_arg"
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cc_stdc=$ac_arg
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 rm -f conftest.$ac_objext
2164 rm -f conftest.$ac_ext conftest.$ac_objext
2169 case "x$ac_cv_prog_cc_stdc" in
2171 echo "$as_me:2171: result: none needed" >&5
2172 echo "${ECHO_T}none needed" >&6 ;;
2174 echo "$as_me:2174: result: $ac_cv_prog_cc_stdc" >&5
2175 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2176 CC="$CC $ac_cv_prog_cc_stdc" ;;
2179 # This should have been defined by AC_PROG_CC
2182 echo "$as_me:2182: checking \$CC variable" >&5
2183 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2186 echo "$as_me:2186: result: broken" >&5
2187 echo "${ECHO_T}broken" >&6
2188 { echo "$as_me:2188: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2189 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2191 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2192 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_flags
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2216 elif test "${cf_tst_cflags}" = "\"'" ; then
2217 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2226 case $cf_add_cflags in
2228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2230 CPPFLAGS=`echo "$CPPFLAGS" | \
2231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2236 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2241 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2248 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2250 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2251 && test -z "${cf_tst_cflags}" \
2252 && cf_fix_cppflags=no
2257 if test -n "$cf_new_cflags" ; then
2259 CFLAGS="$CFLAGS $cf_new_cflags"
2262 if test -n "$cf_new_cppflags" ; then
2264 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2267 if test -n "$cf_new_extra_cppflags" ; then
2269 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2274 echo "$as_me:2274: result: ok" >&5
2275 echo "${ECHO_T}ok" >&6
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284 ac_main_return=return
2285 echo "$as_me:2285: checking how to run the C preprocessor" >&5
2286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2287 # On Suns, sometimes $CPP names a directory.
2288 if test -n "$CPP" && test -d "$CPP"; then
2291 if test -z "$CPP"; then
2292 if test "${ac_cv_prog_CPP+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 # Double quotes because CPP needs to be expanded
2296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2299 for ac_c_preproc_warn_flag in '' yes
2301 # Use a header file that comes with gcc, so configuring glibc
2302 # with a fresh cross-compiler works.
2303 # On the NeXT, cc -E runs the code through the compiler's parser,
2304 # not just through cpp. "Syntax error" is here to catch this case.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line 2306 "configure"
2307 #include "confdefs.h"
2311 if { (eval echo "$as_me:2311: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:2317: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2327 if test -z "$ac_cpp_err"; then
2330 echo "$as_me: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 # Broken: fails on valid input.
2335 rm -f conftest.err conftest.$ac_ext
2337 # OK, works on sane cases. Now check whether non-existent headers
2338 # can be detected and how.
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line 2340 "configure"
2341 #include "confdefs.h"
2342 #include <ac_nonexistent.h>
2344 if { (eval echo "$as_me:2344: \"$ac_cpp conftest.$ac_ext\"") >&5
2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 egrep -v '^ *\+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:2350: \$? = $ac_status" >&5
2351 (exit $ac_status); } >/dev/null; then
2352 if test -s conftest.err; then
2353 ac_cpp_err=$ac_c_preproc_warn_flag
2360 if test -z "$ac_cpp_err"; then
2361 # Broken: success on invalid input.
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 # Passes both tests.
2370 rm -f conftest.err conftest.$ac_ext
2373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2374 rm -f conftest.err conftest.$ac_ext
2375 if $ac_preproc_ok; then
2387 echo "$as_me:2387: result: $CPP" >&5
2388 echo "${ECHO_T}$CPP" >&6
2390 for ac_c_preproc_warn_flag in '' yes
2392 # Use a header file that comes with gcc, so configuring glibc
2393 # with a fresh cross-compiler works.
2394 # On the NeXT, cc -E runs the code through the compiler's parser,
2395 # not just through cpp. "Syntax error" is here to catch this case.
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line 2397 "configure"
2398 #include "confdefs.h"
2402 if { (eval echo "$as_me:2402: \"$ac_cpp conftest.$ac_ext\"") >&5
2403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 egrep -v '^ *\+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:2408: \$? = $ac_status" >&5
2409 (exit $ac_status); } >/dev/null; then
2410 if test -s conftest.err; then
2411 ac_cpp_err=$ac_c_preproc_warn_flag
2418 if test -z "$ac_cpp_err"; then
2421 echo "$as_me: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 # Broken: fails on valid input.
2426 rm -f conftest.err conftest.$ac_ext
2428 # OK, works on sane cases. Now check whether non-existent headers
2429 # can be detected and how.
2430 cat >conftest.$ac_ext <<_ACEOF
2431 #line 2431 "configure"
2432 #include "confdefs.h"
2433 #include <ac_nonexistent.h>
2435 if { (eval echo "$as_me:2435: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438 egrep -v '^ *\+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2451 if test -z "$ac_cpp_err"; then
2452 # Broken: success on invalid input.
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 # Passes both tests.
2461 rm -f conftest.err conftest.$ac_ext
2464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2465 rm -f conftest.err conftest.$ac_ext
2466 if $ac_preproc_ok; then
2469 { { echo "$as_me:2469: error: C preprocessor \"$CPP\" fails sanity check" >&5
2470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2471 { (exit 1); exit 1; }; }
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 ac_main_return=return
2481 if test $ac_cv_c_compiler_gnu = yes; then
2482 echo "$as_me:2482: checking whether $CC needs -traditional" >&5
2483 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2484 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_pattern="Autoconf.*'x'"
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2492 int Autoconf = TIOCGETP;
2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "$ac_pattern" >/dev/null 2>&1; then
2496 ac_cv_prog_gcc_traditional=yes
2498 ac_cv_prog_gcc_traditional=no
2502 if test $ac_cv_prog_gcc_traditional = no; then
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line 2504 "configure"
2505 #include "confdefs.h"
2507 int Autoconf = TCGETA;
2509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 egrep "$ac_pattern" >/dev/null 2>&1; then
2511 ac_cv_prog_gcc_traditional=yes
2517 echo "$as_me:2517: result: $ac_cv_prog_gcc_traditional" >&5
2518 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2519 if test $ac_cv_prog_gcc_traditional = yes; then
2520 CC="$CC -traditional"
2524 echo "$as_me:2524: checking whether $CC understands -c and -o together" >&5
2525 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2526 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat > conftest.$ac_ext <<CF_EOF
2534 ${cf_cv_main_return:-return}(0);
2537 # We do the test twice because some compilers refuse to overwrite an
2538 # existing .o file with -o, though they will create one.
2539 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2540 if { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 test -f conftest2.$ac_objext && { (eval echo "$as_me:2545: \"$ac_try\"") >&5
2548 echo "$as_me:2548: \$? = $ac_status" >&5
2549 (exit $ac_status); };
2551 eval cf_cv_prog_CC_c_o=yes
2553 eval cf_cv_prog_CC_c_o=no
2558 if test $cf_cv_prog_CC_c_o = yes; then
2559 echo "$as_me:2559: result: yes" >&5
2560 echo "${ECHO_T}yes" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2566 if test "$cross_compiling" = yes ; then
2569 case "$cf_cv_system_name" in
2570 (dragonfly*|mirbsd*|freebsd*)
2571 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2573 (*) LDPATH=$PATH:/sbin:/usr/sbin
2574 # Extract the first word of "ldconfig", so it can be a program name with args.
2575 set dummy ldconfig; ac_word=$2
2576 echo "$as_me:2576: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2586 ac_save_IFS=$IFS; IFS=$ac_path_separator
2588 for ac_dir in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir=.
2591 if $as_executable_p "$ac_dir/$ac_word"; then
2592 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2593 echo "$as_me:2593: found $ac_dir/$ac_word" >&5
2601 LDCONFIG=$ac_cv_path_LDCONFIG
2603 if test -n "$LDCONFIG"; then
2604 echo "$as_me:2604: result: $LDCONFIG" >&5
2605 echo "${ECHO_T}$LDCONFIG" >&6
2607 echo "$as_me:2607: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2615 echo "$as_me:2615: checking if you want to ensure bool is consistent with C++" >&5
2616 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2618 # Check whether --with-cxx or --without-cxx was given.
2619 if test "${with_cxx+set}" = set; then
2621 cf_with_cxx=$withval
2625 echo "$as_me:2625: result: $cf_with_cxx" >&5
2626 echo "${ECHO_T}$cf_with_cxx" >&6
2627 if test "X$cf_with_cxx" = Xno ; then
2631 # with autoconf 2.13, we can change the error to a warning:
2633 ac_cpp='$CXXCPP $CPPFLAGS'
2634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2637 ac_main_return=return
2638 if test -n "$ac_tool_prefix"; then
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643 echo "$as_me:2643: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$CXX"; then
2649 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2651 ac_save_IFS=$IFS; IFS=$ac_path_separator
2653 for ac_dir in $ac_dummy; do
2655 test -z "$ac_dir" && ac_dir=.
2656 $as_executable_p "$ac_dir/$ac_word" || continue
2657 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:2658: found $ac_dir/$ac_word" >&5
2665 if test -n "$CXX"; then
2666 echo "$as_me:2666: result: $CXX" >&5
2667 echo "${ECHO_T}$CXX" >&6
2669 echo "$as_me:2669: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2673 test -n "$CXX" && break
2676 if test -z "$CXX"; then
2678 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:2682: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CXX"; then
2688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2690 ac_save_IFS=$IFS; IFS=$ac_path_separator
2692 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 $as_executable_p "$ac_dir/$ac_word" || continue
2696 ac_cv_prog_ac_ct_CXX="$ac_prog"
2697 echo "$as_me:2697: found $ac_dir/$ac_word" >&5
2703 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705 echo "$as_me:2705: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2708 echo "$as_me:2708: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$ac_ct_CXX" && break
2714 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2719 # Provide some information about the compiler.
2720 echo "$as_me:2720:" \
2721 "checking for C++ compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (eval echo "$as_me:2723: \"$ac_compiler --version </dev/null >&5\"") >&5
2724 (eval $ac_compiler --version </dev/null >&5) 2>&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (eval echo "$as_me:2728: \"$ac_compiler -v </dev/null >&5\"") >&5
2729 (eval $ac_compiler -v </dev/null >&5) 2>&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (eval echo "$as_me:2733: \"$ac_compiler -V </dev/null >&5\"") >&5
2734 (eval $ac_compiler -V </dev/null >&5) 2>&5
2736 echo "$as_me:2736: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2739 echo "$as_me:2739: checking whether we are using the GNU C++ compiler" >&5
2740 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:2760: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>&5
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:2766: \"$ac_try\"") >&5
2769 echo "$as_me:2769: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2777 rm -f conftest.$ac_objext conftest.$ac_ext
2778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2781 echo "$as_me:2781: result: $ac_cv_cxx_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2783 GXX=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CXXFLAGS=${CXXFLAGS+set}
2785 ac_save_CXXFLAGS=$CXXFLAGS
2787 echo "$as_me:2787: checking whether $CXX accepts -g" >&5
2788 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2789 if test "${ac_cv_prog_cxx_g+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:2805: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>&5
2808 echo "$as_me:2808: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:2811: \"$ac_try\"") >&5
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 ac_cv_prog_cxx_g=yes
2818 echo "$as_me: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2824 echo "$as_me:2824: result: $ac_cv_prog_cxx_g" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2826 if test "$ac_test_CXXFLAGS" = set; then
2827 CXXFLAGS=$ac_save_CXXFLAGS
2828 elif test $ac_cv_prog_cxx_g = yes; then
2829 if test "$GXX" = yes; then
2835 if test "$GXX" = yes; then
2841 for ac_declaration in \
2843 '#include <stdlib.h>' \
2844 'extern "C" void std::exit (int) throw (); using std::exit;' \
2845 'extern "C" void std::exit (int); using std::exit;' \
2846 'extern "C" void exit (int) throw ();' \
2847 'extern "C" void exit (int);' \
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line 2851 "configure"
2852 #include "confdefs.h"
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line 2883 "configure"
2884 #include "confdefs.h"
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 rm -f conftest.$ac_objext conftest.$ac_ext
2914 if test -n "$ac_declaration"; then
2915 echo '#ifdef __cplusplus' >>confdefs.h
2916 echo $ac_declaration >>confdefs.h
2917 echo '#endif' >>confdefs.h
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 ac_main_return=return
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 ac_main_return=return
2934 if test "x$cf_with_cxx" != xno
2936 # Several of the C++ configurations do not work, particularly when
2937 # cross-compiling (20140913 -TD)
2938 echo "$as_me:2938: checking if $CXX works" >&5
2939 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2941 save_CPPFLAGS="$CPPFLAGS"
2942 eval cf_includedir=${includedir}
2943 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line 2946 "configure"
2947 #include "confdefs.h"
2956 printf("Hello world!\n")
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:2963: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:2969: \"$ac_try\"") >&5
2972 echo "$as_me:2972: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2980 rm -f conftest.$ac_objext conftest.$ac_ext
2981 CPPFLAGS="$save_CPPFLAGS"
2983 echo "$as_me:2983: result: $cf_cxx_works" >&5
2984 echo "${ECHO_T}$cf_cxx_works" >&6
2985 if test "x$cf_cxx_works" = xno
2987 { echo "$as_me:2987: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2988 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2989 cf_with_cxx=no; CXX=""; GXX="";
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 ac_main_return=return
2999 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3000 if test "$CXX" = "g++" ; then
3001 # Extract the first word of "g++", so it can be a program name with args.
3002 set dummy g++; ac_word=$2
3003 echo "$as_me:3003: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_path_CXX+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3013 ac_save_IFS=$IFS; IFS=$ac_path_separator
3015 for ac_dir in $ac_dummy; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if $as_executable_p "$ac_dir/$ac_word"; then
3019 ac_cv_path_CXX="$ac_dir/$ac_word"
3020 echo "$as_me:3020: found $ac_dir/$ac_word" >&5
3030 if test -n "$CXX"; then
3031 echo "$as_me:3031: result: $CXX" >&5
3032 echo "${ECHO_T}$CXX" >&6
3034 echo "$as_me:3034: result: no" >&5
3035 echo "${ECHO_T}no" >&6
3041 { echo "$as_me:3041: WARNING: You don't have any C++ compiler, too bad" >&5
3042 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3043 cf_with_cxx=no; CXX=""; GXX="";
3049 if test "$GXX" = yes; then
3050 echo "$as_me:3050: checking version of ${CXX:-g++}" >&5
3051 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3052 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3053 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3054 echo "$as_me:3054: result: $GXX_VERSION" >&5
3055 echo "${ECHO_T}$GXX_VERSION" >&6
3058 case $GXX_VERSION in
3060 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3062 { echo "$as_me:3062: WARNING: templates do not work" >&5
3063 echo "$as_me: WARNING: templates do not work" >&2;}
3067 echo "$as_me:3067: checking if you want to build C++ binding and demo" >&5
3068 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3070 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3071 if test "${with_cxx_binding+set}" = set; then
3072 withval="$with_cxx_binding"
3073 cf_with_cxx_binding=$withval
3075 cf_with_cxx_binding=$cf_with_cxx
3077 echo "$as_me:3077: result: $cf_with_cxx_binding" >&5
3078 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3080 echo "$as_me:3080: checking if you want to build with Ada95" >&5
3081 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3082 echo "$as_me:3082: result: $cf_with_ada" >&5
3083 echo "${ECHO_T}$cf_with_ada" >&6
3085 echo "$as_me:3085: checking if you want to install terminal database" >&5
3086 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3088 # Check whether --enable-db-install or --disable-db-install was given.
3089 if test "${enable_db_install+set}" = set; then
3090 enableval="$enable_db_install"
3091 cf_with_db_install=$enableval
3093 cf_with_db_install=yes
3095 echo "$as_me:3095: result: $cf_with_db_install" >&5
3096 echo "${ECHO_T}$cf_with_db_install" >&6
3098 echo "$as_me:3098: checking if you want to install manpages" >&5
3099 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3101 # Check whether --with-manpages or --without-manpages was given.
3102 if test "${with_manpages+set}" = set; then
3103 withval="$with_manpages"
3104 cf_with_manpages=$withval
3106 cf_with_manpages=yes
3108 echo "$as_me:3108: result: $cf_with_manpages" >&5
3109 echo "${ECHO_T}$cf_with_manpages" >&6
3111 echo "$as_me:3111: checking if you want to build programs such as tic" >&5
3112 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3114 # Check whether --with-progs or --without-progs was given.
3115 if test "${with_progs+set}" = set; then
3116 withval="$with_progs"
3117 cf_with_progs=$withval
3121 echo "$as_me:3121: result: $cf_with_progs" >&5
3122 echo "${ECHO_T}$cf_with_progs" >&6
3124 echo "$as_me:3124: checking if you want to build test-programs" >&5
3125 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3127 # Check whether --with-tests or --without-tests was given.
3128 if test "${with_tests+set}" = set; then
3129 withval="$with_tests"
3130 cf_with_tests=$withval
3134 echo "$as_me:3134: result: $cf_with_tests" >&5
3135 echo "${ECHO_T}$cf_with_tests" >&6
3137 echo "$as_me:3137: checking if you wish to install curses.h" >&5
3138 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3140 # Check whether --with-curses-h or --without-curses-h was given.
3141 if test "${with_curses_h+set}" = set; then
3142 withval="$with_curses_h"
3143 with_curses_h=$withval
3147 echo "$as_me:3147: result: $with_curses_h" >&5
3148 echo "${ECHO_T}$with_curses_h" >&6
3150 modules_to_build="ncurses"
3151 if test "X$cf_with_progs" != Xno ; then
3152 modules_to_build="$modules_to_build progs tack"
3154 modules_to_build="$modules_to_build panel menu form"
3156 test "$program_prefix" != NONE &&
3157 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3158 # Use a double $ so make ignores it.
3159 test "$program_suffix" != NONE &&
3160 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3161 # Double any \ or $. echo might interpret backslashes.
3162 # By default was `s,x,x', remove it if useless.
3163 cat <<\_ACEOF >conftest.sed
3164 s/[\\$]/&&/g;s/;s,x,x,$//
3166 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3169 for ac_prog in mawk gawk nawk awk
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 echo "$as_me:3173: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_AWK+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$AWK"; then
3179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3181 ac_save_IFS=$IFS; IFS=$ac_path_separator
3183 for ac_dir in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir=.
3186 $as_executable_p "$ac_dir/$ac_word" || continue
3187 ac_cv_prog_AWK="$ac_prog"
3188 echo "$as_me:3188: found $ac_dir/$ac_word" >&5
3195 if test -n "$AWK"; then
3196 echo "$as_me:3196: result: $AWK" >&5
3197 echo "${ECHO_T}$AWK" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 test -n "$AWK" && break
3206 test -z "$AWK" && { { echo "$as_me:3206: error: No awk program found" >&5
3207 echo "$as_me: error: No awk program found" >&2;}
3208 { (exit 1); exit 1; }; }
3210 echo "$as_me:3210: checking for egrep" >&5
3211 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3212 if test "${ac_cv_prog_egrep+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3216 then ac_cv_prog_egrep='grep -E'
3217 else ac_cv_prog_egrep='egrep'
3220 echo "$as_me:3220: result: $ac_cv_prog_egrep" >&5
3221 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3222 EGREP=$ac_cv_prog_egrep
3224 test -z "$EGREP" && { { echo "$as_me:3224: error: No egrep program found" >&5
3225 echo "$as_me: error: No egrep program found" >&2;}
3226 { (exit 1); exit 1; }; }
3228 # Find a good install program. We prefer a C program (faster),
3229 # so one script is as good as another. But avoid the broken or
3230 # incompatible versions:
3231 # SysV /etc/install, /usr/sbin/install
3232 # SunOS /usr/etc/install
3233 # IRIX /sbin/install
3235 # AmigaOS /C/install, which installs bootblocks on floppy discs
3236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239 # ./install, which can be erroneously created by make from ./install.sh.
3240 echo "$as_me:3240: checking for a BSD compatible install" >&5
3241 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3242 if test -z "$INSTALL"; then
3243 if test "${ac_cv_path_install+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 ac_save_IFS=$IFS; IFS=$ac_path_separator
3247 for ac_dir in $PATH; do
3249 # Account for people who put trailing slashes in PATH elements.
3251 / | ./ | .// | /cC/* \
3252 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3255 # OSF1 and SCO ODT 3.0 have their own names for install.
3256 # Don't use installbsd from OSF since it installs stuff as root
3258 for ac_prog in ginstall scoinst install; do
3259 if $as_executable_p "$ac_dir/$ac_prog"; then
3260 if test $ac_prog = install &&
3261 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3262 # AIX install. It has an incompatible calling convention.
3264 elif test $ac_prog = install &&
3265 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3266 # program-specific install script used by HP pwplus--don't use.
3269 ac_cv_path_install="$ac_dir/$ac_prog -c"
3279 if test "${ac_cv_path_install+set}" = set; then
3280 INSTALL=$ac_cv_path_install
3282 # As a last resort, use the slow shell script. We don't cache a
3283 # path for INSTALL within a source directory, because that will
3284 # break other packages using the cache if that directory is
3285 # removed, or if the path is relative.
3286 INSTALL=$ac_install_sh
3289 echo "$as_me:3289: result: $INSTALL" >&5
3290 echo "${ECHO_T}$INSTALL" >&6
3292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3293 # It thinks the first close brace ends the variable substitution.
3294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3304 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3305 test -z "$cf_dir" && cf_dir=.
3306 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3310 for ac_prog in tdlint lint alint splint lclint
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_LINT+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$LINT"; then
3320 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_LINT="$ac_prog"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3335 LINT=$ac_cv_prog_LINT
3336 if test -n "$LINT"; then
3337 echo "$as_me:3337: result: $LINT" >&5
3338 echo "${ECHO_T}$LINT" >&6
3340 echo "$as_me:3340: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 test -n "$LINT" && break
3347 echo "$as_me:3347: checking whether ln -s works" >&5
3348 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3350 if test "$LN_S" = "ln -s"; then
3351 echo "$as_me:3351: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3354 echo "$as_me:3354: result: no, using $LN_S" >&5
3355 echo "${ECHO_T}no, using $LN_S" >&6
3358 echo "$as_me:3358: checking if $LN_S -f options work" >&5
3359 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3361 rm -f conf$$.src conf$$dst
3363 echo first >conf$$.src
3364 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3369 rm -f conf$$.dst conf$$src
3370 echo "$as_me:3370: result: $cf_prog_ln_sf" >&5
3371 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3373 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3375 echo "$as_me:3375: checking for long file names" >&5
3376 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3377 if test "${ac_cv_sys_long_file_names+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 ac_cv_sys_long_file_names=yes
3381 # Test for long file names in all the places we know might matter:
3382 # . the current directory, where building will happen
3383 # $prefix/lib where we will be installing things
3384 # $exec_prefix/lib likewise
3385 # eval it to expand exec_prefix.
3386 # $TMPDIR if set, where it might want to write temporary files
3387 # if $TMPDIR is not set:
3388 # /tmp where it might want to write temporary files
3391 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3394 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3396 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3397 test -d $ac_dir || continue
3398 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3399 ac_xdir=$ac_dir/cf$$
3400 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3401 ac_tf1=$ac_xdir/conftest9012345
3402 ac_tf2=$ac_xdir/conftest9012346
3403 (echo 1 >$ac_tf1) 2>/dev/null
3404 (echo 2 >$ac_tf2) 2>/dev/null
3405 ac_val=`cat $ac_tf1 2>/dev/null`
3406 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3407 ac_cv_sys_long_file_names=no
3408 rm -rf $ac_xdir 2>/dev/null
3411 rm -rf $ac_xdir 2>/dev/null
3414 echo "$as_me:3414: result: $ac_cv_sys_long_file_names" >&5
3415 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3416 if test $ac_cv_sys_long_file_names = yes; then
3418 cat >>confdefs.h <<\EOF
3419 #define HAVE_LONG_FILE_NAMES 1
3424 # if we find pkg-config, check if we should install the ".pc" files.
3426 echo "$as_me:3426: checking if you want to use pkg-config" >&5
3427 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3429 # Check whether --with-pkg-config or --without-pkg-config was given.
3430 if test "${with_pkg_config+set}" = set; then
3431 withval="$with_pkg_config"
3432 cf_pkg_config=$withval
3436 echo "$as_me:3436: result: $cf_pkg_config" >&5
3437 echo "${ECHO_T}$cf_pkg_config" >&6
3439 case $cf_pkg_config in
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3448 echo "$as_me:3448: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3458 ac_save_IFS=$IFS; IFS=$ac_path_separator
3460 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if $as_executable_p "$ac_dir/$ac_word"; then
3464 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3465 echo "$as_me:3465: found $ac_dir/$ac_word" >&5
3473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3475 if test -n "$PKG_CONFIG"; then
3476 echo "$as_me:3476: result: $PKG_CONFIG" >&5
3477 echo "${ECHO_T}$PKG_CONFIG" >&6
3479 echo "$as_me:3479: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$ac_cv_path_PKG_CONFIG"; then
3485 ac_pt_PKG_CONFIG=$PKG_CONFIG
3486 # Extract the first word of "pkg-config", so it can be a program name with args.
3487 set dummy pkg-config; ac_word=$2
3488 echo "$as_me:3488: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 case $ac_pt_PKG_CONFIG in
3495 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3498 ac_save_IFS=$IFS; IFS=$ac_path_separator
3500 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if $as_executable_p "$ac_dir/$ac_word"; then
3504 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3505 echo "$as_me:3505: found $ac_dir/$ac_word" >&5
3510 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3516 if test -n "$ac_pt_PKG_CONFIG"; then
3517 echo "$as_me:3517: result: $ac_pt_PKG_CONFIG" >&5
3518 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3520 echo "$as_me:3520: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 PKG_CONFIG=$ac_pt_PKG_CONFIG
3526 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3535 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3536 if test "$PKG_CONFIG" != none ; then
3538 if test "x$prefix" != xNONE; then
3539 cf_path_syntax="$prefix"
3541 cf_path_syntax="$ac_default_prefix"
3544 case ".$PKG_CONFIG" in
3549 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3551 (.\${*prefix}*|.\${*dir}*)
3552 eval PKG_CONFIG="$PKG_CONFIG"
3553 case ".$PKG_CONFIG" in
3555 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3560 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3563 { { echo "$as_me:3563: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3564 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3565 { (exit 1); exit 1; }; }
3569 elif test "x$cf_pkg_config" != xno ; then
3570 { echo "$as_me:3570: WARNING: pkg-config is not installed" >&5
3571 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3576 echo "$as_me:3576: checking for pkg-config library directory" >&5
3577 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3580 echo "$as_me:3580: checking for $PKG_CONFIG library directory" >&5
3581 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3585 PKG_CONFIG_LIBDIR=no
3587 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3588 if test "${with_pkg_config_libdir+set}" = set; then
3589 withval="$with_pkg_config_libdir"
3590 PKG_CONFIG_LIBDIR=$withval
3592 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3595 case x$PKG_CONFIG_LIBDIR in
3599 # Look for the library directory using the same prefix as the executable
3600 if test "x$PKG_CONFIG" = xnone
3604 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3607 # If you don't like using the default architecture, you have to specify the
3608 # intended library directory and corresponding compiler/linker options.
3610 # This case allows for Debian's 2014-flavor of multiarch, along with the
3611 # most common variations before that point. Some other variants spell the
3612 # directory differently, e.g., "pkg-config", and put it in unusual places.
3613 # pkg-config has always been poorly standardized, which is ironic...
3614 case x`(arch) 2>/dev/null` in
3617 $cf_path/lib/*64-linux-gnu \
3625 $cf_path/lib/*-linux-gnu \
3633 test -n "$verbose" && echo " list..." 1>&6
3635 echo "${as_me:-configure}:3635: testing list... ..." 1>&5
3637 for cf_config in $cf_search_path
3639 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3641 echo "${as_me:-configure}:3641: testing checking $cf_config/pkgconfig ..." 1>&5
3643 if test -d $cf_config/pkgconfig
3645 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3646 echo "$as_me:3646: checking done" >&5
3647 echo $ECHO_N "checking done... $ECHO_C" >&6
3656 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3657 echo "$as_me:3657: result: $PKG_CONFIG_LIBDIR" >&5
3658 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3661 if test "x$PKG_CONFIG" != xnone
3663 echo "$as_me:3663: checking if we should install .pc files for $PKG_CONFIG" >&5
3664 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3666 echo "$as_me:3666: checking if we should install .pc files" >&5
3667 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3670 # Check whether --enable-pc-files or --disable-pc-files was given.
3671 if test "${enable_pc_files+set}" = set; then
3672 enableval="$enable_pc_files"
3673 enable_pc_files=$enableval
3677 echo "$as_me:3677: result: $enable_pc_files" >&5
3678 echo "${ECHO_T}$enable_pc_files" >&6
3680 if test "x$enable_pc_files" != xno
3683 case "x$PKG_CONFIG_LIBDIR" in
3685 { echo "$as_me:3685: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3686 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3690 if test "x$prefix" != xNONE; then
3691 cf_path_syntax="$prefix"
3693 cf_path_syntax="$ac_default_prefix"
3696 case ".$PKG_CONFIG_LIBDIR" in
3701 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3703 (.\${*prefix}*|.\${*dir}*)
3704 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3705 case ".$PKG_CONFIG_LIBDIR" in
3707 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3712 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3715 { { echo "$as_me:3715: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3716 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3717 { (exit 1); exit 1; }; }
3727 if test -z "$MAKE_PC_FILES"
3729 echo "$as_me:3729: checking for suffix to add to pc-files" >&5
3730 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3732 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3733 if test "${with_pc_suffix+set}" = set; then
3734 withval="$with_pc_suffix"
3739 (*) PC_MODULE_SUFFIX="$withval"
3743 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3744 echo "$as_me:3744: result: $PC_MODULE_SUFFIX" >&5
3745 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3746 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3750 echo "$as_me:3750: checking if we should assume mixed-case filenames" >&5
3751 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3753 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3754 if test "${enable_mixed_case+set}" = set; then
3755 enableval="$enable_mixed_case"
3756 enable_mixedcase=$enableval
3758 enable_mixedcase=auto
3760 echo "$as_me:3760: result: $enable_mixedcase" >&5
3761 echo "${ECHO_T}$enable_mixedcase" >&6
3762 if test "$enable_mixedcase" = "auto" ; then
3764 echo "$as_me:3764: checking if filesystem supports mixed-case filenames" >&5
3765 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3766 if test "${cf_cv_mixedcase+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 if test "$cross_compiling" = yes ; then
3771 case $target_alias in
3772 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3780 rm -f conftest CONFTEST
3782 if test -f CONFTEST ; then
3787 rm -f conftest CONFTEST
3791 echo "$as_me:3791: result: $cf_cv_mixedcase" >&5
3792 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3793 test "$cf_cv_mixedcase" = yes &&
3794 cat >>confdefs.h <<\EOF
3795 #define MIXEDCASE_FILENAMES 1
3799 cf_cv_mixedcase=$enable_mixedcase
3800 if test "x$enable_mixedcase" = "xyes" ; then
3802 cat >>confdefs.h <<\EOF
3803 #define MIXEDCASE_FILENAMES 1
3809 # do this after mixed-case option (tags/TAGS is not as important as tic).
3810 echo "$as_me:3810: checking whether ${MAKE-make} sets \${MAKE}" >&5
3811 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3812 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3813 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 cat >conftest.make <<\EOF
3818 @echo 'ac_maketemp="${MAKE}"'
3820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3821 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3822 if test -n "$ac_maketemp"; then
3823 eval ac_cv_prog_make_${ac_make}_set=yes
3825 eval ac_cv_prog_make_${ac_make}_set=no
3829 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3830 echo "$as_me:3830: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3834 echo "$as_me:3834: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 SET_MAKE="MAKE=${MAKE-make}"
3839 for ac_prog in exctags ctags
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 echo "$as_me:3843: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_CTAGS+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$CTAGS"; then
3849 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3851 ac_save_IFS=$IFS; IFS=$ac_path_separator
3853 for ac_dir in $ac_dummy; do
3855 test -z "$ac_dir" && ac_dir=.
3856 $as_executable_p "$ac_dir/$ac_word" || continue
3857 ac_cv_prog_CTAGS="$ac_prog"
3858 echo "$as_me:3858: found $ac_dir/$ac_word" >&5
3864 CTAGS=$ac_cv_prog_CTAGS
3865 if test -n "$CTAGS"; then
3866 echo "$as_me:3866: result: $CTAGS" >&5
3867 echo "${ECHO_T}$CTAGS" >&6
3869 echo "$as_me:3869: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 test -n "$CTAGS" && break
3876 for ac_prog in exetags etags
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:3880: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_ETAGS+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 if test -n "$ETAGS"; then
3886 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3888 ac_save_IFS=$IFS; IFS=$ac_path_separator
3890 for ac_dir in $ac_dummy; do
3892 test -z "$ac_dir" && ac_dir=.
3893 $as_executable_p "$ac_dir/$ac_word" || continue
3894 ac_cv_prog_ETAGS="$ac_prog"
3895 echo "$as_me:3895: found $ac_dir/$ac_word" >&5
3901 ETAGS=$ac_cv_prog_ETAGS
3902 if test -n "$ETAGS"; then
3903 echo "$as_me:3903: result: $ETAGS" >&5
3904 echo "${ECHO_T}$ETAGS" >&6
3906 echo "$as_me:3906: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3910 test -n "$ETAGS" && break
3913 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3914 set dummy ${CTAGS:-ctags}; ac_word=$2
3915 echo "$as_me:3915: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -n "$MAKE_LOWER_TAGS"; then
3921 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3923 ac_save_IFS=$IFS; IFS=$ac_path_separator
3925 for ac_dir in $ac_dummy; do
3927 test -z "$ac_dir" && ac_dir=.
3928 $as_executable_p "$ac_dir/$ac_word" || continue
3929 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3930 echo "$as_me:3930: found $ac_dir/$ac_word" >&5
3934 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3937 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3938 if test -n "$MAKE_LOWER_TAGS"; then
3939 echo "$as_me:3939: result: $MAKE_LOWER_TAGS" >&5
3940 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3942 echo "$as_me:3942: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3946 if test "$cf_cv_mixedcase" = yes ; then
3947 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3948 set dummy ${ETAGS:-etags}; ac_word=$2
3949 echo "$as_me:3949: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 if test -n "$MAKE_UPPER_TAGS"; then
3955 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3957 ac_save_IFS=$IFS; IFS=$ac_path_separator
3959 for ac_dir in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir=.
3962 $as_executable_p "$ac_dir/$ac_word" || continue
3963 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3964 echo "$as_me:3964: found $ac_dir/$ac_word" >&5
3968 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3971 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3972 if test -n "$MAKE_UPPER_TAGS"; then
3973 echo "$as_me:3973: result: $MAKE_UPPER_TAGS" >&5
3974 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3976 echo "$as_me:3976: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3984 if test "$MAKE_UPPER_TAGS" = yes ; then
3990 if test "$MAKE_LOWER_TAGS" = yes ; then
3996 echo "$as_me:3996: checking for makeflags variable" >&5
3997 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3998 if test "${cf_cv_makeflags+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4005 cat >cf_makeflags.tmp <<CF_EOF
4008 @ echo '.$cf_option'
4010 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4011 case "$cf_result" in
4013 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4014 case "$cf_result" in
4015 (.*CC=*) cf_cv_makeflags=
4017 (*) cf_cv_makeflags=$cf_option
4023 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4027 rm -f cf_makeflags.tmp
4030 echo "$as_me:4030: result: $cf_cv_makeflags" >&5
4031 echo "${ECHO_T}$cf_cv_makeflags" >&6
4033 if test -n "$ac_tool_prefix"; then
4034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4036 echo "$as_me:4036: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_RANLIB+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -n "$RANLIB"; then
4042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4044 ac_save_IFS=$IFS; IFS=$ac_path_separator
4046 for ac_dir in $ac_dummy; do
4048 test -z "$ac_dir" && ac_dir=.
4049 $as_executable_p "$ac_dir/$ac_word" || continue
4050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4051 echo "$as_me:4051: found $ac_dir/$ac_word" >&5
4057 RANLIB=$ac_cv_prog_RANLIB
4058 if test -n "$RANLIB"; then
4059 echo "$as_me:4059: result: $RANLIB" >&5
4060 echo "${ECHO_T}$RANLIB" >&6
4062 echo "$as_me:4062: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4067 if test -z "$ac_cv_prog_RANLIB"; then
4068 ac_ct_RANLIB=$RANLIB
4069 # Extract the first word of "ranlib", so it can be a program name with args.
4070 set dummy ranlib; ac_word=$2
4071 echo "$as_me:4071: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$ac_ct_RANLIB"; then
4077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4079 ac_save_IFS=$IFS; IFS=$ac_path_separator
4081 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 $as_executable_p "$ac_dir/$ac_word" || continue
4085 ac_cv_prog_ac_ct_RANLIB="ranlib"
4086 echo "$as_me:4086: found $ac_dir/$ac_word" >&5
4090 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4094 if test -n "$ac_ct_RANLIB"; then
4095 echo "$as_me:4095: result: $ac_ct_RANLIB" >&5
4096 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4098 echo "$as_me:4098: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4102 RANLIB=$ac_ct_RANLIB
4104 RANLIB="$ac_cv_prog_RANLIB"
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}ld; ac_word=$2
4110 echo "$as_me:4110: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_LD+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$LD"; then
4116 ac_cv_prog_LD="$LD" # Let the user override the test.
4118 ac_save_IFS=$IFS; IFS=$ac_path_separator
4120 for ac_dir in $ac_dummy; do
4122 test -z "$ac_dir" && ac_dir=.
4123 $as_executable_p "$ac_dir/$ac_word" || continue
4124 ac_cv_prog_LD="${ac_tool_prefix}ld"
4125 echo "$as_me:4125: found $ac_dir/$ac_word" >&5
4132 if test -n "$LD"; then
4133 echo "$as_me:4133: result: $LD" >&5
4134 echo "${ECHO_T}$LD" >&6
4136 echo "$as_me:4136: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4141 if test -z "$ac_cv_prog_LD"; then
4143 # Extract the first word of "ld", so it can be a program name with args.
4144 set dummy ld; ac_word=$2
4145 echo "$as_me:4145: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if test -n "$ac_ct_LD"; then
4151 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4153 ac_save_IFS=$IFS; IFS=$ac_path_separator
4155 for ac_dir in $ac_dummy; do
4157 test -z "$ac_dir" && ac_dir=.
4158 $as_executable_p "$ac_dir/$ac_word" || continue
4159 ac_cv_prog_ac_ct_LD="ld"
4160 echo "$as_me:4160: found $ac_dir/$ac_word" >&5
4164 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4167 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4168 if test -n "$ac_ct_LD"; then
4169 echo "$as_me:4169: result: $ac_ct_LD" >&5
4170 echo "${ECHO_T}$ac_ct_LD" >&6
4172 echo "$as_me:4172: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}ar; ac_word=$2
4184 echo "$as_me:4184: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_prog_AR+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 if test -n "$AR"; then
4190 ac_cv_prog_AR="$AR" # Let the user override the test.
4192 ac_save_IFS=$IFS; IFS=$ac_path_separator
4194 for ac_dir in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir=.
4197 $as_executable_p "$ac_dir/$ac_word" || continue
4198 ac_cv_prog_AR="${ac_tool_prefix}ar"
4199 echo "$as_me:4199: found $ac_dir/$ac_word" >&5
4206 if test -n "$AR"; then
4207 echo "$as_me:4207: result: $AR" >&5
4208 echo "${ECHO_T}$AR" >&6
4210 echo "$as_me:4210: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4215 if test -z "$ac_cv_prog_AR"; then
4217 # Extract the first word of "ar", so it can be a program name with args.
4218 set dummy ar; ac_word=$2
4219 echo "$as_me:4219: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$ac_ct_AR"; then
4225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4227 ac_save_IFS=$IFS; IFS=$ac_path_separator
4229 for ac_dir in $ac_dummy; do
4231 test -z "$ac_dir" && ac_dir=.
4232 $as_executable_p "$ac_dir/$ac_word" || continue
4233 ac_cv_prog_ac_ct_AR="ar"
4234 echo "$as_me:4234: found $ac_dir/$ac_word" >&5
4238 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4242 if test -n "$ac_ct_AR"; then
4243 echo "$as_me:4243: result: $ac_ct_AR" >&5
4244 echo "${ECHO_T}$ac_ct_AR" >&6
4246 echo "$as_me:4246: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}nm; ac_word=$2
4258 echo "$as_me:4258: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_NM+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$NM"; then
4264 ac_cv_prog_NM="$NM" # Let the user override the test.
4266 ac_save_IFS=$IFS; IFS=$ac_path_separator
4268 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 $as_executable_p "$ac_dir/$ac_word" || continue
4272 ac_cv_prog_NM="${ac_tool_prefix}nm"
4273 echo "$as_me:4273: found $ac_dir/$ac_word" >&5
4280 if test -n "$NM"; then
4281 echo "$as_me:4281: result: $NM" >&5
4282 echo "${ECHO_T}$NM" >&6
4284 echo "$as_me:4284: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4289 if test -z "$ac_cv_prog_NM"; then
4291 # Extract the first word of "nm", so it can be a program name with args.
4292 set dummy nm; ac_word=$2
4293 echo "$as_me:4293: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test -n "$ac_ct_NM"; then
4299 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4301 ac_save_IFS=$IFS; IFS=$ac_path_separator
4303 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 $as_executable_p "$ac_dir/$ac_word" || continue
4307 ac_cv_prog_ac_ct_NM="nm"
4308 echo "$as_me:4308: found $ac_dir/$ac_word" >&5
4312 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4315 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4316 if test -n "$ac_ct_NM"; then
4317 echo "$as_me:4317: result: $ac_ct_NM" >&5
4318 echo "${ECHO_T}$ac_ct_NM" >&6
4320 echo "$as_me:4320: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4329 if test -n "$ac_tool_prefix"; then
4330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4331 set dummy ${ac_tool_prefix}ar; ac_word=$2
4332 echo "$as_me:4332: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_AR+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 if test -n "$AR"; then
4338 ac_cv_prog_AR="$AR" # Let the user override the test.
4340 ac_save_IFS=$IFS; IFS=$ac_path_separator
4342 for ac_dir in $ac_dummy; do
4344 test -z "$ac_dir" && ac_dir=.
4345 $as_executable_p "$ac_dir/$ac_word" || continue
4346 ac_cv_prog_AR="${ac_tool_prefix}ar"
4347 echo "$as_me:4347: found $ac_dir/$ac_word" >&5
4354 if test -n "$AR"; then
4355 echo "$as_me:4355: result: $AR" >&5
4356 echo "${ECHO_T}$AR" >&6
4358 echo "$as_me:4358: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4363 if test -z "$ac_cv_prog_AR"; then
4365 # Extract the first word of "ar", so it can be a program name with args.
4366 set dummy ar; ac_word=$2
4367 echo "$as_me:4367: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test -n "$ac_ct_AR"; then
4373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4375 ac_save_IFS=$IFS; IFS=$ac_path_separator
4377 for ac_dir in $ac_dummy; do
4379 test -z "$ac_dir" && ac_dir=.
4380 $as_executable_p "$ac_dir/$ac_word" || continue
4381 ac_cv_prog_ac_ct_AR="ar"
4382 echo "$as_me:4382: found $ac_dir/$ac_word" >&5
4386 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4390 if test -n "$ac_ct_AR"; then
4391 echo "$as_me:4391: result: $ac_ct_AR" >&5
4392 echo "${ECHO_T}$ac_ct_AR" >&6
4394 echo "$as_me:4394: result: no" >&5
4395 echo "${ECHO_T}no" >&6
4403 echo "$as_me:4403: checking for options to update archives" >&5
4404 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4405 if test "${cf_cv_ar_flags+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 cf_cv_ar_flags=unknown
4410 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4413 # check if $ARFLAGS already contains this choice
4414 if test "x$ARFLAGS" != "x" ; then
4415 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4416 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4422 rm -f conftest.$ac_cv_objext
4425 cat >conftest.$ac_ext <<EOF
4426 #line 4426 "configure"
4427 int testdata[3] = { 123, 456, 789 };
4429 if { (eval echo "$as_me:4429: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); } ; then
4434 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4435 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4436 if test -f conftest.a ; then
4437 cf_cv_ar_flags=$cf_ar_flags
4441 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4443 echo "${as_me:-configure}:4443: testing cannot compile test-program ..." 1>&5
4448 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4451 echo "$as_me:4451: result: $cf_cv_ar_flags" >&5
4452 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4454 if test -n "$ARFLAGS" ; then
4455 if test -n "$cf_cv_ar_flags" ; then
4456 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4459 ARFLAGS=$cf_cv_ar_flags
4462 echo "$as_me:4462: checking if you have specified an install-prefix" >&5
4463 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4465 # Check whether --with-install-prefix or --without-install-prefix was given.
4466 if test "${with_install_prefix+set}" = set; then
4467 withval="$with_install_prefix"
4471 (*) DESTDIR="$withval"
4475 echo "$as_me:4475: result: $DESTDIR" >&5
4476 echo "${ECHO_T}$DESTDIR" >&6
4478 ###############################################################################
4480 # If we're cross-compiling, allow the user to override the tools and their
4481 # options. The configure script is oriented toward identifying the host
4482 # compiler, etc., but we need a build compiler to generate parts of the source.
4484 if test "$cross_compiling" = yes ; then
4486 # defaults that we might want to override
4487 : ${BUILD_CFLAGS:=''}
4488 : ${BUILD_CPPFLAGS:=''}
4489 : ${BUILD_LDFLAGS:=''}
4491 : ${BUILD_EXEEXT:='$x'}
4492 : ${BUILD_OBJEXT:='o'}
4494 # Check whether --with-build-cc or --without-build-cc was given.
4495 if test "${with_build_cc+set}" = set; then
4496 withval="$with_build_cc"
4499 for ac_prog in gcc cc cl
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 echo "$as_me:4503: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$BUILD_CC"; then
4509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
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 $as_executable_p "$ac_dir/$ac_word" || continue
4517 ac_cv_prog_BUILD_CC="$ac_prog"
4518 echo "$as_me:4518: found $ac_dir/$ac_word" >&5
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526 echo "$as_me:4526: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6
4529 echo "$as_me:4529: result: no" >&5
4530 echo "${ECHO_T}no" >&6
4533 test -n "$BUILD_CC" && break
4537 echo "$as_me:4537: checking for native build C compiler" >&5
4538 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4539 echo "$as_me:4539: result: $BUILD_CC" >&5
4540 echo "${ECHO_T}$BUILD_CC" >&6
4542 echo "$as_me:4542: checking for native build C preprocessor" >&5
4543 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4545 # Check whether --with-build-cpp or --without-build-cpp was given.
4546 if test "${with_build_cpp+set}" = set; then
4547 withval="$with_build_cpp"
4548 BUILD_CPP="$withval"
4550 BUILD_CPP='${BUILD_CC} -E'
4552 echo "$as_me:4552: result: $BUILD_CPP" >&5
4553 echo "${ECHO_T}$BUILD_CPP" >&6
4555 echo "$as_me:4555: checking for native build C flags" >&5
4556 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4558 # Check whether --with-build-cflags or --without-build-cflags was given.
4559 if test "${with_build_cflags+set}" = set; then
4560 withval="$with_build_cflags"
4561 BUILD_CFLAGS="$withval"
4563 echo "$as_me:4563: result: $BUILD_CFLAGS" >&5
4564 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4566 echo "$as_me:4566: checking for native build C preprocessor-flags" >&5
4567 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4569 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4570 if test "${with_build_cppflags+set}" = set; then
4571 withval="$with_build_cppflags"
4572 BUILD_CPPFLAGS="$withval"
4574 echo "$as_me:4574: result: $BUILD_CPPFLAGS" >&5
4575 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4577 echo "$as_me:4577: checking for native build linker-flags" >&5
4578 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4580 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4581 if test "${with_build_ldflags+set}" = set; then
4582 withval="$with_build_ldflags"
4583 BUILD_LDFLAGS="$withval"
4585 echo "$as_me:4585: result: $BUILD_LDFLAGS" >&5
4586 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4588 echo "$as_me:4588: checking for native build linker-libraries" >&5
4589 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4591 # Check whether --with-build-libs or --without-build-libs was given.
4592 if test "${with_build_libs+set}" = set; then
4593 withval="$with_build_libs"
4594 BUILD_LIBS="$withval"
4596 echo "$as_me:4596: result: $BUILD_LIBS" >&5
4597 echo "${ECHO_T}$BUILD_LIBS" >&6
4599 # this assumes we're on Unix.
4603 : ${BUILD_CC:='${CC}'}
4605 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4606 { { echo "$as_me:4606: error: Cross-build requires two compilers.
4607 Use --with-build-cc to specify the native compiler." >&5
4608 echo "$as_me: error: Cross-build requires two compilers.
4609 Use --with-build-cc to specify the native compiler." >&2;}
4610 { (exit 1); exit 1; }; }
4614 : ${BUILD_CC:='${CC}'}
4615 : ${BUILD_CPP:='${CPP}'}
4616 : ${BUILD_CFLAGS:='${CFLAGS}'}
4617 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4618 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4619 : ${BUILD_LIBS:='${LIBS}'}
4620 : ${BUILD_EXEEXT:='$x'}
4621 : ${BUILD_OBJEXT:='o'}
4624 ###############################################################################
4626 ### Options to allow the user to specify the set of libraries which are used.
4627 ### Use "--without-normal --with-shared" to allow the default model to be
4628 ### shared, for example.
4631 echo "$as_me:4631: checking if libtool -version-number should be used" >&5
4632 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4634 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4635 if test "${enable_libtool_version+set}" = set; then
4636 enableval="$enable_libtool_version"
4637 test "$enableval" != no && enableval=yes
4638 if test "$enableval" != "yes" ; then
4639 cf_libtool_version=no
4641 cf_libtool_version=yes
4645 cf_libtool_version=yes
4648 echo "$as_me:4648: result: $cf_libtool_version" >&5
4649 echo "${ECHO_T}$cf_libtool_version" >&6
4651 if test "$cf_libtool_version" = yes ; then
4652 LIBTOOL_VERSION="-version-number"
4654 LIBTOOL_VERSION="-version-info"
4657 { echo "$as_me:4657: WARNING: VERSION was not set" >&5
4658 echo "$as_me: WARNING: VERSION was not set" >&2;}
4661 ABI_VERSION="$VERSION"
4662 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4664 echo "${as_me:-configure}:4664: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4668 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4669 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4671 echo "${as_me:-configure}:4671: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4675 { echo "$as_me:4675: WARNING: unexpected VERSION value: $VERSION" >&5
4676 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4683 # common library maintenance symbols that are convenient for libtool scripts:
4684 LIB_CREATE='${AR} -cr'
4685 LIB_OBJECT='${OBJECTS}'
4689 # symbols used to prop libtool up to enable it to determine what it should be
4697 echo "$as_me:4697: checking if you want to build libraries with libtool" >&5
4698 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4700 # Check whether --with-libtool or --without-libtool was given.
4701 if test "${with_libtool+set}" = set; then
4702 withval="$with_libtool"
4703 with_libtool=$withval
4707 echo "$as_me:4707: result: $with_libtool" >&5
4708 echo "${ECHO_T}$with_libtool" >&6
4709 if test "$with_libtool" != "no"; then
4711 if test "$with_libtool" != "yes" ; then
4713 if test "x$prefix" != xNONE; then
4714 cf_path_syntax="$prefix"
4716 cf_path_syntax="$ac_default_prefix"
4719 case ".$with_libtool" in
4724 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4726 (.\${*prefix}*|.\${*dir}*)
4727 eval with_libtool="$with_libtool"
4728 case ".$with_libtool" in
4730 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4735 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4738 { { echo "$as_me:4738: error: expected a pathname, not \"$with_libtool\"" >&5
4739 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4740 { (exit 1); exit 1; }; }
4744 LIBTOOL=$with_libtool
4746 if test -n "$ac_tool_prefix"; then
4747 for ac_prog in libtool glibtool
4749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4751 echo "$as_me:4751: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4753 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 if test -n "$LIBTOOL"; then
4757 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4759 ac_save_IFS=$IFS; IFS=$ac_path_separator
4761 for ac_dir in $ac_dummy; do
4763 test -z "$ac_dir" && ac_dir=.
4764 $as_executable_p "$ac_dir/$ac_word" || continue
4765 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4766 echo "$as_me:4766: found $ac_dir/$ac_word" >&5
4772 LIBTOOL=$ac_cv_prog_LIBTOOL
4773 if test -n "$LIBTOOL"; then
4774 echo "$as_me:4774: result: $LIBTOOL" >&5
4775 echo "${ECHO_T}$LIBTOOL" >&6
4777 echo "$as_me:4777: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4781 test -n "$LIBTOOL" && break
4784 if test -z "$LIBTOOL"; then
4785 ac_ct_LIBTOOL=$LIBTOOL
4786 for ac_prog in libtool glibtool
4788 # Extract the first word of "$ac_prog", so it can be a program name with args.
4789 set dummy $ac_prog; ac_word=$2
4790 echo "$as_me:4790: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -n "$ac_ct_LIBTOOL"; then
4796 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4798 ac_save_IFS=$IFS; IFS=$ac_path_separator
4800 for ac_dir in $ac_dummy; do
4802 test -z "$ac_dir" && ac_dir=.
4803 $as_executable_p "$ac_dir/$ac_word" || continue
4804 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4805 echo "$as_me:4805: found $ac_dir/$ac_word" >&5
4811 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4812 if test -n "$ac_ct_LIBTOOL"; then
4813 echo "$as_me:4813: result: $ac_ct_LIBTOOL" >&5
4814 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4816 echo "$as_me:4816: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 test -n "$ac_ct_LIBTOOL" && break
4822 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4824 LIBTOOL=$ac_ct_LIBTOOL
4827 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4829 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.].*//'`
4831 cf_cv_libtool_version=
4833 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4835 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4838 unset ac_cv_prog_ac_ct_LIBTOOL
4842 if test -n "$ac_tool_prefix"; then
4843 for ac_prog in glibtool
4845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4847 echo "$as_me:4847: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 if test -n "$LIBTOOL"; then
4853 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4855 ac_save_IFS=$IFS; IFS=$ac_path_separator
4857 for ac_dir in $ac_dummy; do
4859 test -z "$ac_dir" && ac_dir=.
4860 $as_executable_p "$ac_dir/$ac_word" || continue
4861 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4862 echo "$as_me:4862: found $ac_dir/$ac_word" >&5
4868 LIBTOOL=$ac_cv_prog_LIBTOOL
4869 if test -n "$LIBTOOL"; then
4870 echo "$as_me:4870: result: $LIBTOOL" >&5
4871 echo "${ECHO_T}$LIBTOOL" >&6
4873 echo "$as_me:4873: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4877 test -n "$LIBTOOL" && break
4880 if test -z "$LIBTOOL"; then
4881 ac_ct_LIBTOOL=$LIBTOOL
4882 for ac_prog in glibtool
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 echo "$as_me:4886: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test -n "$ac_ct_LIBTOOL"; then
4892 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4894 ac_save_IFS=$IFS; IFS=$ac_path_separator
4896 for ac_dir in $ac_dummy; do
4898 test -z "$ac_dir" && ac_dir=.
4899 $as_executable_p "$ac_dir/$ac_word" || continue
4900 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4901 echo "$as_me:4901: found $ac_dir/$ac_word" >&5
4907 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4908 if test -n "$ac_ct_LIBTOOL"; then
4909 echo "$as_me:4909: result: $ac_ct_LIBTOOL" >&5
4910 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4912 echo "$as_me:4912: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4916 test -n "$ac_ct_LIBTOOL" && break
4918 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4920 LIBTOOL=$ac_ct_LIBTOOL
4923 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4925 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.].*//'`
4927 cf_cv_libtool_version=
4929 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4933 if test -z "$LIBTOOL" ; then
4934 { { echo "$as_me:4934: error: Cannot find libtool" >&5
4935 echo "$as_me: error: Cannot find libtool" >&2;}
4936 { (exit 1); exit 1; }; }
4938 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4939 LIB_OBJECT='${OBJECTS:.o=.lo}'
4941 LIB_CLEAN='${LIBTOOL} --mode=clean'
4942 LIB_COMPILE='${LIBTOOL} --mode=compile'
4943 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4944 LIB_INSTALL='${LIBTOOL} --mode=install'
4945 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4948 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4950 echo "$as_me:4950: checking version of $LIBTOOL" >&5
4951 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4953 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4955 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.].*//'`
4957 cf_cv_libtool_version=
4959 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4961 echo "$as_me:4961: result: $cf_cv_libtool_version" >&5
4962 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4963 if test -z "$cf_cv_libtool_version" ; then
4964 { { echo "$as_me:4964: error: This is not GNU libtool" >&5
4965 echo "$as_me: error: This is not GNU libtool" >&2;}
4966 { (exit 1); exit 1; }; }
4969 { { echo "$as_me:4969: error: GNU libtool has not been found" >&5
4970 echo "$as_me: error: GNU libtool has not been found" >&2;}
4971 { (exit 1); exit 1; }; }
4974 # special hack to add -no-undefined (which libtool should do for itself)
4976 case "$cf_cv_system_name" in
4977 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
4978 LT_UNDEF=-no-undefined
4982 # special hack to add --tag option for C++ compiler
4983 case $cf_cv_libtool_version in
4984 (1.[5-9]*|[2-9].[0-9.a-z]*)
4985 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4986 LIBTOOL="$LIBTOOL --tag=CC"
4989 LIBTOOL_CXX="$LIBTOOL"
4997 test -z "$LIBTOOL" && ECHO_LT=
4999 if test "$with_libtool" != "no" ; then
5001 cf_list_models="$cf_list_models libtool"
5005 echo "$as_me:5005: checking if you want to build shared libraries" >&5
5006 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5008 # Check whether --with-shared or --without-shared was given.
5009 if test "${with_shared+set}" = set; then
5010 withval="$with_shared"
5011 with_shared=$withval
5015 echo "$as_me:5015: result: $with_shared" >&5
5016 echo "${ECHO_T}$with_shared" >&6
5017 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5019 echo "$as_me:5019: checking if you want to build static libraries" >&5
5020 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5022 # Check whether --with-normal or --without-normal was given.
5023 if test "${with_normal+set}" = set; then
5024 withval="$with_normal"
5025 with_normal=$withval
5029 echo "$as_me:5029: result: $with_normal" >&5
5030 echo "${ECHO_T}$with_normal" >&6
5031 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5033 echo "$as_me:5033: checking if you want to build debug libraries" >&5
5034 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5036 # Check whether --with-debug or --without-debug was given.
5037 if test "${with_debug+set}" = set; then
5038 withval="$with_debug"
5043 echo "$as_me:5043: result: $with_debug" >&5
5044 echo "${ECHO_T}$with_debug" >&6
5045 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5047 echo "$as_me:5047: checking if you want to build profiling libraries" >&5
5048 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5050 # Check whether --with-profile or --without-profile was given.
5051 if test "${with_profile+set}" = set; then
5052 withval="$with_profile"
5053 with_profile=$withval
5057 echo "$as_me:5057: result: $with_profile" >&5
5058 echo "${ECHO_T}$with_profile" >&6
5059 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5063 if test "X$cf_with_cxx_binding" != Xno; then
5064 if test "x$with_shared" = "xyes"; then
5065 echo "$as_me:5065: checking if you want to build C++ shared libraries" >&5
5066 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5068 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5069 if test "${with_cxx_shared+set}" = set; then
5070 withval="$with_cxx_shared"
5071 with_shared_cxx=$withval
5075 echo "$as_me:5075: result: $with_shared_cxx" >&5
5076 echo "${ECHO_T}$with_shared_cxx" >&6
5080 ###############################################################################
5082 echo "$as_me:5082: checking for specified models" >&5
5083 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5084 test -z "$cf_list_models" && cf_list_models=normal
5085 test "$with_libtool" != "no" && cf_list_models=libtool
5086 echo "$as_me:5086: result: $cf_list_models" >&5
5087 echo "${ECHO_T}$cf_list_models" >&6
5089 ### Use the first model as the default, and save its suffix for use in building
5090 ### up test-applications.
5091 echo "$as_me:5091: checking for default model" >&5
5092 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5093 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5094 echo "$as_me:5094: result: $DFT_LWR_MODEL" >&5
5095 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5097 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5108 echo "$as_me:5108: checking if you want to have a library-prefix" >&5
5109 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5111 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5112 if test "${with_lib_prefix+set}" = set; then
5113 withval="$with_lib_prefix"
5114 with_lib_prefix=$withval
5116 with_lib_prefix=auto
5118 echo "$as_me:5118: result: $with_lib_prefix" >&5
5119 echo "${ECHO_T}$with_lib_prefix" >&6
5121 if test $with_lib_prefix = auto
5124 case $cf_cv_system_name in
5126 if test "$DFT_LWR_MODEL" = libtool; then
5132 (*) LIB_PREFIX='lib'
5135 cf_prefix=$LIB_PREFIX
5137 elif test $with_lib_prefix = no
5141 LIB_PREFIX=$with_lib_prefix
5146 echo "$as_me:5146: checking for PATH separator" >&5
5147 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5148 case $cf_cv_system_name in
5149 (os2*) PATH_SEPARATOR=';' ;;
5150 (*) ${PATH_SEPARATOR:=':'} ;;
5153 echo "$as_me:5153: result: $PATH_SEPARATOR" >&5
5154 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5156 ###############################################################################
5158 echo "$as_me:5158: checking if you want to build a separate terminfo library" >&5
5159 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5161 # Check whether --with-termlib or --without-termlib was given.
5162 if test "${with_termlib+set}" = set; then
5163 withval="$with_termlib"
5164 with_termlib=$withval
5168 echo "$as_me:5168: result: $with_termlib" >&5
5169 echo "${ECHO_T}$with_termlib" >&6
5171 echo "$as_me:5171: checking if you want to build a separate tic library" >&5
5172 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5174 # Check whether --with-ticlib or --without-ticlib was given.
5175 if test "${with_ticlib+set}" = set; then
5176 withval="$with_ticlib"
5177 with_ticlib=$withval
5181 echo "$as_me:5181: result: $with_ticlib" >&5
5182 echo "${ECHO_T}$with_ticlib" >&6
5184 ### Checks for special libraries, must be done up-front.
5187 echo "$as_me:5187: checking if you want to link with the GPM mouse library" >&5
5188 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5190 # Check whether --with-gpm or --without-gpm was given.
5191 if test "${with_gpm+set}" = set; then
5197 echo "$as_me:5197: result: $with_gpm" >&5
5198 echo "${ECHO_T}$with_gpm" >&6
5200 if test "$with_gpm" != no ; then
5201 echo "$as_me:5201: checking for gpm.h" >&5
5202 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5203 if test "${ac_cv_header_gpm_h+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line 5207 "configure"
5208 #include "confdefs.h"
5211 if { (eval echo "$as_me:5211: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 egrep -v '^ *\+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:5217: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_c_preproc_warn_flag
5227 if test -z "$ac_cpp_err"; then
5228 ac_cv_header_gpm_h=yes
5230 echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_cv_header_gpm_h=no
5234 rm -f conftest.err conftest.$ac_ext
5236 echo "$as_me:5236: result: $ac_cv_header_gpm_h" >&5
5237 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5238 if test $ac_cv_header_gpm_h = yes; then
5240 cat >>confdefs.h <<\EOF
5241 #define HAVE_GPM_H 1
5244 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5245 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5247 echo "${as_me:-configure}:5247: testing assuming we really have GPM library ..." 1>&5
5249 cat >>confdefs.h <<\EOF
5250 #define HAVE_LIBGPM 1
5254 echo "$as_me:5254: checking for Gpm_Open in -lgpm" >&5
5255 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5256 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_check_lib_save_LIBS=$LIBS
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (eval echo "$as_me:5281: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:5284: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:5287: \"$ac_try\"") >&5
5290 echo "$as_me:5290: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_lib_gpm_Gpm_Open=yes
5294 echo "$as_me: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 ac_cv_lib_gpm_Gpm_Open=no
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5301 echo "$as_me:5301: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5302 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5303 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5307 { { echo "$as_me:5307: error: Cannot link with GPM library" >&5
5308 echo "$as_me: error: Cannot link with GPM library" >&2;}
5309 { (exit 1); exit 1; }; }
5317 test "$with_gpm" != maybe && { echo "$as_me:5317: WARNING: Cannot find GPM header" >&5
5318 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5325 if test "$with_gpm" != no ; then
5326 echo "$as_me:5326: checking if you want to load GPM dynamically" >&5
5327 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5329 # Check whether --with-dlsym or --without-dlsym was given.
5330 if test "${with_dlsym+set}" = set; then
5331 withval="$with_dlsym"
5336 echo "$as_me:5336: result: $with_dlsym" >&5
5337 echo "${ECHO_T}$with_dlsym" >&6
5338 if test "x$with_dlsym" = xyes ; then
5341 echo "$as_me:5341: checking for dlsym" >&5
5342 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5343 if test "${ac_cv_func_dlsym+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line 5347 "configure"
5348 #include "confdefs.h"
5349 /* System header to define __stub macros and hopefully few prototypes,
5350 which can conflict with char dlsym (); below. */
5352 /* Override any gcc2 internal prototype to avoid an error. */
5356 /* We use char because int might match the return type of a gcc2
5357 builtin and then its argument prototype would still apply. */
5364 /* The GNU C library defines this for functions which it implements
5365 to always fail with ENOSYS. Some functions are actually named
5366 something starting with __ and the normal name is an alias. */
5367 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5370 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:5378: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5381 echo "$as_me:5381: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest$ac_exeext'
5384 { (eval echo "$as_me:5384: \"$ac_try\"") >&5
5387 echo "$as_me:5387: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_func_dlsym=yes
5391 echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5397 echo "$as_me:5397: result: $ac_cv_func_dlsym" >&5
5398 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5399 if test $ac_cv_func_dlsym = yes; then
5404 echo "$as_me:5404: checking for dlsym in -ldl" >&5
5405 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5406 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_check_lib_save_LIBS=$LIBS
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line 5412 "configure"
5413 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:5431: \"$ac_link\"") >&5
5432 (eval $ac_link) 2>&5
5434 echo "$as_me:5434: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:5437: \"$ac_try\"") >&5
5440 echo "$as_me:5440: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_cv_lib_dl_dlsym=yes
5444 echo "$as_me: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 ac_cv_lib_dl_dlsym=no
5448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5449 LIBS=$ac_check_lib_save_LIBS
5451 echo "$as_me:5451: result: $ac_cv_lib_dl_dlsym" >&5
5452 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5453 if test $ac_cv_lib_dl_dlsym = yes; then
5461 if test "$cf_have_dlsym" = yes ; then
5462 test "$cf_have_libdl" = yes && {
5464 # Filter out duplicates - this happens with badly-designed ".pc" files...
5465 for cf_add_1lib in $LIBS
5467 for cf_add_2lib in $cf_add_libs
5469 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5475 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5480 echo "$as_me:5480: checking whether able to link to dl*() functions" >&5
5481 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line 5483 "configure"
5484 #include "confdefs.h"
5491 if ((obj = dlopen("filename", 0)) != 0) {
5492 if (dlsym(obj, "symbolname") == 0) {
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:5501: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest$ac_exeext'
5507 { (eval echo "$as_me:5507: \"$ac_try\"") >&5
5510 echo "$as_me:5510: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5513 cat >>confdefs.h <<\EOF
5514 #define HAVE_LIBDL 1
5518 echo "$as_me: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 { { echo "$as_me:5521: error: Cannot link test program for libdl" >&5
5522 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5523 { (exit 1); exit 1; }; }
5525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5526 echo "$as_me:5526: result: ok" >&5
5527 echo "${ECHO_T}ok" >&6
5529 { { echo "$as_me:5529: error: Cannot find dlsym function" >&5
5530 echo "$as_me: error: Cannot find dlsym function" >&2;}
5531 { (exit 1); exit 1; }; }
5534 if test "x$with_gpm" != xyes ; then
5535 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5537 echo "${as_me:-configure}:5537: testing assuming soname for gpm is $with_gpm ..." 1>&5
5539 cf_cv_gpm_soname="$with_gpm"
5542 echo "$as_me:5542: checking for soname of gpm library" >&5
5543 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5544 if test "${cf_cv_gpm_soname+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 cf_cv_gpm_soname=unknown
5549 if test "$cross_compiling" != yes ; then
5550 cat >conftest.$ac_ext <<CF_EOF
5554 if (Gpm_Open(0,0)) Gpm_Close();
5555 ${cf_cv_main_return:-return}(0);
5558 cf_save_LIBS="$LIBS"
5561 # Filter out duplicates - this happens with badly-designed ".pc" files...
5562 for cf_add_1lib in $LIBS
5564 for cf_add_2lib in $cf_add_libs
5566 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5572 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5576 if { (eval echo "$as_me:5576: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5579 echo "$as_me:5579: \$? = $ac_status" >&5
5580 (exit $ac_status); } ; then
5581 if { (eval echo "$as_me:5581: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:5584: \$? = $ac_status" >&5
5585 (exit $ac_status); } ; then
5586 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5587 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5591 LIBS="$cf_save_LIBS"
5595 echo "$as_me:5595: result: $cf_cv_gpm_soname" >&5
5596 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5599 test "$cf_cv_gpm_soname" != "unknown" &&
5600 cat >>confdefs.h <<EOF
5601 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5604 SHLIB_LIST="-ldl $SHLIB_LIST"
5606 SHLIB_LIST="-lgpm $SHLIB_LIST"
5609 # Filter out duplicates - this happens with badly-designed ".pc" files...
5610 for cf_add_1lib in $TEST_LIBS
5612 for cf_add_2lib in $cf_add_libs
5614 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5620 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5622 TEST_LIBS="$cf_add_libs"
5626 cat >>confdefs.h <<\EOF
5627 #define HAVE_LIBGPM 1
5630 echo "$as_me:5630: checking for Gpm_Wgetch in -lgpm" >&5
5631 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5632 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_check_lib_save_LIBS=$LIBS
5637 cat >conftest.$ac_ext <<_ACEOF
5638 #line 5638 "configure"
5639 #include "confdefs.h"
5641 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:5657: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>&5
5660 echo "$as_me:5660: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:5663: \"$ac_try\"") >&5
5666 echo "$as_me:5666: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_lib_gpm_Gpm_Wgetch=yes
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 ac_cv_lib_gpm_Gpm_Wgetch=no
5674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_check_lib_save_LIBS
5677 echo "$as_me:5677: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5678 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5679 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5681 echo "$as_me:5681: checking if GPM is weakly bound to curses library" >&5
5682 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5683 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cf_cv_check_gpm_wgetch=unknown
5688 if test "$cross_compiling" != yes ; then
5690 cat >conftest.$ac_ext <<CF_EOF
5695 ${cf_cv_main_return:-return}(0);
5699 cf_save_LIBS="$LIBS"
5700 # This only works if we can look at the symbol table. If a shared
5701 # library is stripped for install, we cannot use that. So we're forced
5702 # to rely on the static library, noting that some packagers may not
5704 LIBS="-static -lgpm -dynamic $LIBS"
5705 if { (eval echo "$as_me:5705: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:5708: \$? = $ac_status" >&5
5709 (exit $ac_status); } ; then
5710 if { (eval echo "$as_me:5710: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>&5
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); } ; then
5715 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5716 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5717 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5721 LIBS="$cf_save_LIBS"
5725 echo "$as_me:5725: result: $cf_cv_check_gpm_wgetch" >&5
5726 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5728 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5729 { echo "$as_me:5729: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5730 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5737 # not everyone has "test -c"
5738 if test -c /dev/sysmouse 2>/dev/null ; then
5739 echo "$as_me:5739: checking if you want to use sysmouse" >&5
5740 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5742 # Check whether --with-sysmouse or --without-sysmouse was given.
5743 if test "${with_sysmouse+set}" = set; then
5744 withval="$with_sysmouse"
5745 cf_with_sysmouse=$withval
5747 cf_with_sysmouse=maybe
5749 if test "$cf_with_sysmouse" != no ; then
5750 cat >conftest.$ac_ext <<_ACEOF
5751 #line 5751 "configure"
5752 #include "confdefs.h"
5754 #include <osreldate.h>
5755 #if (__FreeBSD_version >= 400017)
5756 #include <sys/consio.h>
5757 #include <sys/fbio.h>
5759 #include <machine/console.h>
5766 struct mouse_info the_mouse;
5767 ioctl(0, CONS_MOUSECTL, &the_mouse);
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:5774: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5777 echo "$as_me:5777: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:5780: \"$ac_try\"") >&5
5783 echo "$as_me:5783: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 cf_with_sysmouse=yes
5787 echo "$as_me: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5791 rm -f conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:5793: result: $cf_with_sysmouse" >&5
5794 echo "${ECHO_T}$cf_with_sysmouse" >&6
5795 test "$cf_with_sysmouse" = yes &&
5796 cat >>confdefs.h <<\EOF
5797 #define USE_SYSMOUSE 1
5802 if test X"$CC_G_OPT" = X"" ; then
5804 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5807 if test X"$CXX_G_OPT" = X"" ; then
5809 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5812 echo "$as_me:5812: checking for default loader flags" >&5
5813 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5814 case $DFT_LWR_MODEL in
5815 (libtool) LD_MODEL='' ;;
5816 (normal) LD_MODEL='' ;;
5817 (debug) LD_MODEL=$CC_G_OPT ;;
5818 (profile) LD_MODEL='-pg';;
5819 (shared) LD_MODEL='' ;;
5821 echo "$as_me:5821: result: $LD_MODEL" >&5
5822 echo "${ECHO_T}$LD_MODEL" >&6
5824 case $DFT_LWR_MODEL in
5827 echo "$as_me:5827: checking if rpath option should be used" >&5
5828 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5830 # Check whether --enable-rpath or --disable-rpath was given.
5831 if test "${enable_rpath+set}" = set; then
5832 enableval="$enable_rpath"
5833 cf_cv_enable_rpath=$enableval
5835 cf_cv_enable_rpath=no
5837 echo "$as_me:5837: result: $cf_cv_enable_rpath" >&5
5838 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5840 echo "$as_me:5840: checking if shared libraries should be relinked during install" >&5
5841 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5843 # Check whether --enable-relink or --disable-relink was given.
5844 if test "${enable_relink+set}" = set; then
5845 enableval="$enable_relink"
5846 cf_cv_do_relink=$enableval
5850 echo "$as_me:5850: result: $cf_cv_do_relink" >&5
5851 echo "${ECHO_T}$cf_cv_do_relink" >&6
5855 # we will build libraries one-level down.
5859 echo "$as_me:5859: checking for an rpath option" >&5
5860 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5861 case $cf_cv_system_name in
5863 if test "$GCC" = yes; then
5864 LD_RPATH_OPT="-Wl,-rpath,"
5866 LD_RPATH_OPT="-rpath "
5869 (linux*|gnu*|k*bsd*-gnu)
5870 LD_RPATH_OPT="-Wl,-rpath,"
5872 (openbsd[2-9].*|mirbsd*)
5873 LD_RPATH_OPT="-Wl,-rpath,"
5875 (dragonfly*|freebsd*)
5876 LD_RPATH_OPT="-rpath "
5879 LD_RPATH_OPT="-Wl,-rpath,"
5882 LD_RPATH_OPT="-rpath "
5890 echo "$as_me:5890: result: $LD_RPATH_OPT" >&5
5891 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5893 case "x$LD_RPATH_OPT" in
5895 echo "$as_me:5895: checking if we need a space after rpath option" >&5
5896 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5897 cf_save_LIBS="$LIBS"
5899 cf_add_libs="${LD_RPATH_OPT}$libdir"
5900 # Filter out duplicates - this happens with badly-designed ".pc" files...
5901 for cf_add_1lib in $LIBS
5903 for cf_add_2lib in $cf_add_libs
5905 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5911 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line 5916 "configure"
5917 #include "confdefs.h"
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:5928: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>&5
5931 echo "$as_me:5931: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -s conftest$ac_exeext'
5934 { (eval echo "$as_me:5934: \"$ac_try\"") >&5
5937 echo "$as_me:5937: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5946 LIBS="$cf_save_LIBS"
5947 echo "$as_me:5947: result: $cf_rpath_space" >&5
5948 echo "${ECHO_T}$cf_rpath_space" >&6
5949 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5957 INSTALL_LIB="-m 644"
5958 : ${rel_builddir:=.}
5964 cf_cv_do_symlinks=no
5966 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5968 echo "$as_me:5968: checking if release/abi version should be used for shared libs" >&5
5969 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5971 # Check whether --with-shlib-version or --without-shlib-version was given.
5972 if test "${with_shlib_version+set}" = set; then
5973 withval="$with_shlib_version"
5974 test -z "$withval" && withval=auto
5977 cf_cv_shlib_version=auto
5980 cf_cv_shlib_version=$withval
5983 echo "$as_me:5983: result: $withval" >&5
5984 echo "${ECHO_T}$withval" >&6
5985 { { echo "$as_me:5985: error: option value must be one of: rel, abi, or auto" >&5
5986 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5987 { (exit 1); exit 1; }; }
5992 cf_cv_shlib_version=auto
5994 echo "$as_me:5994: result: $cf_cv_shlib_version" >&5
5995 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6000 # Some less-capable ports of gcc support only -fpic
6002 if test "$GCC" = yes
6004 echo "$as_me:6004: checking which $CC option to use" >&5
6005 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6006 cf_save_CFLAGS="$CFLAGS"
6007 for CC_SHARED_OPTS in -fPIC -fpic ''
6009 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6010 cat >conftest.$ac_ext <<_ACEOF
6011 #line 6011 "configure"
6012 #include "confdefs.h"
6022 rm -f conftest.$ac_objext
6023 if { (eval echo "$as_me:6023: \"$ac_compile\"") >&5
6024 (eval $ac_compile) 2>&5
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:6029: \"$ac_try\"") >&5
6032 echo "$as_me:6032: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6036 echo "$as_me: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 rm -f conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:6041: result: $CC_SHARED_OPTS" >&5
6042 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6043 CFLAGS="$cf_save_CFLAGS"
6046 cf_cv_shlib_version_infix=no
6048 case $cf_cv_system_name in
6049 (aix4.3-9*|aix[5-7]*)
6050 if test "$GCC" = yes; then
6051 CC_SHARED_OPTS='-Wl,-brtl'
6052 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6054 CC_SHARED_OPTS='-brtl'
6055 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6056 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6060 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6064 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6065 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6066 cf_cv_shlib_version=cygdll
6067 cf_cv_shlib_version_infix=cygdll
6070 cat >mk_shared_lib.sh <<-CF_EOF
6073 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6076 Linking shared library
6077 ** SHARED_LIB \$SHARED_LIB
6078 ** IMPORT_LIB \$IMPORT_LIB
6080 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6082 chmod +x mk_shared_lib.sh
6086 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6087 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6088 cf_cv_shlib_version=msysdll
6089 cf_cv_shlib_version_infix=msysdll
6092 cat >mk_shared_lib.sh <<-CF_EOF
6095 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6098 Linking shared library
6099 ** SHARED_LIB \$SHARED_LIB
6100 ** IMPORT_LIB \$IMPORT_LIB
6102 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6104 chmod +x mk_shared_lib.sh
6107 cf_try_cflags="no-cpp-precomp"
6108 CC_SHARED_OPTS="-dynamic"
6109 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6110 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6111 cf_cv_shlib_version_infix=yes
6112 echo "$as_me:6112: checking if ld -search_paths_first works" >&5
6113 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6114 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 cf_save_LDFLAGS=$LDFLAGS
6119 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line 6121 "configure"
6122 #include "confdefs.h"
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:6133: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6136 echo "$as_me:6136: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:6139: \"$ac_try\"") >&5
6142 echo "$as_me:6142: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 cf_cv_ldflags_search_paths_first=yes
6146 echo "$as_me: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 cf_cv_ldflags_search_paths_first=no
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6151 LDFLAGS=$cf_save_LDFLAGS
6153 echo "$as_me:6153: result: $cf_cv_ldflags_search_paths_first" >&5
6154 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6155 if test $cf_cv_ldflags_search_paths_first = yes; then
6156 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6160 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6161 if test "$GCC" != yes; then
6164 MK_SHARED_LIB='${LD} -b -o $@'
6165 INSTALL_LIB="-m 555"
6168 # (tested with gcc 2.7.2 -- I don't have c89)
6169 if test "$GCC" = yes; then
6170 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6173 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6175 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6176 # HP-UX shared libraries must be executable, and should be
6177 # readonly to exploit a quirk in the memory manager.
6178 INSTALL_LIB="-m 555"
6181 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6182 if test "$cf_cv_shlib_version" = rel; then
6183 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6185 cf_shared_soname='`basename `'
6188 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6191 if test "$cf_cv_enable_rpath" = yes ; then
6192 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6194 # tested with IRIX 5.2 and 'cc'.
6195 if test "$GCC" != yes; then
6196 CC_SHARED_OPTS='-KPIC'
6197 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6199 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6201 cf_cv_rm_so_locs=yes
6203 (linux*|gnu*|k*bsd*-gnu)
6204 if test "$DFT_LWR_MODEL" = "shared" ; then
6205 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6206 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6208 if test "$cf_cv_enable_rpath" = yes ; then
6209 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6212 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6213 if test "$cf_cv_shlib_version" = rel; then
6214 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6216 cf_cv_shared_soname='`basename $@`'
6219 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6222 cf_cv_shlib_version=mingw
6223 cf_cv_shlib_version_infix=mingw
6226 if test "$DFT_LWR_MODEL" = "shared" ; then
6227 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6228 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6229 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6232 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6233 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6234 cat >mk_shared_lib.sh <<-CF_EOF
6237 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6240 Linking shared library
6241 ** SHARED_LIB \$SHARED_LIB
6242 ** IMPORT_LIB \$IMPORT_LIB
6244 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6246 chmod +x mk_shared_lib.sh
6248 (openbsd[2-9].*|mirbsd*)
6249 if test "$DFT_LWR_MODEL" = "shared" ; then
6250 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6251 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6253 if test "$cf_cv_enable_rpath" = yes ; then
6254 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6256 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6258 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6259 if test "$cf_cv_shlib_version" = rel; then
6260 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6262 cf_cv_shared_soname='`basename $@`'
6265 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6267 (nto-qnx*|openbsd*|freebsd[12].*)
6268 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6269 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6270 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6272 (dragonfly*|freebsd*)
6273 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6274 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6275 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6276 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6277 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6280 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6281 if test "$cf_cv_shlib_version" = rel; then
6282 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6284 cf_cv_shared_soname='`basename $@`'
6287 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6290 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6291 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6292 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6293 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6294 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6295 if test "$cf_cv_shlib_version" = auto; then
6296 if test -f /usr/libexec/ld.elf_so; then
6297 cf_cv_shlib_version=abi
6299 cf_cv_shlib_version=rel
6303 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6304 if test "$cf_cv_shlib_version" = rel; then
6305 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6307 cf_cv_shared_soname='`basename $@`'
6310 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6312 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6316 # tested with OSF/1 V3.2 and 'cc'
6317 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6318 # link with shared libs).
6319 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6322 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6325 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6326 if test "$DFT_LWR_MODEL" = "shared" ; then
6327 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6328 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6330 cf_cv_rm_so_locs=yes
6332 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6333 # tested with osr5.0.5
6334 if test "$GCC" != yes; then
6335 CC_SHARED_OPTS='-belf -KPIC'
6337 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6338 if test "$cf_cv_enable_rpath" = yes ; then
6339 # only way is to set LD_RUN_PATH but no switch for it
6342 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6343 LINK_PROGS='LD_RUN_PATH=${libdir}'
6344 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6347 # tested with SunOS 4.1.1 and gcc 2.7.0
6348 if test "$GCC" != yes; then
6349 CC_SHARED_OPTS='-KPIC'
6351 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6352 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6355 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6356 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6357 if test "$DFT_LWR_MODEL" = "shared" ; then
6358 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6359 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6361 if test "$cf_cv_enable_rpath" = yes ; then
6362 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6365 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6366 if test "$cf_cv_shlib_version" = rel; then
6367 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6369 cf_cv_shared_soname='`basename $@`'
6372 if test "$GCC" != yes; then
6373 cf_save_CFLAGS="$CFLAGS"
6374 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6376 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line 6378 "configure"
6379 #include "confdefs.h"
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:6390: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6393 echo "$as_me:6393: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:6396: \"$ac_try\"") >&5
6399 echo "$as_me:6399: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6403 echo "$as_me: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 rm -f conftest.$ac_objext conftest.$ac_ext
6408 CFLAGS="$cf_save_CFLAGS"
6409 CC_SHARED_OPTS=$cf_shared_opts
6410 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6412 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6415 (sysv5uw7*|unix_sv*)
6416 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6417 if test "$GCC" != yes; then
6418 CC_SHARED_OPTS='-KPIC'
6420 MK_SHARED_LIB='${LD} -d y -G -o $@'
6423 CC_SHARED_OPTS='unknown'
6424 MK_SHARED_LIB='echo unknown'
6428 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6429 case "$cf_cv_shlib_version" in
6431 case "$MK_SHARED_LIB" in
6433 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6436 { echo "$as_me:6436: WARNING: ignored --with-shlib-version" >&5
6437 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6443 if test -n "$cf_try_cflags"
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6446 "${as_me:-configure}"
6448 int main(int argc, char *argv[])
6451 return (argv[argc-1] == 0) ;
6454 cf_save_CFLAGS="$CFLAGS"
6455 for cf_opt in $cf_try_cflags
6457 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6458 echo "$as_me:6458: checking if CFLAGS option -$cf_opt works" >&5
6459 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6460 if { (eval echo "$as_me:6460: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }; then
6465 echo "$as_me:6465: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467 cf_save_CFLAGS="$CFLAGS"
6469 echo "$as_me:6469: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6473 CFLAGS="$cf_save_CFLAGS"
6476 # RPATH_LIST is a colon-separated list of directories
6477 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6478 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6480 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6482 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6484 echo "${as_me:-configure}:6484: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6486 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6488 echo "${as_me:-configure}:6488: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6490 for model in $cf_list_models; do
6494 echo "$as_me:6494: checking for additional libtool options" >&5
6495 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6497 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6498 if test "${with_libtool_opts+set}" = set; then
6499 withval="$with_libtool_opts"
6500 with_libtool_opts=$withval
6502 with_libtool_opts=no
6504 echo "$as_me:6504: result: $with_libtool_opts" >&5
6505 echo "${ECHO_T}$with_libtool_opts" >&6
6507 case .$with_libtool_opts in
6511 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6515 echo "$as_me:6515: checking if exported-symbols file should be used" >&5
6516 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6518 # Check whether --with-export-syms or --without-export-syms was given.
6519 if test "${with_export_syms+set}" = set; then
6520 withval="$with_export_syms"
6521 with_export_syms=$withval
6525 if test "x$with_export_syms" = xyes
6527 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6530 echo "$as_me:6530: result: $with_export_syms" >&5
6531 echo "${ECHO_T}$with_export_syms" >&6
6532 if test "x$with_export_syms" != xno
6534 EXPORT_SYMS="-export-symbols $with_export_syms"
6540 if test "$CC_SHARED_OPTS" = "unknown"; then
6541 { { echo "$as_me:6541: error: Shared libraries are not supported in this version" >&5
6542 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6543 { (exit 1); exit 1; }; }
6546 echo "$as_me:6546: checking if versioned-symbols file should be used" >&5
6547 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6549 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6550 if test "${with_versioned_syms+set}" = set; then
6551 withval="$with_versioned_syms"
6552 with_versioned_syms=$withval
6554 with_versioned_syms=no
6556 if test "x$with_versioned_syms" = xyes
6558 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6561 echo "$as_me:6561: result: $with_versioned_syms" >&5
6562 echo "${ECHO_T}$with_versioned_syms" >&6
6568 if test "x$with_versioned_syms" != xno
6570 RESULTING_SYMS=$with_versioned_syms
6571 case "x$MK_SHARED_LIB" in
6573 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6574 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6575 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6577 echo "${as_me:-configure}:6577: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6581 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6582 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6583 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6585 echo "${as_me:-configure}:6585: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6589 { echo "$as_me:6589: WARNING: this system does not support versioned-symbols" >&5
6590 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6594 # Linux ld can selectively override scope, e.g., of symbols beginning with
6595 # "_" by first declaring some as global, and then using a wildcard to
6596 # declare the others as local. Some other loaders cannot do this. Check
6597 # by constructing a (very) simple shared library and inspecting its
6599 if test "x$VERSIONED_SYMS" != "x"
6601 echo "$as_me:6601: checking if wildcards can be used to selectively omit symbols" >&5
6602 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6608 cat >conftest.ver <<EOF
6637 cat >conftest.$ac_ext <<EOF
6638 #line 6638 "configure"
6639 int _ismissing(void) { return 1; }
6640 int _localf1(void) { return 1; }
6641 int _localf2(void) { return 2; }
6642 int globalf1(void) { return 1; }
6643 int globalf2(void) { return 2; }
6644 int _sublocalf1(void) { return 1; }
6645 int _sublocalf2(void) { return 2; }
6646 int subglobalf1(void) { return 1; }
6647 int subglobalf2(void) { return 2; }
6649 cat >conftest.mk <<EOF
6652 CPPFLAGS=${CPPFLAGS}
6655 VERSIONED_SYMS=${VERSIONED_SYMS}
6656 RESULTING_SYMS=conftest.ver
6657 MK_SHARED_LIB=${MK_SHARED_LIB}
6658 conftest.so: conftest.$ac_cv_objext
6659 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6662 # compile source, make library
6663 if make -f conftest.mk 2>&5 >/dev/null
6665 # test for missing symbol in either Data or Text section
6666 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6667 test -n "$cf_missing" && WILDCARD_SYMS=yes
6669 echo "$as_me:6669: result: $WILDCARD_SYMS" >&5
6670 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6679 # pretend that ncurses==ncursesw==ncursest
6680 echo "$as_me:6680: checking if you want to disable library suffixes" >&5
6681 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6683 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6684 if test "${enable_lib_suffixes+set}" = set; then
6685 enableval="$enable_lib_suffixes"
6686 test "$enableval" != no && enableval=yes
6687 if test "$enableval" != "yes" ; then
6688 disable_lib_suffixes=yes
6690 disable_lib_suffixes=no
6694 disable_lib_suffixes=no
6697 echo "$as_me:6697: result: $disable_lib_suffixes" >&5
6698 echo "${ECHO_T}$disable_lib_suffixes" >&6
6700 ### If we're building with rpath, try to link non-standard libs that way too.
6701 if test "$DFT_LWR_MODEL" = "shared"; then
6703 echo "$as_me:6703: checking if rpath-hack should be disabled" >&5
6704 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6706 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6707 if test "${enable_rpath_hack+set}" = set; then
6708 enableval="$enable_rpath_hack"
6709 test "$enableval" != no && enableval=yes
6710 if test "$enableval" != "yes" ; then
6711 cf_disable_rpath_hack=yes
6713 cf_disable_rpath_hack=no
6717 cf_disable_rpath_hack=no
6720 echo "$as_me:6720: result: $cf_disable_rpath_hack" >&5
6721 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6722 if test "$cf_disable_rpath_hack" = no ; then
6724 echo "$as_me:6724: checking for updated LDFLAGS" >&5
6725 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6726 if test -n "$LD_RPATH_OPT" ; then
6727 echo "$as_me:6727: result: maybe" >&5
6728 echo "${ECHO_T}maybe" >&6
6732 # Extract the first word of "$ac_prog", so it can be a program name with args.
6733 set dummy $ac_prog; ac_word=$2
6734 echo "$as_me:6734: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 if test -n "$cf_ldd_prog"; then
6740 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6742 ac_save_IFS=$IFS; IFS=$ac_path_separator
6744 for ac_dir in $ac_dummy; do
6746 test -z "$ac_dir" && ac_dir=.
6747 $as_executable_p "$ac_dir/$ac_word" || continue
6748 ac_cv_prog_cf_ldd_prog="$ac_prog"
6749 echo "$as_me:6749: found $ac_dir/$ac_word" >&5
6755 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6756 if test -n "$cf_ldd_prog"; then
6757 echo "$as_me:6757: result: $cf_ldd_prog" >&5
6758 echo "${ECHO_T}$cf_ldd_prog" >&6
6760 echo "$as_me:6760: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6764 test -n "$cf_ldd_prog" && break
6766 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6768 cf_rpath_list="/usr/lib /lib"
6769 if test "$cf_ldd_prog" != no
6773 cat >conftest.$ac_ext <<_ACEOF
6774 #line 6774 "configure"
6775 #include "confdefs.h"
6785 rm -f conftest.$ac_objext conftest$ac_exeext
6786 if { (eval echo "$as_me:6786: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6789 echo "$as_me:6789: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:6792: \"$ac_try\"") >&5
6795 echo "$as_me:6795: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6798 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6800 echo "$as_me: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6805 # If we passed the link-test, but get a "not found" on a given library,
6806 # this could be due to inept reconfiguration of gcc to make it only
6807 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6808 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6809 # /usr/local libraries.
6810 if test -n "$cf_rpath_oops"
6812 for cf_rpath_src in $cf_rpath_oops
6814 for cf_rpath_dir in \
6819 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6821 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6823 echo "${as_me:-configure}:6823: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6825 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6833 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6835 echo "${as_me:-configure}:6835: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6837 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6839 echo "${as_me:-configure}:6839: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6842 for cf_rpath_src in $LDFLAGS
6844 case $cf_rpath_src in
6847 # check if this refers to a directory which we will ignore
6849 if test -n "$cf_rpath_list"
6851 for cf_rpath_item in $cf_rpath_list
6853 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6861 if test "$cf_rpath_skip" = no
6863 # transform the option
6864 if test "$LD_RPATH_OPT" = "-R " ; then
6865 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6867 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6870 # if we have not already added this, add it now
6871 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6872 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6874 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6876 echo "${as_me:-configure}:6876: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6878 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6883 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6885 LDFLAGS=$cf_rpath_dst
6887 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6889 echo "${as_me:-configure}:6889: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6891 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6893 echo "${as_me:-configure}:6893: testing ...checking LIBS $LIBS ..." 1>&5
6896 for cf_rpath_src in $LIBS
6898 case $cf_rpath_src in
6901 # check if this refers to a directory which we will ignore
6903 if test -n "$cf_rpath_list"
6905 for cf_rpath_item in $cf_rpath_list
6907 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6915 if test "$cf_rpath_skip" = no
6917 # transform the option
6918 if test "$LD_RPATH_OPT" = "-R " ; then
6919 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6921 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6924 # if we have not already added this, add it now
6925 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6926 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6928 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6930 echo "${as_me:-configure}:6930: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6932 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6937 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6941 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6943 echo "${as_me:-configure}:6943: testing ...checked LIBS $LIBS ..." 1>&5
6945 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6947 echo "${as_me:-configure}:6947: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6950 echo "$as_me:6950: result: no" >&5
6951 echo "${ECHO_T}no" >&6
6958 ###############################################################################
6960 ### use option --with-extra-suffix to append suffix to headers and libraries
6961 echo "$as_me:6961: checking if you wish to append extra suffix to header/library paths" >&5
6962 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
6965 # Check whether --with-extra-suffix or --without-extra-suffix was given.
6966 if test "${with_extra_suffix+set}" = set; then
6967 withval="$with_extra_suffix"
6972 EXTRA_SUFFIX=$cf_cv_abi_version
6975 EXTRA_SUFFIX=$withval
6980 echo "$as_me:6980: result: $EXTRA_SUFFIX" >&5
6981 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
6983 ### use option --disable-overwrite to leave out the link to -lcurses
6984 echo "$as_me:6984: checking if you wish to install ncurses overwriting curses" >&5
6985 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6987 # Check whether --enable-overwrite or --disable-overwrite was given.
6988 if test "${enable_overwrite+set}" = set; then
6989 enableval="$enable_overwrite"
6990 with_overwrite=$enableval
6992 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6994 echo "$as_me:6994: result: $with_overwrite" >&5
6995 echo "${ECHO_T}$with_overwrite" >&6
6997 echo "$as_me:6997: checking if external terminfo-database is used" >&5
6998 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7000 # Check whether --enable-database or --disable-database was given.
7001 if test "${enable_database+set}" = set; then
7002 enableval="$enable_database"
7003 use_database=$enableval
7007 echo "$as_me:7007: result: $use_database" >&5
7008 echo "${ECHO_T}$use_database" >&6
7012 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7015 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7019 NCURSES_USE_DATABASE=0
7020 if test "$use_database" != no ; then
7021 NCURSES_USE_DATABASE=1
7023 echo "$as_me:7023: checking which terminfo source-file will be installed" >&5
7024 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7026 # Check whether --with-database or --without-database was given.
7027 if test "${with_database+set}" = set; then
7028 withval="$with_database"
7029 TERMINFO_SRC=$withval
7031 echo "$as_me:7031: result: $TERMINFO_SRC" >&5
7032 echo "${ECHO_T}$TERMINFO_SRC" >&6
7034 echo "$as_me:7034: checking whether to use hashed database instead of directory/tree" >&5
7035 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7037 # Check whether --with-hashed-db or --without-hashed-db was given.
7038 if test "${with_hashed_db+set}" = set; then
7039 withval="$with_hashed_db"
7044 echo "$as_me:7044: result: $with_hashed_db" >&5
7045 echo "${ECHO_T}$with_hashed_db" >&6
7050 echo "$as_me:7050: checking for list of fallback descriptions" >&5
7051 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7053 # Check whether --with-fallbacks or --without-fallbacks was given.
7054 if test "${with_fallbacks+set}" = set; then
7055 withval="$with_fallbacks"
7056 with_fallback=$withval
7060 echo "$as_me:7060: result: $with_fallback" >&5
7061 echo "${ECHO_T}$with_fallback" >&6
7062 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7064 echo "$as_me:7064: checking if you want modern xterm or antique" >&5
7065 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7067 # Check whether --with-xterm-new or --without-xterm-new was given.
7068 if test "${with_xterm_new+set}" = set; then
7069 withval="$with_xterm_new"
7070 with_xterm_new=$withval
7074 case $with_xterm_new in
7075 (no) with_xterm_new=xterm-old;;
7076 (*) with_xterm_new=xterm-new;;
7078 echo "$as_me:7078: result: $with_xterm_new" >&5
7079 echo "${ECHO_T}$with_xterm_new" >&6
7080 WHICH_XTERM=$with_xterm_new
7082 echo "$as_me:7082: checking if xterm backspace sends BS or DEL" >&5
7083 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7085 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7086 if test "${with_xterm_kbs+set}" = set; then
7087 withval="$with_xterm_kbs"
7088 with_xterm_kbs=$withval
7092 case x$with_xterm_kbs in
7093 (xyes|xno|xBS|xbs|x8)
7100 with_xterm_kbs=$withval
7103 echo "$as_me:7103: result: $with_xterm_kbs" >&5
7104 echo "${ECHO_T}$with_xterm_kbs" >&6
7105 XTERM_KBS=$with_xterm_kbs
7108 if test "$use_database" = no ; then
7109 TERMINFO="${datadir}/terminfo"
7113 echo "$as_me:7113: checking for list of terminfo directories" >&5
7114 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7116 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7117 if test "${with_terminfo_dirs+set}" = set; then
7118 withval="$with_terminfo_dirs"
7121 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7123 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7125 for cf_src_path in $withval
7128 if test "x$prefix" != xNONE; then
7129 cf_path_syntax="$prefix"
7131 cf_path_syntax="$ac_default_prefix"
7134 case ".$cf_src_path" in
7139 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7141 (.\${*prefix}*|.\${*dir}*)
7142 eval cf_src_path="$cf_src_path"
7143 case ".$cf_src_path" in
7145 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7150 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7153 { { echo "$as_me:7153: error: expected a pathname, not \"$cf_src_path\"" >&5
7154 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7155 { (exit 1); exit 1; }; }
7159 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7160 cf_dst_path="${cf_dst_path}${cf_src_path}"
7164 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7165 # so we have to check/work around. We do prefer the result of "eval"...
7166 eval cf_dst_eval="$cf_dst_path"
7167 case "x$cf_dst_eval" in
7169 TERMINFO_DIRS=$cf_dst_path
7172 TERMINFO_DIRS="$cf_dst_eval"
7176 echo "$as_me:7176: result: $TERMINFO_DIRS" >&5
7177 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7178 test -n "$TERMINFO_DIRS" &&
7179 cat >>confdefs.h <<EOF
7180 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7183 echo "$as_me:7183: checking for default terminfo directory" >&5
7184 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7186 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7187 if test "${with_default_terminfo_dir+set}" = set; then
7188 withval="$with_default_terminfo_dir"
7191 withval="${TERMINFO:-${datadir}/terminfo}"
7192 fi; if test -n "${datadir}/terminfo" ; then
7194 if test "x$prefix" != xNONE; then
7195 cf_path_syntax="$prefix"
7197 cf_path_syntax="$ac_default_prefix"
7205 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7207 (.\${*prefix}*|.\${*dir}*)
7208 eval withval="$withval"
7211 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7216 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7219 { { echo "$as_me:7219: error: expected a pathname, not \"$withval\"" >&5
7220 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7221 { (exit 1); exit 1; }; }
7226 eval TERMINFO="$withval"
7228 echo "$as_me:7228: result: $TERMINFO" >&5
7229 echo "${ECHO_T}$TERMINFO" >&6
7231 cat >>confdefs.h <<EOF
7232 #define TERMINFO "$TERMINFO"
7237 ### use option --disable-big-core to make tic run on small machines
7238 ### We need 4Mb, check if we can allocate 50% more than that.
7239 echo "$as_me:7239: checking if big-core option selected" >&5
7240 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7242 # Check whether --enable-big-core or --disable-big-core was given.
7243 if test "${enable_big_core+set}" = set; then
7244 enableval="$enable_big_core"
7245 with_big_core=$enableval
7247 if test "$cross_compiling" = yes; then
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line 7251 "configure"
7252 #include "confdefs.h"
7257 unsigned long n = 6000000L;
7258 char *s = malloc(n);
7261 ${cf_cv_main_return:-return}(s == 0);
7264 rm -f conftest$ac_exeext
7265 if { (eval echo "$as_me:7265: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7270 { (eval echo "$as_me:7270: \"$ac_try\"") >&5
7273 echo "$as_me:7273: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7277 echo "$as_me: program exited with status $ac_status" >&5
7278 echo "$as_me: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7282 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7285 echo "$as_me:7285: result: $with_big_core" >&5
7286 echo "${ECHO_T}$with_big_core" >&6
7287 test "x$with_big_core" = "xyes" &&
7288 cat >>confdefs.h <<\EOF
7289 #define HAVE_BIG_CORE 1
7292 ### ISO C only guarantees 512-char strings, we have tables which load faster
7293 ### when constructed using "big" strings. More than the C compiler, the awk
7294 ### program is a limit on most vendor UNIX systems. Check that we can build.
7295 echo "$as_me:7295: checking if big-strings option selected" >&5
7296 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7298 # Check whether --enable-big-strings or --disable-big-strings was given.
7299 if test "${enable_big_strings+set}" = set; then
7300 enableval="$enable_big_strings"
7301 with_big_strings=$enableval
7306 eval with_big_strings=no
7309 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7310 | $AWK '{ printf "%d\n", length($0); }' 2>/dev/null | $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
7311 eval with_big_strings=yes
7313 eval with_big_strings=no
7319 echo "$as_me:7319: result: $with_big_strings" >&5
7320 echo "${ECHO_T}$with_big_strings" >&6
7323 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7325 ### use option --enable-termcap to compile in the termcap fallback support
7326 echo "$as_me:7326: checking if you want termcap-fallback support" >&5
7327 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7329 # Check whether --enable-termcap or --disable-termcap was given.
7330 if test "${enable_termcap+set}" = set; then
7331 enableval="$enable_termcap"
7332 with_termcap=$enableval
7336 echo "$as_me:7336: result: $with_termcap" >&5
7337 echo "${ECHO_T}$with_termcap" >&6
7339 NCURSES_USE_TERMCAP=0
7340 if test "x$with_termcap" != "xyes" ; then
7341 if test "$use_database" = no ; then
7342 if test -z "$with_fallback" ; then
7343 { { echo "$as_me:7343: error: You have disabled the database w/o specifying fallbacks" >&5
7344 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7345 { (exit 1); exit 1; }; }
7349 cat >>confdefs.h <<\EOF
7350 #define PURE_TERMINFO 1
7355 if test "$with_ticlib" != no ; then
7356 { { echo "$as_me:7356: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7357 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7358 { (exit 1); exit 1; }; }
7361 NCURSES_USE_TERMCAP=1
7362 echo "$as_me:7362: checking for list of termcap files" >&5
7363 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7365 # Check whether --with-termpath or --without-termpath was given.
7366 if test "${with_termpath+set}" = set; then
7367 withval="$with_termpath"
7370 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7372 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7374 for cf_src_path in $withval
7377 if test "x$prefix" != xNONE; then
7378 cf_path_syntax="$prefix"
7380 cf_path_syntax="$ac_default_prefix"
7383 case ".$cf_src_path" in
7388 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7390 (.\${*prefix}*|.\${*dir}*)
7391 eval cf_src_path="$cf_src_path"
7392 case ".$cf_src_path" in
7394 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7399 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7402 { { echo "$as_me:7402: error: expected a pathname, not \"$cf_src_path\"" >&5
7403 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7404 { (exit 1); exit 1; }; }
7408 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7409 cf_dst_path="${cf_dst_path}${cf_src_path}"
7413 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7414 # so we have to check/work around. We do prefer the result of "eval"...
7415 eval cf_dst_eval="$cf_dst_path"
7416 case "x$cf_dst_eval" in
7418 TERMPATH=$cf_dst_path
7421 TERMPATH="$cf_dst_eval"
7425 echo "$as_me:7425: result: $TERMPATH" >&5
7426 echo "${ECHO_T}$TERMPATH" >&6
7427 test -n "$TERMPATH" &&
7428 cat >>confdefs.h <<EOF
7429 #define TERMPATH "$TERMPATH"
7432 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7433 echo "$as_me:7433: checking if fast termcap-loader is needed" >&5
7434 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7436 # Check whether --enable-getcap or --disable-getcap was given.
7437 if test "${enable_getcap+set}" = set; then
7438 enableval="$enable_getcap"
7439 with_getcap=$enableval
7443 echo "$as_me:7443: result: $with_getcap" >&5
7444 echo "${ECHO_T}$with_getcap" >&6
7445 test "x$with_getcap" = "xyes" &&
7446 cat >>confdefs.h <<\EOF
7447 #define USE_GETCAP 1
7450 echo "$as_me:7450: checking if translated termcaps will be cached in ~/.terminfo" >&5
7451 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7453 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7454 if test "${enable_getcap_cache+set}" = set; then
7455 enableval="$enable_getcap_cache"
7456 with_getcap_cache=$enableval
7458 with_getcap_cache=no
7460 echo "$as_me:7460: result: $with_getcap_cache" >&5
7461 echo "${ECHO_T}$with_getcap_cache" >&6
7462 test "x$with_getcap_cache" = "xyes" &&
7463 cat >>confdefs.h <<\EOF
7464 #define USE_GETCAP_CACHE 1
7469 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7470 echo "$as_me:7470: checking if ~/.terminfo is wanted" >&5
7471 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7473 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7474 if test "${enable_home_terminfo+set}" = set; then
7475 enableval="$enable_home_terminfo"
7476 with_home_terminfo=$enableval
7478 with_home_terminfo=yes
7480 echo "$as_me:7480: result: $with_home_terminfo" >&5
7481 echo "${ECHO_T}$with_home_terminfo" >&6
7482 test "x$with_home_terminfo" = "xyes" &&
7483 cat >>confdefs.h <<\EOF
7484 #define USE_HOME_TERMINFO 1
7487 echo "$as_me:7487: checking if you want to use restricted environment when running as root" >&5
7488 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7490 # Check whether --enable-root-environ or --disable-root-environ was given.
7491 if test "${enable_root_environ+set}" = set; then
7492 enableval="$enable_root_environ"
7493 with_root_environ=$enableval
7495 with_root_environ=yes
7497 echo "$as_me:7497: result: $with_root_environ" >&5
7498 echo "${ECHO_T}$with_root_environ" >&6
7499 test "x$with_root_environ" = xyes &&
7500 cat >>confdefs.h <<\EOF
7501 #define USE_ROOT_ENVIRON 1
7504 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7505 ### to reduce storage requirements for the terminfo database.
7511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7512 echo "$as_me:7512: checking for $ac_func" >&5
7513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7514 if eval "test \"\${$as_ac_var+set}\" = set"; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line 7518 "configure"
7519 #include "confdefs.h"
7520 /* System header to define __stub macros and hopefully few prototypes,
7521 which can conflict with char $ac_func (); below. */
7523 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7535 /* The GNU C library defines this for functions which it implements
7536 to always fail with ENOSYS. Some functions are actually named
7537 something starting with __ and the normal name is an alias. */
7538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7541 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (eval echo "$as_me:7549: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:7555: \"$ac_try\"") >&5
7558 echo "$as_me:7558: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 eval "$as_ac_var=yes"
7562 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 eval "$as_ac_var=no"
7566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7568 echo "$as_me:7568: result: `eval echo '${'$as_ac_var'}'`" >&5
7569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7570 if test `eval echo '${'$as_ac_var'}'` = yes; then
7571 cat >>confdefs.h <<EOF
7572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7578 if test "$cross_compiling" = yes ; then
7584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7585 echo "$as_me:7585: checking for $ac_func" >&5
7586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7587 if eval "test \"\${$as_ac_var+set}\" = set"; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 cat >conftest.$ac_ext <<_ACEOF
7591 #line 7591 "configure"
7592 #include "confdefs.h"
7593 /* System header to define __stub macros and hopefully few prototypes,
7594 which can conflict with char $ac_func (); below. */
7596 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7608 /* The GNU C library defines this for functions which it implements
7609 to always fail with ENOSYS. Some functions are actually named
7610 something starting with __ and the normal name is an alias. */
7611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7614 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:7622: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>&5
7625 echo "$as_me:7625: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:7628: \"$ac_try\"") >&5
7631 echo "$as_me:7631: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 eval "$as_ac_var=yes"
7635 echo "$as_me: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7637 eval "$as_ac_var=no"
7639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7641 echo "$as_me:7641: result: `eval echo '${'$as_ac_var'}'`" >&5
7642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7643 if test `eval echo '${'$as_ac_var'}'` = yes; then
7644 cat >>confdefs.h <<EOF
7645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7652 echo "$as_me:7652: checking if link/symlink functions work" >&5
7653 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7654 if test "${cf_cv_link_funcs+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 for cf_func in link symlink ; do
7660 if test "$cross_compiling" = yes; then
7662 eval 'ac_cv_func_'$cf_func'=error'
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line 7665 "configure"
7666 #include "confdefs.h"
7668 #include <sys/types.h>
7669 #include <sys/stat.h>
7670 #ifdef HAVE_UNISTD_H
7676 char *src = "config.log";
7677 char *dst = "conftest.chk";
7682 fail = ($cf_func("config.log", "conftest.chk") < 0)
7683 || (stat(dst, &dst_sb) < 0)
7684 || (dst_sb.st_mtime != src_sb.st_mtime);
7690 ${cf_cv_main_return:-return} (fail);
7694 rm -f conftest$ac_exeext
7695 if { (eval echo "$as_me:7695: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>&5
7698 echo "$as_me:7698: \$? = $ac_status" >&5
7699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7700 { (eval echo "$as_me:7700: \"$ac_try\"") >&5
7703 echo "$as_me:7703: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7706 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7707 eval 'ac_cv_func_'$cf_func'=yes'
7709 echo "$as_me: program exited with status $ac_status" >&5
7710 echo "$as_me: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval 'ac_cv_func_'$cf_func'=no'
7715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7718 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7721 echo "$as_me:7721: result: $cf_cv_link_funcs" >&5
7722 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7723 test "$ac_cv_func_link" = yes &&
7724 cat >>confdefs.h <<\EOF
7728 test "$ac_cv_func_symlink" = yes &&
7729 cat >>confdefs.h <<\EOF
7730 #define HAVE_SYMLINK 1
7738 # soft links (symbolic links) are useful for some systems where hard links do
7739 # not work, or to make it simpler to copy terminfo trees around.
7740 if test "x$ac_cv_func_symlink" = xyes ; then
7741 echo "$as_me:7741: checking if tic should use symbolic links" >&5
7742 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7744 # Check whether --enable-symlinks or --disable-symlinks was given.
7745 if test "${enable_symlinks+set}" = set; then
7746 enableval="$enable_symlinks"
7747 with_symlinks=$enableval
7751 echo "$as_me:7751: result: $with_symlinks" >&5
7752 echo "${ECHO_T}$with_symlinks" >&6
7755 # If we have hard links and did not choose to use soft links instead, there is
7756 # no reason to make this choice optional - use the hard links.
7757 if test "$with_symlinks" = no ; then
7758 echo "$as_me:7758: checking if tic should use hard links" >&5
7759 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7760 if test "x$ac_cv_func_link" = xyes ; then
7765 echo "$as_me:7765: result: $with_links" >&5
7766 echo "${ECHO_T}$with_links" >&6
7769 test "x$with_links" = xyes &&
7770 cat >>confdefs.h <<\EOF
7774 test "x$with_symlinks" = xyes &&
7775 cat >>confdefs.h <<\EOF
7776 #define USE_SYMLINKS 1
7779 ### use option --enable-broken-linker to force on use of broken-linker support
7780 echo "$as_me:7780: checking if you want broken-linker support code" >&5
7781 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7783 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7784 if test "${enable_broken_linker+set}" = set; then
7785 enableval="$enable_broken_linker"
7786 with_broken_linker=$enableval
7788 with_broken_linker=${BROKEN_LINKER:-no}
7790 echo "$as_me:7790: result: $with_broken_linker" >&5
7791 echo "${ECHO_T}$with_broken_linker" >&6
7794 if test "x$with_broken_linker" = xyes ; then
7796 cat >>confdefs.h <<\EOF
7797 #define BROKEN_LINKER 1
7801 elif test "$DFT_LWR_MODEL" = shared ; then
7802 case $cf_cv_system_name in
7805 cat >>confdefs.h <<\EOF
7806 #define BROKEN_LINKER 1
7810 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7812 echo "${as_me:-configure}:7812: testing cygwin linker is broken anyway ..." 1>&5
7818 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7819 echo "$as_me:7819: checking if tputs should process BSD-style prefix padding" >&5
7820 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7822 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7823 if test "${enable_bsdpad+set}" = set; then
7824 enableval="$enable_bsdpad"
7825 with_bsdpad=$enableval
7829 echo "$as_me:7829: result: $with_bsdpad" >&5
7830 echo "${ECHO_T}$with_bsdpad" >&6
7831 test "x$with_bsdpad" = xyes &&
7832 cat >>confdefs.h <<\EOF
7836 ### use option --enable-widec to turn on use of wide-character support
7845 # Check to define _XOPEN_SOURCE "automatically"
7846 CPPFLAGS_before_XOPEN="$CPPFLAGS"
7849 cf_POSIX_C_SOURCE=199506L
7854 cf_xopen_source="-D_ALL_SOURCE"
7860 cf_xopen_source="-D_APPLE_C_SOURCE"
7863 cf_xopen_source="-D_DARWIN_C_SOURCE"
7866 (freebsd*|dragonfly*)
7867 # 5.x headers associate
7868 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7869 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7870 cf_POSIX_C_SOURCE=200112L
7872 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7875 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7878 cf_xopen_source="-D_HPUX_SOURCE"
7881 cf_xopen_source="-D_SGI_SOURCE"
7884 (linux*|gnu*|mint*|k*bsd*-gnu)
7886 echo "$as_me:7886: checking if we must define _GNU_SOURCE" >&5
7887 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7888 if test "${cf_cv_gnu_source+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line 7893 "configure"
7894 #include "confdefs.h"
7895 #include <sys/types.h>
7900 #ifndef _XOPEN_SOURCE
7907 rm -f conftest.$ac_objext
7908 if { (eval echo "$as_me:7908: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -s conftest.$ac_objext'
7914 { (eval echo "$as_me:7914: \"$ac_try\"") >&5
7917 echo "$as_me:7917: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7924 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line 7926 "configure"
7927 #include "confdefs.h"
7928 #include <sys/types.h>
7933 #ifdef _XOPEN_SOURCE
7940 rm -f conftest.$ac_objext
7941 if { (eval echo "$as_me:7941: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>&5
7944 echo "$as_me:7944: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -s conftest.$ac_objext'
7947 { (eval echo "$as_me:7947: \"$ac_try\"") >&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7954 echo "$as_me: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7956 cf_cv_gnu_source=yes
7958 rm -f conftest.$ac_objext conftest.$ac_ext
7962 rm -f conftest.$ac_objext conftest.$ac_ext
7965 echo "$as_me:7965: result: $cf_cv_gnu_source" >&5
7966 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7967 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7971 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
7974 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7977 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7979 cf_save_CFLAGS="$CFLAGS"
7980 cf_save_CPPFLAGS="$CPPFLAGS"
7982 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7983 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7984 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7986 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7987 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7988 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7990 echo "$as_me:7990: checking if we should define _POSIX_C_SOURCE" >&5
7991 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7992 if test "${cf_cv_posix_c_source+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 echo "${as_me:-configure}:7996: testing if the symbol is already defined go no further ..." 1>&5
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line 7999 "configure"
8000 #include "confdefs.h"
8001 #include <sys/types.h>
8006 #ifndef _POSIX_C_SOURCE
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:8014: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>&5
8017 echo "$as_me:8017: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -s conftest.$ac_objext'
8020 { (eval echo "$as_me:8020: \"$ac_try\"") >&5
8023 echo "$as_me:8023: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 cf_cv_posix_c_source=no
8027 echo "$as_me: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8029 cf_want_posix_source=no
8030 case .$cf_POSIX_C_SOURCE in
8032 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8035 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8036 cf_want_posix_source=yes
8039 cf_want_posix_source=yes
8042 if test "$cf_want_posix_source" = yes ; then
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line 8044 "configure"
8045 #include "confdefs.h"
8046 #include <sys/types.h>
8051 #ifdef _POSIX_SOURCE
8058 rm -f conftest.$ac_objext
8059 if { (eval echo "$as_me:8059: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8062 echo "$as_me:8062: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:8065: \"$ac_try\"") >&5
8068 echo "$as_me:8068: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8072 echo "$as_me: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8074 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8076 rm -f conftest.$ac_objext conftest.$ac_ext
8079 echo "${as_me:-configure}:8079: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8081 CFLAGS="$cf_trim_CFLAGS"
8082 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8084 echo "${as_me:-configure}:8084: testing if the second compile does not leave our definition intact error ..." 1>&5
8086 cat >conftest.$ac_ext <<_ACEOF
8087 #line 8087 "configure"
8088 #include "confdefs.h"
8089 #include <sys/types.h>
8094 #ifndef _POSIX_C_SOURCE
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:8102: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>&5
8105 echo "$as_me:8105: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:8108: \"$ac_try\"") >&5
8111 echo "$as_me:8111: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 cf_cv_posix_c_source=no
8119 rm -f conftest.$ac_objext conftest.$ac_ext
8120 CFLAGS="$cf_save_CFLAGS"
8121 CPPFLAGS="$cf_save_CPPFLAGS"
8124 rm -f conftest.$ac_objext conftest.$ac_ext
8127 echo "$as_me:8127: result: $cf_cv_posix_c_source" >&5
8128 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8130 if test "$cf_cv_posix_c_source" != no ; then
8131 CFLAGS="$cf_trim_CFLAGS"
8132 CPPFLAGS="$cf_trim_CPPFLAGS"
8137 cf_new_extra_cppflags=
8139 for cf_add_cflags in $cf_cv_posix_c_source
8141 case $cf_fix_cppflags in
8143 case $cf_add_cflags in
8144 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8145 case $cf_add_cflags in
8147 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8149 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8150 && test -z "${cf_tst_cflags}" \
8151 && cf_fix_cppflags=yes
8153 if test $cf_fix_cppflags = yes ; then
8154 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8156 elif test "${cf_tst_cflags}" = "\"'" ; then
8157 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8166 case $cf_add_cflags in
8168 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8170 CPPFLAGS=`echo "$CPPFLAGS" | \
8171 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8172 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8176 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8181 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8186 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8188 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8190 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8191 && test -z "${cf_tst_cflags}" \
8192 && cf_fix_cppflags=no
8197 if test -n "$cf_new_cflags" ; then
8199 CFLAGS="$CFLAGS $cf_new_cflags"
8202 if test -n "$cf_new_cppflags" ; then
8204 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8207 if test -n "$cf_new_extra_cppflags" ; then
8209 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8216 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8219 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8220 cf_xopen_source="-D_BSD_SOURCE"
8224 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8230 cf_xopen_source="-D_OSF_SOURCE"
8233 cf_xopen_source="-D_QNX_SOURCE"
8236 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8239 cf_xopen_source="-D__EXTENSIONS__"
8240 cf_cv_xopen_source=broken
8242 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8248 echo "$as_me:8248: checking if we should define _XOPEN_SOURCE" >&5
8249 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8250 if test "${cf_cv_xopen_source+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8255 #line 8255 "configure"
8256 #include "confdefs.h"
8260 #include <sys/types.h>
8266 #ifndef _XOPEN_SOURCE
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:8274: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>&5
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -s conftest.$ac_objext'
8280 { (eval echo "$as_me:8280: \"$ac_try\"") >&5
8283 echo "$as_me:8283: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 cf_cv_xopen_source=no
8287 echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line 8292 "configure"
8293 #include "confdefs.h"
8297 #include <sys/types.h>
8303 #ifdef _XOPEN_SOURCE
8310 rm -f conftest.$ac_objext
8311 if { (eval echo "$as_me:8311: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>&5
8314 echo "$as_me:8314: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -s conftest.$ac_objext'
8317 { (eval echo "$as_me:8317: \"$ac_try\"") >&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 cf_cv_xopen_source=no
8324 echo "$as_me: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8326 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8328 rm -f conftest.$ac_objext conftest.$ac_ext
8332 rm -f conftest.$ac_objext conftest.$ac_ext
8335 echo "$as_me:8335: result: $cf_cv_xopen_source" >&5
8336 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8338 if test "$cf_cv_xopen_source" != no ; then
8340 CFLAGS=`echo "$CFLAGS" | \
8341 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8342 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8344 CPPFLAGS=`echo "$CPPFLAGS" | \
8345 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8346 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8348 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8353 cf_new_extra_cppflags=
8355 for cf_add_cflags in $cf_temp_xopen_source
8357 case $cf_fix_cppflags in
8359 case $cf_add_cflags in
8360 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8361 case $cf_add_cflags in
8363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8365 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8366 && test -z "${cf_tst_cflags}" \
8367 && cf_fix_cppflags=yes
8369 if test $cf_fix_cppflags = yes ; then
8370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8372 elif test "${cf_tst_cflags}" = "\"'" ; then
8373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8382 case $cf_add_cflags in
8384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8386 CPPFLAGS=`echo "$CPPFLAGS" | \
8387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8392 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8397 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8402 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8406 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8407 && test -z "${cf_tst_cflags}" \
8408 && cf_fix_cppflags=no
8413 if test -n "$cf_new_cflags" ; then
8415 CFLAGS="$CFLAGS $cf_new_cflags"
8418 if test -n "$cf_new_cppflags" ; then
8420 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8423 if test -n "$cf_new_extra_cppflags" ; then
8425 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8430 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8432 cf_save_CFLAGS="$CFLAGS"
8433 cf_save_CPPFLAGS="$CPPFLAGS"
8435 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8436 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8437 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8439 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8440 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8441 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8443 echo "$as_me:8443: checking if we should define _POSIX_C_SOURCE" >&5
8444 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8445 if test "${cf_cv_posix_c_source+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 echo "${as_me:-configure}:8449: testing if the symbol is already defined go no further ..." 1>&5
8451 cat >conftest.$ac_ext <<_ACEOF
8452 #line 8452 "configure"
8453 #include "confdefs.h"
8454 #include <sys/types.h>
8459 #ifndef _POSIX_C_SOURCE
8466 rm -f conftest.$ac_objext
8467 if { (eval echo "$as_me:8467: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>&5
8470 echo "$as_me:8470: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (eval echo "$as_me:8473: \"$ac_try\"") >&5
8476 echo "$as_me:8476: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 cf_cv_posix_c_source=no
8480 echo "$as_me: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8482 cf_want_posix_source=no
8483 case .$cf_POSIX_C_SOURCE in
8485 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8488 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8489 cf_want_posix_source=yes
8492 cf_want_posix_source=yes
8495 if test "$cf_want_posix_source" = yes ; then
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line 8497 "configure"
8498 #include "confdefs.h"
8499 #include <sys/types.h>
8504 #ifdef _POSIX_SOURCE
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:8512: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8515 echo "$as_me:8515: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest.$ac_objext'
8518 { (eval echo "$as_me:8518: \"$ac_try\"") >&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8525 echo "$as_me: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8527 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8529 rm -f conftest.$ac_objext conftest.$ac_ext
8532 echo "${as_me:-configure}:8532: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8534 CFLAGS="$cf_trim_CFLAGS"
8535 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8537 echo "${as_me:-configure}:8537: testing if the second compile does not leave our definition intact error ..." 1>&5
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line 8540 "configure"
8541 #include "confdefs.h"
8542 #include <sys/types.h>
8547 #ifndef _POSIX_C_SOURCE
8554 rm -f conftest.$ac_objext
8555 if { (eval echo "$as_me:8555: \"$ac_compile\"") >&5
8556 (eval $ac_compile) 2>&5
8558 echo "$as_me:8558: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:8561: \"$ac_try\"") >&5
8564 echo "$as_me:8564: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 cf_cv_posix_c_source=no
8572 rm -f conftest.$ac_objext conftest.$ac_ext
8573 CFLAGS="$cf_save_CFLAGS"
8574 CPPFLAGS="$cf_save_CPPFLAGS"
8577 rm -f conftest.$ac_objext conftest.$ac_ext
8580 echo "$as_me:8580: result: $cf_cv_posix_c_source" >&5
8581 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8583 if test "$cf_cv_posix_c_source" != no ; then
8584 CFLAGS="$cf_trim_CFLAGS"
8585 CPPFLAGS="$cf_trim_CPPFLAGS"
8590 cf_new_extra_cppflags=
8592 for cf_add_cflags in $cf_cv_posix_c_source
8594 case $cf_fix_cppflags in
8596 case $cf_add_cflags in
8597 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8598 case $cf_add_cflags in
8600 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8602 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8603 && test -z "${cf_tst_cflags}" \
8604 && cf_fix_cppflags=yes
8606 if test $cf_fix_cppflags = yes ; then
8607 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8609 elif test "${cf_tst_cflags}" = "\"'" ; then
8610 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8619 case $cf_add_cflags in
8621 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8623 CPPFLAGS=`echo "$CPPFLAGS" | \
8624 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8625 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8629 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8634 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8639 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8641 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8643 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8644 && test -z "${cf_tst_cflags}" \
8645 && cf_fix_cppflags=no
8650 if test -n "$cf_new_cflags" ; then
8652 CFLAGS="$CFLAGS $cf_new_cflags"
8655 if test -n "$cf_new_cppflags" ; then
8657 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8660 if test -n "$cf_new_extra_cppflags" ; then
8662 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8670 if test -n "$cf_xopen_source" ; then
8675 cf_new_extra_cppflags=
8677 for cf_add_cflags in $cf_xopen_source
8679 case $cf_fix_cppflags in
8681 case $cf_add_cflags in
8682 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8683 case $cf_add_cflags in
8685 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8687 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8688 && test -z "${cf_tst_cflags}" \
8689 && cf_fix_cppflags=yes
8691 if test $cf_fix_cppflags = yes ; then
8692 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8694 elif test "${cf_tst_cflags}" = "\"'" ; then
8695 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8704 case $cf_add_cflags in
8706 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8708 CPPFLAGS=`echo "$CPPFLAGS" | \
8709 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8710 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8714 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8719 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8724 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8726 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8728 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8729 && test -z "${cf_tst_cflags}" \
8730 && cf_fix_cppflags=no
8735 if test -n "$cf_new_cflags" ; then
8736 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8738 echo "${as_me:-configure}:8738: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8740 CFLAGS="$CFLAGS $cf_new_cflags"
8743 if test -n "$cf_new_cppflags" ; then
8744 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8746 echo "${as_me:-configure}:8746: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8748 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8751 if test -n "$cf_new_extra_cppflags" ; then
8752 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8754 echo "${as_me:-configure}:8754: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8756 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8761 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8762 echo "$as_me:8762: checking if _XOPEN_SOURCE really is set" >&5
8763 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8764 cat >conftest.$ac_ext <<_ACEOF
8765 #line 8765 "configure"
8766 #include "confdefs.h"
8772 #ifndef _XOPEN_SOURCE
8779 rm -f conftest.$ac_objext
8780 if { (eval echo "$as_me:8780: \"$ac_compile\"") >&5
8781 (eval $ac_compile) 2>&5
8783 echo "$as_me:8783: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -s conftest.$ac_objext'
8786 { (eval echo "$as_me:8786: \"$ac_try\"") >&5
8789 echo "$as_me:8789: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 cf_XOPEN_SOURCE_set=yes
8793 echo "$as_me: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8795 cf_XOPEN_SOURCE_set=no
8797 rm -f conftest.$ac_objext conftest.$ac_ext
8798 echo "$as_me:8798: result: $cf_XOPEN_SOURCE_set" >&5
8799 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8800 if test $cf_XOPEN_SOURCE_set = yes
8802 cat >conftest.$ac_ext <<_ACEOF
8803 #line 8803 "configure"
8804 #include "confdefs.h"
8810 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:8818: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>&5
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -s conftest.$ac_objext'
8824 { (eval echo "$as_me:8824: \"$ac_try\"") >&5
8827 echo "$as_me:8827: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 cf_XOPEN_SOURCE_set_ok=yes
8831 echo "$as_me: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 cf_XOPEN_SOURCE_set_ok=no
8835 rm -f conftest.$ac_objext conftest.$ac_ext
8836 if test $cf_XOPEN_SOURCE_set_ok = no
8838 { echo "$as_me:8838: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8839 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8843 echo "$as_me:8843: checking if we should define _XOPEN_SOURCE" >&5
8844 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8845 if test "${cf_cv_xopen_source+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8850 #line 8850 "configure"
8851 #include "confdefs.h"
8855 #include <sys/types.h>
8861 #ifndef _XOPEN_SOURCE
8868 rm -f conftest.$ac_objext
8869 if { (eval echo "$as_me:8869: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>&5
8872 echo "$as_me:8872: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -s conftest.$ac_objext'
8875 { (eval echo "$as_me:8875: \"$ac_try\"") >&5
8878 echo "$as_me:8878: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 cf_cv_xopen_source=no
8882 echo "$as_me: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8885 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line 8887 "configure"
8888 #include "confdefs.h"
8892 #include <sys/types.h>
8898 #ifdef _XOPEN_SOURCE
8905 rm -f conftest.$ac_objext
8906 if { (eval echo "$as_me:8906: \"$ac_compile\"") >&5
8907 (eval $ac_compile) 2>&5
8909 echo "$as_me:8909: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:8912: \"$ac_try\"") >&5
8915 echo "$as_me:8915: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 cf_cv_xopen_source=no
8919 echo "$as_me: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8923 rm -f conftest.$ac_objext conftest.$ac_ext
8927 rm -f conftest.$ac_objext conftest.$ac_ext
8930 echo "$as_me:8930: result: $cf_cv_xopen_source" >&5
8931 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8933 if test "$cf_cv_xopen_source" != no ; then
8935 CFLAGS=`echo "$CFLAGS" | \
8936 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8937 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8939 CPPFLAGS=`echo "$CPPFLAGS" | \
8940 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8941 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8943 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8948 cf_new_extra_cppflags=
8950 for cf_add_cflags in $cf_temp_xopen_source
8952 case $cf_fix_cppflags in
8954 case $cf_add_cflags in
8955 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8956 case $cf_add_cflags in
8958 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8960 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8961 && test -z "${cf_tst_cflags}" \
8962 && cf_fix_cppflags=yes
8964 if test $cf_fix_cppflags = yes ; then
8965 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8967 elif test "${cf_tst_cflags}" = "\"'" ; then
8968 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8977 case $cf_add_cflags in
8979 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8981 CPPFLAGS=`echo "$CPPFLAGS" | \
8982 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8983 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8987 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8992 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8997 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8999 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9001 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9002 && test -z "${cf_tst_cflags}" \
9003 && cf_fix_cppflags=no
9008 if test -n "$cf_new_cflags" ; then
9010 CFLAGS="$CFLAGS $cf_new_cflags"
9013 if test -n "$cf_new_cppflags" ; then
9015 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9018 if test -n "$cf_new_extra_cppflags" ; then
9020 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9028 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9030 # Work around breakage on OS X
9032 echo "$as_me:9032: checking if SIGWINCH is defined" >&5
9033 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9034 if test "${cf_cv_define_sigwinch+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line 9039 "configure"
9040 #include "confdefs.h"
9042 #include <sys/types.h>
9043 #include <sys/signal.h>
9053 rm -f conftest.$ac_objext
9054 if { (eval echo "$as_me:9054: \"$ac_compile\"") >&5
9055 (eval $ac_compile) 2>&5
9057 echo "$as_me:9057: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -s conftest.$ac_objext'
9060 { (eval echo "$as_me:9060: \"$ac_try\"") >&5
9063 echo "$as_me:9063: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 cf_cv_define_sigwinch=yes
9067 echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9073 #undef _XOPEN_SOURCE
9074 #undef _POSIX_SOURCE
9075 #undef _POSIX_C_SOURCE
9076 #include <sys/types.h>
9077 #include <sys/signal.h>
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:9088: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>&5
9091 echo "$as_me:9091: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (eval echo "$as_me:9094: \"$ac_try\"") >&5
9097 echo "$as_me:9097: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 cf_cv_define_sigwinch=maybe
9101 echo "$as_me: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 cf_cv_define_sigwinch=no
9105 rm -f conftest.$ac_objext conftest.$ac_ext
9108 rm -f conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:9111: result: $cf_cv_define_sigwinch" >&5
9112 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9114 if test "$cf_cv_define_sigwinch" = maybe ; then
9115 echo "$as_me:9115: checking for actual SIGWINCH definition" >&5
9116 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9117 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 cf_cv_fixup_sigwinch=unknown
9123 while test $cf_sigwinch != 1
9125 cat >conftest.$ac_ext <<_ACEOF
9126 #line 9126 "configure"
9127 #include "confdefs.h"
9129 #undef _XOPEN_SOURCE
9130 #undef _POSIX_SOURCE
9131 #undef _POSIX_C_SOURCE
9132 #include <sys/types.h>
9133 #include <sys/signal.h>
9139 #if SIGWINCH != $cf_sigwinch
9147 rm -f conftest.$ac_objext
9148 if { (eval echo "$as_me:9148: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>&5
9151 echo "$as_me:9151: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -s conftest.$ac_objext'
9154 { (eval echo "$as_me:9154: \"$ac_try\"") >&5
9157 echo "$as_me:9157: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 cf_cv_fixup_sigwinch=$cf_sigwinch
9162 echo "$as_me: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9165 rm -f conftest.$ac_objext conftest.$ac_ext
9167 cf_sigwinch=`expr $cf_sigwinch - 1`
9171 echo "$as_me:9171: result: $cf_cv_fixup_sigwinch" >&5
9172 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9174 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9175 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9179 # Checks for CODESET support.
9181 echo "$as_me:9181: checking for nl_langinfo and CODESET" >&5
9182 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9183 if test "${am_cv_langinfo_codeset+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 cat >conftest.$ac_ext <<_ACEOF
9187 #line 9187 "configure"
9188 #include "confdefs.h"
9189 #include <langinfo.h>
9193 char* cs = nl_langinfo(CODESET);
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:9199: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>&5
9202 echo "$as_me:9202: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:9205: \"$ac_try\"") >&5
9208 echo "$as_me:9208: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 am_cv_langinfo_codeset=yes
9212 echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 am_cv_langinfo_codeset=no
9216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9219 echo "$as_me:9219: result: $am_cv_langinfo_codeset" >&5
9220 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9221 if test $am_cv_langinfo_codeset = yes; then
9223 cat >>confdefs.h <<\EOF
9224 #define HAVE_LANGINFO_CODESET 1
9229 # use these variables to work around a defect in gcc's fixincludes.
9233 echo "$as_me:9233: checking if you want wide-character code" >&5
9234 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9236 # Check whether --enable-widec or --disable-widec was given.
9237 if test "${enable_widec+set}" = set; then
9238 enableval="$enable_widec"
9239 with_widec=$enableval
9243 echo "$as_me:9243: result: $with_widec" >&5
9244 echo "${ECHO_T}$with_widec" >&6
9245 if test "x$with_widec" = xyes ; then
9246 if test "x$disable_lib_suffixes" = xno ; then
9247 LIB_SUFFIX="w${LIB_SUFFIX}"
9250 cat >>confdefs.h <<\EOF
9251 #define USE_WIDEC_SUPPORT 1
9254 cat >>confdefs.h <<\EOF
9255 #define NCURSES_WIDECHAR 1
9258 echo "$as_me:9258: checking if wchar.h can be used as is" >&5
9259 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9260 if test "${cf_cv_wchar_h_okay+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line 9265 "configure"
9266 #include "confdefs.h"
9276 int bar = iswpunct(foo)
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:9282: \"$ac_compile\"") >&5
9283 (eval $ac_compile) 2>&5
9285 echo "$as_me:9285: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -s conftest.$ac_objext'
9288 { (eval echo "$as_me:9288: \"$ac_try\"") >&5
9291 echo "$as_me:9291: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 cf_cv_wchar_h_okay=yes
9295 echo "$as_me: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 cf_cv_wchar_h_okay=no
9299 rm -f conftest.$ac_objext conftest.$ac_ext
9301 echo "$as_me:9301: result: $cf_cv_wchar_h_okay" >&5
9302 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9304 if test $cf_cv_wchar_h_okay = no
9307 echo "$as_me:9307: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9308 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line 9310 "configure"
9311 #include "confdefs.h"
9312 #include <sys/types.h>
9318 #ifndef _XOPEN_SOURCE_EXTENDED
9325 rm -f conftest.$ac_objext
9326 if { (eval echo "$as_me:9326: \"$ac_compile\"") >&5
9327 (eval $ac_compile) 2>&5
9329 echo "$as_me:9329: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (eval echo "$as_me:9332: \"$ac_try\"") >&5
9335 echo "$as_me:9335: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9339 echo "$as_me: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9343 rm -f conftest.$ac_objext conftest.$ac_ext
9344 echo "$as_me:9344: result: $cf_result" >&5
9345 echo "${ECHO_T}$cf_result" >&6
9347 if test "$cf_result" = yes ; then
9348 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9349 elif test "x" != "x" ; then
9350 echo "$as_me:9350: checking checking for compatible value versus " >&5
9351 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 #line 9353 "configure"
9354 #include "confdefs.h"
9355 #include <sys/types.h>
9361 #if _XOPEN_SOURCE_EXTENDED- < 0
9368 rm -f conftest.$ac_objext
9369 if { (eval echo "$as_me:9369: \"$ac_compile\"") >&5
9370 (eval $ac_compile) 2>&5
9372 echo "$as_me:9372: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -s conftest.$ac_objext'
9375 { (eval echo "$as_me:9375: \"$ac_try\"") >&5
9378 echo "$as_me:9378: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9382 echo "$as_me: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9386 rm -f conftest.$ac_objext conftest.$ac_ext
9387 echo "$as_me:9387: result: $cf_result" >&5
9388 echo "${ECHO_T}$cf_result" >&6
9389 if test "$cf_result" = no ; then
9390 # perhaps we can override it - try...
9391 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9398 NCURSES_CH_T=cchar_t
9400 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9403 echo "$as_me:9403: checking for $ac_func" >&5
9404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9405 if eval "test \"\${$as_ac_var+set}\" = set"; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9409 #line 9409 "configure"
9410 #include "confdefs.h"
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char $ac_func (); below. */
9414 /* Override any gcc2 internal prototype to avoid an error. */
9418 /* We use char because int might match the return type of a gcc2
9419 builtin and then its argument prototype would still apply. */
9426 /* The GNU C library defines this for functions which it implements
9427 to always fail with ENOSYS. Some functions are actually named
9428 something starting with __ and the normal name is an alias. */
9429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9432 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (eval echo "$as_me:9440: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>&5
9443 echo "$as_me:9443: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:9446: \"$ac_try\"") >&5
9449 echo "$as_me:9449: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 eval "$as_ac_var=yes"
9453 echo "$as_me: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9455 eval "$as_ac_var=no"
9457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9459 echo "$as_me:9459: result: `eval echo '${'$as_ac_var'}'`" >&5
9460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9461 if test `eval echo '${'$as_ac_var'}'` = yes; then
9462 cat >>confdefs.h <<EOF
9463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9469 if test "x$ac_cv_func_putwc" != xyes ; then
9471 echo "$as_me:9471: checking for multibyte character support" >&5
9472 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9473 if test "${cf_cv_utf8_lib+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 cf_save_LIBS="$LIBS"
9478 cat >conftest.$ac_ext <<_ACEOF
9479 #line 9479 "configure"
9480 #include "confdefs.h"
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:9492: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>&5
9495 echo "$as_me:9495: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (eval echo "$as_me:9498: \"$ac_try\"") >&5
9501 echo "$as_me:9501: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9505 echo "$as_me: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9508 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9509 # will be set on completion of the AC_TRY_LINK below.
9510 cf_cv_header_path_utf8=
9511 cf_cv_library_path_utf8=
9513 echo "${as_me:-configure}:9513: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9515 cf_save_LIBS="$LIBS"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line 9518 "configure"
9519 #include "confdefs.h"
9521 #include <libutf8.h>
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (eval echo "$as_me:9531: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -s conftest$ac_exeext'
9537 { (eval echo "$as_me:9537: \"$ac_try\"") >&5
9540 echo "$as_me:9540: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9543 cf_cv_find_linkage_utf8=yes
9544 cf_cv_header_path_utf8=/usr/include
9545 cf_cv_library_path_utf8=/usr/lib
9548 echo "$as_me: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9551 LIBS="-lutf8 $cf_save_LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line 9554 "configure"
9555 #include "confdefs.h"
9557 #include <libutf8.h>
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (eval echo "$as_me:9567: \"$ac_link\"") >&5
9568 (eval $ac_link) 2>&5
9570 echo "$as_me:9570: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:9573: \"$ac_try\"") >&5
9576 echo "$as_me:9576: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9579 cf_cv_find_linkage_utf8=yes
9580 cf_cv_header_path_utf8=/usr/include
9581 cf_cv_library_path_utf8=/usr/lib
9582 cf_cv_library_file_utf8="-lutf8"
9585 echo "$as_me: failed program was:" >&5
9586 cat conftest.$ac_ext >&5
9588 cf_cv_find_linkage_utf8=no
9589 LIBS="$cf_save_LIBS"
9591 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9593 echo "${as_me:-configure}:9593: testing find linkage for utf8 library ..." 1>&5
9595 echo "${as_me:-configure}:9595: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9597 cf_save_CPPFLAGS="$CPPFLAGS"
9598 cf_test_CPPFLAGS="$CPPFLAGS"
9602 # collect the current set of include-directories from compiler flags
9603 cf_header_path_list=""
9604 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9605 for cf_header_path in $CPPFLAGS $CFLAGS
9607 case $cf_header_path in
9609 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9611 test "x$cf_header_path" != "xNONE" && \
9612 test -d "$cf_header_path" && \
9614 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9615 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9616 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9617 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9618 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9619 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9622 cf_header_path_list="$cf_header_path_list $cf_search"
9628 # add the variations for the package we are looking for
9632 test "x$prefix" != "xNONE" && \
9633 test -d "$prefix" && \
9635 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9636 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9637 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9638 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9639 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9640 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9643 for cf_subdir_prefix in \
9652 test "x$cf_subdir_prefix" != "x$prefix" && \
9653 test -d "$cf_subdir_prefix" && \
9654 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9655 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9656 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9657 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
9658 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
9659 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
9660 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
9665 test "$includedir" != NONE && \
9666 test "$includedir" != "/usr/include" && \
9667 test -d "$includedir" && {
9668 test -d $includedir && cf_search="$cf_search $includedir"
9669 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9672 test "$oldincludedir" != NONE && \
9673 test "$oldincludedir" != "/usr/include" && \
9674 test -d "$oldincludedir" && {
9675 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9676 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9679 cf_search="$cf_search $cf_header_path_list"
9681 for cf_cv_header_path_utf8 in $cf_search
9683 if test -d $cf_cv_header_path_utf8 ; then
9684 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9686 echo "${as_me:-configure}:9686: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9688 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9689 cat >conftest.$ac_ext <<_ACEOF
9690 #line 9690 "configure"
9691 #include "confdefs.h"
9693 #include <libutf8.h>
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:9703: \"$ac_compile\"") >&5
9704 (eval $ac_compile) 2>&5
9706 echo "$as_me:9706: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:9709: \"$ac_try\"") >&5
9712 echo "$as_me:9712: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9715 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9717 echo "${as_me:-configure}:9717: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9719 cf_cv_find_linkage_utf8=maybe
9720 cf_test_CPPFLAGS="$CPPFLAGS"
9723 echo "$as_me: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 CPPFLAGS="$cf_save_CPPFLAGS"
9729 rm -f conftest.$ac_objext conftest.$ac_ext
9733 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9735 echo "${as_me:-configure}:9735: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9737 cf_save_LIBS="$LIBS"
9738 cf_save_LDFLAGS="$LDFLAGS"
9740 if test "$cf_cv_find_linkage_utf8" != yes ; then
9743 cf_library_path_list=""
9744 if test -n "${LDFLAGS}${LIBS}" ; then
9745 for cf_library_path in $LDFLAGS $LIBS
9747 case $cf_library_path in
9749 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9751 test "x$cf_library_path" != "xNONE" && \
9752 test -d "$cf_library_path" && \
9754 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9755 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9756 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9757 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9758 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9759 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9762 cf_library_path_list="$cf_library_path_list $cf_search"
9770 test "x$prefix" != "xNONE" && \
9771 test -d "$prefix" && \
9773 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9774 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9775 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9776 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9777 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9778 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9781 for cf_subdir_prefix in \
9790 test "x$cf_subdir_prefix" != "x$prefix" && \
9791 test -d "$cf_subdir_prefix" && \
9792 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9793 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9794 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9795 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
9796 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
9797 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
9798 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
9803 cf_search="$cf_library_path_list $cf_search"
9805 for cf_cv_library_path_utf8 in $cf_search
9807 if test -d $cf_cv_library_path_utf8 ; then
9808 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9810 echo "${as_me:-configure}:9810: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9812 CPPFLAGS="$cf_test_CPPFLAGS"
9813 LIBS="-lutf8 $cf_save_LIBS"
9814 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line 9816 "configure"
9817 #include "confdefs.h"
9819 #include <libutf8.h>
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (eval echo "$as_me:9829: \"$ac_link\"") >&5
9830 (eval $ac_link) 2>&5
9832 echo "$as_me:9832: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (eval echo "$as_me:9835: \"$ac_try\"") >&5
9838 echo "$as_me:9838: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9841 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9843 echo "${as_me:-configure}:9843: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9845 cf_cv_find_linkage_utf8=yes
9846 cf_cv_library_file_utf8="-lutf8"
9849 echo "$as_me: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9852 CPPFLAGS="$cf_save_CPPFLAGS"
9853 LIBS="$cf_save_LIBS"
9854 LDFLAGS="$cf_save_LDFLAGS"
9857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9860 CPPFLAGS="$cf_save_CPPFLAGS"
9861 LDFLAGS="$cf_save_LDFLAGS"
9865 cf_cv_find_linkage_utf8=no
9869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9874 LIBS="$cf_save_LIBS"
9876 if test "$cf_cv_find_linkage_utf8" = yes ; then
9877 cf_cv_utf8_lib=add-on
9883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9885 echo "$as_me:9885: result: $cf_cv_utf8_lib" >&5
9886 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9888 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9890 if test "$cf_cv_utf8_lib" = "add-on" ; then
9892 cat >>confdefs.h <<\EOF
9893 #define HAVE_LIBUTF8_H 1
9896 if test -n "$cf_cv_header_path_utf8" ; then
9897 for cf_add_incdir in $cf_cv_header_path_utf8
9899 while test $cf_add_incdir != /usr/include
9901 if test -d $cf_add_incdir
9904 if test -n "$CFLAGS$CPPFLAGS" ; then
9905 # a loop is needed to ensure we can add subdirs of existing dirs
9906 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9907 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9908 cf_have_incdir=yes; break
9913 if test "$cf_have_incdir" = no ; then
9914 if test "$cf_add_incdir" = /usr/local/include ; then
9915 if test "$GCC" = yes
9917 cf_save_CPPFLAGS=$CPPFLAGS
9918 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line 9920 "configure"
9921 #include "confdefs.h"
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:9932: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9935 echo "$as_me:9935: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:9938: \"$ac_try\"") >&5
9941 echo "$as_me:9941: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9945 echo "$as_me: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9949 rm -f conftest.$ac_objext conftest.$ac_ext
9950 CPPFLAGS=$cf_save_CPPFLAGS
9955 if test "$cf_have_incdir" = no ; then
9956 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9958 echo "${as_me:-configure}:9958: testing adding $cf_add_incdir to include-path ..." 1>&5
9960 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9962 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9963 test "$cf_top_incdir" = "$cf_add_incdir" && break
9964 cf_add_incdir="$cf_top_incdir"
9975 if test -n "$cf_cv_library_path_utf8" ; then
9976 for cf_add_libdir in $cf_cv_library_path_utf8
9978 if test $cf_add_libdir = /usr/lib ; then
9980 elif test -d $cf_add_libdir
9983 if test -n "$LDFLAGS$LIBS" ; then
9984 # a loop is needed to ensure we can add subdirs of existing dirs
9985 for cf_test_libdir in $LDFLAGS $LIBS ; do
9986 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9987 cf_have_libdir=yes; break
9991 if test "$cf_have_libdir" = no ; then
9992 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9994 echo "${as_me:-configure}:9994: testing adding $cf_add_libdir to library-path ..." 1>&5
9996 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10002 cf_add_libs="$cf_cv_library_file_utf8"
10003 # Filter out duplicates - this happens with badly-designed ".pc" files...
10004 for cf_add_1lib in $LIBS
10006 for cf_add_2lib in $cf_add_libs
10008 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10014 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10016 LIBS="$cf_add_libs"
10020 if test "$cf_cv_utf8_lib" != no ; then
10025 # This is needed on Tru64 5.0 to declare mbstate_t
10026 echo "$as_me:10026: checking if we must include wchar.h to declare mbstate_t" >&5
10027 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10028 if test "${cf_cv_mbstate_t+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 cat >conftest.$ac_ext <<_ACEOF
10033 #line 10033 "configure"
10034 #include "confdefs.h"
10036 #include <stdlib.h>
10037 #include <stdarg.h>
10039 #ifdef HAVE_LIBUTF8_H
10040 #include <libutf8.h>
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:10051: \"$ac_compile\"") >&5
10052 (eval $ac_compile) 2>&5
10054 echo "$as_me:10054: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest.$ac_objext'
10057 { (eval echo "$as_me:10057: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:10060: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10064 echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 cat >conftest.$ac_ext <<_ACEOF
10067 #line 10067 "configure"
10068 #include "confdefs.h"
10070 #include <stdlib.h>
10071 #include <stdarg.h>
10074 #ifdef HAVE_LIBUTF8_H
10075 #include <libutf8.h>
10085 rm -f conftest.$ac_objext
10086 if { (eval echo "$as_me:10086: \"$ac_compile\"") >&5
10087 (eval $ac_compile) 2>&5
10089 echo "$as_me:10089: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:10092: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:10095: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 cf_cv_mbstate_t=yes
10099 echo "$as_me: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 cf_cv_mbstate_t=unknown
10103 rm -f conftest.$ac_objext conftest.$ac_ext
10105 rm -f conftest.$ac_objext conftest.$ac_ext
10107 echo "$as_me:10107: result: $cf_cv_mbstate_t" >&5
10108 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10110 if test "$cf_cv_mbstate_t" = yes ; then
10112 cat >>confdefs.h <<\EOF
10113 #define NEED_WCHAR_H 1
10119 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10120 if test "$cf_cv_mbstate_t" = unknown ; then
10121 NCURSES_MBSTATE_T=1
10124 # This is needed on Tru64 5.0 to declare wchar_t
10125 echo "$as_me:10125: checking if we must include wchar.h to declare wchar_t" >&5
10126 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10127 if test "${cf_cv_wchar_t+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line 10132 "configure"
10133 #include "confdefs.h"
10135 #include <stdlib.h>
10136 #include <stdarg.h>
10138 #ifdef HAVE_LIBUTF8_H
10139 #include <libutf8.h>
10149 rm -f conftest.$ac_objext
10150 if { (eval echo "$as_me:10150: \"$ac_compile\"") >&5
10151 (eval $ac_compile) 2>&5
10153 echo "$as_me:10153: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:10156: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:10159: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10163 echo "$as_me: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 cat >conftest.$ac_ext <<_ACEOF
10166 #line 10166 "configure"
10167 #include "confdefs.h"
10169 #include <stdlib.h>
10170 #include <stdarg.h>
10173 #ifdef HAVE_LIBUTF8_H
10174 #include <libutf8.h>
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:10185: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>&5
10188 echo "$as_me:10188: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try='test -s conftest.$ac_objext'
10191 { (eval echo "$as_me:10191: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:10194: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10198 echo "$as_me: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10200 cf_cv_wchar_t=unknown
10202 rm -f conftest.$ac_objext conftest.$ac_ext
10204 rm -f conftest.$ac_objext conftest.$ac_ext
10206 echo "$as_me:10206: result: $cf_cv_wchar_t" >&5
10207 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10209 if test "$cf_cv_wchar_t" = yes ; then
10211 cat >>confdefs.h <<\EOF
10212 #define NEED_WCHAR_H 1
10218 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10219 if test "$cf_cv_wchar_t" = unknown ; then
10223 # if we find wchar_t in either place, use substitution to provide a fallback.
10224 if test "$cf_cv_wchar_t" != unknown ; then
10225 NCURSES_OK_WCHAR_T=1
10228 # This is needed on Tru64 5.0 to declare wint_t
10229 echo "$as_me:10229: checking if we must include wchar.h to declare wint_t" >&5
10230 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10231 if test "${cf_cv_wint_t+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line 10236 "configure"
10237 #include "confdefs.h"
10239 #include <stdlib.h>
10240 #include <stdarg.h>
10242 #ifdef HAVE_LIBUTF8_H
10243 #include <libutf8.h>
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:10254: \"$ac_compile\"") >&5
10255 (eval $ac_compile) 2>&5
10257 echo "$as_me:10257: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -s conftest.$ac_objext'
10260 { (eval echo "$as_me:10260: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:10263: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10267 echo "$as_me: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10269 cat >conftest.$ac_ext <<_ACEOF
10270 #line 10270 "configure"
10271 #include "confdefs.h"
10273 #include <stdlib.h>
10274 #include <stdarg.h>
10277 #ifdef HAVE_LIBUTF8_H
10278 #include <libutf8.h>
10288 rm -f conftest.$ac_objext
10289 if { (eval echo "$as_me:10289: \"$ac_compile\"") >&5
10290 (eval $ac_compile) 2>&5
10292 echo "$as_me:10292: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -s conftest.$ac_objext'
10295 { (eval echo "$as_me:10295: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10298 echo "$as_me:10298: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10302 echo "$as_me: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10304 cf_cv_wint_t=unknown
10306 rm -f conftest.$ac_objext conftest.$ac_ext
10308 rm -f conftest.$ac_objext conftest.$ac_ext
10310 echo "$as_me:10310: result: $cf_cv_wint_t" >&5
10311 echo "${ECHO_T}$cf_cv_wint_t" >&6
10313 if test "$cf_cv_wint_t" = yes ; then
10315 cat >>confdefs.h <<\EOF
10316 #define NEED_WCHAR_H 1
10322 # if we do not find wint_t in either place, use substitution to provide a fallback.
10323 if test "$cf_cv_wint_t" = unknown ; then
10327 # if we find wint_t in either place, use substitution to provide a fallback.
10328 if test "$cf_cv_wint_t" != unknown ; then
10329 NCURSES_OK_WINT_T=1
10332 if test "$NCURSES_MBSTATE_T" != 0; then
10334 cat >>confdefs.h <<\EOF
10335 #define NEED_MBSTATE_T_DEF 1
10341 ### use option --disable-lp64 to allow long chtype
10342 echo "$as_me:10342: checking whether to enable _LP64 definition in curses.h" >&5
10343 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10345 # Check whether --enable-lp64 or --disable-lp64 was given.
10346 if test "${enable_lp64+set}" = set; then
10347 enableval="$enable_lp64"
10348 with_lp64=$enableval
10350 with_lp64=$cf_dft_with_lp64
10352 echo "$as_me:10352: result: $with_lp64" >&5
10353 echo "${ECHO_T}$with_lp64" >&6
10355 if test "x$with_lp64" = xyes ; then
10356 cf_cv_enable_lp64=1
10358 cf_cv_enable_lp64=0
10361 # Check whether --enable-largefile or --disable-largefile was given.
10362 if test "${enable_largefile+set}" = set; then
10363 enableval="$enable_largefile"
10366 if test "$enable_largefile" != no; then
10368 echo "$as_me:10368: checking for special C compiler options needed for large files" >&5
10369 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10370 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 ac_cv_sys_largefile_CC=no
10374 if test "$GCC" != yes; then
10377 # IRIX 6.2 and later do not support large files by default,
10378 # so use the C compiler's -n32 option if that helps.
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line 10380 "configure"
10381 #include "confdefs.h"
10382 #include <sys/types.h>
10383 /* Check that off_t can represent 2**63 - 1 correctly.
10384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10385 since some C++ compilers masquerading as C compilers
10386 incorrectly reject 9223372036854775807. */
10387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10389 && LARGE_OFF_T % 2147483647 == 1)
10399 rm -f conftest.$ac_objext
10400 if { (eval echo "$as_me:10400: \"$ac_compile\"") >&5
10401 (eval $ac_compile) 2>&5
10403 echo "$as_me:10403: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -s conftest.$ac_objext'
10406 { (eval echo "$as_me:10406: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:10409: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10413 echo "$as_me: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10416 rm -f conftest.$ac_objext
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:10419: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10422 echo "$as_me:10422: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest.$ac_objext'
10425 { (eval echo "$as_me:10425: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:10428: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_sys_largefile_CC=' -n32'; break
10432 echo "$as_me: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10435 rm -f conftest.$ac_objext
10439 rm -f conftest.$ac_ext
10442 echo "$as_me:10442: result: $ac_cv_sys_largefile_CC" >&5
10443 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10444 if test "$ac_cv_sys_largefile_CC" != no; then
10445 CC=$CC$ac_cv_sys_largefile_CC
10448 echo "$as_me:10448: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10449 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10450 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 ac_cv_sys_file_offset_bits=no
10455 cat >conftest.$ac_ext <<_ACEOF
10456 #line 10456 "configure"
10457 #include "confdefs.h"
10458 #include <sys/types.h>
10459 /* Check that off_t can represent 2**63 - 1 correctly.
10460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10461 since some C++ compilers masquerading as C compilers
10462 incorrectly reject 9223372036854775807. */
10463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10465 && LARGE_OFF_T % 2147483647 == 1)
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:10476: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:10479: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:10482: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:10485: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10489 echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10492 rm -f conftest.$ac_objext conftest.$ac_ext
10493 cat >conftest.$ac_ext <<_ACEOF
10494 #line 10494 "configure"
10495 #include "confdefs.h"
10496 #define _FILE_OFFSET_BITS 64
10497 #include <sys/types.h>
10498 /* Check that off_t can represent 2**63 - 1 correctly.
10499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10500 since some C++ compilers masquerading as C compilers
10501 incorrectly reject 9223372036854775807. */
10502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10504 && LARGE_OFF_T % 2147483647 == 1)
10514 rm -f conftest.$ac_objext
10515 if { (eval echo "$as_me:10515: \"$ac_compile\"") >&5
10516 (eval $ac_compile) 2>&5
10518 echo "$as_me:10518: \$? = $ac_status" >&5
10519 (exit $ac_status); } &&
10520 { ac_try='test -s conftest.$ac_objext'
10521 { (eval echo "$as_me:10521: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10524 echo "$as_me:10524: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10526 ac_cv_sys_file_offset_bits=64; break
10528 echo "$as_me: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10531 rm -f conftest.$ac_objext conftest.$ac_ext
10535 echo "$as_me:10535: result: $ac_cv_sys_file_offset_bits" >&5
10536 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10537 if test "$ac_cv_sys_file_offset_bits" != no; then
10539 cat >>confdefs.h <<EOF
10540 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10545 echo "$as_me:10545: checking for _LARGE_FILES value needed for large files" >&5
10546 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10547 if test "${ac_cv_sys_large_files+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 ac_cv_sys_large_files=no
10552 cat >conftest.$ac_ext <<_ACEOF
10553 #line 10553 "configure"
10554 #include "confdefs.h"
10555 #include <sys/types.h>
10556 /* Check that off_t can represent 2**63 - 1 correctly.
10557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10558 since some C++ compilers masquerading as C compilers
10559 incorrectly reject 9223372036854775807. */
10560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10562 && LARGE_OFF_T % 2147483647 == 1)
10572 rm -f conftest.$ac_objext
10573 if { (eval echo "$as_me:10573: \"$ac_compile\"") >&5
10574 (eval $ac_compile) 2>&5
10576 echo "$as_me:10576: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -s conftest.$ac_objext'
10579 { (eval echo "$as_me:10579: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:10582: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10586 echo "$as_me: failed program was:" >&5
10587 cat conftest.$ac_ext >&5
10589 rm -f conftest.$ac_objext conftest.$ac_ext
10590 cat >conftest.$ac_ext <<_ACEOF
10591 #line 10591 "configure"
10592 #include "confdefs.h"
10593 #define _LARGE_FILES 1
10594 #include <sys/types.h>
10595 /* Check that off_t can represent 2**63 - 1 correctly.
10596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10597 since some C++ compilers masquerading as C compilers
10598 incorrectly reject 9223372036854775807. */
10599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10601 && LARGE_OFF_T % 2147483647 == 1)
10611 rm -f conftest.$ac_objext
10612 if { (eval echo "$as_me:10612: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:10618: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10621 echo "$as_me:10621: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_sys_large_files=1; break
10625 echo "$as_me: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10628 rm -f conftest.$ac_objext conftest.$ac_ext
10632 echo "$as_me:10632: result: $ac_cv_sys_large_files" >&5
10633 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10634 if test "$ac_cv_sys_large_files" != no; then
10636 cat >>confdefs.h <<EOF
10637 #define _LARGE_FILES $ac_cv_sys_large_files
10644 if test "$enable_largefile" != no ; then
10645 echo "$as_me:10645: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10646 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10647 if test "${ac_cv_sys_largefile_source+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 ac_cv_sys_largefile_source=no
10652 cat >conftest.$ac_ext <<_ACEOF
10653 #line 10653 "configure"
10654 #include "confdefs.h"
10664 rm -f conftest.$ac_objext
10665 if { (eval echo "$as_me:10665: \"$ac_compile\"") >&5
10666 (eval $ac_compile) 2>&5
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -s conftest.$ac_objext'
10671 { (eval echo "$as_me:10671: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:10674: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10678 echo "$as_me: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10681 rm -f conftest.$ac_objext conftest.$ac_ext
10682 cat >conftest.$ac_ext <<_ACEOF
10683 #line 10683 "configure"
10684 #include "confdefs.h"
10685 #define _LARGEFILE_SOURCE 1
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:10696: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>&5
10699 echo "$as_me:10699: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -s conftest.$ac_objext'
10702 { (eval echo "$as_me:10702: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10705 echo "$as_me:10705: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 ac_cv_sys_largefile_source=1; break
10709 echo "$as_me: failed program was:" >&5
10710 cat conftest.$ac_ext >&5
10712 rm -f conftest.$ac_objext conftest.$ac_ext
10716 echo "$as_me:10716: result: $ac_cv_sys_largefile_source" >&5
10717 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10718 if test "$ac_cv_sys_largefile_source" != no; then
10720 cat >>confdefs.h <<EOF
10721 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10727 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10728 # in glibc 2.1.3, but that breaks too many other things.
10729 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10730 echo "$as_me:10730: checking for fseeko" >&5
10731 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10732 if test "${ac_cv_func_fseeko+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10736 #line 10736 "configure"
10737 #include "confdefs.h"
10742 return fseeko && fseeko (stdin, 0, 0);
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (eval echo "$as_me:10748: \"$ac_link\"") >&5
10749 (eval $ac_link) 2>&5
10751 echo "$as_me:10751: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -s conftest$ac_exeext'
10754 { (eval echo "$as_me:10754: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:10757: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_cv_func_fseeko=yes
10761 echo "$as_me: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 ac_cv_func_fseeko=no
10765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10767 echo "$as_me:10767: result: $ac_cv_func_fseeko" >&5
10768 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10769 if test $ac_cv_func_fseeko = yes; then
10771 cat >>confdefs.h <<\EOF
10772 #define HAVE_FSEEKO 1
10777 # Normally we would collect these definitions in the config.h,
10778 # but (like _XOPEN_SOURCE), some environments rely on having these
10779 # defined before any of the system headers are included. Another
10780 # case comes up with C++, e.g., on AIX the compiler compiles the
10781 # header files by themselves before looking at the body files it is
10782 # told to compile. For ncurses, those header files do not include
10784 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10785 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10786 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10788 echo "$as_me:10788: checking whether to use struct dirent64" >&5
10789 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10790 if test "${cf_cv_struct_dirent64+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 cat >conftest.$ac_ext <<_ACEOF
10795 #line 10795 "configure"
10796 #include "confdefs.h"
10798 #include <sys/types.h>
10799 #include <dirent.h>
10805 /* if transitional largefile support is setup, this is true */
10806 extern struct dirent64 * readdir(DIR *);
10807 struct dirent64 *x = readdir((DIR *)0);
10808 struct dirent *y = readdir((DIR *)0);
10815 rm -f conftest.$ac_objext
10816 if { (eval echo "$as_me:10816: \"$ac_compile\"") >&5
10817 (eval $ac_compile) 2>&5
10819 echo "$as_me:10819: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:10822: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:10825: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 cf_cv_struct_dirent64=yes
10829 echo "$as_me: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10831 cf_cv_struct_dirent64=no
10833 rm -f conftest.$ac_objext conftest.$ac_ext
10836 echo "$as_me:10836: result: $cf_cv_struct_dirent64" >&5
10837 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10838 test "$cf_cv_struct_dirent64" = yes &&
10839 cat >>confdefs.h <<\EOF
10840 #define HAVE_STRUCT_DIRENT64 1
10845 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10846 echo "$as_me:10846: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10847 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10849 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10850 if test "${enable_tparm_varargs+set}" = set; then
10851 enableval="$enable_tparm_varargs"
10852 with_tparm_varargs=$enableval
10854 with_tparm_varargs=yes
10856 echo "$as_me:10856: result: $with_tparm_varargs" >&5
10857 echo "${ECHO_T}$with_tparm_varargs" >&6
10858 NCURSES_TPARM_VARARGS=0
10859 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
10861 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10862 if test "$with_ticlib" != no ; then
10863 echo "$as_me:10863: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10864 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10866 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10867 if test "${enable_tic_depends+set}" = set; then
10868 enableval="$enable_tic_depends"
10869 with_tic_depends=$enableval
10871 with_tic_depends=yes
10873 echo "$as_me:10873: result: $with_tic_depends" >&5
10874 echo "${ECHO_T}$with_tic_depends" >&6
10876 with_tic_depends=no
10879 ### use option --with-bool to override bool's type
10880 echo "$as_me:10880: checking for type of bool" >&5
10881 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10883 # Check whether --with-bool or --without-bool was given.
10884 if test "${with_bool+set}" = set; then
10885 withval="$with_bool"
10886 NCURSES_BOOL="$withval"
10890 echo "$as_me:10890: result: $NCURSES_BOOL" >&5
10891 echo "${ECHO_T}$NCURSES_BOOL" >&6
10893 echo "$as_me:10893: checking for alternate terminal capabilities file" >&5
10894 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10896 # Check whether --with-caps or --without-caps was given.
10897 if test "${with_caps+set}" = set; then
10898 withval="$with_caps"
10899 TERMINFO_CAPS=Caps.$withval
10903 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10904 echo "$as_me:10904: result: $TERMINFO_CAPS" >&5
10905 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10907 ### use option --with-chtype to override chtype's type
10908 echo "$as_me:10908: checking for type of chtype" >&5
10909 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10911 # Check whether --with-chtype or --without-chtype was given.
10912 if test "${with_chtype+set}" = set; then
10913 withval="$with_chtype"
10914 NCURSES_CHTYPE="$withval"
10916 NCURSES_CHTYPE=$cf_dft_chtype
10918 echo "$as_me:10918: result: $NCURSES_CHTYPE" >&5
10919 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10921 ### use option --with-ospeed to override ospeed's type
10922 echo "$as_me:10922: checking for type of ospeed" >&5
10923 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10925 # Check whether --with-ospeed or --without-ospeed was given.
10926 if test "${with_ospeed+set}" = set; then
10927 withval="$with_ospeed"
10928 NCURSES_OSPEED="$withval"
10930 NCURSES_OSPEED=short
10932 echo "$as_me:10932: result: $NCURSES_OSPEED" >&5
10933 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10935 ### use option --with-mmask-t to override mmask_t's type
10936 echo "$as_me:10936: checking for type of mmask_t" >&5
10937 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10939 # Check whether --with-mmask-t or --without-mmask-t was given.
10940 if test "${with_mmask_t+set}" = set; then
10941 withval="$with_mmask_t"
10942 NCURSES_MMASK_T="$withval"
10944 NCURSES_MMASK_T=$cf_dft_mmask_t
10946 echo "$as_me:10946: result: $NCURSES_MMASK_T" >&5
10947 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10949 ### use option --with-ccharw-max to override CCHARW_MAX size
10950 echo "$as_me:10950: checking for size CCHARW_MAX" >&5
10951 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10953 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10954 if test "${with_ccharw_max+set}" = set; then
10955 withval="$with_ccharw_max"
10956 NCURSES_CCHARW_MAX="$withval"
10958 NCURSES_CCHARW_MAX=5
10960 echo "$as_me:10960: result: $NCURSES_CCHARW_MAX" >&5
10961 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10963 ### use option --with-tparm-arg to override tparm's argument type
10964 echo "$as_me:10964: checking for type of tparm args" >&5
10965 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10967 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10968 if test "${with_tparm_arg+set}" = set; then
10969 withval="$with_tparm_arg"
10970 NCURSES_TPARM_ARG="$withval"
10972 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
10974 echo "$as_me:10974: result: $NCURSES_TPARM_ARG" >&5
10975 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10977 ### Enable compiling-in rcs id's
10978 echo "$as_me:10978: checking if RCS identifiers should be compiled-in" >&5
10979 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10981 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10982 if test "${with_rcs_ids+set}" = set; then
10983 withval="$with_rcs_ids"
10984 with_rcs_ids=$withval
10988 echo "$as_me:10988: result: $with_rcs_ids" >&5
10989 echo "${ECHO_T}$with_rcs_ids" >&6
10990 test "x$with_rcs_ids" = xyes &&
10991 cat >>confdefs.h <<\EOF
10992 #define USE_RCS_IDS 1
10995 ###############################################################################
10997 echo "$as_me:10997: checking format of man-pages" >&5
10998 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11000 # Check whether --with-manpage-format or --without-manpage-format was given.
11001 if test "${with_manpage_format+set}" = set; then
11002 withval="$with_manpage_format"
11003 MANPAGE_FORMAT=$withval
11005 MANPAGE_FORMAT=unknown
11008 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11009 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11013 case $MANPAGE_FORMAT in
11015 if test -z "$MANPATH" ; then
11016 MANPATH="/usr/man:/usr/share/man"
11019 # look for the 'date' man-page (it's most likely to be installed!)
11025 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11026 for cf_dir in $MANPATH; do
11027 test -z "$cf_dir" && cf_dir=/usr/man
11028 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
11030 cf_test=`echo $cf_name | sed -e 's/*//'`
11031 if test "x$cf_test" = "x$cf_name" ; then
11034 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11035 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11036 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11037 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11051 # if we found a match in either man* or cat*, stop looking
11052 if test -n "$MANPAGE_FORMAT" ; then
11054 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11055 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11061 test $cf_found=yes && break
11064 # only check the first directory in $MANPATH where we find manpages
11065 if test -n "$MANPAGE_FORMAT" ; then
11069 # if we did not find the example, just assume it is normal
11070 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11074 for cf_option in $MANPAGE_FORMAT; do
11076 (gzip|compress|BSDI|normal|formatted|catonly)
11079 cf_unknown="$cf_unknown $cf_option"
11086 echo "$as_me:11086: result: $MANPAGE_FORMAT" >&5
11087 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11088 if test -n "$cf_unknown" ; then
11089 { echo "$as_me:11089: WARNING: Unexpected manpage-format $cf_unknown" >&5
11090 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11093 echo "$as_me:11093: checking for manpage renaming" >&5
11094 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11096 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11097 if test "${with_manpage_renames+set}" = set; then
11098 withval="$with_manpage_renames"
11099 MANPAGE_RENAMES=$withval
11101 MANPAGE_RENAMES=yes
11104 case ".$MANPAGE_RENAMES" in
11108 # Debian 'man' program?
11109 if test -f /etc/debian_version ; then
11110 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11117 if test "$MANPAGE_RENAMES" != no ; then
11118 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11119 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11120 elif test ! -f $MANPAGE_RENAMES ; then
11121 { { echo "$as_me:11121: error: not a filename: $MANPAGE_RENAMES" >&5
11122 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11123 { (exit 1); exit 1; }; }
11126 test ! -d man && mkdir man
11128 # Construct a sed-script to perform renaming within man-pages
11129 if test -n "$MANPAGE_RENAMES" ; then
11130 test ! -d man && mkdir man
11131 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11135 echo "$as_me:11135: result: $MANPAGE_RENAMES" >&5
11136 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11138 echo "$as_me:11138: checking if manpage aliases will be installed" >&5
11139 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11141 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11142 if test "${with_manpage_aliases+set}" = set; then
11143 withval="$with_manpage_aliases"
11144 MANPAGE_ALIASES=$withval
11146 MANPAGE_ALIASES=yes
11149 echo "$as_me:11149: result: $MANPAGE_ALIASES" >&5
11150 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11154 cf_use_symlinks=yes
11161 MANPAGE_SYMLINKS=no
11162 if test "$MANPAGE_ALIASES" = yes ; then
11163 echo "$as_me:11163: checking if manpage symlinks should be used" >&5
11164 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11166 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11167 if test "${with_manpage_symlinks+set}" = set; then
11168 withval="$with_manpage_symlinks"
11169 MANPAGE_SYMLINKS=$withval
11171 MANPAGE_SYMLINKS=$cf_use_symlinks
11174 if test "$$cf_use_symlinks" = no; then
11175 if test "$MANPAGE_SYMLINKS" = yes ; then
11176 { echo "$as_me:11176: WARNING: cannot make symlinks" >&5
11177 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11178 MANPAGE_SYMLINKS=no
11182 echo "$as_me:11182: result: $MANPAGE_SYMLINKS" >&5
11183 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11186 echo "$as_me:11186: checking for manpage tbl" >&5
11187 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11189 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11190 if test "${with_manpage_tbl+set}" = set; then
11191 withval="$with_manpage_tbl"
11192 MANPAGE_TBL=$withval
11197 echo "$as_me:11197: result: $MANPAGE_TBL" >&5
11198 echo "${ECHO_T}$MANPAGE_TBL" >&6
11200 if test "$prefix" = "NONE" ; then
11201 cf_prefix="$ac_default_prefix"
11203 cf_prefix="$prefix"
11206 case "$MANPAGE_FORMAT" in
11221 test ! -d man && mkdir man
11225 case "$MANPAGE_FORMAT" in
11228 cf_compress=compress
11236 cf_edit_man=./edit_man.sh
11237 cf_man_alias=`pwd`/man_alias.sed
11239 cat >$cf_edit_man <<CF_EOF
11241 # this script is generated by the configure-script CF_MAN_PAGES macro.
11243 prefix="$cf_prefix"
11244 datarootdir="$datarootdir"
11247 NCURSES_MAJOR="$NCURSES_MAJOR"
11248 NCURSES_MINOR="$NCURSES_MINOR"
11249 NCURSES_PATCH="$NCURSES_PATCH"
11251 NCURSES_OSPEED="$NCURSES_OSPEED"
11252 TERMINFO="$TERMINFO"
11255 INSTALL_DATA="$INSTALL_DATA"
11257 transform="$program_transform_name"
11259 TMP=\${TMPDIR:=/tmp}/man\$\$
11260 trap "rm -f \$TMP" 0 1 2 5 15
11272 top_srcdir=\$srcdir/..
11275 if test "\$form" = normal ; then
11276 if test "$cf_format" = yes ; then
11277 if test "$cf_inboth" = no ; then
11278 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11282 cf_subdir=\$mandir/man
11283 cf_tables=$MANPAGE_TBL
11285 cf_subdir=\$mandir/cat
11289 # process the list of source-files
11294 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11295 if test \$verb = installing ; then
11296 if test ! -d \$cf_subdir\${section} ; then
11297 mkdir -p \$cf_subdir\$section
11301 # replace variables in man page
11302 if test ! -f $cf_man_alias ; then
11303 cat >>$cf_man_alias <<-CF_EOF2
11304 s,@DATADIR@,\$datadir,g
11305 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11306 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11307 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11308 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11309 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11310 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11313 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
11315 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11316 cf_name=`echo $cf_name|sed "$program_transform_name"`
11317 cat >>$cf_edit_man <<-CF_EOF
11318 s,@$cf_NAME@,$cf_name,g
11322 cat >>$cf_edit_man <<CF_EOF
11324 echo "...made $cf_man_alias"
11328 cf_source=\`basename \$i\`
11329 inalias=\$cf_source
11330 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11331 if test ! -f \$inalias ; then
11332 echo .. skipped \$cf_source
11337 if test "$MANPAGE_ALIASES" != no ; then
11338 cat >>$cf_edit_man <<CF_EOF
11340 test $with_curses_h = yes && nCurses=ncurses.3x
11341 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11345 if test "$MANPAGE_RENAMES" = no ; then
11346 cat >>$cf_edit_man <<CF_EOF
11347 # perform program transformations for section 1 man pages
11348 if test \$section = 1 ; then
11349 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11351 cf_target=\$cf_subdir\${section}/\$cf_source
11355 cat >>$cf_edit_man <<CF_EOF
11356 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11357 if test -z "\$cf_target" ; then
11358 echo '? missing rename for '\$cf_source
11359 cf_target="\$cf_source"
11361 cf_target="\$cf_subdir\${section}/\${cf_target}"
11366 cat >>$cf_edit_man <<CF_EOF
11367 sed -f $cf_man_alias \\
11370 if test -f $MANPAGE_RENAMES ; then
11371 cat >>$cf_edit_man <<CF_EOF
11372 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11375 cat >>$cf_edit_man <<CF_EOF
11380 cat >>$cf_edit_man <<CF_EOF
11381 if test \$cf_tables = yes ; then
11382 tbl \$TMP >\$TMP.out
11387 if test $with_overwrite != yes ; then
11388 cat >>$cf_edit_man <<CF_EOF
11389 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11394 if test $with_curses_h != yes ; then
11395 cat >>$cf_edit_man <<CF_EOF
11396 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11401 cat >>$cf_edit_man <<CF_EOF
11402 if test \$form = format ; then
11403 nroff -man \$TMP >\$TMP.out
11408 if test -n "$cf_compress" ; then
11409 cat >>$cf_edit_man <<CF_EOF
11410 if test \$verb = installing ; then
11411 if ( $cf_compress -f \$TMP )
11413 mv \$TMP.$cf_so_strip \$TMP
11416 cf_target="\$cf_target.$cf_so_strip"
11420 case "$MANPAGE_FORMAT" in
11422 cat >>$cf_edit_man <<CF_EOF
11423 if test \$form = format ; then
11424 # BSDI installs only .0 suffixes in the cat directories
11425 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11431 cat >>$cf_edit_man <<CF_EOF
11432 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11433 if test \$verb = installing ; then
11434 echo \$verb \$cf_target
11435 \$INSTALL_DATA \$TMP \$cf_target
11436 test -d \$cf_subdir\${section} &&
11437 test -n "\$aliases" && (
11438 cd \$cf_subdir\${section} && (
11439 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11440 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11441 cf_target=\`basename \$cf_target\`
11442 for cf_alias in \$aliases
11444 if test \$section = 1 ; then
11445 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11448 if test "$MANPAGE_SYMLINKS" = yes ; then
11449 if test -f \$cf_alias\${suffix} ; then
11450 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11455 echo .. \$verb alias \$cf_alias\${suffix}
11459 cat >>$cf_edit_man <<CF_EOF
11460 $LN_S \$cf_target \$cf_alias\${suffix}
11464 cat >>$cf_edit_man <<CF_EOF
11465 rm -f \$cf_alias\${suffix}
11466 $LN_S \$cf_target \$cf_alias\${suffix}
11470 cat >>$cf_edit_man <<CF_EOF
11471 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11472 echo ".so \$cf_source" >\$TMP
11474 if test -n "$cf_compress" ; then
11475 cat >>$cf_edit_man <<CF_EOF
11476 if test -n "$cf_so_strip" ; then
11477 $cf_compress -f \$TMP
11478 mv \$TMP.$cf_so_strip \$TMP
11482 cat >>$cf_edit_man <<CF_EOF
11483 echo .. \$verb alias \$cf_alias\${suffix}
11484 rm -f \$cf_alias\${suffix}
11485 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11490 elif test \$verb = removing ; then
11491 test -f \$cf_target && (
11492 echo \$verb \$cf_target
11495 test -d \$cf_subdir\${section} &&
11496 test -n "\$aliases" && (
11497 cd \$cf_subdir\${section} && (
11498 for cf_alias in \$aliases
11500 if test \$section = 1 ; then
11501 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11504 echo .. \$verb alias \$cf_alias\${suffix}
11505 rm -f \$cf_alias\${suffix}
11517 if test $cf_inboth = yes ; then
11518 if test \$form != format ; then
11519 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11525 chmod 755 $cf_edit_man
11527 ###############################################################################
11529 ### Note that some functions (such as const) are normally disabled anyway.
11530 echo "$as_me:11530: checking if you want to build with function extensions" >&5
11531 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11533 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11534 if test "${enable_ext_funcs+set}" = set; then
11535 enableval="$enable_ext_funcs"
11536 with_ext_funcs=$enableval
11540 echo "$as_me:11540: result: $with_ext_funcs" >&5
11541 echo "${ECHO_T}$with_ext_funcs" >&6
11542 if test "x$with_ext_funcs" = xyes ; then
11543 NCURSES_EXT_FUNCS=1
11545 cat >>confdefs.h <<\EOF
11546 #define HAVE_ASSUME_DEFAULT_COLORS 1
11549 cat >>confdefs.h <<\EOF
11550 #define HAVE_CURSES_VERSION 1
11553 cat >>confdefs.h <<\EOF
11554 #define HAVE_HAS_KEY 1
11557 cat >>confdefs.h <<\EOF
11558 #define HAVE_RESIZETERM 1
11561 cat >>confdefs.h <<\EOF
11562 #define HAVE_RESIZE_TERM 1
11565 cat >>confdefs.h <<\EOF
11566 #define HAVE_TERM_ENTRY_H 1
11569 cat >>confdefs.h <<\EOF
11570 #define HAVE_USE_DEFAULT_COLORS 1
11573 cat >>confdefs.h <<\EOF
11574 #define HAVE_USE_SCREEN 1
11577 cat >>confdefs.h <<\EOF
11578 #define HAVE_USE_WINDOW 1
11581 cat >>confdefs.h <<\EOF
11582 #define HAVE_WRESIZE 1
11585 cat >>confdefs.h <<\EOF
11586 #define NCURSES_EXT_FUNCS 1
11589 GENERATED_EXT_FUNCS=generated
11591 NCURSES_EXT_FUNCS=0
11592 GENERATED_EXT_FUNCS=
11595 echo "$as_me:11595: checking if you want to build with SCREEN extensions" >&5
11596 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
11598 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11599 if test "${enable_sp_funcs+set}" = set; then
11600 enableval="$enable_sp_funcs"
11601 with_sp_funcs=$enableval
11603 with_sp_funcs=$cf_dft_ext_spfuncs
11605 echo "$as_me:11605: result: $with_sp_funcs" >&5
11606 echo "${ECHO_T}$with_sp_funcs" >&6
11607 if test "x$with_sp_funcs" = xyes ; then
11610 cat >>confdefs.h <<\EOF
11611 #define NCURSES_SP_FUNCS 1
11614 GENERATED_SP_FUNCS=generated
11617 GENERATED_SP_FUNCS=
11620 echo "$as_me:11620: checking if you want to build with terminal-driver" >&5
11621 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
11623 # Check whether --enable-term-driver or --disable-term-driver was given.
11624 if test "${enable_term_driver+set}" = set; then
11625 enableval="$enable_term_driver"
11626 with_term_driver=$enableval
11628 with_term_driver=no
11630 echo "$as_me:11630: result: $with_term_driver" >&5
11631 echo "${ECHO_T}$with_term_driver" >&6
11632 if test "x$with_term_driver" = xyes ; then
11634 cat >>confdefs.h <<\EOF
11635 #define USE_TERM_DRIVER 1
11638 if test "x$with_termlib" != xno ; then
11639 { { echo "$as_me:11639: error: The term-driver option conflicts with the termlib option" >&5
11640 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
11641 { (exit 1); exit 1; }; }
11643 if test "x$with_sp_funcs" != xyes ; then
11644 { { echo "$as_me:11644: error: The term-driver option relies upon sp-funcs" >&5
11645 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11646 { (exit 1); exit 1; }; }
11650 ### use option --enable-const to turn on use of const beyond that in XSI.
11651 echo "$as_me:11651: checking for extended use of const keyword" >&5
11652 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11654 # Check whether --enable-const or --disable-const was given.
11655 if test "${enable_const+set}" = set; then
11656 enableval="$enable_const"
11657 with_ext_const=$enableval
11659 with_ext_const=$cf_dft_ext_const
11661 echo "$as_me:11661: result: $with_ext_const" >&5
11662 echo "${ECHO_T}$with_ext_const" >&6
11663 NCURSES_CONST='/*nothing*/'
11664 if test "x$with_ext_const" = xyes ; then
11665 NCURSES_CONST=const
11668 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11669 echo "$as_me:11669: checking if you want to use extended colors" >&5
11670 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11672 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11673 if test "${enable_ext_colors+set}" = set; then
11674 enableval="$enable_ext_colors"
11675 with_ext_colors=$enableval
11677 with_ext_colors=$cf_dft_ext_colors
11679 echo "$as_me:11679: result: $with_ext_colors" >&5
11680 echo "${ECHO_T}$with_ext_colors" >&6
11681 NCURSES_EXT_COLORS=0
11682 if test "x$with_ext_colors" = xyes ; then
11683 if test "x$with_widec" != xyes ; then
11684 { echo "$as_me:11684: WARNING: This option applies only to wide-character library" >&5
11685 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
11687 # cannot be ABI 5 since it changes sizeof(cchar_t)
11689 if test "${with_abi_version+set}" != set; then
11690 case $cf_cv_rel_version in
11692 cf_cv_rel_version=6.0
11693 cf_cv_abi_version=6
11694 { echo "$as_me:11694: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11695 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11700 NCURSES_EXT_COLORS=1
11702 cat >>confdefs.h <<\EOF
11703 #define NCURSES_EXT_COLORS 1
11709 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11710 echo "$as_me:11710: checking if you want to use extended mouse encoding" >&5
11711 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11713 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11714 if test "${enable_ext_mouse+set}" = set; then
11715 enableval="$enable_ext_mouse"
11716 with_ext_mouse=$enableval
11718 with_ext_mouse=$cf_dft_ext_mouse
11720 echo "$as_me:11720: result: $with_ext_mouse" >&5
11721 echo "${ECHO_T}$with_ext_mouse" >&6
11722 NCURSES_MOUSE_VERSION=1
11723 if test "x$with_ext_mouse" = xyes ; then
11724 NCURSES_MOUSE_VERSION=2
11726 if test "${with_abi_version+set}" != set; then
11727 case $cf_cv_rel_version in
11729 cf_cv_rel_version=6.0
11730 cf_cv_abi_version=6
11731 { echo "$as_me:11731: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11732 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11739 ### use option --enable-ext-putwin to turn on extended screendumps
11740 echo "$as_me:11740: checking if you want to use extended putwin/screendump" >&5
11741 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
11743 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
11744 if test "${enable_ext_putwin+set}" = set; then
11745 enableval="$enable_ext_putwin"
11746 with_ext_putwin=$enableval
11748 with_ext_putwin=$cf_dft_ext_putwin
11750 echo "$as_me:11750: result: $with_ext_putwin" >&5
11751 echo "${ECHO_T}$with_ext_putwin" >&6
11752 if test "x$with_ext_putwin" = xyes ; then
11754 cat >>confdefs.h <<\EOF
11755 #define NCURSES_EXT_PUTWIN 1
11760 echo "$as_me:11760: checking if you want \$NCURSES_NO_PADDING code" >&5
11761 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11763 # Check whether --enable-no-padding or --disable-no-padding was given.
11764 if test "${enable_no_padding+set}" = set; then
11765 enableval="$enable_no_padding"
11766 with_no_padding=$enableval
11768 with_no_padding=$with_ext_funcs
11770 echo "$as_me:11770: result: $with_no_padding" >&5
11771 echo "${ECHO_T}$with_no_padding" >&6
11772 test "x$with_no_padding" = xyes &&
11773 cat >>confdefs.h <<\EOF
11774 #define NCURSES_NO_PADDING 1
11777 echo "$as_me:11777: checking for ANSI C header files" >&5
11778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11779 if test "${ac_cv_header_stdc+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 cat >conftest.$ac_ext <<_ACEOF
11783 #line 11783 "configure"
11784 #include "confdefs.h"
11785 #include <stdlib.h>
11786 #include <stdarg.h>
11787 #include <string.h>
11791 if { (eval echo "$as_me:11791: \"$ac_cpp conftest.$ac_ext\"") >&5
11792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11794 egrep -v '^ *\+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:11797: \$? = $ac_status" >&5
11798 (exit $ac_status); } >/dev/null; then
11799 if test -s conftest.err; then
11800 ac_cpp_err=$ac_c_preproc_warn_flag
11807 if test -z "$ac_cpp_err"; then
11808 ac_cv_header_stdc=yes
11810 echo "$as_me: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11812 ac_cv_header_stdc=no
11814 rm -f conftest.err conftest.$ac_ext
11816 if test $ac_cv_header_stdc = yes; then
11817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11818 cat >conftest.$ac_ext <<_ACEOF
11819 #line 11819 "configure"
11820 #include "confdefs.h"
11821 #include <string.h>
11824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11825 egrep "memchr" >/dev/null 2>&1; then
11828 ac_cv_header_stdc=no
11834 if test $ac_cv_header_stdc = yes; then
11835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11836 cat >conftest.$ac_ext <<_ACEOF
11837 #line 11837 "configure"
11838 #include "confdefs.h"
11839 #include <stdlib.h>
11842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11843 egrep "free" >/dev/null 2>&1; then
11846 ac_cv_header_stdc=no
11852 if test $ac_cv_header_stdc = yes; then
11853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11854 if test "$cross_compiling" = yes; then
11857 cat >conftest.$ac_ext <<_ACEOF
11858 #line 11858 "configure"
11859 #include "confdefs.h"
11861 #if ((' ' & 0x0FF) == 0x020)
11862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11865 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11866 || ('j' <= (c) && (c) <= 'r') \
11867 || ('s' <= (c) && (c) <= 'z'))
11868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11876 for (i = 0; i < 256; i++)
11877 if (XOR (islower (i), ISLOWER (i))
11878 || toupper (i) != TOUPPER (i))
11879 $ac_main_return(2);
11880 $ac_main_return (0);
11883 rm -f conftest$ac_exeext
11884 if { (eval echo "$as_me:11884: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>&5
11887 echo "$as_me:11887: \$? = $ac_status" >&5
11888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11889 { (eval echo "$as_me:11889: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:11892: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11896 echo "$as_me: program exited with status $ac_status" >&5
11897 echo "$as_me: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 ac_cv_header_stdc=no
11901 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11905 echo "$as_me:11905: result: $ac_cv_header_stdc" >&5
11906 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11907 if test $ac_cv_header_stdc = yes; then
11909 cat >>confdefs.h <<\EOF
11910 #define STDC_HEADERS 1
11915 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11917 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11918 inttypes.h stdint.h unistd.h
11920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11921 echo "$as_me:11921: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line 11927 "configure"
11928 #include "confdefs.h"
11929 $ac_includes_default
11930 #include <$ac_header>
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:11933: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>&5
11936 echo "$as_me:11936: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -s conftest.$ac_objext'
11939 { (eval echo "$as_me:11939: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:11942: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 eval "$as_ac_Header=yes"
11946 echo "$as_me: failed program was:" >&5
11947 cat conftest.$ac_ext >&5
11948 eval "$as_ac_Header=no"
11950 rm -f conftest.$ac_objext conftest.$ac_ext
11952 echo "$as_me:11952: result: `eval echo '${'$as_ac_Header'}'`" >&5
11953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11955 cat >>confdefs.h <<EOF
11956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11962 echo "$as_me:11962: checking for signed char" >&5
11963 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11964 if test "${ac_cv_type_signed_char+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 cat >conftest.$ac_ext <<_ACEOF
11968 #line 11968 "configure"
11969 #include "confdefs.h"
11970 $ac_includes_default
11974 if ((signed char *) 0)
11976 if (sizeof (signed char))
11982 rm -f conftest.$ac_objext
11983 if { (eval echo "$as_me:11983: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>&5
11986 echo "$as_me:11986: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -s conftest.$ac_objext'
11989 { (eval echo "$as_me:11989: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:11992: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_cv_type_signed_char=yes
11996 echo "$as_me: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 ac_cv_type_signed_char=no
12000 rm -f conftest.$ac_objext conftest.$ac_ext
12002 echo "$as_me:12002: result: $ac_cv_type_signed_char" >&5
12003 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12005 echo "$as_me:12005: checking size of signed char" >&5
12006 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12007 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 if test "$ac_cv_type_signed_char" = yes; then
12011 if test "$cross_compiling" = yes; then
12012 # Depending upon the size, compute the lo and hi bounds.
12013 cat >conftest.$ac_ext <<_ACEOF
12014 #line 12014 "configure"
12015 #include "confdefs.h"
12016 $ac_includes_default
12020 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12025 rm -f conftest.$ac_objext
12026 if { (eval echo "$as_me:12026: \"$ac_compile\"") >&5
12027 (eval $ac_compile) 2>&5
12029 echo "$as_me:12029: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -s conftest.$ac_objext'
12032 { (eval echo "$as_me:12032: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12035 echo "$as_me:12035: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12039 cat >conftest.$ac_ext <<_ACEOF
12040 #line 12040 "configure"
12041 #include "confdefs.h"
12042 $ac_includes_default
12046 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:12052: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>&5
12055 echo "$as_me:12055: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -s conftest.$ac_objext'
12058 { (eval echo "$as_me:12058: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:12061: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_hi=$ac_mid; break
12065 echo "$as_me: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12067 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12069 rm -f conftest.$ac_objext conftest.$ac_ext
12072 echo "$as_me: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12076 cat >conftest.$ac_ext <<_ACEOF
12077 #line 12077 "configure"
12078 #include "confdefs.h"
12079 $ac_includes_default
12083 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12088 rm -f conftest.$ac_objext
12089 if { (eval echo "$as_me:12089: \"$ac_compile\"") >&5
12090 (eval $ac_compile) 2>&5
12092 echo "$as_me:12092: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -s conftest.$ac_objext'
12095 { (eval echo "$as_me:12095: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12098 echo "$as_me:12098: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_lo=$ac_mid; break
12102 echo "$as_me: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12104 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12106 rm -f conftest.$ac_objext conftest.$ac_ext
12109 rm -f conftest.$ac_objext conftest.$ac_ext
12110 # Binary search between lo and hi bounds.
12111 while test "x$ac_lo" != "x$ac_hi"; do
12112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12113 cat >conftest.$ac_ext <<_ACEOF
12114 #line 12114 "configure"
12115 #include "confdefs.h"
12116 $ac_includes_default
12120 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:12126: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>&5
12129 echo "$as_me:12129: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:12132: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:12135: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12139 echo "$as_me: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 ac_lo=`expr $ac_mid + 1`
12143 rm -f conftest.$ac_objext conftest.$ac_ext
12145 ac_cv_sizeof_signed_char=$ac_lo
12147 if test "$cross_compiling" = yes; then
12148 { { echo "$as_me:12148: error: cannot run test program while cross compiling" >&5
12149 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12150 { (exit 1); exit 1; }; }
12152 cat >conftest.$ac_ext <<_ACEOF
12153 #line 12153 "configure"
12154 #include "confdefs.h"
12155 $ac_includes_default
12159 FILE *f = fopen ("conftest.val", "w");
12161 $ac_main_return (1);
12162 fprintf (f, "%d", (sizeof (signed char)));
12168 rm -f conftest$ac_exeext
12169 if { (eval echo "$as_me:12169: \"$ac_link\"") >&5
12170 (eval $ac_link) 2>&5
12172 echo "$as_me:12172: \$? = $ac_status" >&5
12173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12174 { (eval echo "$as_me:12174: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12177 echo "$as_me:12177: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_cv_sizeof_signed_char=`cat conftest.val`
12181 echo "$as_me: program exited with status $ac_status" >&5
12182 echo "$as_me: failed program was:" >&5
12183 cat conftest.$ac_ext >&5
12185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12190 ac_cv_sizeof_signed_char=0
12193 echo "$as_me:12193: result: $ac_cv_sizeof_signed_char" >&5
12194 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12195 cat >>confdefs.h <<EOF
12196 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12199 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12200 NCURSES_SBOOL="signed char"
12202 NCURSES_SBOOL="char"
12204 echo "$as_me:12204: checking if you want to use signed Boolean array in term.h" >&5
12205 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12207 # Check whether --enable-signed-char or --disable-signed-char was given.
12208 if test "${enable_signed_char+set}" = set; then
12209 enableval="$enable_signed_char"
12210 with_signed_char=$enableval
12212 with_signed_char=no
12214 echo "$as_me:12214: result: $with_signed_char" >&5
12215 echo "${ECHO_T}$with_signed_char" >&6
12216 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12218 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12219 echo "$as_me:12219: checking if you want SIGWINCH handler" >&5
12220 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12222 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12223 if test "${enable_sigwinch+set}" = set; then
12224 enableval="$enable_sigwinch"
12225 with_sigwinch=$enableval
12227 with_sigwinch=$with_ext_funcs
12229 echo "$as_me:12229: result: $with_sigwinch" >&5
12230 echo "${ECHO_T}$with_sigwinch" >&6
12231 test "x$with_sigwinch" = xyes &&
12232 cat >>confdefs.h <<\EOF
12233 #define USE_SIGWINCH 1
12236 ### use option --enable-tcap-names to allow user to define new capabilities
12237 echo "$as_me:12237: checking if you want user-definable terminal capabilities like termcap" >&5
12238 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12240 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12241 if test "${enable_tcap_names+set}" = set; then
12242 enableval="$enable_tcap_names"
12243 with_tcap_names=$enableval
12245 with_tcap_names=$with_ext_funcs
12247 echo "$as_me:12247: result: $with_tcap_names" >&5
12248 echo "${ECHO_T}$with_tcap_names" >&6
12250 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12252 ###############################################################################
12253 # These options are relatively safe to experiment with.
12255 echo "$as_me:12255: checking if you want all development code" >&5
12256 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
12258 # Check whether --with-develop or --without-develop was given.
12259 if test "${with_develop+set}" = set; then
12260 withval="$with_develop"
12261 with_develop=$withval
12265 echo "$as_me:12265: result: $with_develop" >&5
12266 echo "${ECHO_T}$with_develop" >&6
12268 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
12269 echo "$as_me:12269: checking if you want hard-tabs code" >&5
12270 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
12272 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
12273 if test "${enable_hard_tabs+set}" = set; then
12274 enableval="$enable_hard_tabs"
12277 enable_hard_tabs=$with_develop
12279 echo "$as_me:12279: result: $enable_hard_tabs" >&5
12280 echo "${ECHO_T}$enable_hard_tabs" >&6
12281 test "x$enable_hard_tabs" = xyes &&
12282 cat >>confdefs.h <<\EOF
12283 #define USE_HARD_TABS 1
12286 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
12287 echo "$as_me:12287: checking if you want limited support for xmc" >&5
12288 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
12290 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12291 if test "${enable_xmc_glitch+set}" = set; then
12292 enableval="$enable_xmc_glitch"
12295 enable_xmc_glitch=$with_develop
12297 echo "$as_me:12297: result: $enable_xmc_glitch" >&5
12298 echo "${ECHO_T}$enable_xmc_glitch" >&6
12299 test "x$enable_xmc_glitch" = xyes &&
12300 cat >>confdefs.h <<\EOF
12301 #define USE_XMC_SUPPORT 1
12304 ###############################################################################
12305 # These are just experimental, probably should not be in a package:
12307 echo "$as_me:12307: checking if you do not want to assume colors are white-on-black" >&5
12308 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
12310 # Check whether --enable-assumed-color or --disable-assumed-color was given.
12311 if test "${enable_assumed_color+set}" = set; then
12312 enableval="$enable_assumed_color"
12313 with_assumed_color=$enableval
12315 with_assumed_color=yes
12317 echo "$as_me:12317: result: $with_assumed_color" >&5
12318 echo "${ECHO_T}$with_assumed_color" >&6
12319 test "x$with_assumed_color" = xyes &&
12320 cat >>confdefs.h <<\EOF
12321 #define USE_ASSUMED_COLOR 1
12324 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
12325 echo "$as_me:12325: checking if you want hashmap scrolling-optimization code" >&5
12326 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
12328 # Check whether --enable-hashmap or --disable-hashmap was given.
12329 if test "${enable_hashmap+set}" = set; then
12330 enableval="$enable_hashmap"
12331 with_hashmap=$enableval
12335 echo "$as_me:12335: result: $with_hashmap" >&5
12336 echo "${ECHO_T}$with_hashmap" >&6
12337 test "x$with_hashmap" = xyes &&
12338 cat >>confdefs.h <<\EOF
12339 #define USE_HASHMAP 1
12342 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
12343 echo "$as_me:12343: checking if you want colorfgbg code" >&5
12344 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
12346 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
12347 if test "${enable_colorfgbg+set}" = set; then
12348 enableval="$enable_colorfgbg"
12349 with_colorfgbg=$enableval
12353 echo "$as_me:12353: result: $with_colorfgbg" >&5
12354 echo "${ECHO_T}$with_colorfgbg" >&6
12355 test "x$with_colorfgbg" = xyes &&
12356 cat >>confdefs.h <<\EOF
12357 #define USE_COLORFGBG 1
12360 ### use option --enable-interop to turn on use of bindings used for interop
12361 echo "$as_me:12361: checking if you want interop bindings" >&5
12362 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
12364 # Check whether --enable-interop or --disable-interop was given.
12365 if test "${enable_interop+set}" = set; then
12366 enableval="$enable_interop"
12367 with_exp_interop=$enableval
12369 with_exp_interop=$cf_dft_interop
12371 echo "$as_me:12371: result: $with_exp_interop" >&5
12372 echo "${ECHO_T}$with_exp_interop" >&6
12374 NCURSES_INTEROP_FUNCS=0
12375 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
12377 # This is still experimental (20080329), but should ultimately be moved to
12378 # the script-block --with-normal, etc.
12380 echo "$as_me:12380: checking if you want to link with the pthread library" >&5
12381 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12383 # Check whether --with-pthread or --without-pthread was given.
12384 if test "${with_pthread+set}" = set; then
12385 withval="$with_pthread"
12386 with_pthread=$withval
12390 echo "$as_me:12390: result: $with_pthread" >&5
12391 echo "${ECHO_T}$with_pthread" >&6
12393 if test "$with_pthread" != no ; then
12394 echo "$as_me:12394: checking for pthread.h" >&5
12395 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12396 if test "${ac_cv_header_pthread_h+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 cat >conftest.$ac_ext <<_ACEOF
12400 #line 12400 "configure"
12401 #include "confdefs.h"
12402 #include <pthread.h>
12404 if { (eval echo "$as_me:12404: \"$ac_cpp conftest.$ac_ext\"") >&5
12405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12407 egrep -v '^ *\+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:12410: \$? = $ac_status" >&5
12411 (exit $ac_status); } >/dev/null; then
12412 if test -s conftest.err; then
12413 ac_cpp_err=$ac_c_preproc_warn_flag
12420 if test -z "$ac_cpp_err"; then
12421 ac_cv_header_pthread_h=yes
12423 echo "$as_me: failed program was:" >&5
12424 cat conftest.$ac_ext >&5
12425 ac_cv_header_pthread_h=no
12427 rm -f conftest.err conftest.$ac_ext
12429 echo "$as_me:12429: result: $ac_cv_header_pthread_h" >&5
12430 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12431 if test $ac_cv_header_pthread_h = yes; then
12433 cat >>confdefs.h <<\EOF
12434 #define HAVE_PTHREADS_H 1
12437 for cf_lib_pthread in pthread c_r
12439 echo "$as_me:12439: checking if we can link with the $cf_lib_pthread library" >&5
12440 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12441 cf_save_LIBS="$LIBS"
12443 cf_add_libs="-l$cf_lib_pthread"
12444 # Filter out duplicates - this happens with badly-designed ".pc" files...
12445 for cf_add_1lib in $LIBS
12447 for cf_add_2lib in $cf_add_libs
12449 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12455 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12457 LIBS="$cf_add_libs"
12459 cat >conftest.$ac_ext <<_ACEOF
12460 #line 12460 "configure"
12461 #include "confdefs.h"
12463 #include <pthread.h>
12469 int rc = pthread_create(0,0,0,0);
12470 int r2 = pthread_mutexattr_settype(0, 0);
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
12490 echo "$as_me: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12495 LIBS="$cf_save_LIBS"
12496 echo "$as_me:12496: result: $with_pthread" >&5
12497 echo "${ECHO_T}$with_pthread" >&6
12498 test "$with_pthread" = yes && break
12501 if test "$with_pthread" = yes ; then
12503 cf_add_libs="-l$cf_lib_pthread"
12504 # Filter out duplicates - this happens with badly-designed ".pc" files...
12505 for cf_add_1lib in $LIBS
12507 for cf_add_2lib in $cf_add_libs
12509 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12515 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12517 LIBS="$cf_add_libs"
12519 cat >>confdefs.h <<\EOF
12520 #define HAVE_LIBPTHREADS 1
12524 { { echo "$as_me:12524: error: Cannot link with pthread library" >&5
12525 echo "$as_me: error: Cannot link with pthread library" >&2;}
12526 { (exit 1); exit 1; }; }
12533 if test "x$with_pthread" != xno; then
12534 echo "$as_me:12534: checking for pthread_kill" >&5
12535 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12536 if test "${ac_cv_func_pthread_kill+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 cat >conftest.$ac_ext <<_ACEOF
12540 #line 12540 "configure"
12541 #include "confdefs.h"
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char pthread_kill (); below. */
12544 #include <assert.h>
12545 /* Override any gcc2 internal prototype to avoid an error. */
12549 /* We use char because int might match the return type of a gcc2
12550 builtin and then its argument prototype would still apply. */
12551 char pthread_kill ();
12557 /* The GNU C library defines this for functions which it implements
12558 to always fail with ENOSYS. Some functions are actually named
12559 something starting with __ and the normal name is an alias. */
12560 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12563 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (eval echo "$as_me:12571: \"$ac_link\"") >&5
12572 (eval $ac_link) 2>&5
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -s conftest$ac_exeext'
12577 { (eval echo "$as_me:12577: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:12580: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_cv_func_pthread_kill=yes
12584 echo "$as_me: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12586 ac_cv_func_pthread_kill=no
12588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12590 echo "$as_me:12590: result: $ac_cv_func_pthread_kill" >&5
12591 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12592 if test $ac_cv_func_pthread_kill = yes; then
12594 echo "$as_me:12594: checking if you want to allow EINTR in wgetch with pthreads" >&5
12595 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12597 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12598 if test "${enable_pthreads_eintr+set}" = set; then
12599 enableval="$enable_pthreads_eintr"
12600 use_pthreads_eintr=$enableval
12602 use_pthreads_eintr=no
12604 echo "$as_me:12604: result: $use_pthreads_eintr" >&5
12605 echo "${ECHO_T}$use_pthreads_eintr" >&6
12606 if test "x$use_pthreads_eintr" = xyes ; then
12608 cat >>confdefs.h <<\EOF
12609 #define USE_PTHREADS_EINTR 1
12615 echo "$as_me:12615: checking if you want to use weak-symbols for pthreads" >&5
12616 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12618 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12619 if test "${enable_weak_symbols+set}" = set; then
12620 enableval="$enable_weak_symbols"
12621 use_weak_symbols=$enableval
12623 use_weak_symbols=no
12625 echo "$as_me:12625: result: $use_weak_symbols" >&5
12626 echo "${ECHO_T}$use_weak_symbols" >&6
12627 if test "x$use_weak_symbols" = xyes ; then
12629 echo "$as_me:12629: checking if $CC supports weak symbols" >&5
12630 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12631 if test "${cf_cv_weak_symbols+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 cat >conftest.$ac_ext <<_ACEOF
12636 #line 12636 "configure"
12637 #include "confdefs.h"
12644 #if defined(__GNUC__)
12645 # if defined __USE_ISOC99
12646 # define _cat_pragma(exp) _Pragma(#exp)
12647 # define _weak_pragma(exp) _cat_pragma(weak name)
12649 # define _weak_pragma(exp)
12651 # define _declare(name) __extension__ extern __typeof__(name) name
12652 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12655 weak_symbol(fopen);
12661 rm -f conftest.$ac_objext
12662 if { (eval echo "$as_me:12662: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>&5
12665 echo "$as_me:12665: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:12668: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:12671: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 cf_cv_weak_symbols=yes
12675 echo "$as_me: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 cf_cv_weak_symbols=no
12679 rm -f conftest.$ac_objext conftest.$ac_ext
12682 echo "$as_me:12682: result: $cf_cv_weak_symbols" >&5
12683 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12686 cf_cv_weak_symbols=no
12689 if test "x$cf_cv_weak_symbols" = xyes ; then
12691 cat >>confdefs.h <<\EOF
12692 #define USE_WEAK_SYMBOLS 1
12699 if test "x$with_pthread" = "xyes" ; then
12701 cat >>confdefs.h <<\EOF
12702 #define USE_PTHREADS 1
12705 enable_reentrant=yes
12706 if test "x$cf_cv_weak_symbols" = xyes ; then
12711 # Reentrant code has to be opaque; there's little advantage to making ncurses
12712 # opaque outside of that, so there is no --enable-opaque option. We can use
12713 # this option without --with-pthreads, but this will be always set for
12715 echo "$as_me:12715: checking if you want reentrant code" >&5
12716 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
12718 # Check whether --enable-reentrant or --disable-reentrant was given.
12719 if test "${enable_reentrant+set}" = set; then
12720 enableval="$enable_reentrant"
12721 with_reentrant=$enableval
12725 echo "$as_me:12725: result: $with_reentrant" >&5
12726 echo "${ECHO_T}$with_reentrant" >&6
12727 if test "x$with_reentrant" = xyes ; then
12728 cf_cv_enable_reentrant=1
12729 cf_cv_enable_opaque="NCURSES_INTERNALS"
12732 if test "x$cf_cv_weak_symbols" = xyes ; then
12734 # remove pthread library from $LIBS
12735 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12737 cf_add_libs="-lpthread"
12738 # Filter out duplicates - this happens with badly-designed ".pc" files...
12739 for cf_add_1lib in $TEST_LIBS
12741 for cf_add_2lib in $cf_add_libs
12743 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12749 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12751 TEST_LIBS="$cf_add_libs"
12753 cf_add_libs="-lpthread"
12754 # Filter out duplicates - this happens with badly-designed ".pc" files...
12755 for cf_add_1lib in $TEST_LIBS2
12757 for cf_add_2lib in $cf_add_libs
12759 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12765 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12767 TEST_LIBS2="$cf_add_libs"
12770 # when not using weak symbols but with_reentrant,
12771 # add 't' to the library suffix on all platforms
12772 # except cygwin, where we only do that if ALSO
12773 # compiling with full thread support.
12775 (*cygwin* | *msys*)
12776 if test "$with_pthread" = "yes" ; then
12777 if test "x$disable_lib_suffixes" = "xno" ; then
12778 LIB_SUFFIX="t${LIB_SUFFIX}"
12782 if test "x$disable_lib_suffixes" = "xno" ; then
12783 LIB_SUFFIX="t${LIB_SUFFIX}"
12789 cat >>confdefs.h <<\EOF
12790 #define USE_REENTRANT 1
12793 if test "${with_abi_version+set}" != set; then
12794 case $cf_cv_rel_version in
12796 cf_cv_rel_version=6.0
12797 cf_cv_abi_version=6
12798 { echo "$as_me:12798: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12799 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12805 cf_cv_enable_reentrant=0
12806 cf_cv_enable_opaque="NCURSES_OPAQUE"
12808 NCURSES_SIZE_T=short
12811 ### Allow using a different wrap-prefix
12812 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12813 echo "$as_me:12813: checking for prefix used to wrap public variables" >&5
12814 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12816 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12817 if test "${with_wrap_prefix+set}" = set; then
12818 withval="$with_wrap_prefix"
12819 NCURSES_WRAP_PREFIX=$withval
12821 NCURSES_WRAP_PREFIX=_nc_
12823 echo "$as_me:12823: result: $NCURSES_WRAP_PREFIX" >&5
12824 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12826 NCURSES_WRAP_PREFIX=_nc_
12829 cat >>confdefs.h <<EOF
12830 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12833 echo "$as_me:12833: checking if you want experimental safe-sprintf code" >&5
12834 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12836 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12837 if test "${enable_safe_sprintf+set}" = set; then
12838 enableval="$enable_safe_sprintf"
12839 with_safe_sprintf=$enableval
12841 with_safe_sprintf=no
12843 echo "$as_me:12843: result: $with_safe_sprintf" >&5
12844 echo "${ECHO_T}$with_safe_sprintf" >&6
12845 test "x$with_safe_sprintf" = xyes &&
12846 cat >>confdefs.h <<\EOF
12847 #define USE_SAFE_SPRINTF 1
12850 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12851 # when hashmap is used scroll hints are useless
12852 if test "$with_hashmap" = no ; then
12853 echo "$as_me:12853: checking if you want to experiment without scrolling-hints code" >&5
12854 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12856 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12857 if test "${enable_scroll_hints+set}" = set; then
12858 enableval="$enable_scroll_hints"
12859 with_scroll_hints=$enableval
12861 with_scroll_hints=yes
12863 echo "$as_me:12863: result: $with_scroll_hints" >&5
12864 echo "${ECHO_T}$with_scroll_hints" >&6
12865 test "x$with_scroll_hints" = xyes &&
12866 cat >>confdefs.h <<\EOF
12867 #define USE_SCROLL_HINTS 1
12872 echo "$as_me:12872: checking if you want wgetch-events code" >&5
12873 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
12875 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12876 if test "${enable_wgetch_events+set}" = set; then
12877 enableval="$enable_wgetch_events"
12878 with_wgetch_events=$enableval
12880 with_wgetch_events=no
12882 echo "$as_me:12882: result: $with_wgetch_events" >&5
12883 echo "${ECHO_T}$with_wgetch_events" >&6
12884 test "x$with_wgetch_events" = xyes &&
12885 cat >>confdefs.h <<\EOF
12886 #define NCURSES_WGETCH_EVENTS 1
12889 ###############################################################################
12891 ### use option --disable-echo to suppress full display compiling commands
12893 echo "$as_me:12893: checking if you want to see long compiling messages" >&5
12894 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12896 # Check whether --enable-echo or --disable-echo was given.
12897 if test "${enable_echo+set}" = set; then
12898 enableval="$enable_echo"
12899 test "$enableval" != no && enableval=yes
12900 if test "$enableval" != "yes" ; then
12903 ECHO_LD='@echo linking $@;'
12904 RULE_CC='@echo compiling $<'
12905 SHOW_CC='@echo compiling $@'
12927 echo "$as_me:12927: result: $enableval" >&5
12928 echo "${ECHO_T}$enableval" >&6
12930 if test "x$enable_echo" = xyes; then
12933 ECHO_LINK='@ echo linking $@ ... ;'
12934 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12935 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12938 ### use option --enable-warnings to turn on all gcc warnings
12939 echo "$as_me:12939: checking if you want to see compiler warnings" >&5
12940 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12942 # Check whether --enable-warnings or --disable-warnings was given.
12943 if test "${enable_warnings+set}" = set; then
12944 enableval="$enable_warnings"
12945 with_warnings=$enableval
12947 echo "$as_me:12947: result: $with_warnings" >&5
12948 echo "${ECHO_T}$with_warnings" >&6
12950 if test "x$with_warnings" = "xyes"; then
12952 ADAFLAGS="$ADAFLAGS -gnatg"
12956 if test "$GCC" = yes ; then
12959 echo "$as_me:12959: checking if this is really Intel C compiler" >&5
12960 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12961 cf_save_CFLAGS="$CFLAGS"
12962 CFLAGS="$CFLAGS -no-gcc"
12963 cat >conftest.$ac_ext <<_ACEOF
12964 #line 12964 "configure"
12965 #include "confdefs.h"
12971 #ifdef __INTEL_COMPILER
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:12981: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>&5
12984 echo "$as_me:12984: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -s conftest.$ac_objext'
12987 { (eval echo "$as_me:12987: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:12990: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12993 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
12996 echo "$as_me: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13000 CFLAGS="$cf_save_CFLAGS"
13001 echo "$as_me:13001: result: $INTEL_COMPILER" >&5
13002 echo "${ECHO_T}$INTEL_COMPILER" >&6
13009 if test "$GCC" = yes ; then
13010 echo "$as_me:13010: checking if this is really Clang C compiler" >&5
13011 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13012 cf_save_CFLAGS="$CFLAGS"
13013 CFLAGS="$CFLAGS -Qunused-arguments"
13014 cat >conftest.$ac_ext <<_ACEOF
13015 #line 13015 "configure"
13016 #include "confdefs.h"
13031 rm -f conftest.$ac_objext
13032 if { (eval echo "$as_me:13032: \"$ac_compile\"") >&5
13033 (eval $ac_compile) 2>&5
13035 echo "$as_me:13035: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:13038: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:13041: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13044 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13047 echo "$as_me: failed program was:" >&5
13048 cat conftest.$ac_ext >&5
13050 rm -f conftest.$ac_objext conftest.$ac_ext
13051 CFLAGS="$cf_save_CFLAGS"
13052 echo "$as_me:13052: result: $CLANG_COMPILER" >&5
13053 echo "${ECHO_T}$CLANG_COMPILER" >&6
13056 cat > conftest.$ac_ext <<EOF
13057 #line 13057 "${as_me:-configure}"
13058 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13061 if test "$INTEL_COMPILER" = yes
13063 # The "-wdXXX" options suppress warnings:
13064 # remark #1419: external declaration in primary source file
13065 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13066 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13067 # remark #193: zero used for undefined preprocessing identifier
13068 # remark #593: variable "curs_sb_left_arrow" was set but never used
13069 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13070 # remark #869: parameter "tw" was never referenced
13071 # remark #981: operands are evaluated in unspecified order
13072 # warning #279: controlling expression is constant
13074 { echo "$as_me:13074: checking for $CC warning options..." >&5
13075 echo "$as_me: checking for $CC warning options..." >&6;}
13076 cf_save_CFLAGS="$CFLAGS"
13077 EXTRA_CFLAGS="-Wall"
13089 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13090 if { (eval echo "$as_me:13090: \"$ac_compile\"") >&5
13091 (eval $ac_compile) 2>&5
13093 echo "$as_me:13093: \$? = $ac_status" >&5
13094 (exit $ac_status); }; then
13095 test -n "$verbose" && echo "$as_me:13095: result: ... -$cf_opt" >&5
13096 echo "${ECHO_T}... -$cf_opt" >&6
13097 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13100 CFLAGS="$cf_save_CFLAGS"
13102 elif test "$GCC" = yes
13104 { echo "$as_me:13104: checking for $CC warning options..." >&5
13105 echo "$as_me: checking for $CC warning options..." >&6;}
13106 cf_save_CFLAGS="$CFLAGS"
13109 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13110 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13111 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13112 for cf_opt in W Wall \
13113 Wbad-function-cast \
13116 Wdeclaration-after-statement \
13119 Wmissing-declarations \
13120 Wmissing-prototypes \
13124 Wstrict-prototypes \
13125 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13127 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13128 if { (eval echo "$as_me:13128: \"$ac_compile\"") >&5
13129 (eval $ac_compile) 2>&5
13131 echo "$as_me:13131: \$? = $ac_status" >&5
13132 (exit $ac_status); }; then
13133 test -n "$verbose" && echo "$as_me:13133: result: ... -$cf_opt" >&5
13134 echo "${ECHO_T}... -$cf_opt" >&6
13137 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13140 case $GCC_VERSION in
13142 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13144 echo "${as_me:-configure}:13144: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13150 case $GCC_VERSION in
13152 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13154 echo "${as_me:-configure}:13154: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13160 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13163 CFLAGS="$cf_save_CFLAGS"
13167 if test "x$cf_with_cxx" = xyes ; then
13171 if test "$GCC" = yes ; then
13174 echo "$as_me:13174: checking if this is really Intel C++ compiler" >&5
13175 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13176 cf_save_CFLAGS="$CXXFLAGS"
13177 CXXFLAGS="$CXXFLAGS -no-gcc"
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line 13179 "configure"
13180 #include "confdefs.h"
13186 #ifdef __INTEL_COMPILER
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:13196: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>&5
13199 echo "$as_me:13199: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:13202: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13205 echo "$as_me:13205: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 INTEL_CPLUSPLUS=yes
13208 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13211 echo "$as_me: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13214 rm -f conftest.$ac_objext conftest.$ac_ext
13215 CXXFLAGS="$cf_save_CFLAGS"
13216 echo "$as_me:13216: result: $INTEL_CPLUSPLUS" >&5
13217 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13224 if test "$GCC" = yes ; then
13225 echo "$as_me:13225: checking if this is really Clang C++ compiler" >&5
13226 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13227 cf_save_CFLAGS="$CXXFLAGS"
13228 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13229 cat >conftest.$ac_ext <<_ACEOF
13230 #line 13230 "configure"
13231 #include "confdefs.h"
13246 rm -f conftest.$ac_objext
13247 if { (eval echo "$as_me:13247: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>&5
13250 echo "$as_me:13250: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:13253: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 echo "$as_me:13256: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 CLANG_CPLUSPLUS=yes
13259 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13262 echo "$as_me: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13265 rm -f conftest.$ac_objext conftest.$ac_ext
13266 CXXFLAGS="$cf_save_CFLAGS"
13267 echo "$as_me:13267: result: $CLANG_CPLUSPLUS" >&5
13268 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13272 ac_cpp='$CXXCPP $CPPFLAGS'
13273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13276 ac_main_return=return
13278 cat > conftest.$ac_ext <<EOF
13279 #line 13279 "configure"
13280 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13283 if test "$INTEL_CPLUSPLUS" = yes
13285 # The "-wdXXX" options suppress warnings:
13286 # remark #1419: external declaration in primary source file
13287 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13288 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13289 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13290 # remark #193: zero used for undefined preprocessing identifier
13291 # remark #593: variable "curs_sb_left_arrow" was set but never used
13292 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13293 # remark #869: parameter "tw" was never referenced
13294 # remark #981: operands are evaluated in unspecified order
13295 # warning #269: invalid format string conversion
13297 { echo "$as_me:13297: checking for $CC warning options..." >&5
13298 echo "$as_me: checking for $CC warning options..." >&6;}
13299 cf_save_CXXFLAGS="$CXXFLAGS"
13300 EXTRA_CXXFLAGS="-Wall"
13313 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13314 if { (eval echo "$as_me:13314: \"$ac_compile\"") >&5
13315 (eval $ac_compile) 2>&5
13317 echo "$as_me:13317: \$? = $ac_status" >&5
13318 (exit $ac_status); }; then
13319 test -n "$verbose" && echo "$as_me:13319: result: ... -$cf_opt" >&5
13320 echo "${ECHO_T}... -$cf_opt" >&6
13321 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13324 CXXFLAGS="$cf_save_CXXFLAGS"
13326 elif test "$GXX" = yes
13328 { echo "$as_me:13328: checking for $CXX warning options..." >&5
13329 echo "$as_me: checking for $CXX warning options..." >&6;}
13330 cf_save_CXXFLAGS="$CXXFLAGS"
13331 EXTRA_CXXFLAGS="-W -Wall"
13332 cf_gxx_extra_warnings=""
13333 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13334 case "$GCC_VERSION" in
13338 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13345 Wignored-qualifiers \
13347 Woverloaded-virtual \
13355 Wundef $cf_gxx_extra_warnings Wno-unused
13357 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13358 if { (eval echo "$as_me:13358: \"$ac_compile\"") >&5
13359 (eval $ac_compile) 2>&5
13361 echo "$as_me:13361: \$? = $ac_status" >&5
13362 (exit $ac_status); }; then
13363 test -n "$verbose" && echo "$as_me:13363: result: ... -$cf_opt" >&5
13364 echo "${ECHO_T}... -$cf_opt" >&6
13365 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13367 test -n "$verbose" && echo "$as_me:13367: result: ... no -$cf_opt" >&5
13368 echo "${ECHO_T}... no -$cf_opt" >&6
13371 CXXFLAGS="$cf_save_CXXFLAGS"
13376 ac_cpp='$CPP $CPPFLAGS'
13377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13380 ac_main_return=return
13385 if test "$GCC" = yes
13387 cat > conftest.i <<EOF
13389 #define GCC_PRINTF 0
13392 #define GCC_SCANF 0
13394 #ifndef GCC_NORETURN
13395 #define GCC_NORETURN /* nothing */
13398 #define GCC_UNUSED /* nothing */
13401 if test "$GCC" = yes
13403 { echo "$as_me:13403: checking for $CC __attribute__ directives..." >&5
13404 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
13405 cat > conftest.$ac_ext <<EOF
13406 #line 13406 "${as_me:-configure}"
13407 #include "confdefs.h"
13408 #include "conftest.h"
13409 #include "conftest.i"
13411 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13413 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
13416 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
13418 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
13420 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
13421 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
13422 extern void foo(void) GCC_NORETURN;
13423 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
13425 cf_printf_attribute=no
13426 cf_scanf_attribute=no
13427 for cf_attribute in scanf printf unused noreturn
13430 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13432 cf_directive="__attribute__(($cf_attribute))"
13433 echo "checking for $CC $cf_directive" 1>&5
13435 case $cf_attribute in
13437 cf_printf_attribute=yes
13438 cat >conftest.h <<EOF
13439 #define GCC_$cf_ATTRIBUTE 1
13443 cf_scanf_attribute=yes
13444 cat >conftest.h <<EOF
13445 #define GCC_$cf_ATTRIBUTE 1
13449 cat >conftest.h <<EOF
13450 #define GCC_$cf_ATTRIBUTE $cf_directive
13455 if { (eval echo "$as_me:13455: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>&5
13458 echo "$as_me:13458: \$? = $ac_status" >&5
13459 (exit $ac_status); }; then
13460 test -n "$verbose" && echo "$as_me:13460: result: ... $cf_attribute" >&5
13461 echo "${ECHO_T}... $cf_attribute" >&6
13462 cat conftest.h >>confdefs.h
13463 case $cf_attribute in
13466 cat >>confdefs.h <<EOF
13467 #define GCC_NORETURN $cf_directive
13472 cf_value='/* nothing */'
13473 if test "$cf_printf_attribute" != no ; then
13474 cf_value='__attribute__((format(printf,fmt,var)))'
13476 cat >>confdefs.h <<\EOF
13477 #define GCC_PRINTF 1
13482 cat >>confdefs.h <<EOF
13483 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13488 cf_value='/* nothing */'
13489 if test "$cf_scanf_attribute" != no ; then
13490 cf_value='__attribute__((format(scanf,fmt,var)))'
13492 cat >>confdefs.h <<\EOF
13493 #define GCC_SCANF 1
13498 cat >>confdefs.h <<EOF
13499 #define GCC_SCANFLIKE(fmt,var) $cf_value
13505 cat >>confdefs.h <<EOF
13506 #define GCC_UNUSED $cf_directive
13514 fgrep define conftest.i >>confdefs.h
13519 echo "$as_me:13519: checking if you want to work around bogus compiler/loader warnings" >&5
13520 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13522 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13523 if test "${enable_string_hacks+set}" = set; then
13524 enableval="$enable_string_hacks"
13525 with_string_hacks=$enableval
13527 with_string_hacks=no
13529 echo "$as_me:13529: result: $with_string_hacks" >&5
13530 echo "${ECHO_T}$with_string_hacks" >&6
13532 if test "x$with_string_hacks" = "xyes"; then
13534 cat >>confdefs.h <<\EOF
13535 #define USE_STRING_HACKS 1
13538 { echo "$as_me:13538: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13539 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13541 for ac_func in strlcat strlcpy snprintf
13543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13544 echo "$as_me:13544: checking for $ac_func" >&5
13545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13546 if eval "test \"\${$as_ac_var+set}\" = set"; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 cat >conftest.$ac_ext <<_ACEOF
13550 #line 13550 "configure"
13551 #include "confdefs.h"
13552 /* System header to define __stub macros and hopefully few prototypes,
13553 which can conflict with char $ac_func (); below. */
13554 #include <assert.h>
13555 /* Override any gcc2 internal prototype to avoid an error. */
13559 /* We use char because int might match the return type of a gcc2
13560 builtin and then its argument prototype would still apply. */
13567 /* The GNU C library defines this for functions which it implements
13568 to always fail with ENOSYS. Some functions are actually named
13569 something starting with __ and the normal name is an alias. */
13570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13573 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13580 rm -f conftest.$ac_objext conftest$ac_exeext
13581 if { (eval echo "$as_me:13581: \"$ac_link\"") >&5
13582 (eval $ac_link) 2>&5
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -s conftest$ac_exeext'
13587 { (eval echo "$as_me:13587: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:13590: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 eval "$as_ac_var=yes"
13594 echo "$as_me: failed program was:" >&5
13595 cat conftest.$ac_ext >&5
13596 eval "$as_ac_var=no"
13598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13600 echo "$as_me:13600: result: `eval echo '${'$as_ac_var'}'`" >&5
13601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13602 if test `eval echo '${'$as_ac_var'}'` = yes; then
13603 cat >>confdefs.h <<EOF
13604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13612 ### use option --enable-assertions to turn on generation of assertion code
13613 echo "$as_me:13613: checking if you want to enable runtime assertions" >&5
13614 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
13616 # Check whether --enable-assertions or --disable-assertions was given.
13617 if test "${enable_assertions+set}" = set; then
13618 enableval="$enable_assertions"
13619 with_assertions=$enableval
13623 echo "$as_me:13623: result: $with_assertions" >&5
13624 echo "${ECHO_T}$with_assertions" >&6
13627 if test "$with_assertions" = no
13629 CPPFLAGS="$CPPFLAGS -DNDEBUG"
13632 ADAFLAGS="$ADAFLAGS -gnata"
13637 ### use option --disable-leaks to suppress "permanent" leaks, for testing
13639 echo "$as_me:13639: checking if you want to use dmalloc for testing" >&5
13640 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
13642 # Check whether --with-dmalloc or --without-dmalloc was given.
13643 if test "${with_dmalloc+set}" = set; then
13644 withval="$with_dmalloc"
13646 cat >>confdefs.h <<EOF
13647 #define USE_DMALLOC 1
13650 : ${with_cflags:=-g}
13651 : ${with_no_leaks:=yes}
13656 echo "$as_me:13656: result: ${with_dmalloc:-no}" >&5
13657 echo "${ECHO_T}${with_dmalloc:-no}" >&6
13659 case .$with_cflags in
13669 cf_new_extra_cppflags=
13671 for cf_add_cflags in -g
13673 case $cf_fix_cppflags in
13675 case $cf_add_cflags in
13676 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13677 case $cf_add_cflags in
13679 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13681 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13682 && test -z "${cf_tst_cflags}" \
13683 && cf_fix_cppflags=yes
13685 if test $cf_fix_cppflags = yes ; then
13686 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13688 elif test "${cf_tst_cflags}" = "\"'" ; then
13689 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13694 case "$CPPFLAGS" in
13698 case $cf_add_cflags in
13700 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13702 CPPFLAGS=`echo "$CPPFLAGS" | \
13703 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13704 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13708 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13713 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13718 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13720 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13722 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13723 && test -z "${cf_tst_cflags}" \
13724 && cf_fix_cppflags=no
13729 if test -n "$cf_new_cflags" ; then
13731 CFLAGS="$CFLAGS $cf_new_cflags"
13734 if test -n "$cf_new_cppflags" ; then
13736 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13739 if test -n "$cf_new_extra_cppflags" ; then
13741 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13749 if test "$with_dmalloc" = yes ; then
13750 echo "$as_me:13750: checking for dmalloc.h" >&5
13751 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13752 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 #line 13756 "configure"
13757 #include "confdefs.h"
13758 #include <dmalloc.h>
13760 if { (eval echo "$as_me:13760: \"$ac_cpp conftest.$ac_ext\"") >&5
13761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13763 egrep -v '^ *\+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:13766: \$? = $ac_status" >&5
13767 (exit $ac_status); } >/dev/null; then
13768 if test -s conftest.err; then
13769 ac_cpp_err=$ac_c_preproc_warn_flag
13776 if test -z "$ac_cpp_err"; then
13777 ac_cv_header_dmalloc_h=yes
13779 echo "$as_me: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13781 ac_cv_header_dmalloc_h=no
13783 rm -f conftest.err conftest.$ac_ext
13785 echo "$as_me:13785: result: $ac_cv_header_dmalloc_h" >&5
13786 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13787 if test $ac_cv_header_dmalloc_h = yes; then
13789 echo "$as_me:13789: checking for dmalloc_debug in -ldmalloc" >&5
13790 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13791 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 ac_check_lib_save_LIBS=$LIBS
13795 LIBS="-ldmalloc $LIBS"
13796 cat >conftest.$ac_ext <<_ACEOF
13797 #line 13797 "configure"
13798 #include "confdefs.h"
13800 /* Override any gcc2 internal prototype to avoid an error. */
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13806 char dmalloc_debug ();
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (eval echo "$as_me:13816: \"$ac_link\"") >&5
13817 (eval $ac_link) 2>&5
13819 echo "$as_me:13819: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -s conftest$ac_exeext'
13822 { (eval echo "$as_me:13822: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:13825: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_lib_dmalloc_dmalloc_debug=yes
13829 echo "$as_me: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 ac_cv_lib_dmalloc_dmalloc_debug=no
13833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13836 echo "$as_me:13836: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
13837 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
13838 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
13839 cat >>confdefs.h <<EOF
13840 #define HAVE_LIBDMALLOC 1
13843 LIBS="-ldmalloc $LIBS"
13851 echo "$as_me:13851: checking if you want to use dbmalloc for testing" >&5
13852 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
13854 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13855 if test "${with_dbmalloc+set}" = set; then
13856 withval="$with_dbmalloc"
13858 cat >>confdefs.h <<EOF
13859 #define USE_DBMALLOC 1
13862 : ${with_cflags:=-g}
13863 : ${with_no_leaks:=yes}
13868 echo "$as_me:13868: result: ${with_dbmalloc:-no}" >&5
13869 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
13871 case .$with_cflags in
13881 cf_new_extra_cppflags=
13883 for cf_add_cflags in -g
13885 case $cf_fix_cppflags in
13887 case $cf_add_cflags in
13888 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13889 case $cf_add_cflags in
13891 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13893 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13894 && test -z "${cf_tst_cflags}" \
13895 && cf_fix_cppflags=yes
13897 if test $cf_fix_cppflags = yes ; then
13898 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13900 elif test "${cf_tst_cflags}" = "\"'" ; then
13901 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13906 case "$CPPFLAGS" in
13910 case $cf_add_cflags in
13912 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13914 CPPFLAGS=`echo "$CPPFLAGS" | \
13915 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13916 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13920 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13925 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13930 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13932 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13934 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13935 && test -z "${cf_tst_cflags}" \
13936 && cf_fix_cppflags=no
13941 if test -n "$cf_new_cflags" ; then
13943 CFLAGS="$CFLAGS $cf_new_cflags"
13946 if test -n "$cf_new_cppflags" ; then
13948 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13951 if test -n "$cf_new_extra_cppflags" ; then
13953 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13961 if test "$with_dbmalloc" = yes ; then
13962 echo "$as_me:13962: checking for dbmalloc.h" >&5
13963 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
13964 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13968 #line 13968 "configure"
13969 #include "confdefs.h"
13970 #include <dbmalloc.h>
13972 if { (eval echo "$as_me:13972: \"$ac_cpp conftest.$ac_ext\"") >&5
13973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13975 egrep -v '^ *\+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:13978: \$? = $ac_status" >&5
13979 (exit $ac_status); } >/dev/null; then
13980 if test -s conftest.err; then
13981 ac_cpp_err=$ac_c_preproc_warn_flag
13988 if test -z "$ac_cpp_err"; then
13989 ac_cv_header_dbmalloc_h=yes
13991 echo "$as_me: failed program was:" >&5
13992 cat conftest.$ac_ext >&5
13993 ac_cv_header_dbmalloc_h=no
13995 rm -f conftest.err conftest.$ac_ext
13997 echo "$as_me:13997: result: $ac_cv_header_dbmalloc_h" >&5
13998 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13999 if test $ac_cv_header_dbmalloc_h = yes; then
14001 echo "$as_me:14001: checking for debug_malloc in -ldbmalloc" >&5
14002 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14003 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-ldbmalloc $LIBS"
14008 cat >conftest.$ac_ext <<_ACEOF
14009 #line 14009 "configure"
14010 #include "confdefs.h"
14012 /* Override any gcc2 internal prototype to avoid an error. */
14016 /* We use char because int might match the return type of a gcc2
14017 builtin and then its argument prototype would still apply. */
14018 char debug_malloc ();
14027 rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (eval echo "$as_me:14028: \"$ac_link\"") >&5
14029 (eval $ac_link) 2>&5
14031 echo "$as_me:14031: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
14033 { ac_try='test -s conftest$ac_exeext'
14034 { (eval echo "$as_me:14034: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:14037: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_lib_dbmalloc_debug_malloc=yes
14041 echo "$as_me: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14043 ac_cv_lib_dbmalloc_debug_malloc=no
14045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14046 LIBS=$ac_check_lib_save_LIBS
14048 echo "$as_me:14048: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14049 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14050 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14051 cat >>confdefs.h <<EOF
14052 #define HAVE_LIBDBMALLOC 1
14055 LIBS="-ldbmalloc $LIBS"
14063 echo "$as_me:14063: checking if you want to use valgrind for testing" >&5
14064 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14066 # Check whether --with-valgrind or --without-valgrind was given.
14067 if test "${with_valgrind+set}" = set; then
14068 withval="$with_valgrind"
14070 cat >>confdefs.h <<EOF
14071 #define USE_VALGRIND 1
14074 : ${with_cflags:=-g}
14075 : ${with_no_leaks:=yes}
14080 echo "$as_me:14080: result: ${with_valgrind:-no}" >&5
14081 echo "${ECHO_T}${with_valgrind:-no}" >&6
14083 case .$with_cflags in
14093 cf_new_extra_cppflags=
14095 for cf_add_cflags in -g
14097 case $cf_fix_cppflags in
14099 case $cf_add_cflags in
14100 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14101 case $cf_add_cflags in
14103 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14105 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14106 && test -z "${cf_tst_cflags}" \
14107 && cf_fix_cppflags=yes
14109 if test $cf_fix_cppflags = yes ; then
14110 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14112 elif test "${cf_tst_cflags}" = "\"'" ; then
14113 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14118 case "$CPPFLAGS" in
14122 case $cf_add_cflags in
14124 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14126 CPPFLAGS=`echo "$CPPFLAGS" | \
14127 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14128 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14132 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14137 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14142 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14144 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14146 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14147 && test -z "${cf_tst_cflags}" \
14148 && cf_fix_cppflags=no
14153 if test -n "$cf_new_cflags" ; then
14155 CFLAGS="$CFLAGS $cf_new_cflags"
14158 if test -n "$cf_new_cppflags" ; then
14160 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14163 if test -n "$cf_new_extra_cppflags" ; then
14165 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14173 echo "$as_me:14173: checking if you want to perform memory-leak testing" >&5
14174 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
14176 # Check whether --enable-leaks or --disable-leaks was given.
14177 if test "${enable_leaks+set}" = set; then
14178 enableval="$enable_leaks"
14179 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
14181 : ${with_no_leaks:=no}
14183 echo "$as_me:14183: result: $with_no_leaks" >&5
14184 echo "${ECHO_T}$with_no_leaks" >&6
14186 if test "$with_no_leaks" = yes ; then
14188 cat >>confdefs.h <<\EOF
14192 cat >>confdefs.h <<\EOF
14193 #define YY_NO_LEAKS 1
14198 cat >>confdefs.h <<\EOF
14199 #define HAVE_NC_ALLOC_H 1
14202 ### use option --enable-expanded to generate certain macros as functions
14204 # Check whether --enable-expanded or --disable-expanded was given.
14205 if test "${enable_expanded+set}" = set; then
14206 enableval="$enable_expanded"
14207 test "x$enableval" = xyes &&
14208 cat >>confdefs.h <<\EOF
14209 #define NCURSES_EXPANDED 1
14214 ### use option --disable-macros to suppress macros in favor of functions
14216 # Check whether --enable-macros or --disable-macros was given.
14217 if test "${enable_macros+set}" = set; then
14218 enableval="$enable_macros"
14219 test "$enableval" = no &&
14220 cat >>confdefs.h <<\EOF
14221 #define NCURSES_NOMACROS 1
14226 # Normally we only add trace() to the debug-library. Allow this to be
14227 # extended to all models of the ncurses library:
14229 case "$CFLAGS $CPPFLAGS" in
14235 echo "$as_me:14235: checking whether to add trace feature to all models" >&5
14236 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14238 # Check whether --with-trace or --without-trace was given.
14239 if test "${with_trace+set}" = set; then
14240 withval="$with_trace"
14241 cf_with_trace=$withval
14243 cf_with_trace=$cf_all_traces
14245 echo "$as_me:14245: result: $cf_with_trace" >&5
14246 echo "${ECHO_T}$cf_with_trace" >&6
14248 if test "x$cf_with_trace" = xyes ; then
14255 cf_new_extra_cppflags=
14257 for cf_add_cflags in -DTRACE
14259 case $cf_fix_cppflags in
14261 case $cf_add_cflags in
14262 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14263 case $cf_add_cflags in
14265 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14267 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14268 && test -z "${cf_tst_cflags}" \
14269 && cf_fix_cppflags=yes
14271 if test $cf_fix_cppflags = yes ; then
14272 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14274 elif test "${cf_tst_cflags}" = "\"'" ; then
14275 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14280 case "$CPPFLAGS" in
14284 case $cf_add_cflags in
14286 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14288 CPPFLAGS=`echo "$CPPFLAGS" | \
14289 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14290 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14294 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14299 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14304 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14306 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14308 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14309 && test -z "${cf_tst_cflags}" \
14310 && cf_fix_cppflags=no
14315 if test -n "$cf_new_cflags" ; then
14317 CFLAGS="$CFLAGS $cf_new_cflags"
14320 if test -n "$cf_new_cppflags" ; then
14322 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14325 if test -n "$cf_new_extra_cppflags" ; then
14327 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14335 echo "$as_me:14335: checking if we want to use GNAT projects" >&5
14336 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14338 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14339 if test "${enable_gnat_projects+set}" = set; then
14340 enableval="$enable_gnat_projects"
14341 test "$enableval" != no && enableval=yes
14342 if test "$enableval" != "yes" ; then
14343 enable_gnat_projects=no
14345 enable_gnat_projects=yes
14349 enable_gnat_projects=yes
14352 echo "$as_me:14352: result: $enable_gnat_projects" >&5
14353 echo "${ECHO_T}$enable_gnat_projects" >&6
14355 ### Checks for libraries.
14356 case $cf_cv_system_name in
14357 (*mingw32*|*mingw64*)
14358 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501"
14359 LIBS=" -lpsapi $LIBS"
14362 echo "$as_me:14362: checking for gettimeofday" >&5
14363 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14364 if test "${ac_cv_func_gettimeofday+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 cat >conftest.$ac_ext <<_ACEOF
14368 #line 14368 "configure"
14369 #include "confdefs.h"
14370 /* System header to define __stub macros and hopefully few prototypes,
14371 which can conflict with char gettimeofday (); below. */
14372 #include <assert.h>
14373 /* Override any gcc2 internal prototype to avoid an error. */
14377 /* We use char because int might match the return type of a gcc2
14378 builtin and then its argument prototype would still apply. */
14379 char gettimeofday ();
14385 /* The GNU C library defines this for functions which it implements
14386 to always fail with ENOSYS. Some functions are actually named
14387 something starting with __ and the normal name is an alias. */
14388 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14391 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (eval echo "$as_me:14399: \"$ac_link\"") >&5
14400 (eval $ac_link) 2>&5
14402 echo "$as_me:14402: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (eval echo "$as_me:14405: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:14408: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_func_gettimeofday=yes
14412 echo "$as_me: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14414 ac_cv_func_gettimeofday=no
14416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14418 echo "$as_me:14418: result: $ac_cv_func_gettimeofday" >&5
14419 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14420 if test $ac_cv_func_gettimeofday = yes; then
14422 cat >>confdefs.h <<\EOF
14423 #define HAVE_GETTIMEOFDAY 1
14428 echo "$as_me:14428: checking for gettimeofday in -lbsd" >&5
14429 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14430 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 ac_check_lib_save_LIBS=$LIBS
14435 cat >conftest.$ac_ext <<_ACEOF
14436 #line 14436 "configure"
14437 #include "confdefs.h"
14439 /* Override any gcc2 internal prototype to avoid an error. */
14443 /* We use char because int might match the return type of a gcc2
14444 builtin and then its argument prototype would still apply. */
14445 char gettimeofday ();
14454 rm -f conftest.$ac_objext conftest$ac_exeext
14455 if { (eval echo "$as_me:14455: \"$ac_link\"") >&5
14456 (eval $ac_link) 2>&5
14458 echo "$as_me:14458: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -s conftest$ac_exeext'
14461 { (eval echo "$as_me:14461: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:14464: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_lib_bsd_gettimeofday=yes
14468 echo "$as_me: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 ac_cv_lib_bsd_gettimeofday=no
14472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14475 echo "$as_me:14475: result: $ac_cv_lib_bsd_gettimeofday" >&5
14476 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14477 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14479 cat >>confdefs.h <<\EOF
14480 #define HAVE_GETTIMEOFDAY 1
14483 cf_add_libs="-lbsd"
14484 # Filter out duplicates - this happens with badly-designed ".pc" files...
14485 for cf_add_1lib in $LIBS
14487 for cf_add_2lib in $cf_add_libs
14489 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14495 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14497 LIBS="$cf_add_libs"
14505 echo "$as_me:14505: checking if -lm needed for math functions" >&5
14506 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14507 if test "${cf_cv_need_libm+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14512 #line 14512 "configure"
14513 #include "confdefs.h"
14521 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (eval echo "$as_me:14527: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>&5
14530 echo "$as_me:14530: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (eval echo "$as_me:14533: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:14536: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14540 echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 cf_cv_need_libm=yes
14544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14546 echo "$as_me:14546: result: $cf_cv_need_libm" >&5
14547 echo "${ECHO_T}$cf_cv_need_libm" >&6
14548 if test "$cf_cv_need_libm" = yes
14553 ### Checks for header files.
14554 echo "$as_me:14554: checking for ANSI C header files" >&5
14555 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14556 if test "${ac_cv_header_stdc+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 cat >conftest.$ac_ext <<_ACEOF
14560 #line 14560 "configure"
14561 #include "confdefs.h"
14562 #include <stdlib.h>
14563 #include <stdarg.h>
14564 #include <string.h>
14568 if { (eval echo "$as_me:14568: \"$ac_cpp conftest.$ac_ext\"") >&5
14569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14571 egrep -v '^ *\+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:14574: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null; then
14576 if test -s conftest.err; then
14577 ac_cpp_err=$ac_c_preproc_warn_flag
14584 if test -z "$ac_cpp_err"; then
14585 ac_cv_header_stdc=yes
14587 echo "$as_me: failed program was:" >&5
14588 cat conftest.$ac_ext >&5
14589 ac_cv_header_stdc=no
14591 rm -f conftest.err conftest.$ac_ext
14593 if test $ac_cv_header_stdc = yes; then
14594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14595 cat >conftest.$ac_ext <<_ACEOF
14596 #line 14596 "configure"
14597 #include "confdefs.h"
14598 #include <string.h>
14601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14602 egrep "memchr" >/dev/null 2>&1; then
14605 ac_cv_header_stdc=no
14611 if test $ac_cv_header_stdc = yes; then
14612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14613 cat >conftest.$ac_ext <<_ACEOF
14614 #line 14614 "configure"
14615 #include "confdefs.h"
14616 #include <stdlib.h>
14619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14620 egrep "free" >/dev/null 2>&1; then
14623 ac_cv_header_stdc=no
14629 if test $ac_cv_header_stdc = yes; then
14630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14631 if test "$cross_compiling" = yes; then
14634 cat >conftest.$ac_ext <<_ACEOF
14635 #line 14635 "configure"
14636 #include "confdefs.h"
14638 #if ((' ' & 0x0FF) == 0x020)
14639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14642 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14643 || ('j' <= (c) && (c) <= 'r') \
14644 || ('s' <= (c) && (c) <= 'z'))
14645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14653 for (i = 0; i < 256; i++)
14654 if (XOR (islower (i), ISLOWER (i))
14655 || toupper (i) != TOUPPER (i))
14656 $ac_main_return(2);
14657 $ac_main_return (0);
14660 rm -f conftest$ac_exeext
14661 if { (eval echo "$as_me:14661: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>&5
14664 echo "$as_me:14664: \$? = $ac_status" >&5
14665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14666 { (eval echo "$as_me:14666: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:14669: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14673 echo "$as_me: program exited with status $ac_status" >&5
14674 echo "$as_me: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 ac_cv_header_stdc=no
14678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14682 echo "$as_me:14682: result: $ac_cv_header_stdc" >&5
14683 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14684 if test $ac_cv_header_stdc = yes; then
14686 cat >>confdefs.h <<\EOF
14687 #define STDC_HEADERS 1
14692 ac_header_dirent=no
14693 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14694 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14695 echo "$as_me:14695: checking for $ac_hdr that defines DIR" >&5
14696 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 cat >conftest.$ac_ext <<_ACEOF
14701 #line 14701 "configure"
14702 #include "confdefs.h"
14703 #include <sys/types.h>
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:14716: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14719 echo "$as_me:14719: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:14722: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:14725: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; 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.$ac_objext 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_hdr" | $as_tr_cpp` 1
14742 ac_header_dirent=$ac_hdr; break
14746 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14747 if test $ac_header_dirent = dirent.h; then
14748 echo "$as_me:14748: checking for opendir in -ldir" >&5
14749 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14750 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 ac_check_lib_save_LIBS=$LIBS
14755 cat >conftest.$ac_ext <<_ACEOF
14756 #line 14756 "configure"
14757 #include "confdefs.h"
14759 /* Override any gcc2 internal prototype to avoid an error. */
14763 /* We use char because int might match the return type of a gcc2
14764 builtin and then its argument prototype would still apply. */
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:14775: \"$ac_link\"") >&5
14776 (eval $ac_link) 2>&5
14778 echo "$as_me:14778: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -s conftest$ac_exeext'
14781 { (eval echo "$as_me:14781: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:14784: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_lib_dir_opendir=yes
14788 echo "$as_me: failed program was:" >&5
14789 cat conftest.$ac_ext >&5
14790 ac_cv_lib_dir_opendir=no
14792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_check_lib_save_LIBS
14795 echo "$as_me:14795: result: $ac_cv_lib_dir_opendir" >&5
14796 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14797 if test $ac_cv_lib_dir_opendir = yes; then
14802 echo "$as_me:14802: checking for opendir in -lx" >&5
14803 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14804 if test "${ac_cv_lib_x_opendir+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 ac_check_lib_save_LIBS=$LIBS
14809 cat >conftest.$ac_ext <<_ACEOF
14810 #line 14810 "configure"
14811 #include "confdefs.h"
14813 /* Override any gcc2 internal prototype to avoid an error. */
14817 /* We use char because int might match the return type of a gcc2
14818 builtin and then its argument prototype would still apply. */
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (eval echo "$as_me:14829: \"$ac_link\"") >&5
14830 (eval $ac_link) 2>&5
14832 echo "$as_me:14832: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -s conftest$ac_exeext'
14835 { (eval echo "$as_me:14835: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:14838: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_cv_lib_x_opendir=yes
14842 echo "$as_me: failed program was:" >&5
14843 cat conftest.$ac_ext >&5
14844 ac_cv_lib_x_opendir=no
14846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS
14849 echo "$as_me:14849: result: $ac_cv_lib_x_opendir" >&5
14850 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14851 if test $ac_cv_lib_x_opendir = yes; then
14857 echo "$as_me:14857: checking whether time.h and sys/time.h may both be included" >&5
14858 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14859 if test "${ac_cv_header_time+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 cat >conftest.$ac_ext <<_ACEOF
14863 #line 14863 "configure"
14864 #include "confdefs.h"
14865 #include <sys/types.h>
14866 #include <sys/time.h>
14872 if ((struct tm *) 0)
14878 rm -f conftest.$ac_objext
14879 if { (eval echo "$as_me:14879: \"$ac_compile\"") >&5
14880 (eval $ac_compile) 2>&5
14882 echo "$as_me:14882: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (eval echo "$as_me:14885: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:14888: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_cv_header_time=yes
14892 echo "$as_me: failed program was:" >&5
14893 cat conftest.$ac_ext >&5
14894 ac_cv_header_time=no
14896 rm -f conftest.$ac_objext conftest.$ac_ext
14898 echo "$as_me:14898: result: $ac_cv_header_time" >&5
14899 echo "${ECHO_T}$ac_cv_header_time" >&6
14900 if test $ac_cv_header_time = yes; then
14902 cat >>confdefs.h <<\EOF
14903 #define TIME_WITH_SYS_TIME 1
14910 cf_regex_libs="regex re"
14913 cf_regex_libs="gnurx $cf_regex_libs"
14917 echo "$as_me:14917: checking for regcomp" >&5
14918 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
14919 if test "${ac_cv_func_regcomp+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 cat >conftest.$ac_ext <<_ACEOF
14923 #line 14923 "configure"
14924 #include "confdefs.h"
14925 /* System header to define __stub macros and hopefully few prototypes,
14926 which can conflict with char regcomp (); below. */
14927 #include <assert.h>
14928 /* Override any gcc2 internal prototype to avoid an error. */
14932 /* We use char because int might match the return type of a gcc2
14933 builtin and then its argument prototype would still apply. */
14940 /* The GNU C library defines this for functions which it implements
14941 to always fail with ENOSYS. Some functions are actually named
14942 something starting with __ and the normal name is an alias. */
14943 #if defined (__stub_regcomp) || defined (__stub___regcomp)
14946 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:14954: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>&5
14957 echo "$as_me:14957: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -s conftest$ac_exeext'
14960 { (eval echo "$as_me:14960: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:14963: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_cv_func_regcomp=yes
14967 echo "$as_me: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 ac_cv_func_regcomp=no
14971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14973 echo "$as_me:14973: result: $ac_cv_func_regcomp" >&5
14974 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
14975 if test $ac_cv_func_regcomp = yes; then
14976 cf_regex_func=regcomp
14979 for cf_regex_lib in $cf_regex_libs
14981 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
14982 echo "$as_me:14982: checking for regcomp in -l$cf_regex_lib" >&5
14983 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
14984 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 ac_check_lib_save_LIBS=$LIBS
14988 LIBS="-l$cf_regex_lib $LIBS"
14989 cat >conftest.$ac_ext <<_ACEOF
14990 #line 14990 "configure"
14991 #include "confdefs.h"
14993 /* Override any gcc2 internal prototype to avoid an error. */
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (eval echo "$as_me:15009: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>&5
15012 echo "$as_me:15012: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
15014 { ac_try='test -s conftest$ac_exeext'
15015 { (eval echo "$as_me:15015: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:15018: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 eval "$as_ac_Lib=yes"
15022 echo "$as_me: failed program was:" >&5
15023 cat conftest.$ac_ext >&5
15024 eval "$as_ac_Lib=no"
15026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15027 LIBS=$ac_check_lib_save_LIBS
15029 echo "$as_me:15029: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15030 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15031 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15033 cf_add_libs="-l$cf_regex_lib"
15034 # Filter out duplicates - this happens with badly-designed ".pc" files...
15035 for cf_add_1lib in $LIBS
15037 for cf_add_2lib in $cf_add_libs
15039 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15045 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15047 LIBS="$cf_add_libs"
15049 cf_regex_func=regcomp
15057 if test "$cf_regex_func" = no ; then
15058 echo "$as_me:15058: checking for compile" >&5
15059 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15060 if test "${ac_cv_func_compile+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 cat >conftest.$ac_ext <<_ACEOF
15064 #line 15064 "configure"
15065 #include "confdefs.h"
15066 /* System header to define __stub macros and hopefully few prototypes,
15067 which can conflict with char compile (); below. */
15068 #include <assert.h>
15069 /* Override any gcc2 internal prototype to avoid an error. */
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15081 /* The GNU C library defines this for functions which it implements
15082 to always fail with ENOSYS. Some functions are actually named
15083 something starting with __ and the normal name is an alias. */
15084 #if defined (__stub_compile) || defined (__stub___compile)
15087 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (eval echo "$as_me:15095: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>&5
15098 echo "$as_me:15098: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -s conftest$ac_exeext'
15101 { (eval echo "$as_me:15101: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:15104: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_cv_func_compile=yes
15108 echo "$as_me: failed program was:" >&5
15109 cat conftest.$ac_ext >&5
15110 ac_cv_func_compile=no
15112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15114 echo "$as_me:15114: result: $ac_cv_func_compile" >&5
15115 echo "${ECHO_T}$ac_cv_func_compile" >&6
15116 if test $ac_cv_func_compile = yes; then
15117 cf_regex_func=compile
15120 echo "$as_me:15120: checking for compile in -lgen" >&5
15121 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
15122 if test "${ac_cv_lib_gen_compile+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 ac_check_lib_save_LIBS=$LIBS
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line 15128 "configure"
15129 #include "confdefs.h"
15131 /* Override any gcc2 internal prototype to avoid an error. */
15135 /* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:15147: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>&5
15150 echo "$as_me:15150: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -s conftest$ac_exeext'
15153 { (eval echo "$as_me:15153: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:15156: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_lib_gen_compile=yes
15160 echo "$as_me: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162 ac_cv_lib_gen_compile=no
15164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15165 LIBS=$ac_check_lib_save_LIBS
15167 echo "$as_me:15167: result: $ac_cv_lib_gen_compile" >&5
15168 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
15169 if test $ac_cv_lib_gen_compile = yes; then
15171 cf_add_libs="-lgen"
15172 # Filter out duplicates - this happens with badly-designed ".pc" files...
15173 for cf_add_1lib in $LIBS
15175 for cf_add_2lib in $cf_add_libs
15177 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15183 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15185 LIBS="$cf_add_libs"
15187 cf_regex_func=compile
15194 if test "$cf_regex_func" = no ; then
15195 { echo "$as_me:15195: WARNING: cannot find regular expression library" >&5
15196 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
15199 echo "$as_me:15199: checking for regular-expression headers" >&5
15200 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
15201 if test "${cf_cv_regex_hdrs+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 cf_cv_regex_hdrs=no
15206 case $cf_regex_func in
15208 for cf_regex_hdr in regexp.h regexpr.h
15210 cat >conftest.$ac_ext <<_ACEOF
15211 #line 15211 "configure"
15212 #include "confdefs.h"
15213 #include <$cf_regex_hdr>
15218 char *p = compile("", "", "", 0);
15219 int x = step("", "");
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (eval echo "$as_me:15226: \"$ac_link\"") >&5
15227 (eval $ac_link) 2>&5
15229 echo "$as_me:15229: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -s conftest$ac_exeext'
15232 { (eval echo "$as_me:15232: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:15235: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15238 cf_cv_regex_hdrs=$cf_regex_hdr
15242 echo "$as_me: failed program was:" >&5
15243 cat conftest.$ac_ext >&5
15245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15249 for cf_regex_hdr in regex.h
15251 cat >conftest.$ac_ext <<_ACEOF
15252 #line 15252 "configure"
15253 #include "confdefs.h"
15254 #include <sys/types.h>
15255 #include <$cf_regex_hdr>
15261 int x = regcomp(p, "", 0);
15262 int y = regexec(p, "", 0, 0, 0);
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (eval echo "$as_me:15270: \"$ac_link\"") >&5
15271 (eval $ac_link) 2>&5
15273 echo "$as_me:15273: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -s conftest$ac_exeext'
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
15282 cf_cv_regex_hdrs=$cf_regex_hdr
15286 echo "$as_me: failed program was:" >&5
15287 cat conftest.$ac_ext >&5
15289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15295 echo "$as_me:15295: result: $cf_cv_regex_hdrs" >&5
15296 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
15298 case $cf_cv_regex_hdrs in
15299 (no) { echo "$as_me:15299: WARNING: no regular expression header found" >&5
15300 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
15302 cat >>confdefs.h <<\EOF
15303 #define HAVE_REGEX_H_FUNCS 1
15307 cat >>confdefs.h <<\EOF
15308 #define HAVE_REGEXP_H_FUNCS 1
15312 cat >>confdefs.h <<\EOF
15313 #define HAVE_REGEXPR_H_FUNCS 1
15337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15338 echo "$as_me:15338: checking for $ac_header" >&5
15339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 cat >conftest.$ac_ext <<_ACEOF
15344 #line 15344 "configure"
15345 #include "confdefs.h"
15346 #include <$ac_header>
15348 if { (eval echo "$as_me:15348: \"$ac_cpp conftest.$ac_ext\"") >&5
15349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15351 egrep -v '^ *\+' conftest.er1 >conftest.err
15353 cat conftest.err >&5
15354 echo "$as_me:15354: \$? = $ac_status" >&5
15355 (exit $ac_status); } >/dev/null; then
15356 if test -s conftest.err; then
15357 ac_cpp_err=$ac_c_preproc_warn_flag
15364 if test -z "$ac_cpp_err"; then
15365 eval "$as_ac_Header=yes"
15367 echo "$as_me: failed program was:" >&5
15368 cat conftest.$ac_ext >&5
15369 eval "$as_ac_Header=no"
15371 rm -f conftest.err conftest.$ac_ext
15373 echo "$as_me:15373: result: `eval echo '${'$as_ac_Header'}'`" >&5
15374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15376 cat >>confdefs.h <<EOF
15377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15383 for ac_header in unistd.h getopt.h
15385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15386 echo "$as_me:15386: checking for $ac_header" >&5
15387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 cat >conftest.$ac_ext <<_ACEOF
15392 #line 15392 "configure"
15393 #include "confdefs.h"
15394 #include <$ac_header>
15396 if { (eval echo "$as_me:15396: \"$ac_cpp conftest.$ac_ext\"") >&5
15397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15399 egrep -v '^ *\+' conftest.er1 >conftest.err
15401 cat conftest.err >&5
15402 echo "$as_me:15402: \$? = $ac_status" >&5
15403 (exit $ac_status); } >/dev/null; then
15404 if test -s conftest.err; then
15405 ac_cpp_err=$ac_c_preproc_warn_flag
15412 if test -z "$ac_cpp_err"; then
15413 eval "$as_ac_Header=yes"
15415 echo "$as_me: failed program was:" >&5
15416 cat conftest.$ac_ext >&5
15417 eval "$as_ac_Header=no"
15419 rm -f conftest.err conftest.$ac_ext
15421 echo "$as_me:15421: result: `eval echo '${'$as_ac_Header'}'`" >&5
15422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15424 cat >>confdefs.h <<EOF
15425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15431 echo "$as_me:15431: checking for header declaring getopt variables" >&5
15432 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15433 if test "${cf_cv_getopt_header+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 cf_cv_getopt_header=none
15438 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15440 cat >conftest.$ac_ext <<_ACEOF
15441 #line 15441 "configure"
15442 #include "confdefs.h"
15444 #include <$cf_header>
15448 int x = optind; char *y = optarg
15453 rm -f conftest.$ac_objext
15454 if { (eval echo "$as_me:15454: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>&5
15457 echo "$as_me:15457: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -s conftest.$ac_objext'
15460 { (eval echo "$as_me:15460: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15463 echo "$as_me:15463: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 cf_cv_getopt_header=$cf_header
15468 echo "$as_me: failed program was:" >&5
15469 cat conftest.$ac_ext >&5
15471 rm -f conftest.$ac_objext conftest.$ac_ext
15475 echo "$as_me:15475: result: $cf_cv_getopt_header" >&5
15476 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15477 if test $cf_cv_getopt_header != none ; then
15479 cat >>confdefs.h <<\EOF
15480 #define HAVE_GETOPT_HEADER 1
15484 if test $cf_cv_getopt_header = getopt.h ; then
15486 cat >>confdefs.h <<\EOF
15487 #define NEED_GETOPT_H 1
15492 # check for ISC (this may also define _POSIX_SOURCE)
15493 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15494 if test "x$ISC" = xyes ; then
15496 echo "$as_me:15496: checking for main in -lcposix" >&5
15497 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15498 if test "${ac_cv_lib_cposix_main+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 ac_check_lib_save_LIBS=$LIBS
15502 LIBS="-lcposix $LIBS"
15503 cat >conftest.$ac_ext <<_ACEOF
15504 #line 15504 "configure"
15505 #include "confdefs.h"
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (eval echo "$as_me:15516: \"$ac_link\"") >&5
15517 (eval $ac_link) 2>&5
15519 echo "$as_me:15519: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
15521 { ac_try='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:15522: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:15525: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_lib_cposix_main=yes
15529 echo "$as_me: failed program was:" >&5
15530 cat conftest.$ac_ext >&5
15531 ac_cv_lib_cposix_main=no
15533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15536 echo "$as_me:15536: result: $ac_cv_lib_cposix_main" >&5
15537 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15538 if test $ac_cv_lib_cposix_main = yes; then
15539 cat >>confdefs.h <<EOF
15540 #define HAVE_LIBCPOSIX 1
15543 LIBS="-lcposix $LIBS"
15547 echo "$as_me:15547: checking for bzero in -linet" >&5
15548 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
15549 if test "${ac_cv_lib_inet_bzero+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 ac_check_lib_save_LIBS=$LIBS
15553 LIBS="-linet $LIBS"
15554 cat >conftest.$ac_ext <<_ACEOF
15555 #line 15555 "configure"
15556 #include "confdefs.h"
15558 /* Override any gcc2 internal prototype to avoid an error. */
15562 /* We use char because int might match the return type of a gcc2
15563 builtin and then its argument prototype would still apply. */
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (eval echo "$as_me:15574: \"$ac_link\"") >&5
15575 (eval $ac_link) 2>&5
15577 echo "$as_me:15577: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -s conftest$ac_exeext'
15580 { (eval echo "$as_me:15580: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:15583: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 ac_cv_lib_inet_bzero=yes
15587 echo "$as_me: failed program was:" >&5
15588 cat conftest.$ac_ext >&5
15589 ac_cv_lib_inet_bzero=no
15591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15592 LIBS=$ac_check_lib_save_LIBS
15594 echo "$as_me:15594: result: $ac_cv_lib_inet_bzero" >&5
15595 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
15596 if test $ac_cv_lib_inet_bzero = yes; then
15598 cf_add_libs="-linet"
15599 # Filter out duplicates - this happens with badly-designed ".pc" files...
15600 for cf_add_1lib in $LIBS
15602 for cf_add_2lib in $cf_add_libs
15604 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15610 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15612 LIBS="$cf_add_libs"
15617 echo "$as_me:15617: checking if sys/time.h works with sys/select.h" >&5
15618 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15619 if test "${cf_cv_sys_time_select+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 cat >conftest.$ac_ext <<_ACEOF
15624 #line 15624 "configure"
15625 #include "confdefs.h"
15627 #include <sys/types.h>
15628 #ifdef HAVE_SYS_TIME_H
15629 #include <sys/time.h>
15631 #ifdef HAVE_SYS_SELECT_H
15632 #include <sys/select.h>
15643 rm -f conftest.$ac_objext
15644 if { (eval echo "$as_me:15644: \"$ac_compile\"") >&5
15645 (eval $ac_compile) 2>&5
15647 echo "$as_me:15647: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -s conftest.$ac_objext'
15650 { (eval echo "$as_me:15650: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:15653: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 cf_cv_sys_time_select=yes
15657 echo "$as_me: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15659 cf_cv_sys_time_select=no
15661 rm -f conftest.$ac_objext conftest.$ac_ext
15665 echo "$as_me:15665: result: $cf_cv_sys_time_select" >&5
15666 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15667 test "$cf_cv_sys_time_select" = yes &&
15668 cat >>confdefs.h <<\EOF
15669 #define HAVE_SYS_TIME_SELECT 1
15672 ### checks for compiler characteristics
15674 ac_cpp='$CPP $CPPFLAGS'
15675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15678 ac_main_return=return
15680 echo "$as_me:15680: checking for an ANSI C-conforming const" >&5
15681 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15682 if test "${ac_cv_c_const+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 cat >conftest.$ac_ext <<_ACEOF
15686 #line 15686 "configure"
15687 #include "confdefs.h"
15692 /* FIXME: Include the comments suggested by Paul. */
15693 #ifndef __cplusplus
15694 /* Ultrix mips cc rejects this. */
15695 typedef int charset[2];
15697 /* SunOS 4.1.1 cc rejects this. */
15698 char const *const *ccp;
15700 /* NEC SVR4.0.2 mips cc rejects this. */
15701 struct point {int x, y;};
15702 static struct point const zero = {0,0};
15703 /* AIX XL C 1.02.0.0 rejects this.
15704 It does not let you subtract one const X* pointer from another in
15705 an arm of an if-expression whose if-part is not a constant
15707 const char *g = "string";
15708 ccp = &g + (g ? g-g : 0);
15709 /* HPUX 7.0 cc rejects these. */
15712 ccp = (char const *const *) p;
15713 { /* SCO 3.2v4 cc rejects this. */
15715 char const *s = 0 ? (char *) 0 : (char const *) 0;
15719 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15720 int x[] = {25, 17};
15721 const int *foo = &x[0];
15724 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15725 typedef const int *iptr;
15729 { /* AIX XL C 1.02.0.0 rejects this saying
15730 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15731 struct s { int j; const int *ap[3]; };
15732 struct s *b; b->j = 5;
15734 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15735 const int foo = 10;
15743 rm -f conftest.$ac_objext
15744 if { (eval echo "$as_me:15744: \"$ac_compile\"") >&5
15745 (eval $ac_compile) 2>&5
15747 echo "$as_me:15747: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -s conftest.$ac_objext'
15750 { (eval echo "$as_me:15750: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15753 echo "$as_me:15753: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15757 echo "$as_me: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15761 rm -f conftest.$ac_objext conftest.$ac_ext
15763 echo "$as_me:15763: result: $ac_cv_c_const" >&5
15764 echo "${ECHO_T}$ac_cv_c_const" >&6
15765 if test $ac_cv_c_const = no; then
15767 cat >>confdefs.h <<\EOF
15773 echo "$as_me:15773: checking for inline" >&5
15774 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15775 if test "${ac_cv_c_inline+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 for ac_kw in inline __inline__ __inline; do
15780 cat >conftest.$ac_ext <<_ACEOF
15781 #line 15781 "configure"
15782 #include "confdefs.h"
15783 #ifndef __cplusplus
15784 static $ac_kw int static_foo () {return 0; }
15785 $ac_kw int foo () {return 0; }
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:15790: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15793 echo "$as_me:15793: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:15796: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:15799: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 ac_cv_c_inline=$ac_kw; break
15803 echo "$as_me: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15806 rm -f conftest.$ac_objext conftest.$ac_ext
15810 echo "$as_me:15810: result: $ac_cv_c_inline" >&5
15811 echo "${ECHO_T}$ac_cv_c_inline" >&6
15812 case $ac_cv_c_inline in
15815 cat >>confdefs.h <<\EOF
15819 *) cat >>confdefs.h <<EOF
15820 #define inline $ac_cv_c_inline
15826 if test "$ac_cv_c_inline" != no ; then
15827 NCURSES_INLINE=inline
15828 if test "$INTEL_COMPILER" = yes
15831 elif test "$CLANG_COMPILER" = yes
15834 elif test "$GCC" = yes
15836 echo "$as_me:15836: checking if $CC supports options to tune inlining" >&5
15837 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
15838 if test "${cf_cv_gcc_inline+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 cf_save_CFLAGS=$CFLAGS
15843 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
15844 cat >conftest.$ac_ext <<_ACEOF
15845 #line 15845 "configure"
15846 #include "confdefs.h"
15847 inline int foo(void) { return 1; }
15851 ${cf_cv_main_return:-return} foo()
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:15857: \"$ac_compile\"") >&5
15858 (eval $ac_compile) 2>&5
15860 echo "$as_me:15860: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (eval echo "$as_me:15863: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:15866: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 cf_cv_gcc_inline=yes
15870 echo "$as_me: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 cf_cv_gcc_inline=no
15874 rm -f conftest.$ac_objext conftest.$ac_ext
15875 CFLAGS=$cf_save_CFLAGS
15878 echo "$as_me:15878: result: $cf_cv_gcc_inline" >&5
15879 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
15880 if test "$cf_cv_gcc_inline" = yes ; then
15885 cf_new_extra_cppflags=
15887 for cf_add_cflags in --param max-inline-insns-single=1200
15889 case $cf_fix_cppflags in
15891 case $cf_add_cflags in
15892 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15893 case $cf_add_cflags in
15895 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15897 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15898 && test -z "${cf_tst_cflags}" \
15899 && cf_fix_cppflags=yes
15901 if test $cf_fix_cppflags = yes ; then
15902 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15904 elif test "${cf_tst_cflags}" = "\"'" ; then
15905 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15910 case "$CPPFLAGS" in
15914 case $cf_add_cflags in
15916 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15918 CPPFLAGS=`echo "$CPPFLAGS" | \
15919 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15920 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15924 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15929 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15934 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15936 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15938 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15939 && test -z "${cf_tst_cflags}" \
15940 && cf_fix_cppflags=no
15945 if test -n "$cf_new_cflags" ; then
15947 CFLAGS="$CFLAGS $cf_new_cflags"
15950 if test -n "$cf_new_cppflags" ; then
15952 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15955 if test -n "$cf_new_extra_cppflags" ; then
15957 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15964 echo "$as_me:15964: checking for signal global datatype" >&5
15965 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
15966 if test "${cf_cv_sig_atomic_t+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 "volatile sig_atomic_t" \
15975 cat >conftest.$ac_ext <<_ACEOF
15976 #line 15976 "configure"
15977 #include "confdefs.h"
15979 #include <sys/types.h>
15980 #include <signal.h>
15985 static void handler(int sig)
15992 signal(SIGINT, handler);
15998 rm -f conftest.$ac_objext
15999 if { (eval echo "$as_me:15999: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>&5
16002 echo "$as_me:16002: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (eval echo "$as_me:16005: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16008 echo "$as_me:16008: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 cf_cv_sig_atomic_t=$cf_type
16012 echo "$as_me: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16014 cf_cv_sig_atomic_t=no
16016 rm -f conftest.$ac_objext conftest.$ac_ext
16017 test "$cf_cv_sig_atomic_t" != no && break
16022 echo "$as_me:16022: result: $cf_cv_sig_atomic_t" >&5
16023 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16024 test "$cf_cv_sig_atomic_t" != no &&
16025 cat >>confdefs.h <<EOF
16026 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16029 if test $NCURSES_CHTYPE = auto ; then
16031 echo "$as_me:16031: checking for type of chtype" >&5
16032 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16033 if test "${cf_cv_typeof_chtype+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 if test "$cross_compiling" = yes; then
16038 cf_cv_typeof_chtype=long
16040 cat >conftest.$ac_ext <<_ACEOF
16041 #line 16041 "configure"
16042 #include "confdefs.h"
16044 #define WANT_BITS 31
16048 FILE *fp = fopen("cf_test.out", "w");
16050 char *result = "long";
16051 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16054 for (n = 0; n < WANT_BITS; n++) {
16057 if (y != 1 || x == 0) {
16063 * If x is nonzero, an int is big enough for the bits
16066 result = (x != 0) ? "int" : "long";
16071 ${cf_cv_main_return:-return}(0);
16075 rm -f conftest$ac_exeext
16076 if { (eval echo "$as_me:16076: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>&5
16079 echo "$as_me:16079: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081 { (eval echo "$as_me:16081: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:16084: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 cf_cv_typeof_chtype=`cat cf_test.out`
16088 echo "$as_me: program exited with status $ac_status" >&5
16089 echo "$as_me: failed program was:" >&5
16090 cat conftest.$ac_ext >&5
16091 cf_cv_typeof_chtype=long
16093 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16099 echo "$as_me:16099: result: $cf_cv_typeof_chtype" >&5
16100 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
16102 cat >>confdefs.h <<EOF
16103 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
16107 cf_cv_typeof_chtype=$NCURSES_CHTYPE
16109 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
16111 echo "$as_me:16111: checking if unsigned literals are legal" >&5
16112 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
16113 if test "${cf_cv_unsigned_literals+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 cat >conftest.$ac_ext <<_ACEOF
16118 #line 16118 "configure"
16119 #include "confdefs.h"
16124 long x = 1L + 1UL + 1U + 1
16129 rm -f conftest.$ac_objext
16130 if { (eval echo "$as_me:16130: \"$ac_compile\"") >&5
16131 (eval $ac_compile) 2>&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:16136: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:16139: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 cf_cv_unsigned_literals=yes
16143 echo "$as_me: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 cf_cv_unsigned_literals=no
16147 rm -f conftest.$ac_objext conftest.$ac_ext
16151 echo "$as_me:16151: result: $cf_cv_unsigned_literals" >&5
16152 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
16155 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
16156 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
16158 if test $NCURSES_MMASK_T = auto ; then
16159 cf_cv_typeof_mmask_t=long
16161 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
16163 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
16165 ### Checks for external-data
16167 echo "$as_me:16167: checking if external errno is declared" >&5
16168 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
16169 if test "${cf_cv_dcl_errno+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 cat >conftest.$ac_ext <<_ACEOF
16174 #line 16174 "configure"
16175 #include "confdefs.h"
16177 #ifdef HAVE_STDLIB_H
16178 #include <stdlib.h>
16181 #include <sys/types.h>
16186 int x = (int) errno
16191 rm -f conftest.$ac_objext
16192 if { (eval echo "$as_me:16192: \"$ac_compile\"") >&5
16193 (eval $ac_compile) 2>&5
16195 echo "$as_me:16195: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -s conftest.$ac_objext'
16198 { (eval echo "$as_me:16198: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:16201: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 cf_cv_dcl_errno=yes
16205 echo "$as_me: failed program was:" >&5
16206 cat conftest.$ac_ext >&5
16209 rm -f conftest.$ac_objext conftest.$ac_ext
16212 echo "$as_me:16212: result: $cf_cv_dcl_errno" >&5
16213 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
16215 if test "$cf_cv_dcl_errno" = no ; then
16217 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16219 cat >>confdefs.h <<EOF
16220 #define $cf_result 1
16225 # It's possible (for near-UNIX clones) that the data doesn't exist
16227 echo "$as_me:16227: checking if external errno exists" >&5
16228 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
16229 if test "${cf_cv_have_errno+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16234 #line 16234 "configure"
16235 #include "confdefs.h"
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:16249: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>&5
16252 echo "$as_me:16252: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
16254 { ac_try='test -s conftest$ac_exeext'
16255 { (eval echo "$as_me:16255: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:16258: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 cf_cv_have_errno=yes
16262 echo "$as_me: failed program was:" >&5
16263 cat conftest.$ac_ext >&5
16264 cf_cv_have_errno=no
16266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16269 echo "$as_me:16269: result: $cf_cv_have_errno" >&5
16270 echo "${ECHO_T}$cf_cv_have_errno" >&6
16272 if test "$cf_cv_have_errno" = yes ; then
16274 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16276 cat >>confdefs.h <<EOF
16277 #define $cf_result 1
16282 echo "$as_me:16282: checking if data-only library module links" >&5
16283 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
16284 if test "${cf_cv_link_dataonly+set}" = set; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 cat >conftest.$ac_ext <<EOF
16290 #line 16290 "configure"
16291 int testdata[3] = { 123, 456, 789 };
16293 if { (eval echo "$as_me:16293: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>&5
16296 echo "$as_me:16296: \$? = $ac_status" >&5
16297 (exit $ac_status); } ; then
16298 mv conftest.o data.o && \
16299 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
16301 rm -f conftest.$ac_ext data.o
16302 cat >conftest.$ac_ext <<EOF
16303 #line 16303 "configure"
16307 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
16309 extern int testdata[3];
16310 return testdata[0] == 123
16311 && testdata[1] == 456
16312 && testdata[2] == 789;
16316 if { (eval echo "$as_me:16316: \"$ac_compile\"") >&5
16317 (eval $ac_compile) 2>&5
16319 echo "$as_me:16319: \$? = $ac_status" >&5
16320 (exit $ac_status); }; then
16321 mv conftest.o func.o && \
16322 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
16324 rm -f conftest.$ac_ext func.o
16325 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
16326 cf_saveLIBS="$LIBS"
16327 LIBS="conftest.a $LIBS"
16328 if test "$cross_compiling" = yes; then
16329 cf_cv_link_dataonly=unknown
16331 cat >conftest.$ac_ext <<_ACEOF
16332 #line 16332 "configure"
16333 #include "confdefs.h"
16337 extern int testfunc();
16338 ${cf_cv_main_return:-return} (!testfunc());
16342 rm -f conftest$ac_exeext
16343 if { (eval echo "$as_me:16343: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>&5
16346 echo "$as_me:16346: \$? = $ac_status" >&5
16347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16348 { (eval echo "$as_me:16348: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16351 echo "$as_me:16351: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16353 cf_cv_link_dataonly=yes
16355 echo "$as_me: program exited with status $ac_status" >&5
16356 echo "$as_me: failed program was:" >&5
16357 cat conftest.$ac_ext >&5
16358 cf_cv_link_dataonly=no
16360 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16362 LIBS="$cf_saveLIBS"
16366 echo "$as_me:16366: result: $cf_cv_link_dataonly" >&5
16367 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
16369 if test "$cf_cv_link_dataonly" = no ; then
16371 cat >>confdefs.h <<\EOF
16372 #define BROKEN_LINKER 1
16378 ### Checks for library functions.
16404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16405 echo "$as_me:16405: checking for $ac_func" >&5
16406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16407 if eval "test \"\${$as_ac_var+set}\" = set"; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 cat >conftest.$ac_ext <<_ACEOF
16411 #line 16411 "configure"
16412 #include "confdefs.h"
16413 /* System header to define __stub macros and hopefully few prototypes,
16414 which can conflict with char $ac_func (); below. */
16415 #include <assert.h>
16416 /* Override any gcc2 internal prototype to avoid an error. */
16420 /* We use char because int might match the return type of a gcc2
16421 builtin and then its argument prototype would still apply. */
16428 /* The GNU C library defines this for functions which it implements
16429 to always fail with ENOSYS. Some functions are actually named
16430 something starting with __ and the normal name is an alias. */
16431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16434 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (eval echo "$as_me:16442: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>&5
16445 echo "$as_me:16445: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -s conftest$ac_exeext'
16448 { (eval echo "$as_me:16448: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:16451: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 eval "$as_ac_var=yes"
16455 echo "$as_me: failed program was:" >&5
16456 cat conftest.$ac_ext >&5
16457 eval "$as_ac_var=no"
16459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16461 echo "$as_me:16461: result: `eval echo '${'$as_ac_var'}'`" >&5
16462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16463 if test `eval echo '${'$as_ac_var'}'` = yes; then
16464 cat >>confdefs.h <<EOF
16465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16471 if test "x$ac_cv_func_getopt" = xno &&
16472 test "x$cf_with_progs$cf_with_tests" != xnono; then
16473 { { echo "$as_me:16473: error: getopt is required for building programs" >&5
16474 echo "$as_me: error: getopt is required for building programs" >&2;}
16475 { (exit 1); exit 1; }; }
16478 if test "x$with_getcap" = "xyes" ; then
16480 echo "$as_me:16480: checking for terminal-capability database functions" >&5
16481 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16482 if test "${cf_cv_cgetent+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 cat >conftest.$ac_ext <<_ACEOF
16487 #line 16487 "configure"
16488 #include "confdefs.h"
16490 #include <stdlib.h>
16497 char *db_array = temp;
16498 cgetent(&buf, &db_array, "vt100");
16499 cgetcap(buf, "tc", '=');
16500 cgetmatch(buf, "tc");
16506 rm -f conftest.$ac_objext conftest$ac_exeext
16507 if { (eval echo "$as_me:16507: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>&5
16510 echo "$as_me:16510: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -s conftest$ac_exeext'
16513 { (eval echo "$as_me:16513: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 echo "$as_me:16516: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16520 echo "$as_me: failed program was:" >&5
16521 cat conftest.$ac_ext >&5
16524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16527 echo "$as_me:16527: result: $cf_cv_cgetent" >&5
16528 echo "${ECHO_T}$cf_cv_cgetent" >&6
16530 if test "$cf_cv_cgetent" = yes
16533 cat >>confdefs.h <<\EOF
16534 #define HAVE_BSD_CGETENT 1
16537 echo "$as_me:16537: checking if cgetent uses const parameter" >&5
16538 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16539 if test "${cf_cv_cgetent_const+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 cat >conftest.$ac_ext <<_ACEOF
16544 #line 16544 "configure"
16545 #include "confdefs.h"
16547 #include <stdlib.h>
16554 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
16555 const char *db_array = temp;
16556 cgetent(&buf, &db_array, "vt100");
16558 cgetcap(buf, "tc", '=');
16559 cgetmatch(buf, "tc");
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (eval echo "$as_me:16566: \"$ac_link\"") >&5
16567 (eval $ac_link) 2>&5
16569 echo "$as_me:16569: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -s conftest$ac_exeext'
16572 { (eval echo "$as_me:16572: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16575 echo "$as_me:16575: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
16577 cf_cv_cgetent_const=yes
16579 echo "$as_me: failed program was:" >&5
16580 cat conftest.$ac_ext >&5
16581 cf_cv_cgetent_const=no
16583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16586 echo "$as_me:16586: result: $cf_cv_cgetent_const" >&5
16587 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
16588 if test "$cf_cv_cgetent_const" = yes
16591 cat >>confdefs.h <<EOF
16592 #define CGETENT_CONST const
16600 echo "$as_me:16600: checking for isascii" >&5
16601 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
16602 if test "${cf_cv_have_isascii+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 cat >conftest.$ac_ext <<_ACEOF
16607 #line 16607 "configure"
16608 #include "confdefs.h"
16613 int x = isascii(' ')
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (eval echo "$as_me:16619: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>&5
16622 echo "$as_me:16622: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -s conftest$ac_exeext'
16625 { (eval echo "$as_me:16625: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 echo "$as_me:16628: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 cf_cv_have_isascii=yes
16632 echo "$as_me: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16634 cf_cv_have_isascii=no
16636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16639 echo "$as_me:16639: result: $cf_cv_have_isascii" >&5
16640 echo "${ECHO_T}$cf_cv_have_isascii" >&6
16641 test "$cf_cv_have_isascii" = yes &&
16642 cat >>confdefs.h <<\EOF
16643 #define HAVE_ISASCII 1
16646 if test "$ac_cv_func_sigaction" = yes; then
16647 echo "$as_me:16647: checking whether sigaction needs _POSIX_SOURCE" >&5
16648 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line 16650 "configure"
16651 #include "confdefs.h"
16653 #include <sys/types.h>
16654 #include <signal.h>
16658 struct sigaction act
16663 rm -f conftest.$ac_objext
16664 if { (eval echo "$as_me:16664: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>&5
16667 echo "$as_me:16667: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (eval echo "$as_me:16670: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16673 echo "$as_me:16673: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16677 echo "$as_me: failed program was:" >&5
16678 cat conftest.$ac_ext >&5
16680 cat >conftest.$ac_ext <<_ACEOF
16681 #line 16681 "configure"
16682 #include "confdefs.h"
16684 #define _POSIX_SOURCE
16685 #include <sys/types.h>
16686 #include <signal.h>
16690 struct sigaction act
16695 rm -f conftest.$ac_objext
16696 if { (eval echo "$as_me:16696: \"$ac_compile\"") >&5
16697 (eval $ac_compile) 2>&5
16699 echo "$as_me:16699: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try='test -s conftest.$ac_objext'
16702 { (eval echo "$as_me:16702: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16705 echo "$as_me:16705: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16709 cat >>confdefs.h <<\EOF
16710 #define _POSIX_SOURCE 1
16714 echo "$as_me: failed program was:" >&5
16715 cat conftest.$ac_ext >&5
16718 rm -f conftest.$ac_objext conftest.$ac_ext
16720 rm -f conftest.$ac_objext conftest.$ac_ext
16721 echo "$as_me:16721: result: $sigact_bad" >&5
16722 echo "${ECHO_T}$sigact_bad" >&6
16725 echo "$as_me:16725: checking if nanosleep really works" >&5
16726 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
16727 if test "${cf_cv_func_nanosleep+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 if test "$cross_compiling" = yes; then
16732 cf_cv_func_nanosleep=unknown
16734 cat >conftest.$ac_ext <<_ACEOF
16735 #line 16735 "configure"
16736 #include "confdefs.h"
16742 #ifdef HAVE_SYS_TIME_H
16743 #include <sys/time.h>
16747 struct timespec ts1, ts2;
16750 ts1.tv_nsec = 750000000;
16754 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16755 ${cf_cv_main_return:-return}(code != 0);
16759 rm -f conftest$ac_exeext
16760 if { (eval echo "$as_me:16760: \"$ac_link\"") >&5
16761 (eval $ac_link) 2>&5
16763 echo "$as_me:16763: \$? = $ac_status" >&5
16764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16765 { (eval echo "$as_me:16765: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:16768: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 cf_cv_func_nanosleep=yes
16772 echo "$as_me: program exited with status $ac_status" >&5
16773 echo "$as_me: failed program was:" >&5
16774 cat conftest.$ac_ext >&5
16775 cf_cv_func_nanosleep=no
16777 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16780 echo "$as_me:16780: result: $cf_cv_func_nanosleep" >&5
16781 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16783 test "$cf_cv_func_nanosleep" = "yes" &&
16784 cat >>confdefs.h <<\EOF
16785 #define HAVE_NANOSLEEP 1
16794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16795 echo "$as_me:16795: checking for $ac_header" >&5
16796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 cat >conftest.$ac_ext <<_ACEOF
16801 #line 16801 "configure"
16802 #include "confdefs.h"
16803 #include <$ac_header>
16805 if { (eval echo "$as_me:16805: \"$ac_cpp conftest.$ac_ext\"") >&5
16806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16808 egrep -v '^ *\+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:16811: \$? = $ac_status" >&5
16812 (exit $ac_status); } >/dev/null; then
16813 if test -s conftest.err; then
16814 ac_cpp_err=$ac_c_preproc_warn_flag
16821 if test -z "$ac_cpp_err"; then
16822 eval "$as_ac_Header=yes"
16824 echo "$as_me: failed program was:" >&5
16825 cat conftest.$ac_ext >&5
16826 eval "$as_ac_Header=no"
16828 rm -f conftest.err conftest.$ac_ext
16830 echo "$as_me:16830: result: `eval echo '${'$as_ac_Header'}'`" >&5
16831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16833 cat >>confdefs.h <<EOF
16834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16840 if test "$ISC" = yes ; then
16842 for ac_header in sys/termio.h
16844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16845 echo "$as_me:16845: checking for $ac_header" >&5
16846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 cat >conftest.$ac_ext <<_ACEOF
16851 #line 16851 "configure"
16852 #include "confdefs.h"
16853 #include <$ac_header>
16855 if { (eval echo "$as_me:16855: \"$ac_cpp conftest.$ac_ext\"") >&5
16856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16858 egrep -v '^ *\+' conftest.er1 >conftest.err
16860 cat conftest.err >&5
16861 echo "$as_me:16861: \$? = $ac_status" >&5
16862 (exit $ac_status); } >/dev/null; then
16863 if test -s conftest.err; then
16864 ac_cpp_err=$ac_c_preproc_warn_flag
16871 if test -z "$ac_cpp_err"; then
16872 eval "$as_ac_Header=yes"
16874 echo "$as_me: failed program was:" >&5
16875 cat conftest.$ac_ext >&5
16876 eval "$as_ac_Header=no"
16878 rm -f conftest.err conftest.$ac_ext
16880 echo "$as_me:16880: result: `eval echo '${'$as_ac_Header'}'`" >&5
16881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16883 cat >>confdefs.h <<EOF
16884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16891 if test "$ac_cv_header_termios_h" = yes ; then
16892 case "$CFLAGS $CPPFLAGS" in
16893 (*-D_POSIX_SOURCE*)
16894 termios_bad=dunno ;;
16895 (*) termios_bad=maybe ;;
16897 if test "$termios_bad" = maybe ; then
16898 echo "$as_me:16898: checking whether termios.h needs _POSIX_SOURCE" >&5
16899 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16901 #line 16901 "configure"
16902 #include "confdefs.h"
16903 #include <termios.h>
16907 struct termios foo; int x = foo.c_iflag
16912 rm -f conftest.$ac_objext
16913 if { (eval echo "$as_me:16913: \"$ac_compile\"") >&5
16914 (eval $ac_compile) 2>&5
16916 echo "$as_me:16916: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (eval echo "$as_me:16919: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:16922: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16926 echo "$as_me: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16929 cat >conftest.$ac_ext <<_ACEOF
16930 #line 16930 "configure"
16931 #include "confdefs.h"
16933 #define _POSIX_SOURCE
16934 #include <termios.h>
16938 struct termios foo; int x = foo.c_iflag
16943 rm -f conftest.$ac_objext
16944 if { (eval echo "$as_me:16944: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>&5
16947 echo "$as_me:16947: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:16950: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:16953: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 termios_bad=unknown
16957 echo "$as_me: failed program was:" >&5
16958 cat conftest.$ac_ext >&5
16960 cat >>confdefs.h <<\EOF
16961 #define _POSIX_SOURCE 1
16965 rm -f conftest.$ac_objext conftest.$ac_ext
16968 rm -f conftest.$ac_objext conftest.$ac_ext
16969 echo "$as_me:16969: result: $termios_bad" >&5
16970 echo "${ECHO_T}$termios_bad" >&6
16974 echo "$as_me:16974: checking for tcgetattr" >&5
16975 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
16976 if test "${cf_cv_have_tcgetattr+set}" = set; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16981 #line 16981 "configure"
16982 #include "confdefs.h"
16984 #include <sys/types.h>
16985 #ifdef HAVE_UNISTD_H
16986 #include <unistd.h>
16988 #ifdef HAVE_TERMIOS_H
16989 #include <termios.h>
16990 #define TTY struct termios
16992 #ifdef HAVE_TERMIO_H
16993 #include <termio.h>
16994 #define TTY struct termio
17003 tcgetattr(1, &foo);
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (eval echo "$as_me:17009: \"$ac_link\"") >&5
17010 (eval $ac_link) 2>&5
17012 echo "$as_me:17012: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -s conftest$ac_exeext'
17015 { (eval echo "$as_me:17015: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:17018: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17020 cf_cv_have_tcgetattr=yes
17022 echo "$as_me: failed program was:" >&5
17023 cat conftest.$ac_ext >&5
17024 cf_cv_have_tcgetattr=no
17026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17028 echo "$as_me:17028: result: $cf_cv_have_tcgetattr" >&5
17029 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17030 test "$cf_cv_have_tcgetattr" = yes &&
17031 cat >>confdefs.h <<\EOF
17032 #define HAVE_TCGETATTR 1
17035 echo "$as_me:17035: checking for vsscanf function or workaround" >&5
17036 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17037 if test "${cf_cv_func_vsscanf+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 cat >conftest.$ac_ext <<_ACEOF
17042 #line 17042 "configure"
17043 #include "confdefs.h"
17045 #include <stdarg.h>
17052 vsscanf("from", "%d", ap)
17057 rm -f conftest.$ac_objext conftest$ac_exeext
17058 if { (eval echo "$as_me:17058: \"$ac_link\"") >&5
17059 (eval $ac_link) 2>&5
17061 echo "$as_me:17061: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
17063 { ac_try='test -s conftest$ac_exeext'
17064 { (eval echo "$as_me:17064: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17067 echo "$as_me:17067: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 cf_cv_func_vsscanf=vsscanf
17071 echo "$as_me: failed program was:" >&5
17072 cat conftest.$ac_ext >&5
17074 cat >conftest.$ac_ext <<_ACEOF
17075 #line 17075 "configure"
17076 #include "confdefs.h"
17078 #include <stdarg.h>
17085 char *str = "from";
17087 strbuf._flag = _IOREAD;
17088 strbuf._ptr = strbuf._base = (unsigned char *) str;
17089 strbuf._cnt = strlen(str);
17090 strbuf._file = _NFILE;
17091 return (vfscanf(&strbuf, "%d", ap))
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (eval echo "$as_me:17097: \"$ac_link\"") >&5
17098 (eval $ac_link) 2>&5
17100 echo "$as_me:17100: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try='test -s conftest$ac_exeext'
17103 { (eval echo "$as_me:17103: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17106 echo "$as_me:17106: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
17108 cf_cv_func_vsscanf=vfscanf
17110 echo "$as_me: failed program was:" >&5
17111 cat conftest.$ac_ext >&5
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line 17114 "configure"
17115 #include "confdefs.h"
17117 #include <stdarg.h>
17124 char *str = "from";
17126 strbuf._flag = _IOREAD;
17127 strbuf._ptr = strbuf._base = (unsigned char *) str;
17128 strbuf._cnt = strlen(str);
17129 strbuf._file = _NFILE;
17130 return (_doscan(&strbuf, "%d", ap))
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:17136: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>&5
17139 echo "$as_me:17139: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:17142: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:17145: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 cf_cv_func_vsscanf=_doscan
17149 echo "$as_me: failed program was:" >&5
17150 cat conftest.$ac_ext >&5
17152 cf_cv_func_vsscanf=no
17154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17160 echo "$as_me:17160: result: $cf_cv_func_vsscanf" >&5
17161 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
17163 case $cf_cv_func_vsscanf in
17165 cat >>confdefs.h <<\EOF
17166 #define HAVE_VSSCANF 1
17170 cat >>confdefs.h <<\EOF
17171 #define HAVE_VFSCANF 1
17175 cat >>confdefs.h <<\EOF
17176 #define HAVE__DOSCAN 1
17181 echo "$as_me:17181: checking for working mkstemp" >&5
17182 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
17183 if test "${cf_cv_func_mkstemp+set}" = set; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 if test "$cross_compiling" = yes; then
17189 cf_cv_func_mkstemp=maybe
17191 cat >conftest.$ac_ext <<_ACEOF
17192 #line 17192 "configure"
17193 #include "confdefs.h"
17195 #include <sys/types.h>
17196 #include <stdlib.h>
17198 #include <string.h>
17199 #include <sys/stat.h>
17202 char *tmpl = "conftestXXXXXX";
17210 for (n = 0; n < 2; ++n) {
17211 strcpy(name[n], tmpl);
17212 if ((fd = mkstemp(name[n])) >= 0) {
17213 if (!strcmp(name[n], tmpl)
17214 || stat(name[n], &sb) != 0
17215 || (sb.st_mode & S_IFMT) != S_IFREG
17216 || (sb.st_mode & 077) != 0) {
17223 && !strcmp(name[0], name[1]))
17225 ${cf_cv_main_return:-return}(result);
17229 rm -f conftest$ac_exeext
17230 if { (eval echo "$as_me:17230: \"$ac_link\"") >&5
17231 (eval $ac_link) 2>&5
17233 echo "$as_me:17233: \$? = $ac_status" >&5
17234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17235 { (eval echo "$as_me:17235: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17238 echo "$as_me:17238: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 cf_cv_func_mkstemp=yes
17243 echo "$as_me: program exited with status $ac_status" >&5
17244 echo "$as_me: failed program was:" >&5
17245 cat conftest.$ac_ext >&5
17246 cf_cv_func_mkstemp=no
17249 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17253 echo "$as_me:17253: result: $cf_cv_func_mkstemp" >&5
17254 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
17255 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
17256 echo "$as_me:17256: checking for mkstemp" >&5
17257 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17258 if test "${ac_cv_func_mkstemp+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 cat >conftest.$ac_ext <<_ACEOF
17262 #line 17262 "configure"
17263 #include "confdefs.h"
17264 /* System header to define __stub macros and hopefully few prototypes,
17265 which can conflict with char mkstemp (); below. */
17266 #include <assert.h>
17267 /* Override any gcc2 internal prototype to avoid an error. */
17271 /* We use char because int might match the return type of a gcc2
17272 builtin and then its argument prototype would still apply. */
17279 /* The GNU C library defines this for functions which it implements
17280 to always fail with ENOSYS. Some functions are actually named
17281 something starting with __ and the normal name is an alias. */
17282 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17285 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:17293: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>&5
17296 echo "$as_me:17296: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
17298 { ac_try='test -s conftest$ac_exeext'
17299 { (eval echo "$as_me:17299: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:17302: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_func_mkstemp=yes
17306 echo "$as_me: failed program was:" >&5
17307 cat conftest.$ac_ext >&5
17308 ac_cv_func_mkstemp=no
17310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17312 echo "$as_me:17312: result: $ac_cv_func_mkstemp" >&5
17313 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17316 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
17318 cat >>confdefs.h <<\EOF
17319 #define HAVE_MKSTEMP 1
17324 # setup for prototype of fallback for vsscanf()
17326 if test "$cf_cv_func_vsscanf" = vsscanf ; then
17332 if test "x$cross_compiling" = xyes ; then
17333 { echo "$as_me:17333: WARNING: cross compiling: assume setvbuf params not reversed" >&5
17334 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
17336 echo "$as_me:17336: checking whether setvbuf arguments are reversed" >&5
17337 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
17338 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 if test "$cross_compiling" = yes; then
17342 { { echo "$as_me:17342: error: cannot run test program while cross compiling" >&5
17343 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17344 { (exit 1); exit 1; }; }
17346 cat >conftest.$ac_ext <<_ACEOF
17347 #line 17347 "configure"
17348 #include "confdefs.h"
17350 /* If setvbuf has the reversed format, exit 0. */
17354 /* This call has the arguments reversed.
17355 A reversed system may check and see that the address of main
17356 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
17357 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
17358 $ac_main_return(1);
17359 putc('\r', stdout);
17360 $ac_main_return(0); /* Non-reversed systems segv here. */
17363 rm -f conftest$ac_exeext
17364 if { (eval echo "$as_me:17364: \"$ac_link\"") >&5
17365 (eval $ac_link) 2>&5
17367 echo "$as_me:17367: \$? = $ac_status" >&5
17368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17369 { (eval echo "$as_me:17369: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:17372: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_func_setvbuf_reversed=yes
17376 echo "$as_me: program exited with status $ac_status" >&5
17377 echo "$as_me: failed program was:" >&5
17378 cat conftest.$ac_ext >&5
17379 ac_cv_func_setvbuf_reversed=no
17381 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17383 rm -f core core.* *.core
17385 echo "$as_me:17385: result: $ac_cv_func_setvbuf_reversed" >&5
17386 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
17387 if test $ac_cv_func_setvbuf_reversed = yes; then
17389 cat >>confdefs.h <<\EOF
17390 #define SETVBUF_REVERSED 1
17396 echo "$as_me:17396: checking for intptr_t" >&5
17397 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
17398 if test "${ac_cv_type_intptr_t+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17402 #line 17402 "configure"
17403 #include "confdefs.h"
17404 $ac_includes_default
17408 if ((intptr_t *) 0)
17410 if (sizeof (intptr_t))
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:17417: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>&5
17420 echo "$as_me:17420: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -s conftest.$ac_objext'
17423 { (eval echo "$as_me:17423: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:17426: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_cv_type_intptr_t=yes
17430 echo "$as_me: failed program was:" >&5
17431 cat conftest.$ac_ext >&5
17432 ac_cv_type_intptr_t=no
17434 rm -f conftest.$ac_objext conftest.$ac_ext
17436 echo "$as_me:17436: result: $ac_cv_type_intptr_t" >&5
17437 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
17438 if test $ac_cv_type_intptr_t = yes; then
17442 cat >>confdefs.h <<EOF
17443 #define intptr_t long
17448 echo "$as_me:17448: checking for ssize_t" >&5
17449 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17450 if test "${ac_cv_type_ssize_t+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 cat >conftest.$ac_ext <<_ACEOF
17454 #line 17454 "configure"
17455 #include "confdefs.h"
17456 $ac_includes_default
17462 if (sizeof (ssize_t))
17468 rm -f conftest.$ac_objext
17469 if { (eval echo "$as_me:17469: \"$ac_compile\"") >&5
17470 (eval $ac_compile) 2>&5
17472 echo "$as_me:17472: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -s conftest.$ac_objext'
17475 { (eval echo "$as_me:17475: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 echo "$as_me:17478: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_type_ssize_t=yes
17482 echo "$as_me: failed program was:" >&5
17483 cat conftest.$ac_ext >&5
17484 ac_cv_type_ssize_t=no
17486 rm -f conftest.$ac_objext conftest.$ac_ext
17488 echo "$as_me:17488: result: $ac_cv_type_ssize_t" >&5
17489 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17490 if test $ac_cv_type_ssize_t = yes; then
17494 cat >>confdefs.h <<EOF
17495 #define ssize_t int
17500 echo "$as_me:17500: checking for type sigaction_t" >&5
17501 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17502 if test "${cf_cv_type_sigaction+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 cat >conftest.$ac_ext <<_ACEOF
17507 #line 17507 "configure"
17508 #include "confdefs.h"
17510 #include <signal.h>
17519 rm -f conftest.$ac_objext
17520 if { (eval echo "$as_me:17520: \"$ac_compile\"") >&5
17521 (eval $ac_compile) 2>&5
17523 echo "$as_me:17523: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -s conftest.$ac_objext'
17526 { (eval echo "$as_me:17526: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17529 echo "$as_me:17529: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 cf_cv_type_sigaction=yes
17533 echo "$as_me: failed program was:" >&5
17534 cat conftest.$ac_ext >&5
17535 cf_cv_type_sigaction=no
17537 rm -f conftest.$ac_objext conftest.$ac_ext
17540 echo "$as_me:17540: result: $cf_cv_type_sigaction" >&5
17541 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17542 test "$cf_cv_type_sigaction" = yes &&
17543 cat >>confdefs.h <<\EOF
17544 #define HAVE_TYPE_SIGACTION 1
17547 echo "$as_me:17547: checking declaration of size-change" >&5
17548 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
17549 if test "${cf_cv_sizechange+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 cf_cv_sizechange=unknown
17554 cf_save_CPPFLAGS="$CPPFLAGS"
17556 for cf_opts in "" "NEED_PTEM_H"
17559 CPPFLAGS="$cf_save_CPPFLAGS"
17560 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
17561 cat >conftest.$ac_ext <<_ACEOF
17562 #line 17562 "configure"
17563 #include "confdefs.h"
17564 #include <sys/types.h>
17565 #ifdef HAVE_TERMIOS_H
17566 #include <termios.h>
17568 #ifdef HAVE_TERMIO_H
17569 #include <termio.h>
17573 /* This is a workaround for SCO: they neglected to define struct winsize in
17574 * termios.h -- it's only in termio.h and ptem.h
17576 #include <sys/stream.h>
17577 #include <sys/ptem.h>
17579 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
17580 #include <sys/ioctl.h>
17588 struct ttysize win; /* FIXME: what system is this? */
17589 int y = win.ts_lines;
17590 int x = win.ts_cols;
17593 struct winsize win;
17594 int y = win.ws_row;
17595 int x = win.ws_col;
17597 no TIOCGSIZE or TIOCGWINSZ
17598 #endif /* TIOCGWINSZ */
17599 #endif /* TIOCGSIZE */
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:17606: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>&5
17609 echo "$as_me:17609: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:17612: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 echo "$as_me:17615: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 cf_cv_sizechange=yes
17619 echo "$as_me: failed program was:" >&5
17620 cat conftest.$ac_ext >&5
17621 cf_cv_sizechange=no
17623 rm -f conftest.$ac_objext conftest.$ac_ext
17625 CPPFLAGS="$cf_save_CPPFLAGS"
17626 if test "$cf_cv_sizechange" = yes ; then
17627 echo "size-change succeeded ($cf_opts)" >&5
17628 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
17634 echo "$as_me:17634: result: $cf_cv_sizechange" >&5
17635 echo "${ECHO_T}$cf_cv_sizechange" >&6
17636 if test "$cf_cv_sizechange" != no ; then
17638 cat >>confdefs.h <<\EOF
17639 #define HAVE_SIZECHANGE 1
17642 case $cf_cv_sizechange in
17644 cat >>confdefs.h <<EOF
17645 #define $cf_cv_sizechange 1
17652 echo "$as_me:17652: checking for memmove" >&5
17653 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17654 if test "${ac_cv_func_memmove+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 cat >conftest.$ac_ext <<_ACEOF
17658 #line 17658 "configure"
17659 #include "confdefs.h"
17660 /* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char memmove (); below. */
17662 #include <assert.h>
17663 /* Override any gcc2 internal prototype to avoid an error. */
17667 /* We use char because int might match the return type of a gcc2
17668 builtin and then its argument prototype would still apply. */
17675 /* The GNU C library defines this for functions which it implements
17676 to always fail with ENOSYS. Some functions are actually named
17677 something starting with __ and the normal name is an alias. */
17678 #if defined (__stub_memmove) || defined (__stub___memmove)
17681 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17688 rm -f conftest.$ac_objext conftest$ac_exeext
17689 if { (eval echo "$as_me:17689: \"$ac_link\"") >&5
17690 (eval $ac_link) 2>&5
17692 echo "$as_me:17692: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -s conftest$ac_exeext'
17695 { (eval echo "$as_me:17695: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:17698: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_cv_func_memmove=yes
17702 echo "$as_me: failed program was:" >&5
17703 cat conftest.$ac_ext >&5
17704 ac_cv_func_memmove=no
17706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17708 echo "$as_me:17708: result: $ac_cv_func_memmove" >&5
17709 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17710 if test $ac_cv_func_memmove = yes; then
17714 echo "$as_me:17714: checking for bcopy" >&5
17715 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
17716 if test "${ac_cv_func_bcopy+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 cat >conftest.$ac_ext <<_ACEOF
17720 #line 17720 "configure"
17721 #include "confdefs.h"
17722 /* System header to define __stub macros and hopefully few prototypes,
17723 which can conflict with char bcopy (); below. */
17724 #include <assert.h>
17725 /* Override any gcc2 internal prototype to avoid an error. */
17729 /* We use char because int might match the return type of a gcc2
17730 builtin and then its argument prototype would still apply. */
17737 /* The GNU C library defines this for functions which it implements
17738 to always fail with ENOSYS. Some functions are actually named
17739 something starting with __ and the normal name is an alias. */
17740 #if defined (__stub_bcopy) || defined (__stub___bcopy)
17743 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:17751: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>&5
17754 echo "$as_me:17754: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -s conftest$ac_exeext'
17757 { (eval echo "$as_me:17757: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:17760: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_func_bcopy=yes
17764 echo "$as_me: failed program was:" >&5
17765 cat conftest.$ac_ext >&5
17766 ac_cv_func_bcopy=no
17768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17770 echo "$as_me:17770: result: $ac_cv_func_bcopy" >&5
17771 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
17772 if test $ac_cv_func_bcopy = yes; then
17774 echo "$as_me:17774: checking if bcopy does overlapping moves" >&5
17775 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
17776 if test "${cf_cv_good_bcopy+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 if test "$cross_compiling" = yes; then
17781 cf_cv_good_bcopy=unknown
17783 cat >conftest.$ac_ext <<_ACEOF
17784 #line 17784 "configure"
17785 #include "confdefs.h"
17788 static char data[] = "abcdefghijklmnopqrstuwwxyz";
17790 bcopy(data, temp, sizeof(data));
17791 bcopy(temp+10, temp, 15);
17792 bcopy(temp+5, temp+15, 10);
17793 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
17797 rm -f conftest$ac_exeext
17798 if { (eval echo "$as_me:17798: \"$ac_link\"") >&5
17799 (eval $ac_link) 2>&5
17801 echo "$as_me:17801: \$? = $ac_status" >&5
17802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17803 { (eval echo "$as_me:17803: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17806 echo "$as_me:17806: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17808 cf_cv_good_bcopy=yes
17810 echo "$as_me: program exited with status $ac_status" >&5
17811 echo "$as_me: failed program was:" >&5
17812 cat conftest.$ac_ext >&5
17813 cf_cv_good_bcopy=no
17815 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17819 echo "$as_me:17819: result: $cf_cv_good_bcopy" >&5
17820 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
17823 cf_cv_good_bcopy=no
17826 if test "$cf_cv_good_bcopy" = yes ; then
17828 cat >>confdefs.h <<\EOF
17829 #define USE_OK_BCOPY 1
17834 cat >>confdefs.h <<\EOF
17835 #define USE_MY_MEMMOVE 1
17842 tty 2>&1 >/dev/null || {
17843 for ac_func in posix_openpt
17845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17846 echo "$as_me:17846: checking for $ac_func" >&5
17847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17848 if eval "test \"\${$as_ac_var+set}\" = set"; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 cat >conftest.$ac_ext <<_ACEOF
17852 #line 17852 "configure"
17853 #include "confdefs.h"
17854 /* System header to define __stub macros and hopefully few prototypes,
17855 which can conflict with char $ac_func (); below. */
17856 #include <assert.h>
17857 /* Override any gcc2 internal prototype to avoid an error. */
17861 /* We use char because int might match the return type of a gcc2
17862 builtin and then its argument prototype would still apply. */
17869 /* The GNU C library defines this for functions which it implements
17870 to always fail with ENOSYS. Some functions are actually named
17871 something starting with __ and the normal name is an alias. */
17872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17875 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (eval echo "$as_me:17883: \"$ac_link\"") >&5
17884 (eval $ac_link) 2>&5
17886 echo "$as_me:17886: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -s conftest$ac_exeext'
17889 { (eval echo "$as_me:17889: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:17892: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 eval "$as_ac_var=yes"
17896 echo "$as_me: failed program was:" >&5
17897 cat conftest.$ac_ext >&5
17898 eval "$as_ac_var=no"
17900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17902 echo "$as_me:17902: result: `eval echo '${'$as_ac_var'}'`" >&5
17903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17904 if test `eval echo '${'$as_ac_var'}'` = yes; then
17905 cat >>confdefs.h <<EOF
17906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17912 echo "$as_me:17912: checking if poll really works" >&5
17913 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
17914 if test "${cf_cv_working_poll+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 if test "$cross_compiling" = yes; then
17919 cf_cv_working_poll=unknown
17921 cat >conftest.$ac_ext <<_ACEOF
17922 #line 17922 "configure"
17923 #include "confdefs.h"
17925 #include <stdlib.h>
17927 #include <unistd.h>
17932 #include <sys/poll.h>
17935 struct pollfd myfds;
17938 /* check for Darwin bug with respect to "devices" */
17939 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
17942 myfds.events = POLLIN;
17945 ret = poll(&myfds, 1, 100);
17947 if (ret < 0 || (myfds.revents & POLLNVAL)) {
17952 fd = open("/dev/tty", 2); /* O_RDWR */
17954 #ifdef HAVE_POSIX_OPENPT
17956 fd = posix_openpt(O_RDWR);
17961 /* also check with standard input */
17963 myfds.events = POLLIN;
17965 ret = poll(&myfds, 1, 100);
17970 ${cf_cv_main_return:-return}(ret < 0);
17973 rm -f conftest$ac_exeext
17974 if { (eval echo "$as_me:17974: \"$ac_link\"") >&5
17975 (eval $ac_link) 2>&5
17977 echo "$as_me:17977: \$? = $ac_status" >&5
17978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17979 { (eval echo "$as_me:17979: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17982 echo "$as_me:17982: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 cf_cv_working_poll=yes
17986 echo "$as_me: program exited with status $ac_status" >&5
17987 echo "$as_me: failed program was:" >&5
17988 cat conftest.$ac_ext >&5
17989 cf_cv_working_poll=no
17991 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17994 echo "$as_me:17994: result: $cf_cv_working_poll" >&5
17995 echo "${ECHO_T}$cf_cv_working_poll" >&6
17996 test "$cf_cv_working_poll" = "yes" &&
17997 cat >>confdefs.h <<\EOF
17998 #define HAVE_WORKING_POLL 1
18001 echo "$as_me:18001: checking for va_copy" >&5
18002 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18003 if test "${cf_cv_have_va_copy+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18007 cat >conftest.$ac_ext <<_ACEOF
18008 #line 18008 "configure"
18009 #include "confdefs.h"
18011 #include <stdarg.h>
18017 static va_list dst;
18018 static va_list src;
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (eval echo "$as_me:18025: \"$ac_link\"") >&5
18026 (eval $ac_link) 2>&5
18028 echo "$as_me:18028: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (eval echo "$as_me:18031: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:18034: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 cf_cv_have_va_copy=yes
18038 echo "$as_me: failed program was:" >&5
18039 cat conftest.$ac_ext >&5
18040 cf_cv_have_va_copy=no
18042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18044 echo "$as_me:18044: result: $cf_cv_have_va_copy" >&5
18045 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
18047 test "$cf_cv_have_va_copy" = yes &&
18048 cat >>confdefs.h <<\EOF
18049 #define HAVE_VA_COPY 1
18052 echo "$as_me:18052: checking for __va_copy" >&5
18053 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
18054 if test "${cf_cv_have___va_copy+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 cat >conftest.$ac_ext <<_ACEOF
18059 #line 18059 "configure"
18060 #include "confdefs.h"
18062 #include <stdarg.h>
18068 static va_list dst;
18069 static va_list src;
18070 __va_copy(dst, src)
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (eval echo "$as_me:18076: \"$ac_link\"") >&5
18077 (eval $ac_link) 2>&5
18079 echo "$as_me:18079: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -s conftest$ac_exeext'
18082 { (eval echo "$as_me:18082: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18085 echo "$as_me:18085: \$? = $ac_status" >&5
18086 (exit $ac_status); }; }; then
18087 cf_cv_have___va_copy=yes
18089 echo "$as_me: failed program was:" >&5
18090 cat conftest.$ac_ext >&5
18091 cf_cv_have___va_copy=no
18093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18095 echo "$as_me:18095: result: $cf_cv_have___va_copy" >&5
18096 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
18098 test "$cf_cv_have___va_copy" = yes &&
18099 cat >>confdefs.h <<\EOF
18100 #define HAVE___VA_COPY 1
18103 echo "$as_me:18103: checking for pid_t" >&5
18104 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18105 if test "${ac_cv_type_pid_t+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 cat >conftest.$ac_ext <<_ACEOF
18109 #line 18109 "configure"
18110 #include "confdefs.h"
18111 $ac_includes_default
18117 if (sizeof (pid_t))
18123 rm -f conftest.$ac_objext
18124 if { (eval echo "$as_me:18124: \"$ac_compile\"") >&5
18125 (eval $ac_compile) 2>&5
18127 echo "$as_me:18127: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:18130: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18133 echo "$as_me:18133: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_type_pid_t=yes
18137 echo "$as_me: failed program was:" >&5
18138 cat conftest.$ac_ext >&5
18139 ac_cv_type_pid_t=no
18141 rm -f conftest.$ac_objext conftest.$ac_ext
18143 echo "$as_me:18143: result: $ac_cv_type_pid_t" >&5
18144 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18145 if test $ac_cv_type_pid_t = yes; then
18149 cat >>confdefs.h <<EOF
18155 for ac_header in unistd.h vfork.h
18157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18158 echo "$as_me:18158: checking for $ac_header" >&5
18159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 cat >conftest.$ac_ext <<_ACEOF
18164 #line 18164 "configure"
18165 #include "confdefs.h"
18166 #include <$ac_header>
18168 if { (eval echo "$as_me:18168: \"$ac_cpp conftest.$ac_ext\"") >&5
18169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18171 egrep -v '^ *\+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:18174: \$? = $ac_status" >&5
18175 (exit $ac_status); } >/dev/null; then
18176 if test -s conftest.err; then
18177 ac_cpp_err=$ac_c_preproc_warn_flag
18184 if test -z "$ac_cpp_err"; then
18185 eval "$as_ac_Header=yes"
18187 echo "$as_me: failed program was:" >&5
18188 cat conftest.$ac_ext >&5
18189 eval "$as_ac_Header=no"
18191 rm -f conftest.err conftest.$ac_ext
18193 echo "$as_me:18193: result: `eval echo '${'$as_ac_Header'}'`" >&5
18194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18196 cat >>confdefs.h <<EOF
18197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18203 for ac_func in fork vfork
18205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18206 echo "$as_me:18206: checking for $ac_func" >&5
18207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18208 if eval "test \"\${$as_ac_var+set}\" = set"; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line 18212 "configure"
18213 #include "confdefs.h"
18214 /* System header to define __stub macros and hopefully few prototypes,
18215 which can conflict with char $ac_func (); below. */
18216 #include <assert.h>
18217 /* Override any gcc2 internal prototype to avoid an error. */
18221 /* We use char because int might match the return type of a gcc2
18222 builtin and then its argument prototype would still apply. */
18229 /* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18235 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18242 rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (eval echo "$as_me:18243: \"$ac_link\"") >&5
18244 (eval $ac_link) 2>&5
18246 echo "$as_me:18246: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try='test -s conftest$ac_exeext'
18249 { (eval echo "$as_me:18249: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18252 echo "$as_me:18252: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 eval "$as_ac_var=yes"
18256 echo "$as_me: failed program was:" >&5
18257 cat conftest.$ac_ext >&5
18258 eval "$as_ac_var=no"
18260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18262 echo "$as_me:18262: result: `eval echo '${'$as_ac_var'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18264 if test `eval echo '${'$as_ac_var'}'` = yes; then
18265 cat >>confdefs.h <<EOF
18266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18272 ac_cv_func_fork_works=$ac_cv_func_fork
18273 if test "x$ac_cv_func_fork" = xyes; then
18274 echo "$as_me:18274: checking for working fork" >&5
18275 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18276 if test "${ac_cv_func_fork_works+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 if test "$cross_compiling" = yes; then
18280 ac_cv_func_fork_works=cross
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* By Rüdiger Kuhlmann. */
18284 #include <sys/types.h>
18286 # include <unistd.h>
18288 /* Some systems only have a dummy stub for fork() */
18292 $ac_main_return (1);
18293 $ac_main_return (0);
18296 rm -f conftest$ac_exeext
18297 if { (eval echo "$as_me:18297: \"$ac_link\"") >&5
18298 (eval $ac_link) 2>&5
18300 echo "$as_me:18300: \$? = $ac_status" >&5
18301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18302 { (eval echo "$as_me:18302: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:18305: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_func_fork_works=yes
18309 echo "$as_me: program exited with status $ac_status" >&5
18310 echo "$as_me: failed program was:" >&5
18311 cat conftest.$ac_ext >&5
18312 ac_cv_func_fork_works=no
18314 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18317 echo "$as_me:18317: result: $ac_cv_func_fork_works" >&5
18318 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18321 if test "x$ac_cv_func_fork_works" = xcross; then
18323 *-*-amigaos* | *-*-msdosdjgpp*)
18324 # Override, as these systems have only a dummy fork() stub
18325 ac_cv_func_fork_works=no
18328 ac_cv_func_fork_works=yes
18331 { echo "$as_me:18331: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
18332 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
18334 ac_cv_func_vfork_works=$ac_cv_func_vfork
18335 if test "x$ac_cv_func_vfork" = xyes; then
18336 echo "$as_me:18336: checking for working vfork" >&5
18337 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18338 if test "${ac_cv_func_vfork_works+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 if test "$cross_compiling" = yes; then
18342 ac_cv_func_vfork_works=cross
18344 cat >conftest.$ac_ext <<_ACEOF
18345 #line 18345 "configure"
18346 #include "confdefs.h"
18347 /* Thanks to Paul Eggert for this test. */
18349 #include <sys/types.h>
18350 #include <sys/stat.h>
18352 # include <unistd.h>
18355 # include <vfork.h>
18357 /* On some sparc systems, changes by the child to local and incoming
18358 argument registers are propagated back to the parent. The compiler
18359 is told about this with #include <vfork.h>, but some compilers
18360 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18361 static variable whose address is put into a register that is
18362 clobbered by the vfork. */
18365 sparc_address_test (int arg)
18367 sparc_address_test (arg) int arg;
18370 static pid_t child;
18388 pid_t parent = getpid ();
18391 sparc_address_test ();
18396 /* Here is another test for sparc vfork register problems. This
18397 test uses lots of local variables, at least as many local
18398 variables as main has allocated so far including compiler
18399 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18400 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18401 reuse the register of parent for one of the local variables,
18402 since it will think that parent can't possibly be used any more
18403 in this routine. Assigning to the local variable will thus
18404 munge parent in the parent process. */
18406 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18407 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18408 /* Convince the compiler that p..p7 are live; otherwise, it might
18409 use the same hardware register for all 8 local variables. */
18410 if (p != p1 || p != p2 || p != p3 || p != p4
18411 || p != p5 || p != p6 || p != p7)
18414 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18415 from child file descriptors. If the child closes a descriptor
18416 before it execs or exits, this munges the parent's descriptor
18417 as well. Test for this by closing stdout in the child. */
18418 _exit(close(fileno(stdout)) != 0);
18423 while (wait(&status) != child)
18426 /* Was there some problem with vforking? */
18429 /* Did the child fail? (This shouldn't happen.) */
18432 /* Did the vfork/compiler bug occur? */
18433 || parent != getpid()
18435 /* Did the file descriptor bug occur? */
18436 || fstat(fileno(stdout), &st) != 0
18441 rm -f conftest$ac_exeext
18442 if { (eval echo "$as_me:18442: \"$ac_link\"") >&5
18443 (eval $ac_link) 2>&5
18445 echo "$as_me:18445: \$? = $ac_status" >&5
18446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18447 { (eval echo "$as_me:18447: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18450 echo "$as_me:18450: \$? = $ac_status" >&5
18451 (exit $ac_status); }; }; then
18452 ac_cv_func_vfork_works=yes
18454 echo "$as_me: program exited with status $ac_status" >&5
18455 echo "$as_me: failed program was:" >&5
18456 cat conftest.$ac_ext >&5
18457 ac_cv_func_vfork_works=no
18459 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18462 echo "$as_me:18462: result: $ac_cv_func_vfork_works" >&5
18463 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18466 if test "x$ac_cv_func_fork_works" = xcross; then
18467 ac_cv_func_vfork_works=ac_cv_func_vfork
18468 { echo "$as_me:18468: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
18469 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
18472 if test "x$ac_cv_func_vfork_works" = xyes; then
18474 cat >>confdefs.h <<\EOF
18475 #define HAVE_WORKING_VFORK 1
18480 cat >>confdefs.h <<\EOF
18485 if test "x$ac_cv_func_fork_works" = xyes; then
18487 cat >>confdefs.h <<\EOF
18488 #define HAVE_WORKING_FORK 1
18493 # special check for test/ditto.c
18495 echo "$as_me:18495: checking for openpty in -lutil" >&5
18496 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18497 if test "${ac_cv_lib_util_openpty+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 ac_check_lib_save_LIBS=$LIBS
18501 LIBS="-lutil $LIBS"
18502 cat >conftest.$ac_ext <<_ACEOF
18503 #line 18503 "configure"
18504 #include "confdefs.h"
18506 /* Override any gcc2 internal prototype to avoid an error. */
18510 /* We use char because int might match the return type of a gcc2
18511 builtin and then its argument prototype would still apply. */
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:18522: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>&5
18525 echo "$as_me:18525: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -s conftest$ac_exeext'
18528 { (eval echo "$as_me:18528: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:18531: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_util_openpty=yes
18535 echo "$as_me: failed program was:" >&5
18536 cat conftest.$ac_ext >&5
18537 ac_cv_lib_util_openpty=no
18539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18540 LIBS=$ac_check_lib_save_LIBS
18542 echo "$as_me:18542: result: $ac_cv_lib_util_openpty" >&5
18543 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18544 if test $ac_cv_lib_util_openpty = yes; then
18550 echo "$as_me:18550: checking for openpty header" >&5
18551 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18552 if test "${cf_cv_func_openpty+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 cf_save_LIBS="$LIBS"
18557 test $cf_cv_lib_util = yes && {
18558 cf_add_libs="-lutil"
18559 # Filter out duplicates - this happens with badly-designed ".pc" files...
18560 for cf_add_1lib in $LIBS
18562 for cf_add_2lib in $cf_add_libs
18564 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18570 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18572 LIBS="$cf_add_libs"
18574 for cf_header in pty.h libutil.h util.h
18576 cat >conftest.$ac_ext <<_ACEOF
18577 #line 18577 "configure"
18578 #include "confdefs.h"
18580 #include <$cf_header>
18586 int x = openpty((int *)0, (int *)0, (char *)0,
18587 (struct termios *)0, (struct winsize *)0);
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (eval echo "$as_me:18594: \"$ac_link\"") >&5
18595 (eval $ac_link) 2>&5
18597 echo "$as_me:18597: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (eval echo "$as_me:18600: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18603 echo "$as_me:18603: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18606 cf_cv_func_openpty=$cf_header
18610 echo "$as_me: failed program was:" >&5
18611 cat conftest.$ac_ext >&5
18613 cf_cv_func_openpty=no
18616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18618 LIBS="$cf_save_LIBS"
18621 echo "$as_me:18621: result: $cf_cv_func_openpty" >&5
18622 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18624 if test "$cf_cv_func_openpty" != no ; then
18626 cat >>confdefs.h <<EOF
18627 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18630 cat >>confdefs.h <<\EOF
18631 #define USE_XTERM_PTY 1
18634 if test "x$cf_cv_lib_util" = xyes ; then
18636 cf_add_libs="-lutil"
18637 # Filter out duplicates - this happens with badly-designed ".pc" files...
18638 for cf_add_1lib in $TEST_LIBS
18640 for cf_add_2lib in $cf_add_libs
18642 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18648 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18650 TEST_LIBS="$cf_add_libs"
18655 if test "$with_hashed_db" != no ; then
18657 cat >>confdefs.h <<\EOF
18658 #define USE_HASHED_DB 1
18661 case $with_hashed_db in
18665 if test -d "$with_hashed_db" ; then
18667 if test -n "$with_hashed_db/include" ; then
18668 for cf_add_incdir in $with_hashed_db/include
18670 while test $cf_add_incdir != /usr/include
18672 if test -d $cf_add_incdir
18675 if test -n "$CFLAGS$CPPFLAGS" ; then
18676 # a loop is needed to ensure we can add subdirs of existing dirs
18677 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18678 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18679 cf_have_incdir=yes; break
18684 if test "$cf_have_incdir" = no ; then
18685 if test "$cf_add_incdir" = /usr/local/include ; then
18686 if test "$GCC" = yes
18688 cf_save_CPPFLAGS=$CPPFLAGS
18689 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18690 cat >conftest.$ac_ext <<_ACEOF
18691 #line 18691 "configure"
18692 #include "confdefs.h"
18702 rm -f conftest.$ac_objext
18703 if { (eval echo "$as_me:18703: \"$ac_compile\"") >&5
18704 (eval $ac_compile) 2>&5
18706 echo "$as_me:18706: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -s conftest.$ac_objext'
18709 { (eval echo "$as_me:18709: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18712 echo "$as_me:18712: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18716 echo "$as_me: failed program was:" >&5
18717 cat conftest.$ac_ext >&5
18720 rm -f conftest.$ac_objext conftest.$ac_ext
18721 CPPFLAGS=$cf_save_CPPFLAGS
18726 if test "$cf_have_incdir" = no ; then
18727 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18729 echo "${as_me:-configure}:18729: testing adding $cf_add_incdir to include-path ..." 1>&5
18731 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18733 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18734 test "$cf_top_incdir" = "$cf_add_incdir" && break
18735 cf_add_incdir="$cf_top_incdir"
18746 if test -n "$with_hashed_db/lib" ; then
18747 for cf_add_libdir in $with_hashed_db/lib
18749 if test $cf_add_libdir = /usr/lib ; then
18751 elif test -d $cf_add_libdir
18754 if test -n "$LDFLAGS$LIBS" ; then
18755 # a loop is needed to ensure we can add subdirs of existing dirs
18756 for cf_test_libdir in $LDFLAGS $LIBS ; do
18757 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18758 cf_have_libdir=yes; break
18762 if test "$cf_have_libdir" = no ; then
18763 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18765 echo "${as_me:-configure}:18765: testing adding $cf_add_libdir to library-path ..." 1>&5
18767 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18774 case "$with_hashed_db" in
18776 { echo "$as_me:18776: WARNING: no such directory $with_hashed_db" >&5
18777 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
18783 test "x$prefix" != "xNONE" && \
18784 test -d "$prefix" && \
18786 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
18787 test -d $prefix/include && cf_search="$cf_search $prefix/include"
18788 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
18789 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
18790 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
18791 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
18794 for cf_subdir_prefix in \
18803 test "x$cf_subdir_prefix" != "x$prefix" && \
18804 test -d "$cf_subdir_prefix" && \
18805 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18806 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
18807 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
18808 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
18809 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
18810 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
18811 test -d $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db"
18816 for cf_item in $cf_search
18819 (*/$with_hashed_db)
18821 if test -n "$cf_item" ; then
18822 for cf_add_incdir in $cf_item
18824 while test $cf_add_incdir != /usr/include
18826 if test -d $cf_add_incdir
18829 if test -n "$CFLAGS$CPPFLAGS" ; then
18830 # a loop is needed to ensure we can add subdirs of existing dirs
18831 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18832 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18833 cf_have_incdir=yes; break
18838 if test "$cf_have_incdir" = no ; then
18839 if test "$cf_add_incdir" = /usr/local/include ; then
18840 if test "$GCC" = yes
18842 cf_save_CPPFLAGS=$CPPFLAGS
18843 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18844 cat >conftest.$ac_ext <<_ACEOF
18845 #line 18845 "configure"
18846 #include "confdefs.h"
18856 rm -f conftest.$ac_objext
18857 if { (eval echo "$as_me:18857: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>&5
18860 echo "$as_me:18860: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -s conftest.$ac_objext'
18863 { (eval echo "$as_me:18863: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18866 echo "$as_me:18866: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18870 echo "$as_me: failed program was:" >&5
18871 cat conftest.$ac_ext >&5
18874 rm -f conftest.$ac_objext conftest.$ac_ext
18875 CPPFLAGS=$cf_save_CPPFLAGS
18880 if test "$cf_have_incdir" = no ; then
18881 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18883 echo "${as_me:-configure}:18883: testing adding $cf_add_incdir to include-path ..." 1>&5
18885 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18887 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18888 test "$cf_top_incdir" = "$cf_add_incdir" && break
18889 cf_add_incdir="$cf_top_incdir"
18906 test "x$prefix" != "xNONE" && \
18907 test -d "$prefix" && \
18909 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
18910 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
18911 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
18912 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
18913 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
18914 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
18917 for cf_subdir_prefix in \
18926 test "x$cf_subdir_prefix" != "x$prefix" && \
18927 test -d "$cf_subdir_prefix" && \
18928 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18929 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
18930 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
18931 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
18932 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
18933 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
18934 test -d $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db"
18939 for cf_item in $cf_search
18942 (*/$with_hashed_db)
18944 if test -n "$cf_item" ; then
18945 for cf_add_libdir in $cf_item
18947 if test $cf_add_libdir = /usr/lib ; then
18949 elif test -d $cf_add_libdir
18952 if test -n "$LDFLAGS$LIBS" ; then
18953 # a loop is needed to ensure we can add subdirs of existing dirs
18954 for cf_test_libdir in $LDFLAGS $LIBS ; do
18955 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18956 cf_have_libdir=yes; break
18960 if test "$cf_have_libdir" = no ; then
18961 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18963 echo "${as_me:-configure}:18963: testing adding $cf_add_libdir to library-path ..." 1>&5
18965 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18980 echo "$as_me:18980: checking for db.h" >&5
18981 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
18982 if test "${ac_cv_header_db_h+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18985 cat >conftest.$ac_ext <<_ACEOF
18986 #line 18986 "configure"
18987 #include "confdefs.h"
18990 if { (eval echo "$as_me:18990: \"$ac_cpp conftest.$ac_ext\"") >&5
18991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18993 egrep -v '^ *\+' conftest.er1 >conftest.err
18995 cat conftest.err >&5
18996 echo "$as_me:18996: \$? = $ac_status" >&5
18997 (exit $ac_status); } >/dev/null; then
18998 if test -s conftest.err; then
18999 ac_cpp_err=$ac_c_preproc_warn_flag
19006 if test -z "$ac_cpp_err"; then
19007 ac_cv_header_db_h=yes
19009 echo "$as_me: failed program was:" >&5
19010 cat conftest.$ac_ext >&5
19011 ac_cv_header_db_h=no
19013 rm -f conftest.err conftest.$ac_ext
19015 echo "$as_me:19015: result: $ac_cv_header_db_h" >&5
19016 echo "${ECHO_T}$ac_cv_header_db_h" >&6
19017 if test $ac_cv_header_db_h = yes; then
19019 echo "$as_me:19019: checking for version of db" >&5
19020 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
19021 if test "${cf_cv_hashed_db_version+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 cf_cv_hashed_db_version=unknown
19027 for cf_db_version in 1 2 3 4 5 6
19030 echo "${as_me:-configure}:19030: testing checking for db version $cf_db_version ..." 1>&5
19032 cat >conftest.$ac_ext <<_ACEOF
19033 #line 19033 "configure"
19034 #include "confdefs.h"
19036 $ac_includes_default
19039 #ifdef DB_VERSION_MAJOR
19040 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
19041 #if $cf_db_version == DB_VERSION_MAJOR
19047 #if $cf_db_version == 1
19048 /* ok: assuming this is DB 1.8.5 */
19062 rm -f conftest.$ac_objext
19063 if { (eval echo "$as_me:19063: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>&5
19066 echo "$as_me:19066: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -s conftest.$ac_objext'
19069 { (eval echo "$as_me:19069: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19072 echo "$as_me:19072: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19075 cf_cv_hashed_db_version=$cf_db_version
19079 echo "$as_me: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19082 rm -f conftest.$ac_objext conftest.$ac_ext
19086 echo "$as_me:19086: result: $cf_cv_hashed_db_version" >&5
19087 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
19089 if test "$cf_cv_hashed_db_version" = unknown ; then
19090 { { echo "$as_me:19090: error: Cannot determine version of db" >&5
19091 echo "$as_me: error: Cannot determine version of db" >&2;}
19092 { (exit 1); exit 1; }; }
19095 echo "$as_me:19095: checking for db libraries" >&5
19096 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
19097 if test "${cf_cv_hashed_db_libs+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 cf_cv_hashed_db_libs=unknown
19102 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
19104 cf_save_libs="$LIBS"
19105 if test -n "$cf_db_libs"; then
19107 cf_add_libs="-l$cf_db_libs"
19108 # Filter out duplicates - this happens with badly-designed ".pc" files...
19109 for cf_add_1lib in $LIBS
19111 for cf_add_2lib in $cf_add_libs
19113 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19119 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19121 LIBS="$cf_add_libs"
19125 echo "${as_me:-configure}:19125: testing checking for library "$cf_db_libs" ..." 1>&5
19127 cat >conftest.$ac_ext <<_ACEOF
19128 #line 19128 "configure"
19129 #include "confdefs.h"
19131 $ac_includes_default
19138 char *path = "/tmp/foo";
19139 #ifdef DB_VERSION_MAJOR
19140 #if DB_VERSION_MAJOR >= 4
19142 db_create(&result, NULL, 0);
19143 result->open(result,
19150 #elif DB_VERSION_MAJOR >= 3
19152 db_create(&result, NULL, 0);
19153 result->open(result,
19159 #elif DB_VERSION_MAJOR >= 2
19168 #endif /* DB_VERSION_MAJOR */
19170 DB *result = dbopen(path,
19176 ${cf_cv_main_return:-return}(result != 0)
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (eval echo "$as_me:19183: \"$ac_link\"") >&5
19184 (eval $ac_link) 2>&5
19186 echo "$as_me:19186: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -s conftest$ac_exeext'
19189 { (eval echo "$as_me:19189: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19192 echo "$as_me:19192: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19195 if test -n "$cf_db_libs" ; then
19196 cf_cv_hashed_db_libs=$cf_db_libs
19198 cf_cv_hashed_db_libs=default
19200 LIBS="$cf_save_libs"
19204 echo "$as_me: failed program was:" >&5
19205 cat conftest.$ac_ext >&5
19207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19208 LIBS="$cf_save_libs"
19212 echo "$as_me:19212: result: $cf_cv_hashed_db_libs" >&5
19213 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
19215 if test "$cf_cv_hashed_db_libs" = unknown ; then
19216 { { echo "$as_me:19216: error: Cannot determine library for db" >&5
19217 echo "$as_me: error: Cannot determine library for db" >&2;}
19218 { (exit 1); exit 1; }; }
19219 elif test "$cf_cv_hashed_db_libs" != default ; then
19221 cf_add_libs="-l$cf_cv_hashed_db_libs"
19222 # Filter out duplicates - this happens with badly-designed ".pc" files...
19223 for cf_add_1lib in $LIBS
19225 for cf_add_2lib in $cf_add_libs
19227 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19233 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19235 LIBS="$cf_add_libs"
19242 { { echo "$as_me:19242: error: Cannot find db.h" >&5
19243 echo "$as_me: error: Cannot find db.h" >&2;}
19244 { (exit 1); exit 1; }; }
19250 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
19251 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19252 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19255 # Just in case, check if the C compiler has a bool type.
19257 echo "$as_me:19257: checking if we should include stdbool.h" >&5
19258 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19260 if test "${cf_cv_header_stdbool_h+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 cat >conftest.$ac_ext <<_ACEOF
19265 #line 19265 "configure"
19266 #include "confdefs.h"
19276 rm -f conftest.$ac_objext
19277 if { (eval echo "$as_me:19277: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>&5
19280 echo "$as_me:19280: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (eval echo "$as_me:19283: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19286 echo "$as_me:19286: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 cf_cv_header_stdbool_h=0
19290 echo "$as_me: failed program was:" >&5
19291 cat conftest.$ac_ext >&5
19292 cat >conftest.$ac_ext <<_ACEOF
19293 #line 19293 "configure"
19294 #include "confdefs.h"
19297 #include <stdbool.h>
19308 rm -f conftest.$ac_objext
19309 if { (eval echo "$as_me:19309: \"$ac_compile\"") >&5
19310 (eval $ac_compile) 2>&5
19312 echo "$as_me:19312: \$? = $ac_status" >&5
19313 (exit $ac_status); } &&
19314 { ac_try='test -s conftest.$ac_objext'
19315 { (eval echo "$as_me:19315: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:19318: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 cf_cv_header_stdbool_h=1
19322 echo "$as_me: failed program was:" >&5
19323 cat conftest.$ac_ext >&5
19324 cf_cv_header_stdbool_h=0
19326 rm -f conftest.$ac_objext conftest.$ac_ext
19328 rm -f conftest.$ac_objext conftest.$ac_ext
19331 if test "$cf_cv_header_stdbool_h" = 1
19332 then echo "$as_me:19332: result: yes" >&5
19333 echo "${ECHO_T}yes" >&6
19334 else echo "$as_me:19334: result: no" >&5
19335 echo "${ECHO_T}no" >&6
19338 echo "$as_me:19338: checking for builtin bool type" >&5
19339 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19341 if test "${cf_cv_cc_bool_type+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19345 cat >conftest.$ac_ext <<_ACEOF
19346 #line 19346 "configure"
19347 #include "confdefs.h"
19350 #include <sys/types.h>
19360 rm -f conftest.$ac_objext
19361 if { (eval echo "$as_me:19361: \"$ac_compile\"") >&5
19362 (eval $ac_compile) 2>&5
19364 echo "$as_me:19364: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -s conftest.$ac_objext'
19367 { (eval echo "$as_me:19367: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:19370: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 cf_cv_cc_bool_type=1
19374 echo "$as_me: failed program was:" >&5
19375 cat conftest.$ac_ext >&5
19376 cf_cv_cc_bool_type=0
19378 rm -f conftest.$ac_objext conftest.$ac_ext
19382 if test "$cf_cv_cc_bool_type" = 1
19383 then echo "$as_me:19383: result: yes" >&5
19384 echo "${ECHO_T}yes" >&6
19385 else echo "$as_me:19385: result: no" >&5
19386 echo "${ECHO_T}no" >&6
19389 # Check for C++ compiler characteristics (and ensure that it's there!)
19390 if test -n "$CXX" ; then
19392 ac_cpp='$CXXCPP $CPPFLAGS'
19393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19396 ac_main_return=return
19398 if test -n "$GXX" ; then
19401 LIBS="$LIBS $CXXLIBS"
19402 echo "$as_me:19402: checking if we already have C++ library" >&5
19403 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
19404 cat >conftest.$ac_ext <<_ACEOF
19405 #line 19405 "configure"
19406 #include "confdefs.h"
19408 #include <iostream>
19413 std::cout << "Hello World!" << std::endl;
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:19419: \"$ac_link\"") >&5
19420 (eval $ac_link) 2>&5
19422 echo "$as_me:19422: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -s conftest$ac_exeext'
19425 { (eval echo "$as_me:19425: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:19428: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 cf_have_libstdcpp=yes
19432 echo "$as_me: failed program was:" >&5
19433 cat conftest.$ac_ext >&5
19434 cf_have_libstdcpp=no
19436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19437 echo "$as_me:19437: result: $cf_have_libstdcpp" >&5
19438 echo "${ECHO_T}$cf_have_libstdcpp" >&6
19441 if test $cf_have_libstdcpp != yes
19443 case $cf_cv_system_name in
19445 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
19446 cf_stdcpp_libname=stdcpp
19448 cf_stdcpp_libname=stdc++
19452 cf_stdcpp_libname=stdc++
19456 echo "$as_me:19456: checking for library $cf_stdcpp_libname" >&5
19457 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
19458 if test "${cf_cv_libstdcpp+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 LIBS="$LIBS $CXXLIBS"
19465 cf_add_libs="-l$cf_stdcpp_libname"
19466 # Filter out duplicates - this happens with badly-designed ".pc" files...
19467 for cf_add_1lib in $LIBS
19469 for cf_add_2lib in $cf_add_libs
19471 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19477 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19479 LIBS="$cf_add_libs"
19481 cat >conftest.$ac_ext <<_ACEOF
19482 #line 19482 "configure"
19483 #include "confdefs.h"
19485 #include <iostream>
19490 std::cout << "Hello World!" << std::endl;
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (eval echo "$as_me:19496: \"$ac_link\"") >&5
19497 (eval $ac_link) 2>&5
19499 echo "$as_me:19499: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -s conftest$ac_exeext'
19502 { (eval echo "$as_me:19502: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19505 echo "$as_me:19505: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 cf_cv_libstdcpp=yes
19509 echo "$as_me: failed program was:" >&5
19510 cat conftest.$ac_ext >&5
19513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19517 echo "$as_me:19517: result: $cf_cv_libstdcpp" >&5
19518 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
19519 test "$cf_cv_libstdcpp" = yes && {
19520 cf_add_libs="-l$cf_stdcpp_libname"
19521 # Filter out duplicates - this happens with badly-designed ".pc" files...
19522 for cf_add_1lib in $CXXLIBS
19524 for cf_add_2lib in $cf_add_libs
19526 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19532 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19534 CXXLIBS="$cf_add_libs"
19539 echo "$as_me:19539: checking whether $CXX understands -c and -o together" >&5
19540 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
19541 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 cat > conftest.$ac_ext <<CF_EOF
19549 ${cf_cv_main_return:-return}(0);
19552 # We do the test twice because some compilers refuse to overwrite an
19553 # existing .o file with -o, though they will create one.
19554 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19555 if { (eval echo "$as_me:19555: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:19558: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
19560 test -f conftest2.$ac_objext && { (eval echo "$as_me:19560: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:19563: \$? = $ac_status" >&5
19564 (exit $ac_status); };
19566 eval cf_cv_prog_CXX_c_o=yes
19568 eval cf_cv_prog_CXX_c_o=no
19573 if test $cf_cv_prog_CXX_c_o = yes; then
19574 echo "$as_me:19574: result: yes" >&5
19575 echo "${ECHO_T}yes" >&6
19577 echo "$as_me:19577: result: no" >&5
19578 echo "${ECHO_T}no" >&6
19581 case $GXX_VERSION in
19587 cf_cxx_library=unknown
19588 case $cf_cv_system_name in
19596 if test "$GXX" = yes; then
19597 echo "$as_me:19597: checking for lib$cf_gpp_libname" >&5
19598 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
19601 cf_add_libs="-l$cf_gpp_libname"
19602 # Filter out duplicates - this happens with badly-designed ".pc" files...
19603 for cf_add_1lib in $LIBS
19605 for cf_add_2lib in $cf_add_libs
19607 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19613 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19615 LIBS="$cf_add_libs"
19617 cat >conftest.$ac_ext <<_ACEOF
19618 #line 19618 "configure"
19619 #include "confdefs.h"
19621 #include <$cf_gpp_libname/builtin.h>
19626 two_arg_error_handler_t foo2 = lib_error_handler
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (eval echo "$as_me:19632: \"$ac_link\"") >&5
19633 (eval $ac_link) 2>&5
19635 echo "$as_me:19635: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -s conftest$ac_exeext'
19638 { (eval echo "$as_me:19638: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:19641: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19645 cf_add_libs="-l$cf_gpp_libname"
19646 # Filter out duplicates - this happens with badly-designed ".pc" files...
19647 for cf_add_1lib in $CXXLIBS
19649 for cf_add_2lib in $cf_add_libs
19651 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19657 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19659 CXXLIBS="$cf_add_libs"
19661 if test "$cf_gpp_libname" = cpp ; then
19663 cat >>confdefs.h <<\EOF
19664 #define HAVE_GPP_BUILTIN_H 1
19669 cat >>confdefs.h <<\EOF
19670 #define HAVE_GXX_BUILTIN_H 1
19675 echo "$as_me: failed program was:" >&5
19676 cat conftest.$ac_ext >&5
19677 cat >conftest.$ac_ext <<_ACEOF
19678 #line 19678 "configure"
19679 #include "confdefs.h"
19681 #include <builtin.h>
19686 two_arg_error_handler_t foo2 = lib_error_handler
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:19692: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>&5
19695 echo "$as_me:19695: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
19697 { ac_try='test -s conftest$ac_exeext'
19698 { (eval echo "$as_me:19698: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19701 echo "$as_me:19701: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19705 cf_add_libs="-l$cf_gpp_libname"
19706 # Filter out duplicates - this happens with badly-designed ".pc" files...
19707 for cf_add_1lib in $CXXLIBS
19709 for cf_add_2lib in $cf_add_libs
19711 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19717 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19719 CXXLIBS="$cf_add_libs"
19721 cat >>confdefs.h <<\EOF
19722 #define HAVE_BUILTIN_H 1
19726 echo "$as_me: failed program was:" >&5
19727 cat conftest.$ac_ext >&5
19730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19734 echo "$as_me:19734: result: $cf_cxx_library" >&5
19735 echo "${ECHO_T}$cf_cxx_library" >&6
19745 ac_cpp='$CXXCPP $CPPFLAGS'
19746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19749 ac_main_return=return
19750 echo "$as_me:19750: checking how to run the C++ preprocessor" >&5
19751 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19752 if test -z "$CXXCPP"; then
19753 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 # Double quotes because CXXCPP needs to be expanded
19757 for CXXCPP in "$CXX -E" "/lib/cpp"
19759 ac_preproc_ok=false
19760 for ac_cxx_preproc_warn_flag in '' yes
19762 # Use a header file that comes with gcc, so configuring glibc
19763 # with a fresh cross-compiler works.
19764 # On the NeXT, cc -E runs the code through the compiler's parser,
19765 # not just through cpp. "Syntax error" is here to catch this case.
19766 cat >conftest.$ac_ext <<_ACEOF
19767 #line 19767 "configure"
19768 #include "confdefs.h"
19769 #include <assert.h>
19772 if { (eval echo "$as_me:19772: \"$ac_cpp conftest.$ac_ext\"") >&5
19773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19775 egrep -v '^ *\+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:19778: \$? = $ac_status" >&5
19779 (exit $ac_status); } >/dev/null; then
19780 if test -s conftest.err; then
19781 ac_cpp_err=$ac_cxx_preproc_warn_flag
19788 if test -z "$ac_cpp_err"; then
19791 echo "$as_me: failed program was:" >&5
19792 cat conftest.$ac_ext >&5
19793 # Broken: fails on valid input.
19796 rm -f conftest.err conftest.$ac_ext
19798 # OK, works on sane cases. Now check whether non-existent headers
19799 # can be detected and how.
19800 cat >conftest.$ac_ext <<_ACEOF
19801 #line 19801 "configure"
19802 #include "confdefs.h"
19803 #include <ac_nonexistent.h>
19805 if { (eval echo "$as_me:19805: \"$ac_cpp conftest.$ac_ext\"") >&5
19806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19808 egrep -v '^ *\+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:19811: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev/null; then
19813 if test -s conftest.err; then
19814 ac_cpp_err=$ac_cxx_preproc_warn_flag
19821 if test -z "$ac_cpp_err"; then
19822 # Broken: success on invalid input.
19825 echo "$as_me: failed program was:" >&5
19826 cat conftest.$ac_ext >&5
19827 # Passes both tests.
19831 rm -f conftest.err conftest.$ac_ext
19834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19835 rm -f conftest.err conftest.$ac_ext
19836 if $ac_preproc_ok; then
19841 ac_cv_prog_CXXCPP=$CXXCPP
19844 CXXCPP=$ac_cv_prog_CXXCPP
19846 ac_cv_prog_CXXCPP=$CXXCPP
19848 echo "$as_me:19848: result: $CXXCPP" >&5
19849 echo "${ECHO_T}$CXXCPP" >&6
19850 ac_preproc_ok=false
19851 for ac_cxx_preproc_warn_flag in '' yes
19853 # Use a header file that comes with gcc, so configuring glibc
19854 # with a fresh cross-compiler works.
19855 # On the NeXT, cc -E runs the code through the compiler's parser,
19856 # not just through cpp. "Syntax error" is here to catch this case.
19857 cat >conftest.$ac_ext <<_ACEOF
19858 #line 19858 "configure"
19859 #include "confdefs.h"
19860 #include <assert.h>
19863 if { (eval echo "$as_me:19863: \"$ac_cpp conftest.$ac_ext\"") >&5
19864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19866 egrep -v '^ *\+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:19869: \$? = $ac_status" >&5
19870 (exit $ac_status); } >/dev/null; then
19871 if test -s conftest.err; then
19872 ac_cpp_err=$ac_cxx_preproc_warn_flag
19879 if test -z "$ac_cpp_err"; then
19882 echo "$as_me: failed program was:" >&5
19883 cat conftest.$ac_ext >&5
19884 # Broken: fails on valid input.
19887 rm -f conftest.err conftest.$ac_ext
19889 # OK, works on sane cases. Now check whether non-existent headers
19890 # can be detected and how.
19891 cat >conftest.$ac_ext <<_ACEOF
19892 #line 19892 "configure"
19893 #include "confdefs.h"
19894 #include <ac_nonexistent.h>
19896 if { (eval echo "$as_me:19896: \"$ac_cpp conftest.$ac_ext\"") >&5
19897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19899 egrep -v '^ *\+' conftest.er1 >conftest.err
19901 cat conftest.err >&5
19902 echo "$as_me:19902: \$? = $ac_status" >&5
19903 (exit $ac_status); } >/dev/null; then
19904 if test -s conftest.err; then
19905 ac_cpp_err=$ac_cxx_preproc_warn_flag
19912 if test -z "$ac_cpp_err"; then
19913 # Broken: success on invalid input.
19916 echo "$as_me: failed program was:" >&5
19917 cat conftest.$ac_ext >&5
19918 # Passes both tests.
19922 rm -f conftest.err conftest.$ac_ext
19925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19926 rm -f conftest.err conftest.$ac_ext
19927 if $ac_preproc_ok; then
19930 { { echo "$as_me:19930: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
19931 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
19932 { (exit 1); exit 1; }; }
19936 ac_cpp='$CXXCPP $CPPFLAGS'
19937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19940 ac_main_return=return
19942 for ac_header in typeinfo
19944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19945 echo "$as_me:19945: checking for $ac_header" >&5
19946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19950 cat >conftest.$ac_ext <<_ACEOF
19951 #line 19951 "configure"
19952 #include "confdefs.h"
19953 #include <$ac_header>
19955 if { (eval echo "$as_me:19955: \"$ac_cpp conftest.$ac_ext\"") >&5
19956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19958 egrep -v '^ *\+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:19961: \$? = $ac_status" >&5
19962 (exit $ac_status); } >/dev/null; then
19963 if test -s conftest.err; then
19964 ac_cpp_err=$ac_cxx_preproc_warn_flag
19971 if test -z "$ac_cpp_err"; then
19972 eval "$as_ac_Header=yes"
19974 echo "$as_me: failed program was:" >&5
19975 cat conftest.$ac_ext >&5
19976 eval "$as_ac_Header=no"
19978 rm -f conftest.err conftest.$ac_ext
19980 echo "$as_me:19980: result: `eval echo '${'$as_ac_Header'}'`" >&5
19981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19983 cat >>confdefs.h <<EOF
19984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19990 for ac_header in iostream
19992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19993 echo "$as_me:19993: checking for $ac_header" >&5
19994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 cat >conftest.$ac_ext <<_ACEOF
19999 #line 19999 "configure"
20000 #include "confdefs.h"
20001 #include <$ac_header>
20003 if { (eval echo "$as_me:20003: \"$ac_cpp conftest.$ac_ext\"") >&5
20004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20006 egrep -v '^ *\+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:20009: \$? = $ac_status" >&5
20010 (exit $ac_status); } >/dev/null; then
20011 if test -s conftest.err; then
20012 ac_cpp_err=$ac_cxx_preproc_warn_flag
20019 if test -z "$ac_cpp_err"; then
20020 eval "$as_ac_Header=yes"
20022 echo "$as_me: failed program was:" >&5
20023 cat conftest.$ac_ext >&5
20024 eval "$as_ac_Header=no"
20026 rm -f conftest.err conftest.$ac_ext
20028 echo "$as_me:20028: result: `eval echo '${'$as_ac_Header'}'`" >&5
20029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20031 cat >>confdefs.h <<EOF
20032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20038 if test x"$ac_cv_header_iostream" = xyes ; then
20039 echo "$as_me:20039: checking if iostream uses std-namespace" >&5
20040 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
20041 cat >conftest.$ac_ext <<_ACEOF
20042 #line 20042 "configure"
20043 #include "confdefs.h"
20045 #include <iostream>
20052 cerr << "testing" << endl;
20058 rm -f conftest.$ac_objext
20059 if { (eval echo "$as_me:20059: \"$ac_compile\"") >&5
20060 (eval $ac_compile) 2>&5
20062 echo "$as_me:20062: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
20064 { ac_try='test -s conftest.$ac_objext'
20065 { (eval echo "$as_me:20065: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20068 echo "$as_me:20068: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 cf_iostream_namespace=yes
20072 echo "$as_me: failed program was:" >&5
20073 cat conftest.$ac_ext >&5
20074 cf_iostream_namespace=no
20076 rm -f conftest.$ac_objext conftest.$ac_ext
20077 echo "$as_me:20077: result: $cf_iostream_namespace" >&5
20078 echo "${ECHO_T}$cf_iostream_namespace" >&6
20079 if test "$cf_iostream_namespace" = yes ; then
20081 cat >>confdefs.h <<\EOF
20082 #define IOSTREAM_NAMESPACE 1
20088 echo "$as_me:20088: checking if we should include stdbool.h" >&5
20089 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20091 if test "${cf_cv_header_stdbool_h+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 cat >conftest.$ac_ext <<_ACEOF
20096 #line 20096 "configure"
20097 #include "confdefs.h"
20107 rm -f conftest.$ac_objext
20108 if { (eval echo "$as_me:20108: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>&5
20111 echo "$as_me:20111: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:20114: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 echo "$as_me:20117: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 cf_cv_header_stdbool_h=0
20121 echo "$as_me: failed program was:" >&5
20122 cat conftest.$ac_ext >&5
20123 cat >conftest.$ac_ext <<_ACEOF
20124 #line 20124 "configure"
20125 #include "confdefs.h"
20128 #include <stdbool.h>
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:20140: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20143 echo "$as_me:20143: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:20146: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20149 echo "$as_me:20149: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 cf_cv_header_stdbool_h=1
20153 echo "$as_me: failed program was:" >&5
20154 cat conftest.$ac_ext >&5
20155 cf_cv_header_stdbool_h=0
20157 rm -f conftest.$ac_objext conftest.$ac_ext
20159 rm -f conftest.$ac_objext conftest.$ac_ext
20162 if test "$cf_cv_header_stdbool_h" = 1
20163 then echo "$as_me:20163: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6
20165 else echo "$as_me:20165: result: no" >&5
20166 echo "${ECHO_T}no" >&6
20169 echo "$as_me:20169: checking for builtin bool type" >&5
20170 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20172 if test "${cf_cv_builtin_bool+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 cat >conftest.$ac_ext <<_ACEOF
20177 #line 20177 "configure"
20178 #include "confdefs.h"
20181 #include <sys/types.h>
20191 rm -f conftest.$ac_objext
20192 if { (eval echo "$as_me:20192: \"$ac_compile\"") >&5
20193 (eval $ac_compile) 2>&5
20195 echo "$as_me:20195: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -s conftest.$ac_objext'
20198 { (eval echo "$as_me:20198: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20201 echo "$as_me:20201: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 cf_cv_builtin_bool=1
20205 echo "$as_me: failed program was:" >&5
20206 cat conftest.$ac_ext >&5
20207 cf_cv_builtin_bool=0
20209 rm -f conftest.$ac_objext conftest.$ac_ext
20213 if test "$cf_cv_builtin_bool" = 1
20214 then echo "$as_me:20214: result: yes" >&5
20215 echo "${ECHO_T}yes" >&6
20216 else echo "$as_me:20216: result: no" >&5
20217 echo "${ECHO_T}no" >&6
20220 echo "$as_me:20220: checking for size of bool" >&5
20221 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20222 if test "${cf_cv_type_of_bool+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 if test "$cross_compiling" = yes; then
20228 cf_cv_type_of_bool=unknown
20230 cat >conftest.$ac_ext <<_ACEOF
20231 #line 20231 "configure"
20232 #include "confdefs.h"
20234 #include <stdlib.h>
20237 #if defined(__cplusplus)
20239 #ifdef HAVE_GXX_BUILTIN_H
20240 #include <g++/builtin.h>
20241 #elif HAVE_GPP_BUILTIN_H
20242 #include <gpp/builtin.h>
20243 #elif HAVE_BUILTIN_H
20244 #include <builtin.h>
20249 #if $cf_cv_header_stdbool_h
20250 #include <stdbool.h>
20257 FILE *fp = fopen("cf_test.out", "w");
20260 if ((bool)(-x) >= 0)
20261 fputs("unsigned ", fp);
20262 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20263 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20264 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20265 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20268 ${cf_cv_main_return:-return}(0);
20272 rm -f conftest$ac_exeext
20273 if { (eval echo "$as_me:20273: \"$ac_link\"") >&5
20274 (eval $ac_link) 2>&5
20276 echo "$as_me:20276: \$? = $ac_status" >&5
20277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20278 { (eval echo "$as_me:20278: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:20281: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 cf_cv_type_of_bool=`cat cf_test.out`
20284 if test -z "$cf_cv_type_of_bool"; then
20285 cf_cv_type_of_bool=unknown
20288 echo "$as_me: program exited with status $ac_status" >&5
20289 echo "$as_me: failed program was:" >&5
20290 cat conftest.$ac_ext >&5
20291 cf_cv_type_of_bool=unknown
20293 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20299 echo "$as_me:20299: result: $cf_cv_type_of_bool" >&5
20300 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20301 if test "$cf_cv_type_of_bool" = unknown ; then
20302 case .$NCURSES_BOOL in
20303 (.auto|.) NCURSES_BOOL=unsigned;;
20305 { echo "$as_me:20305: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20306 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20307 cf_cv_type_of_bool=$NCURSES_BOOL
20310 echo "$as_me:20310: checking for special defines needed for etip.h" >&5
20311 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
20312 cf_save_CXXFLAGS="$CXXFLAGS"
20315 # etip.h includes ncurses.h which includes ncurses_dll.h
20316 # But ncurses_dll.h is generated - fix here.
20317 test -d include || mkdir include
20318 test -f include/ncurses_dll.h || sed -e 's/@NCURSES_WRAP_PREFIX@/'$NCURSES_WRAP_PREFIX'/g' ${srcdir}/include/ncurses_dll.h.in >include/ncurses_dll.h
20320 for cf_math in "" MATH_H
20322 for cf_excp in "" MATH_EXCEPTION
20324 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
20325 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
20326 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
20327 cat >conftest.$ac_ext <<_ACEOF
20328 #line 20328 "configure"
20329 #include "confdefs.h"
20331 #include <etip.h.in>
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:20342: \"$ac_compile\"") >&5
20343 (eval $ac_compile) 2>&5
20345 echo "$as_me:20345: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -s conftest.$ac_objext'
20348 { (eval echo "$as_me:20348: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:20351: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20354 test -n "$cf_math" && cat >>confdefs.h <<EOF
20355 #define ETIP_NEEDS_${cf_math} 1
20358 test -n "$cf_excp" && cat >>confdefs.h <<EOF
20359 #define ETIP_NEEDS_${cf_excp} 1
20362 cf_result="$cf_math $cf_excp"
20366 echo "$as_me: failed program was:" >&5
20367 cat conftest.$ac_ext >&5
20369 rm -f conftest.$ac_objext conftest.$ac_ext
20372 echo "$as_me:20372: result: $cf_result" >&5
20373 echo "${ECHO_T}$cf_result" >&6
20374 CXXFLAGS="$cf_save_CXXFLAGS"
20376 if test -n "$CXX"; then
20377 echo "$as_me:20377: checking if $CXX accepts parameter initialization" >&5
20378 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
20379 if test "${cf_cv_cpp_param_init+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 ac_cpp='$CXXCPP $CPPFLAGS'
20385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20388 ac_main_return=return
20390 if test "$cross_compiling" = yes; then
20391 cf_cv_cpp_param_init=unknown
20393 cat >conftest.$ac_ext <<_ACEOF
20394 #line 20394 "configure"
20395 #include "confdefs.h"
20405 TEST::TEST(int x = 1) // some compilers do not like second initializer
20412 rm -f conftest$ac_exeext
20413 if { (eval echo "$as_me:20413: \"$ac_link\"") >&5
20414 (eval $ac_link) 2>&5
20416 echo "$as_me:20416: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (eval echo "$as_me:20418: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:20421: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 cf_cv_cpp_param_init=yes
20425 echo "$as_me: program exited with status $ac_status" >&5
20426 echo "$as_me: failed program was:" >&5
20427 cat conftest.$ac_ext >&5
20428 cf_cv_cpp_param_init=no
20430 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20433 ac_cpp='$CXXCPP $CPPFLAGS'
20434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20437 ac_main_return=return
20440 echo "$as_me:20440: result: $cf_cv_cpp_param_init" >&5
20441 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
20443 test "$cf_cv_cpp_param_init" = yes &&
20444 cat >>confdefs.h <<\EOF
20445 #define CPP_HAS_PARAM_INIT 1
20448 if test -n "$CXX"; then
20450 echo "$as_me:20450: checking if $CXX accepts static_cast" >&5
20451 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
20452 if test "${cf_cv_cpp_static_cast+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 ac_cpp='$CXXCPP $CPPFLAGS'
20458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20461 ac_main_return=return
20463 cat >conftest.$ac_ext <<_ACEOF
20464 #line 20464 "configure"
20465 #include "confdefs.h"
20470 NCursesPanel(int nlines,
20480 template<class T> class NCursesUserPanel : public NCursesPanel
20483 NCursesUserPanel (int nlines,
20487 const T* p_UserData = static_cast<T*>(0))
20488 : NCursesPanel (nlines, ncols, begin_y, begin_x)
20491 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
20495 virtual ~NCursesUserPanel() {};
20502 const char* p_UserData = static_cast<char*>(0)
20507 rm -f conftest.$ac_objext
20508 if { (eval echo "$as_me:20508: \"$ac_compile\"") >&5
20509 (eval $ac_compile) 2>&5
20511 echo "$as_me:20511: \$? = $ac_status" >&5
20512 (exit $ac_status); } &&
20513 { ac_try='test -s conftest.$ac_objext'
20514 { (eval echo "$as_me:20514: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:20517: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 cf_cv_cpp_static_cast=yes
20521 echo "$as_me: failed program was:" >&5
20522 cat conftest.$ac_ext >&5
20523 cf_cv_cpp_static_cast=no
20525 rm -f conftest.$ac_objext conftest.$ac_ext
20528 ac_cpp='$CXXCPP $CPPFLAGS'
20529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20532 ac_main_return=return
20535 echo "$as_me:20535: result: $cf_cv_cpp_static_cast" >&5
20536 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
20540 test "$cf_cv_cpp_static_cast" = yes &&
20541 cat >>confdefs.h <<\EOF
20542 #define CPP_HAS_STATIC_CAST 1
20546 CXX_ARFLAGS='$(ARFLAGS)'
20547 case $cf_cv_system_name in
20549 if test "$GXX" != yes ; then
20551 CXX_ARFLAGS='-ar -o'
20555 CXXLDFLAGS="-u main"
20558 if test "$GXX" != yes ; then
20560 CXX_ARFLAGS='-xar -o'
20567 cf_cv_builtin_bool=1
20569 # Just because we are not configuring against C++ right now does not
20570 # mean that a user will not want to use C++. Some distributors disable
20571 # the C++ portion of this configuration as a shortcut (or just to avoid
20572 # compiling the demo in the c++ directory). So we need a reasonable
20573 # default for the 'bool' type.
20575 # Caveat: since the storage of the bool type is not standardized, it
20578 if test "$NCURSES_BOOL" != auto ; then
20579 cf_cv_type_of_bool=$NCURSES_BOOL
20580 cf_cv_header_stdbool_h=0
20582 if test "$cf_cv_header_stdbool_h" = 1 ; then
20584 echo "$as_me:20584: checking for size of bool" >&5
20585 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20586 if test "${cf_cv_type_of_bool+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 if test "$cross_compiling" = yes; then
20592 cf_cv_type_of_bool=unknown
20594 cat >conftest.$ac_ext <<_ACEOF
20595 #line 20595 "configure"
20596 #include "confdefs.h"
20598 #include <stdlib.h>
20601 #if defined(__cplusplus)
20603 #ifdef HAVE_GXX_BUILTIN_H
20604 #include <g++/builtin.h>
20605 #elif HAVE_GPP_BUILTIN_H
20606 #include <gpp/builtin.h>
20607 #elif HAVE_BUILTIN_H
20608 #include <builtin.h>
20613 #if $cf_cv_header_stdbool_h
20614 #include <stdbool.h>
20621 FILE *fp = fopen("cf_test.out", "w");
20624 if ((bool)(-x) >= 0)
20625 fputs("unsigned ", fp);
20626 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20627 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20628 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20629 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20632 ${cf_cv_main_return:-return}(0);
20636 rm -f conftest$ac_exeext
20637 if { (eval echo "$as_me:20637: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>&5
20640 echo "$as_me:20640: \$? = $ac_status" >&5
20641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20642 { (eval echo "$as_me:20642: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20645 echo "$as_me:20645: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 cf_cv_type_of_bool=`cat cf_test.out`
20648 if test -z "$cf_cv_type_of_bool"; then
20649 cf_cv_type_of_bool=unknown
20652 echo "$as_me: program exited with status $ac_status" >&5
20653 echo "$as_me: failed program was:" >&5
20654 cat conftest.$ac_ext >&5
20655 cf_cv_type_of_bool=unknown
20657 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20663 echo "$as_me:20663: result: $cf_cv_type_of_bool" >&5
20664 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20665 if test "$cf_cv_type_of_bool" = unknown ; then
20666 case .$NCURSES_BOOL in
20667 (.auto|.) NCURSES_BOOL=unsigned;;
20669 { echo "$as_me:20669: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20670 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20671 cf_cv_type_of_bool=$NCURSES_BOOL
20675 echo "$as_me:20675: checking for fallback type of bool" >&5
20676 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
20677 case "$host_cpu" in
20678 (i?86) cf_cv_type_of_bool=char ;;
20679 (*) cf_cv_type_of_bool=int ;;
20681 echo "$as_me:20681: result: $cf_cv_type_of_bool" >&5
20682 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20687 # If the C compiler did not declare bool, and we did not determine that the C++
20688 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
20689 # ncurses library use the same type as C++ bool. Note that this allows one to
20690 # specify the type of bool in a configure-script option and postpone
20691 # integration with the C++ compiler provided that the types are compatible.
20693 if test $cf_cv_cc_bool_type = 1
20695 # oops: C has a bool. Unlikely, but C++ could differ.
20697 elif test $cf_cv_builtin_bool = 0
20702 # this is the normal case
20703 USE_CXX_BOOL='defined(__cplusplus)'
20706 if test -f "${srcdir}/Ada95/Makefile.in" ; then
20708 if test "$cf_with_ada" != "no" ; then
20709 if test "$with_libtool" != "no"; then
20710 { echo "$as_me:20710: WARNING: libtool does not support Ada - disabling feature" >&5
20711 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
20716 if test "$cf_with_ada" != "no" ; then
20718 cf_ada_make=gnatmake
20719 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
20720 set dummy $cf_ada_make; ac_word=$2
20721 echo "$as_me:20721: checking for $ac_word" >&5
20722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20723 if test "${ac_cv_prog_gnat_exists+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 if test -n "$gnat_exists"; then
20727 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
20729 ac_save_IFS=$IFS; IFS=$ac_path_separator
20731 for ac_dir in $ac_dummy; do
20733 test -z "$ac_dir" && ac_dir=.
20734 $as_executable_p "$ac_dir/$ac_word" || continue
20735 ac_cv_prog_gnat_exists="yes"
20736 echo "$as_me:20736: found $ac_dir/$ac_word" >&5
20740 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
20743 gnat_exists=$ac_cv_prog_gnat_exists
20744 if test -n "$gnat_exists"; then
20745 echo "$as_me:20745: result: $gnat_exists" >&5
20746 echo "${ECHO_T}$gnat_exists" >&6
20748 echo "$as_me:20748: result: no" >&5
20749 echo "${ECHO_T}no" >&6
20752 if test "$ac_cv_prog_gnat_exists" = no; then
20754 cf_cv_prog_gnat_correct=no
20757 echo "$as_me:20757: checking for gnat version" >&5
20758 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
20759 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
20760 grep '[0-9].[0-9][0-9]*' |\
20761 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
20762 echo "$as_me:20762: result: $cf_gnat_version" >&5
20763 echo "${ECHO_T}$cf_gnat_version" >&6
20765 case $cf_gnat_version in
20766 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
20767 cf_cv_prog_gnat_correct=yes
20770 { echo "$as_me:20770: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
20771 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
20772 cf_cv_prog_gnat_correct=no
20776 # Extract the first word of "m4", so it can be a program name with args.
20777 set dummy m4; ac_word=$2
20778 echo "$as_me:20778: checking for $ac_word" >&5
20779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20780 if test "${ac_cv_prog_M4_exists+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 if test -n "$M4_exists"; then
20784 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
20786 ac_save_IFS=$IFS; IFS=$ac_path_separator
20788 for ac_dir in $ac_dummy; do
20790 test -z "$ac_dir" && ac_dir=.
20791 $as_executable_p "$ac_dir/$ac_word" || continue
20792 ac_cv_prog_M4_exists="yes"
20793 echo "$as_me:20793: found $ac_dir/$ac_word" >&5
20797 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
20800 M4_exists=$ac_cv_prog_M4_exists
20801 if test -n "$M4_exists"; then
20802 echo "$as_me:20802: result: $M4_exists" >&5
20803 echo "${ECHO_T}$M4_exists" >&6
20805 echo "$as_me:20805: result: no" >&5
20806 echo "${ECHO_T}no" >&6
20809 if test "$ac_cv_prog_M4_exists" = no; then
20810 cf_cv_prog_gnat_correct=no
20811 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
20813 if test "$cf_cv_prog_gnat_correct" = yes; then
20814 echo "$as_me:20814: checking if GNAT works" >&5
20815 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
20817 rm -rf conftest* *~conftest*
20818 cat >>conftest.ads <<CF_EOF
20819 procedure conftest;
20821 cat >>conftest.adb <<CF_EOF
20824 procedure conftest is
20826 Text_IO.Put ("Hello World");
20828 GNAT.OS_Lib.OS_Exit (0);
20831 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20832 if ( ./conftest 1>&5 2>&1 ) ; then
20833 cf_cv_prog_gnat_correct=yes
20835 cf_cv_prog_gnat_correct=no
20838 cf_cv_prog_gnat_correct=no
20840 rm -rf conftest* *~conftest*
20842 echo "$as_me:20842: result: $cf_cv_prog_gnat_correct" >&5
20843 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
20847 if test "x$cf_cv_prog_gnat_correct" = xyes; then
20849 ADAFLAGS="$ADAFLAGS -gnatpn"
20851 echo "$as_me:20851: checking optimization options for ADAFLAGS" >&5
20852 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
20856 ADAFLAGS="$ADAFLAGS -g"
20862 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
20864 ADAFLAGS="$ADAFLAGS $cf_O_flag"
20868 echo "$as_me:20868: result: $ADAFLAGS" >&5
20869 echo "${ECHO_T}$ADAFLAGS" >&6
20871 echo "$as_me:20871: checking if GNATPREP supports -T option" >&5
20872 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
20873 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 cf_cv_gnatprep_opt_t=no
20878 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
20881 echo "$as_me:20881: result: $cf_cv_gnatprep_opt_t" >&5
20882 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
20883 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
20885 echo "$as_me:20885: checking if GNAT supports generics" >&5
20886 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
20887 case $cf_gnat_version in
20889 cf_gnat_generics=yes
20892 cf_gnat_generics=no
20895 echo "$as_me:20895: result: $cf_gnat_generics" >&5
20896 echo "${ECHO_T}$cf_gnat_generics" >&6
20898 if test "$cf_gnat_generics" = yes
20900 cf_compile_generics=generics
20901 cf_generic_objects="\${GENOBJS}"
20903 cf_compile_generics=
20904 cf_generic_objects=
20907 echo "$as_me:20907: checking if GNAT supports SIGINT" >&5
20908 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
20909 if test "${cf_cv_gnat_sigint+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 rm -rf conftest* *~conftest*
20914 cat >>conftest.ads <<CF_EOF
20915 with Ada.Interrupts.Names;
20917 package ConfTest is
20919 pragma Warnings (Off); -- the next pragma exists since 3.11p
20920 pragma Unreserve_All_Interrupts;
20921 pragma Warnings (On);
20923 protected Process is
20925 function Continue return Boolean;
20926 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
20928 Done : Boolean := False;
20933 cat >>conftest.adb <<CF_EOF
20934 package body ConfTest is
20935 protected body Process is
20940 function Continue return Boolean is
20947 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20948 cf_cv_gnat_sigint=yes
20950 cf_cv_gnat_sigint=no
20952 rm -rf conftest* *~conftest*
20955 echo "$as_me:20955: result: $cf_cv_gnat_sigint" >&5
20956 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
20958 if test $cf_cv_gnat_sigint = yes ; then
20961 USE_GNAT_SIGINT="#"
20964 cf_gnat_libraries=no
20965 cf_gnat_projects=no
20967 if test "$enable_gnat_projects" != no ; then
20968 echo "$as_me:20968: checking if GNAT supports project files" >&5
20969 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
20970 case $cf_gnat_version in
20974 case $cf_cv_system_name in
20978 mkdir conftest.src conftest.bin conftest.lib
20980 rm -rf conftest* *~conftest*
20981 cat >>library.gpr <<CF_EOF
20983 Kind := External ("LIB_KIND");
20984 for Library_Name use "ConfTest";
20985 for Object_Dir use ".";
20986 for Library_ALI_Dir use External("LIBRARY_DIR");
20987 for Library_Version use External ("SONAME");
20988 for Library_Kind use Kind;
20989 for Library_Dir use External("BUILD_DIR");
20990 Source_Dir := External ("SOURCE_DIR");
20991 for Source_Dirs use (Source_Dir);
20994 cat >>confpackage.ads <<CF_EOF
20995 package ConfPackage is
20996 procedure conftest;
20999 cat >>confpackage.adb <<CF_EOF
21001 package body ConfPackage is
21002 procedure conftest is
21004 Text_IO.Put ("Hello World");
21009 if ( $cf_ada_make $ADAFLAGS \
21011 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
21012 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
21013 -XSOURCE_DIR=`pwd` \
21014 -XSONAME=libConfTest.so.1 \
21015 -XLIB_KIND=static 1>&5 2>&1 ) ; then
21016 cf_gnat_projects=yes
21019 if test -f conftest.lib/confpackage.ali
21021 cf_gnat_libraries=yes
21023 rm -rf conftest* *~conftest*
21028 echo "$as_me:21028: result: $cf_gnat_projects" >&5
21029 echo "${ECHO_T}$cf_gnat_projects" >&6
21030 fi # enable_gnat_projects
21032 if test $cf_gnat_projects = yes
21034 echo "$as_me:21034: checking if GNAT supports libraries" >&5
21035 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
21036 echo "$as_me:21036: result: $cf_gnat_libraries" >&5
21037 echo "${ECHO_T}$cf_gnat_libraries" >&6
21040 if test "$cf_gnat_projects" = yes
21042 USE_OLD_MAKERULES="#"
21043 USE_GNAT_PROJECTS=""
21045 USE_OLD_MAKERULES=""
21046 USE_GNAT_PROJECTS="#"
21049 if test "$cf_gnat_libraries" = yes
21051 USE_GNAT_LIBRARIES=""
21053 USE_GNAT_LIBRARIES="#"
21056 echo "$as_me:21056: checking for ada-compiler" >&5
21057 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
21059 # Check whether --with-ada-compiler or --without-ada-compiler was given.
21060 if test "${with_ada_compiler+set}" = set; then
21061 withval="$with_ada_compiler"
21062 cf_ada_compiler=$withval
21064 cf_ada_compiler=gnatmake
21067 echo "$as_me:21067: result: $cf_ada_compiler" >&5
21068 echo "${ECHO_T}$cf_ada_compiler" >&6
21070 cf_ada_package=terminal_interface
21072 echo "$as_me:21072: checking for ada-include" >&5
21073 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
21075 # Check whether --with-ada-include or --without-ada-include was given.
21076 if test "${with_ada_include+set}" = set; then
21077 withval="$with_ada_include"
21080 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
21081 fi; if test -n "$prefix/share/ada/adainclude" ; then
21083 if test "x$prefix" != xNONE; then
21084 cf_path_syntax="$prefix"
21086 cf_path_syntax="$ac_default_prefix"
21089 case ".$withval" in
21090 (.\$\(*\)*|.\'*\'*)
21094 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21096 (.\${*prefix}*|.\${*dir}*)
21097 eval withval="$withval"
21098 case ".$withval" in
21100 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21105 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21108 { { echo "$as_me:21108: error: expected a pathname, not \"$withval\"" >&5
21109 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21110 { (exit 1); exit 1; }; }
21115 eval ADA_INCLUDE="$withval"
21117 echo "$as_me:21117: result: $ADA_INCLUDE" >&5
21118 echo "${ECHO_T}$ADA_INCLUDE" >&6
21120 echo "$as_me:21120: checking for ada-objects" >&5
21121 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
21123 # Check whether --with-ada-objects or --without-ada-objects was given.
21124 if test "${with_ada_objects+set}" = set; then
21125 withval="$with_ada_objects"
21128 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
21129 fi; if test -n "$prefix/lib/ada/adalib" ; then
21131 if test "x$prefix" != xNONE; then
21132 cf_path_syntax="$prefix"
21134 cf_path_syntax="$ac_default_prefix"
21137 case ".$withval" in
21138 (.\$\(*\)*|.\'*\'*)
21142 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21144 (.\${*prefix}*|.\${*dir}*)
21145 eval withval="$withval"
21146 case ".$withval" in
21148 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21153 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21156 { { echo "$as_me:21156: error: expected a pathname, not \"$withval\"" >&5
21157 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21158 { (exit 1); exit 1; }; }
21163 eval ADA_OBJECTS="$withval"
21165 echo "$as_me:21165: result: $ADA_OBJECTS" >&5
21166 echo "${ECHO_T}$ADA_OBJECTS" >&6
21168 echo "$as_me:21168: checking if an Ada95 shared-library should be built" >&5
21169 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
21171 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
21172 if test "${with_ada_sharedlib+set}" = set; then
21173 withval="$with_ada_sharedlib"
21174 with_ada_sharedlib=$withval
21176 with_ada_sharedlib=no
21178 echo "$as_me:21178: result: $with_ada_sharedlib" >&5
21179 echo "${ECHO_T}$with_ada_sharedlib" >&6
21181 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
21182 MAKE_ADA_SHAREDLIB="#"
21184 if test "x$with_ada_sharedlib" != xno
21186 MAKE_ADA_SHAREDLIB=
21187 if test "x$with_ada_sharedlib" != xyes
21189 ADA_SHAREDLIB="$with_ada_sharedlib"
21199 # do this "late" to avoid conflict with header-checks
21200 if test "x$with_widec" = xyes ; then
21201 echo "$as_me:21201: checking for wchar_t" >&5
21202 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21203 if test "${ac_cv_type_wchar_t+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 cat >conftest.$ac_ext <<_ACEOF
21207 #line 21207 "configure"
21208 #include "confdefs.h"
21209 $ac_includes_default
21215 if (sizeof (wchar_t))
21221 rm -f conftest.$ac_objext
21222 if { (eval echo "$as_me:21222: \"$ac_compile\"") >&5
21223 (eval $ac_compile) 2>&5
21225 echo "$as_me:21225: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try='test -s conftest.$ac_objext'
21228 { (eval echo "$as_me:21228: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21231 echo "$as_me:21231: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_type_wchar_t=yes
21235 echo "$as_me: failed program was:" >&5
21236 cat conftest.$ac_ext >&5
21237 ac_cv_type_wchar_t=no
21239 rm -f conftest.$ac_objext conftest.$ac_ext
21241 echo "$as_me:21241: result: $ac_cv_type_wchar_t" >&5
21242 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21244 echo "$as_me:21244: checking size of wchar_t" >&5
21245 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21246 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 if test "$ac_cv_type_wchar_t" = yes; then
21250 if test "$cross_compiling" = yes; then
21251 # Depending upon the size, compute the lo and hi bounds.
21252 cat >conftest.$ac_ext <<_ACEOF
21253 #line 21253 "configure"
21254 #include "confdefs.h"
21255 $ac_includes_default
21259 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
21264 rm -f conftest.$ac_objext
21265 if { (eval echo "$as_me:21265: \"$ac_compile\"") >&5
21266 (eval $ac_compile) 2>&5
21268 echo "$as_me:21268: \$? = $ac_status" >&5
21269 (exit $ac_status); } &&
21270 { ac_try='test -s conftest.$ac_objext'
21271 { (eval echo "$as_me:21271: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21274 echo "$as_me:21274: \$? = $ac_status" >&5
21275 (exit $ac_status); }; }; then
21278 cat >conftest.$ac_ext <<_ACEOF
21279 #line 21279 "configure"
21280 #include "confdefs.h"
21281 $ac_includes_default
21285 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:21291: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>&5
21294 echo "$as_me:21294: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -s conftest.$ac_objext'
21297 { (eval echo "$as_me:21297: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21300 echo "$as_me:21300: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_hi=$ac_mid; break
21304 echo "$as_me: failed program was:" >&5
21305 cat conftest.$ac_ext >&5
21306 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
21308 rm -f conftest.$ac_objext conftest.$ac_ext
21311 echo "$as_me: failed program was:" >&5
21312 cat conftest.$ac_ext >&5
21315 cat >conftest.$ac_ext <<_ACEOF
21316 #line 21316 "configure"
21317 #include "confdefs.h"
21318 $ac_includes_default
21322 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
21327 rm -f conftest.$ac_objext
21328 if { (eval echo "$as_me:21328: \"$ac_compile\"") >&5
21329 (eval $ac_compile) 2>&5
21331 echo "$as_me:21331: \$? = $ac_status" >&5
21332 (exit $ac_status); } &&
21333 { ac_try='test -s conftest.$ac_objext'
21334 { (eval echo "$as_me:21334: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21337 echo "$as_me:21337: \$? = $ac_status" >&5
21338 (exit $ac_status); }; }; then
21339 ac_lo=$ac_mid; break
21341 echo "$as_me: failed program was:" >&5
21342 cat conftest.$ac_ext >&5
21343 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
21345 rm -f conftest.$ac_objext conftest.$ac_ext
21348 rm -f conftest.$ac_objext conftest.$ac_ext
21349 # Binary search between lo and hi bounds.
21350 while test "x$ac_lo" != "x$ac_hi"; do
21351 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21352 cat >conftest.$ac_ext <<_ACEOF
21353 #line 21353 "configure"
21354 #include "confdefs.h"
21355 $ac_includes_default
21359 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21364 rm -f conftest.$ac_objext
21365 if { (eval echo "$as_me:21365: \"$ac_compile\"") >&5
21366 (eval $ac_compile) 2>&5
21368 echo "$as_me:21368: \$? = $ac_status" >&5
21369 (exit $ac_status); } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (eval echo "$as_me:21371: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21374 echo "$as_me:21374: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21378 echo "$as_me: failed program was:" >&5
21379 cat conftest.$ac_ext >&5
21380 ac_lo=`expr $ac_mid + 1`
21382 rm -f conftest.$ac_objext conftest.$ac_ext
21384 ac_cv_sizeof_wchar_t=$ac_lo
21386 if test "$cross_compiling" = yes; then
21387 { { echo "$as_me:21387: error: cannot run test program while cross compiling" >&5
21388 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21389 { (exit 1); exit 1; }; }
21391 cat >conftest.$ac_ext <<_ACEOF
21392 #line 21392 "configure"
21393 #include "confdefs.h"
21394 $ac_includes_default
21398 FILE *f = fopen ("conftest.val", "w");
21400 $ac_main_return (1);
21401 fprintf (f, "%d", (sizeof (wchar_t)));
21407 rm -f conftest$ac_exeext
21408 if { (eval echo "$as_me:21408: \"$ac_link\"") >&5
21409 (eval $ac_link) 2>&5
21411 echo "$as_me:21411: \$? = $ac_status" >&5
21412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21413 { (eval echo "$as_me:21413: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21416 echo "$as_me:21416: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_cv_sizeof_wchar_t=`cat conftest.val`
21420 echo "$as_me: program exited with status $ac_status" >&5
21421 echo "$as_me: failed program was:" >&5
21422 cat conftest.$ac_ext >&5
21424 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21429 ac_cv_sizeof_wchar_t=0
21432 echo "$as_me:21432: result: $ac_cv_sizeof_wchar_t" >&5
21433 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21434 cat >>confdefs.h <<EOF
21435 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21440 ### Construct the ncurses library-subsets, if any, from this set of keywords:
21441 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
21443 ### ticlib modules may be a separate library, otherwise contained in termlib.
21444 ### termlib modules may be a separate library, otherwise contained in ncurses.
21446 ### The of "+" or " " between the tokens controls the way the script
21447 ### chooses to split module lists into libraries.
21449 ### (see CF_LIB_RULES).
21450 echo "$as_me:21450: checking for library subsets" >&5
21451 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
21454 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
21455 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
21456 if test "$with_ticlib" != no ; then
21457 LIB_SUBSETS="${LIB_SUBSETS} "
21459 LIB_SUBSETS="${LIB_SUBSETS}+"
21463 LIB_SUBSETS="${LIB_SUBSETS}termlib"
21464 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
21466 if test "$with_termlib" != no ; then
21467 LIB_SUBSETS="${LIB_SUBSETS} "
21469 LIB_SUBSETS="${LIB_SUBSETS}+"
21472 LIB_SUBSETS="${LIB_SUBSETS}base"
21474 # Most term-driver calls are to tinfo, but some like init_pair are to the
21475 # base library (so it resides in base).
21476 if test "$with_term_driver" != no ; then
21477 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
21478 case $cf_cv_system_name in
21479 (*mingw32*|*mingw64*)
21480 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
21481 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
21484 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
21489 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
21490 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
21492 echo "$as_me:21492: result: $LIB_SUBSETS" >&5
21493 echo "${ECHO_T}$LIB_SUBSETS" >&6
21495 ### Construct the list of include-directories to be generated
21497 if test "$srcdir" != "."; then
21498 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
21500 CPPFLAGS="-I../include $CPPFLAGS"
21501 if test "$srcdir" != "."; then
21502 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
21504 CPPFLAGS="-I. $CPPFLAGS"
21506 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
21507 if test "$srcdir" != "."; then
21508 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
21510 if test "$GCC" != yes; then
21511 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21512 elif test "$includedir" != "/usr/include"; then
21513 if test "$includedir" = '${prefix}/include' ; then
21514 if test x$prefix != x/usr ; then
21515 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21518 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21522 ### Build up pieces for makefile rules
21523 echo "$as_me:21523: checking default library suffix" >&5
21524 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
21526 case $DFT_LWR_MODEL in
21527 (libtool) DFT_ARG_SUFFIX='' ;;
21528 (normal) DFT_ARG_SUFFIX='' ;;
21529 (debug) DFT_ARG_SUFFIX='_g' ;;
21530 (profile) DFT_ARG_SUFFIX='_p' ;;
21531 (shared) DFT_ARG_SUFFIX='' ;;
21533 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
21534 echo "$as_me:21534: result: $DFT_ARG_SUFFIX" >&5
21535 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
21537 echo "$as_me:21537: checking default library-dependency suffix" >&5
21538 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
21540 case X$DFT_LWR_MODEL in
21542 DFT_LIB_SUFFIX='.la'
21543 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21546 DFT_LIB_SUFFIX='_g.a'
21547 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21550 DFT_LIB_SUFFIX='_p.a'
21551 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21554 case $cf_cv_system_name in
21556 DFT_LIB_SUFFIX='.so'
21557 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21559 (cygwin*|msys*|mingw*)
21560 DFT_LIB_SUFFIX='.dll'
21561 DFT_DEP_SUFFIX='.dll.a'
21564 DFT_LIB_SUFFIX='.dylib'
21565 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21570 DFT_LIB_SUFFIX='.so'
21571 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21574 DFT_LIB_SUFFIX='.sl'
21575 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21580 DFT_LIB_SUFFIX='.so'
21581 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21586 DFT_LIB_SUFFIX='.a'
21587 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21590 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21592 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
21593 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
21595 echo "$as_me:21595: result: $DFT_DEP_SUFFIX" >&5
21596 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
21598 echo "$as_me:21598: checking default object directory" >&5
21599 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
21601 case $DFT_LWR_MODEL in
21602 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
21603 (normal) DFT_OBJ_SUBDIR='objects' ;;
21604 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
21605 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
21607 case $cf_cv_system_name in
21609 DFT_OBJ_SUBDIR='objects' ;;
21611 DFT_OBJ_SUBDIR='obj_s' ;;
21614 echo "$as_me:21614: result: $DFT_OBJ_SUBDIR" >&5
21615 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
21617 if test "x$cf_with_cxx" = xyes ; then
21618 echo "$as_me:21618: checking c++ library-dependency suffix" >&5
21619 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
21620 if test "$with_libtool" != "no"; then
21621 # libtool thinks it can make c++ shared libraries (perhaps only g++)
21622 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21623 elif test "$with_shared_cxx" != "no"; then
21624 # also for g++ users...
21625 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21627 # we normally make a static library because C/C++ library rules differ
21631 CXX_LIB_SUFFIX='.la'
21632 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21635 CXX_LIB_SUFFIX='_g.a'
21636 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21639 CXX_LIB_SUFFIX='_p.a'
21640 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21643 case $cf_cv_system_name in
21645 CXX_LIB_SUFFIX='.so'
21646 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21648 (cygwin*|msys*|mingw*)
21649 CXX_LIB_SUFFIX='.dll'
21650 CXX_DEP_SUFFIX='.dll.a'
21653 CXX_LIB_SUFFIX='.dylib'
21654 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21659 CXX_LIB_SUFFIX='.so'
21660 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21663 CXX_LIB_SUFFIX='.sl'
21664 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21669 CXX_LIB_SUFFIX='.so'
21670 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21675 CXX_LIB_SUFFIX='.a'
21676 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21679 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21681 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
21682 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
21686 echo "$as_me:21686: result: $CXX_LIB_SUFFIX" >&5
21687 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
21691 # do not want -ldl in build except as needed for -lncurses dependency
21692 if test "x$with_dlsym" = xyes ; then
21693 if test $DFT_LWR_MODEL = shared || \
21694 test $DFT_LWR_MODEL = libtool ; then
21696 # remove dl library from $LIBS
21697 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21701 ### Set up low-level terminfo dependencies for makefiles.
21703 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
21704 # do not need libdl
21706 if test "x$with_dlsym" = xyes ; then
21708 # remove dl library from $SHLIB_LIST
21709 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21713 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
21714 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
21715 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
21716 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
21718 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
21721 if test "$with_ticlib" != no ; then
21723 if test "x$with_ticlib" != xyes ; then
21724 TICS_NAME=$with_ticlib
21725 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21726 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21727 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21728 TICS_LIB_SUFFIX="${with_ticlib}"
21730 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21731 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
21732 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
21733 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
21735 TICS_LDFLAGS="-L${LIB_DIR}"
21736 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
21738 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21739 TICS_LDFLAGS="-L${LIB_DIR}"
21740 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21743 if test "$with_termlib" != no ; then
21745 if test "x$with_termlib" != xyes ; then
21746 TINFO_NAME=$with_termlib
21747 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21748 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21749 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21750 TINFO_LIB_SUFFIX="${with_termlib}"
21752 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21753 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
21754 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
21755 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
21758 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21759 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21760 if test "$DFT_LWR_MODEL" = "libtool"; then
21761 TEST_ARGS="${TEST_DEPS}"
21762 TEST_ARG2="${TEST_DEP2}"
21763 TINFO_LDFLAGS="-L${LIB_DIR}"
21764 TINFO_LIBS="$TEST_ARGS"
21765 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
21766 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
21768 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
21769 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
21770 if test "x$with_term_driver" != xno ; then
21771 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21772 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
21773 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
21775 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21776 TINFO_LIBS="$TEST_ARGS"
21778 TINFO_LDFLAGS="-L${LIB_DIR}"
21779 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21782 # the next lines are needed for linking libtic over libncurses
21783 TINFO_NAME=${LIB_NAME}
21784 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21785 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
21786 if test "x$with_tic_depends" = xyes ; then
21787 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21789 TICS_LIST="$SHLIB_LIST"
21792 TINFO_LDFLAGS="-L${LIB_DIR}"
21793 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21796 if test "$DFT_LWR_MODEL" = shared ; then
21797 case $cf_cv_system_name in
21799 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
21805 if test "x$with_dlsym" = xyes ; then
21807 # remove dl library from $TICS_LIST
21808 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21812 if test "$DFT_LWR_MODEL" = "libtool"; then
21817 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
21819 case $DFT_LWR_MODEL in
21820 (normal|debug|profile)
21822 if test "$GCC" = yes ; then
21823 case $cf_cv_system_name in
21824 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
21828 (*) # normally, except when broken
21829 LDFLAGS_STATIC=-static
21830 LDFLAGS_SHARED=-dynamic
21834 case $cf_cv_system_name in
21835 (aix[4-7]*) # from ld manpage
21836 LDFLAGS_STATIC=-bstatic
21837 LDFLAGS_SHARED=-bdynamic
21839 (hpux*) # from ld manpage for hpux10.20, hpux11.11
21840 # We could also use just "archive" and "shared".
21841 LDFLAGS_STATIC=-Wl,-a,archive_shared
21842 LDFLAGS_SHARED=-Wl,-a,shared_archive
21844 (irix*) # from ld manpage IRIX64
21845 LDFLAGS_STATIC=-Bstatic
21846 LDFLAGS_SHARED=-Bdynamic
21848 (osf[45]*) # from ld manpage osf4.0d, osf5.1
21849 # alternative "-oldstyle_liblookup" (not in cc manpage)
21850 LDFLAGS_STATIC=-noso
21851 LDFLAGS_SHARED=-so_archive
21854 LDFLAGS_STATIC=-Bstatic
21855 LDFLAGS_SHARED=-Bdynamic
21860 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
21862 echo "$as_me:21862: checking if linker supports switching between static/dynamic" >&5
21863 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
21865 rm -f libconftest.a
21866 cat >conftest.$ac_ext <<EOF
21867 #line 21867 "configure"
21869 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
21871 if { (eval echo "$as_me:21871: \"$ac_compile\"") >&5
21872 (eval $ac_compile) 2>&5
21874 echo "$as_me:21874: \$? = $ac_status" >&5
21875 (exit $ac_status); } ; then
21876 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
21877 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
21881 cf_save_LIBS="$LIBS"
21883 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
21884 cat >conftest.$ac_ext <<_ACEOF
21885 #line 21885 "configure"
21886 #include "confdefs.h"
21888 #line 21888 "configure"
21890 int cf_ldflags_static(FILE *fp);
21896 return cf_ldflags_static(stdin);
21902 rm -f conftest.$ac_objext conftest$ac_exeext
21903 if { (eval echo "$as_me:21903: \"$ac_link\"") >&5
21904 (eval $ac_link) 2>&5
21906 echo "$as_me:21906: \$? = $ac_status" >&5
21907 (exit $ac_status); } &&
21908 { ac_try='test -s conftest$ac_exeext'
21909 { (eval echo "$as_me:21909: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21912 echo "$as_me:21912: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21915 # some linkers simply ignore the -dynamic
21916 case x`file conftest$ac_exeext 2>/dev/null` in
21918 cf_ldflags_static=no
21921 cf_ldflags_static=yes
21926 echo "$as_me: failed program was:" >&5
21927 cat conftest.$ac_ext >&5
21928 cf_ldflags_static=no
21930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21932 rm -f libconftest.*
21933 LIBS="$cf_save_LIBS"
21935 echo "$as_me:21935: result: $cf_ldflags_static" >&5
21936 echo "${ECHO_T}$cf_ldflags_static" >&6
21938 if test $cf_ldflags_static != yes
21951 echo "$as_me:21951: checking where we will install curses.h" >&5
21952 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
21955 if test "$with_overwrite" = no && \
21956 ( test "x$includedir" = 'x${prefix}/include' || \
21957 test "x$includedir" = "x${prefix}/include" )
21959 includesubdir="/ncurses${USE_LIB_SUFFIX}"
21961 echo "$as_me:21961: result: ${includedir}${includesubdir}" >&5
21962 echo "${ECHO_T}${includedir}${includesubdir}" >&6
21964 ### Resolve a conflict between normal and wide-curses by forcing applications
21965 ### that will need libutf8 to add it to their configure script.
21966 if test "$with_overwrite" != no ; then
21967 if test "$NCURSES_LIBUTF8" = 1 ; then
21968 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
21969 { echo "$as_me:21969: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
21970 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
21973 WITH_OVERWRITE=$with_overwrite
21975 # used to separate tack out of the tree
21978 ### predefined stuff for the test programs
21980 cat >>confdefs.h <<\EOF
21981 #define HAVE_SLK_COLOR 1
21984 ### Construct the list of subdirectories for which we'll customize makefiles
21985 ### with the appropriate compile-rules.
21987 echo "$as_me:21987: checking for src modules" >&5
21988 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
21990 # dependencies and linker-arguments for test-programs
21991 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
21992 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
21993 if test "$DFT_LWR_MODEL" = "libtool"; then
21994 TEST_ARGS="${TEST_DEPS}"
21995 TEST_ARG2="${TEST_DEP2}"
21997 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
21998 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
22001 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
22003 for cf_dir in $modules_to_build
22005 if test -f $srcdir/$cf_dir/modules; then
22007 # We may/may not have tack in the distribution, though the
22009 if test $cf_dir = tack ; then
22010 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
22015 if test -z "$cf_cv_src_modules"; then
22016 cf_cv_src_modules=$cf_dir
22018 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
22021 # Make the ncurses_cfg.h file record the library interface files as
22022 # well. These are header files that are the same name as their
22023 # directory. Ncurses is the only library that does not follow
22025 if test $cf_dir = tack ; then
22027 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
22029 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22031 cat >>confdefs.h <<EOF
22032 #define HAVE_${cf_have_include}_H 1
22035 cat >>confdefs.h <<EOF
22036 #define HAVE_LIB${cf_have_include} 1
22039 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
22040 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
22041 if test "$DFT_LWR_MODEL" = "libtool"; then
22042 TEST_ARGS="${TEST_DEPS}"
22043 TEST_ARG2="${TEST_DEP2}"
22045 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
22046 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
22048 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
22052 echo "$as_me:22052: result: $cf_cv_src_modules" >&5
22053 echo "${ECHO_T}$cf_cv_src_modules" >&6
22055 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
22056 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
22059 if test "x$cf_with_manpages" != xno ; then
22060 SRC_SUBDIRS="$SRC_SUBDIRS man"
22062 SRC_SUBDIRS="$SRC_SUBDIRS include"
22063 for cf_dir in $cf_cv_src_modules
22065 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
22067 if test "x$cf_with_tests" != "xno" ; then
22068 SRC_SUBDIRS="$SRC_SUBDIRS test"
22070 # always make this, to install the ncurses-config script
22071 SRC_SUBDIRS="$SRC_SUBDIRS misc"
22072 if test "$cf_with_cxx_binding" != no; then
22073 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
22074 SRC_SUBDIRS="$SRC_SUBDIRS c++"
22077 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
22078 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
22081 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
22082 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
22083 ADA_SUBDIRS="gen src"
22084 if test "x$cf_with_tests" != "xno" ; then
22085 ADA_SUBDIRS="$ADA_SUBDIRS samples"
22090 for cf_dir in $SRC_SUBDIRS
22092 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
22095 if test -n "$ADA_SUBDIRS"; then
22096 for cf_dir in $ADA_SUBDIRS
22098 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
22103 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22104 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
22105 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
22109 for cf_item in $cf_list_models
22113 (libtool) cf_subdir='obj_lo' ;;
22114 (normal) cf_subdir='objects' ;;
22115 (debug) cf_subdir='obj_g' ;;
22116 (profile) cf_subdir='obj_p' ;;
22118 case $cf_cv_system_name in
22120 cf_subdir='objects' ;;
22122 cf_subdir='obj_s' ;;
22126 for cf_item2 in $DIRS_TO_MAKE
22128 test $cf_item2 = $cf_subdir && break
22130 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
22132 for cf_dir in $DIRS_TO_MAKE
22134 test ! -d $cf_dir && mkdir $cf_dir
22137 # symbols that differ when compiling Ada95 by itself.
22138 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
22140 # values to use as strings
22142 cat >>confdefs.h <<EOF
22143 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
22146 cat >>confdefs.h <<EOF
22147 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
22150 ### Now that we're done running tests, add the compiler-warnings, if any
22155 cf_new_extra_cppflags=
22157 for cf_add_cflags in $EXTRA_CFLAGS
22159 case $cf_fix_cppflags in
22161 case $cf_add_cflags in
22162 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22163 case $cf_add_cflags in
22165 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22167 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22168 && test -z "${cf_tst_cflags}" \
22169 && cf_fix_cppflags=yes
22171 if test $cf_fix_cppflags = yes ; then
22172 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22174 elif test "${cf_tst_cflags}" = "\"'" ; then
22175 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22180 case "$CPPFLAGS" in
22184 case $cf_add_cflags in
22186 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22188 CPPFLAGS=`echo "$CPPFLAGS" | \
22189 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22190 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22194 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
22199 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
22204 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22206 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
22208 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22209 && test -z "${cf_tst_cflags}" \
22210 && cf_fix_cppflags=no
22215 if test -n "$cf_new_cflags" ; then
22217 CFLAGS="$CFLAGS $cf_new_cflags"
22220 if test -n "$cf_new_cppflags" ; then
22222 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
22225 if test -n "$cf_new_extra_cppflags" ; then
22227 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
22230 ### Define substitutions for header files to avoid name-pollution
22232 if test "x$cf_cv_have_tcgetattr" = xyes ; then
22238 if test "x$ac_cv_header_stdint_h" = xyes ; then
22244 if test "x$ac_cv_header_termio_h" = xyes ; then
22250 if test "x$ac_cv_header_termios_h" = xyes ; then
22256 ################################################################################
22257 test "x$use_database" = xyes && \
22258 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
22260 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
22261 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
22263 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
22264 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
22267 # Extract the first word of "tic", so it can be a program name with args.
22268 set dummy tic; ac_word=$2
22269 echo "$as_me:22269: checking for $ac_word" >&5
22270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22271 if test "${ac_cv_path_TIC_PATH+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
22279 ac_save_IFS=$IFS; IFS=$ac_path_separator
22280 ac_dummy="$PATH:/usr/local/ncurses/bin"
22281 for ac_dir in $ac_dummy; do
22283 test -z "$ac_dir" && ac_dir=.
22284 if $as_executable_p "$ac_dir/$ac_word"; then
22285 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
22286 echo "$as_me:22286: found $ac_dir/$ac_word" >&5
22291 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
22295 TIC_PATH=$ac_cv_path_TIC_PATH
22297 if test -n "$TIC_PATH"; then
22298 echo "$as_me:22298: result: $TIC_PATH" >&5
22299 echo "${ECHO_T}$TIC_PATH" >&6
22301 echo "$as_me:22301: result: no" >&5
22302 echo "${ECHO_T}no" >&6
22305 if test -n "$FALLBACK_LIST"
22307 if test "$TIC_PATH" = unknown
22309 { echo "$as_me:22309: WARNING: no tic program found for fallbacks" >&5
22310 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
22314 if test "x$cf_with_tests" != xno ; then
22320 ADAHTML_DIR=../../doc/html/ada
22322 # these could be configurable, but are not currently
22328 # workaround for OS/2 (20151017)
22329 case $cf_cv_system_name in
22331 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
22338 # workaround for g++ versus Solaris (20131116)
22339 case $cf_cv_system_name in
22341 case "x$CPPFLAGS" in
22342 (*-D_XOPEN_SOURCE_EXTENDED*)
22343 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
22345 echo "${as_me:-configure}:22345: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
22347 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
22348 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
22354 # Help to automatically enable the extended curses features when using either
22355 # the *-config or the ".pc" files by adding defines.
22356 echo "$as_me:22356: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
22357 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
22359 for cf_loop1 in $CPPFLAGS_after_XOPEN
22362 for cf_loop2 in $CPPFLAGS_before_XOPEN
22364 if test "x$cf_loop1" = "x$cf_loop2"
22370 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
22372 echo "$as_me:22372: result: $PKG_CFLAGS" >&5
22373 echo "${ECHO_T}$PKG_CFLAGS" >&6
22375 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
22376 case "x$NCURSES_OSPEED" in
22385 cat >>confdefs.h <<EOF
22386 #define NCURSES_OSPEED_COMPAT $cf_compatible
22389 case "x$cf_cv_typeof_chtype" in
22390 (xshort|xint|xlong)
22391 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
22395 case "x$cf_cv_typeof_mmask_t" in
22396 (xshort|xint|xlong)
22397 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
22401 # substitute into misc/Makefile to suppress
22402 # (un)install.data from the
22403 # (un)install rules.
22404 if test "x$cf_with_db_install" = "xno"; then
22406 MISC_UNINSTALL_DATA=
22408 MISC_INSTALL_DATA=install.data
22409 MISC_UNINSTALL_DATA=uninstall.data
22414 if test -n "$PACKAGE"
22416 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
22418 echo "package: $PACKAGE"
22424 if test -n "$RESULTING_SYMS"
22426 cf_filter_syms=$cf_dft_filter_syms
22427 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
22429 echo "${as_me:-configure}:22429: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
22433 if test "x$WILDCARD_SYMS" = xno
22438 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
22439 if test $cf_filter_syms = yes
22441 RESULTING_SYMS=resulting.map
22444 if test "x$cross_compiling" = xyes ; then
22445 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
22447 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
22450 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"
22451 ac_config_commands="$ac_config_commands default"
22452 cat >confcache <<\_ACEOF
22453 # This file is a shell script that caches the results of configure
22454 # tests run on this system so they can be shared between configure
22455 # scripts and configure runs, see configure's option --config-cache.
22456 # It is not useful on other systems. If it contains results you don't
22457 # want to keep, you may remove or edit it.
22459 # config.status only pays attention to the cache file if you give it
22460 # the --recheck option to rerun configure.
22462 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22464 # following values.
22468 # The following way of writing the cache mishandles newlines in values,
22469 # but we know of no workaround that is simple, portable, and efficient.
22470 # So, don't put newlines in cache variables' values.
22471 # Ultrix sh set writes to stderr and can't be redirected directly,
22472 # and sets the high bit in the cache file unless we assign to the vars.
22475 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22477 # `set' does not quote correctly, so add quotes (double-quote
22478 # substitution turns \\\\ into \\, and sed turns \\ into \).
22481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22484 # `set' quotes correctly as required by POSIX, so do not add quotes.
22486 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22495 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22497 if cmp -s $cache_file confcache; then :; else
22498 if test -w $cache_file; then
22499 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22500 cat confcache >$cache_file
22502 echo "not updating unwritable cache $cache_file"
22507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22508 # Let make expand exec_prefix.
22509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22511 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22512 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22513 # trailing colons and then remove the whole line if VPATH becomes empty
22514 # (actually we leave an empty line to preserve line numbers).
22515 if test "x$srcdir" = x.; then
22516 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22517 s/:*\$(srcdir):*/:/;
22518 s/:*\${srcdir}:*/:/;
22520 s/^\([^=]*=[ ]*\):*/\1/;
22526 DEFS=-DHAVE_CONFIG_H
22528 : ${CONFIG_STATUS=./config.status}
22529 ac_clean_files_save=$ac_clean_files
22530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22531 { echo "$as_me:22531: creating $CONFIG_STATUS" >&5
22532 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22533 cat >$CONFIG_STATUS <<_ACEOF
22535 # Generated automatically by configure.
22536 # Run this file to recreate the current configuration.
22537 # Compiler output produced by configure, useful for debugging
22538 # configure, is in config.log if it exists.
22541 SHELL=\${CONFIG_SHELL-$SHELL}
22542 ac_cs_invocation="\$0 \$@"
22546 cat >>$CONFIG_STATUS <<\_ACEOF
22547 # Be Bourne compatible
22548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22551 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22555 # Name of the executable.
22556 as_me=`echo "$0" |sed 's,.*[\\/],,'`
22558 if expr a : '\(a\)' >/dev/null 2>&1; then
22564 rm -f conf$$ conf$$.exe conf$$.file
22566 if ln -s conf$$.file conf$$ 2>/dev/null; then
22567 # We could just check for DJGPP; but this test a) works b) is more generic
22568 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22569 if test -f conf$$.exe; then
22570 # Don't use ln at all; we don't have any links
22575 elif ln conf$$.file conf$$ 2>/dev/null; then
22580 rm -f conf$$ conf$$.exe conf$$.file
22582 as_executable_p="test -f"
22584 # Support unset when possible.
22585 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22592 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
22593 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
22594 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
22595 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
22596 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
22597 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
22598 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
22599 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
22602 # We need space, tab and new line, in precisely that order.
22608 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
22614 # Files that config.status was made for.
22615 if test -n "$ac_config_files"; then
22616 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22619 if test -n "$ac_config_headers"; then
22620 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22623 if test -n "$ac_config_links"; then
22624 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22627 if test -n "$ac_config_commands"; then
22628 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22631 cat >>$CONFIG_STATUS <<\EOF
22634 \`$as_me' instantiates files from templates according to the
22635 current configuration.
22637 Usage: $0 [OPTIONS] [FILE]...
22639 -h, --help print this help, then exit
22640 -V, --version print version number, then exit
22641 -d, --debug don't remove temporary files
22642 --recheck update $as_me by reconfiguring in the same conditions
22643 --file=FILE[:TEMPLATE]
22644 instantiate the configuration file FILE
22645 --header=FILE[:TEMPLATE]
22646 instantiate the configuration header FILE
22648 Configuration files:
22651 Configuration headers:
22654 Configuration commands:
22657 Report bugs to <dickey@invisible-island.net>."
22660 cat >>$CONFIG_STATUS <<EOF
22663 configured by $0, generated by GNU Autoconf 2.52.20150926,
22664 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22666 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22667 Free Software Foundation, Inc.
22668 This config.status script is free software; the Free Software Foundation
22669 gives unlimited permission to copy, distribute and modify it."
22674 cat >>$CONFIG_STATUS <<\EOF
22675 # If no file are specified by the user, then we need to provide default
22676 # value. By we need to know if files were specified by the user.
22682 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22683 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22685 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22689 *) # This is not an option, so the user has probably given explicit
22691 ac_need_defaults=false;;
22695 # Handling of the options.
22697 cat >>$CONFIG_STATUS <<EOF
22698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22699 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22700 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22702 cat >>$CONFIG_STATUS <<\EOF
22703 --version | --vers* | -V )
22704 echo "$ac_cs_version"; exit 0 ;;
22706 # Conflict between --help and --header
22707 { { echo "$as_me:22707: error: ambiguous option: $1
22708 Try \`$0 --help' for more information." >&5
22709 echo "$as_me: error: ambiguous option: $1
22710 Try \`$0 --help' for more information." >&2;}
22711 { (exit 1); exit 1; }; };;
22712 --help | --hel | -h )
22713 echo "$ac_cs_usage"; exit 0 ;;
22714 --debug | --d* | -d )
22716 --file | --fil | --fi | --f )
22718 CONFIG_FILES="$CONFIG_FILES $1"
22719 ac_need_defaults=false;;
22720 --header | --heade | --head | --hea )
22722 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22723 ac_need_defaults=false;;
22725 # This is an error.
22726 -*) { { echo "$as_me:22726: error: unrecognized option: $1
22727 Try \`$0 --help' for more information." >&5
22728 echo "$as_me: error: unrecognized option: $1
22729 Try \`$0 --help' for more information." >&2;}
22730 { (exit 1); exit 1; }; } ;;
22732 *) ac_config_targets="$ac_config_targets $1" ;;
22741 ## ----------------------- ##
22742 ## Running config.status. ##
22743 ## ----------------------- ##
22745 This file was extended by $as_me 2.52.20150926, executed with
22746 CONFIG_FILES = $CONFIG_FILES
22747 CONFIG_HEADERS = $CONFIG_HEADERS
22748 CONFIG_LINKS = $CONFIG_LINKS
22749 CONFIG_COMMANDS = $CONFIG_COMMANDS
22750 > $ac_cs_invocation
22751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22756 cat >>$CONFIG_STATUS <<EOF
22758 # INIT-COMMANDS section.
22761 ### Special initialization commands, used to pass information from the
22762 ### configuration-run into config.status
22765 ALTERNATE_SYMS="$ALTERNATE_SYMS"
22766 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
22767 DFT_LWR_MODEL="$DFT_LWR_MODEL"
22769 EXTRA_SUFFIX="$EXTRA_SUFFIX"
22770 LDCONFIG="$LDCONFIG"
22771 LIBTOOL_VERSION="$LIBTOOL_VERSION"
22772 LIB_NAME="$LIB_NAME"
22773 LIB_PREFIX="$LIB_PREFIX"
22774 LIB_SUBSETS="$LIB_SUBSETS"
22775 LIB_SUFFIX="$LIB_SUFFIX"
22776 LIB_TRACING="$LIB_TRACING"
22778 MAKE_TERMINFO="$MAKE_TERMINFO"
22779 NCURSES_MAJOR="$NCURSES_MAJOR"
22780 NCURSES_MINOR="$NCURSES_MINOR"
22781 NCURSES_OSPEED="$NCURSES_OSPEED"
22782 NCURSES_PATCH="$NCURSES_PATCH"
22783 SRC_SUBDIRS="$SRC_SUBDIRS"
22784 TERMINFO="$TERMINFO"
22785 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
22786 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
22787 TICS_NAME="$TICS_NAME"
22788 TICS_SUFFIX="$TICS_SUFFIX"
22789 TIC_PATH="$TIC_PATH"
22790 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
22791 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
22792 TINFO_NAME="$TINFO_NAME"
22793 TINFO_SUFFIX="$TINFO_SUFFIX"
22794 UNALTERED_SYMS="$UNALTERED_SYMS"
22795 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
22796 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
22797 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
22798 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
22799 WILDCARD_SYMS="$WILDCARD_SYMS"
22800 WITH_CURSES_H="$with_curses_h"
22801 WITH_ECHO="${enable_echo:=yes}"
22802 WITH_OVERWRITE="$with_overwrite"
22803 cf_LIST_MODELS="$cf_list_models"
22804 cf_cv_abi_version="$cf_cv_abi_version"
22805 cf_cv_do_relink="$cf_cv_do_relink"
22806 cf_cv_do_symlinks="$cf_cv_do_symlinks"
22807 cf_cv_enable_lp64="$cf_cv_enable_lp64"
22808 cf_cv_enable_opaque="$cf_cv_enable_opaque"
22809 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
22810 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
22811 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
22812 cf_cv_rel_version="$cf_cv_rel_version"
22813 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
22814 cf_cv_shared_soname='$cf_cv_shared_soname'
22815 cf_cv_shlib_version="$cf_cv_shlib_version"
22816 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
22817 cf_cv_system_name="$cf_cv_system_name"
22818 cf_cv_term_driver="$with_term_driver"
22819 cf_with_ada="$cf_with_ada"
22820 cf_with_cxx_binding="$cf_with_cxx_binding"
22821 cf_with_db_install="$cf_with_db_install"
22822 cf_with_manpages="$cf_with_manpages"
22823 cf_with_tests="$cf_with_tests"
22826 with_shared_cxx="$with_shared_cxx"
22830 cat >>$CONFIG_STATUS <<\EOF
22831 for ac_config_target in $ac_config_targets
22833 case "$ac_config_target" in
22834 # Handling of arguments.
22835 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
22836 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
22837 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
22838 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
22839 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
22840 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
22841 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
22842 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22843 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22844 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
22845 *) { { echo "$as_me:22845: error: invalid argument: $ac_config_target" >&5
22846 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22847 { (exit 1); exit 1; }; };;
22851 # If the user did not use the arguments to specify the items to instantiate,
22852 # then the envvar interface is used. Set only those that are not.
22853 # We use the long form for the default assignment because of an extremely
22854 # bizarre bug on SunOS 4.1.3.
22855 if $ac_need_defaults; then
22856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22861 # Create a temporary directory, and hook for its removal unless debugging.
22864 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22865 trap '{ (exit 1); exit 1; }' 1 2 13 15
22868 # Create a (secure) tmp directory for tmp files.
22871 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
22872 test -n "$tmp" && test -d "$tmp"
22875 tmp=$TMPDIR/cs$$-$RANDOM
22876 (umask 077 && mkdir $tmp)
22879 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
22880 { (exit 1); exit 1; }
22885 cat >>$CONFIG_STATUS <<EOF
22888 # CONFIG_FILES section.
22891 # No need to generate the scripts if there are no CONFIG_FILES.
22892 # This happens for instance when ./config.status config.h
22893 if test -n "\$CONFIG_FILES"; then
22894 # Protect against being on the right side of a sed subst in config.status.
22895 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22896 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22897 s,@SHELL@,$SHELL,;t t
22898 s,@exec_prefix@,$exec_prefix,;t t
22899 s,@prefix@,$prefix,;t t
22900 s,@program_transform_name@,$program_transform_name,;t t
22901 s,@bindir@,$bindir,;t t
22902 s,@sbindir@,$sbindir,;t t
22903 s,@libexecdir@,$libexecdir,;t t
22904 s,@datarootdir@,$datarootdir,;t t
22905 s,@datadir@,$datadir,;t t
22906 s,@sysconfdir@,$sysconfdir,;t t
22907 s,@sharedstatedir@,$sharedstatedir,;t t
22908 s,@localstatedir@,$localstatedir,;t t
22909 s,@libdir@,$libdir,;t t
22910 s,@includedir@,$includedir,;t t
22911 s,@oldincludedir@,$oldincludedir,;t t
22912 s,@infodir@,$infodir,;t t
22913 s,@mandir@,$mandir,;t t
22914 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22915 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22916 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22917 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22918 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22919 s,@build_alias@,$build_alias,;t t
22920 s,@host_alias@,$host_alias,;t t
22921 s,@target_alias@,$target_alias,;t t
22922 s,@ECHO_C@,$ECHO_C,;t t
22923 s,@ECHO_N@,$ECHO_N,;t t
22924 s,@ECHO_T@,$ECHO_T,;t t
22925 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22926 s,@DEFS@,$DEFS,;t t
22927 s,@LIBS@,$LIBS,;t t
22928 s,@top_builddir@,$top_builddir,;t t
22929 s,@EGREP@,$EGREP,;t t
22930 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
22931 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
22932 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
22933 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
22934 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
22935 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
22936 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
22937 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
22938 s,@VERSION@,$VERSION,;t t
22939 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
22940 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
22941 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
22942 s,@PACKAGE@,$PACKAGE,;t t
22943 s,@build@,$build,;t t
22944 s,@build_cpu@,$build_cpu,;t t
22945 s,@build_vendor@,$build_vendor,;t t
22946 s,@build_os@,$build_os,;t t
22947 s,@host@,$host,;t t
22948 s,@host_cpu@,$host_cpu,;t t
22949 s,@host_vendor@,$host_vendor,;t t
22950 s,@host_os@,$host_os,;t t
22951 s,@target@,$target,;t t
22952 s,@target_cpu@,$target_cpu,;t t
22953 s,@target_vendor@,$target_vendor,;t t
22954 s,@target_os@,$target_os,;t t
22956 s,@CFLAGS@,$CFLAGS,;t t
22957 s,@LDFLAGS@,$LDFLAGS,;t t
22958 s,@CPPFLAGS@,$CPPFLAGS,;t t
22959 s,@ac_ct_CC@,$ac_ct_CC,;t t
22960 s,@EXEEXT@,$EXEEXT,;t t
22961 s,@OBJEXT@,$OBJEXT,;t t
22962 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
22964 s,@LDCONFIG@,$LDCONFIG,;t t
22966 s,@CXXFLAGS@,$CXXFLAGS,;t t
22967 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22969 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22970 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22971 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22972 s,@LINT@,$LINT,;t t
22973 s,@LINT_OPTS@,$LINT_OPTS,;t t
22974 s,@LN_S@,$LN_S,;t t
22975 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22976 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22977 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
22978 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
22979 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
22980 s,@SET_MAKE@,$SET_MAKE,;t t
22981 s,@CTAGS@,$CTAGS,;t t
22982 s,@ETAGS@,$ETAGS,;t t
22983 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
22984 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
22985 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
22986 s,@RANLIB@,$RANLIB,;t t
22987 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22989 s,@ac_ct_LD@,$ac_ct_LD,;t t
22991 s,@ac_ct_AR@,$ac_ct_AR,;t t
22993 s,@ac_ct_NM@,$ac_ct_NM,;t t
22994 s,@ARFLAGS@,$ARFLAGS,;t t
22995 s,@DESTDIR@,$DESTDIR,;t t
22996 s,@BUILD_CC@,$BUILD_CC,;t t
22997 s,@BUILD_CPP@,$BUILD_CPP,;t t
22998 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
22999 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
23000 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
23001 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
23002 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
23003 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
23004 s,@cf_list_models@,$cf_list_models,;t t
23005 s,@ABI_VERSION@,$ABI_VERSION,;t t
23006 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
23007 s,@LIBTOOL@,$LIBTOOL,;t t
23008 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
23009 s,@LT_UNDEF@,$LT_UNDEF,;t t
23010 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
23011 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
23012 s,@LIB_CREATE@,$LIB_CREATE,;t t
23013 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
23014 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
23015 s,@LIB_PREP@,$LIB_PREP,;t t
23016 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
23017 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
23018 s,@LIB_LINK@,$LIB_LINK,;t t
23019 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
23020 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
23021 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
23022 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
23023 s,@TICS_NAME@,$TICS_NAME,;t t
23024 s,@TINFO_NAME@,$TINFO_NAME,;t t
23025 s,@LIB_NAME@,$LIB_NAME,;t t
23026 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
23027 s,@CC_G_OPT@,$CC_G_OPT,;t t
23028 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
23029 s,@LD_MODEL@,$LD_MODEL,;t t
23030 s,@shlibdir@,$shlibdir,;t t
23031 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
23032 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
23033 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
23034 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
23035 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
23036 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
23037 s,@LINK_PROGS@,$LINK_PROGS,;t t
23038 s,@LINK_TESTS@,$LINK_TESTS,;t t
23039 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
23040 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
23041 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
23042 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
23043 s,@RPATH_LIST@,$RPATH_LIST,;t t
23044 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
23045 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
23046 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
23047 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
23048 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
23049 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
23050 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
23051 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
23052 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
23053 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
23054 s,@XTERM_KBS@,$XTERM_KBS,;t t
23055 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
23056 s,@TERMINFO@,$TERMINFO,;t t
23057 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
23058 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
23059 s,@TERMPATH@,$TERMPATH,;t t
23060 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
23061 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
23062 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
23063 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
23064 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
23065 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
23066 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
23067 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
23068 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
23069 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
23070 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
23071 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
23072 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
23073 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
23074 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
23075 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
23076 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
23077 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
23078 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
23079 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
23080 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
23081 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
23082 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
23083 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
23084 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
23085 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
23086 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
23087 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
23088 s,@PTHREAD@,$PTHREAD,;t t
23089 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
23090 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
23091 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
23092 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
23093 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
23094 s,@ECHO_LT@,$ECHO_LT,;t t
23095 s,@ECHO_LD@,$ECHO_LD,;t t
23096 s,@RULE_CC@,$RULE_CC,;t t
23097 s,@SHOW_CC@,$SHOW_CC,;t t
23098 s,@ECHO_CC@,$ECHO_CC,;t t
23099 s,@ECHO_LINK@,$ECHO_LINK,;t t
23100 s,@ADAFLAGS@,$ADAFLAGS,;t t
23101 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
23102 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
23103 s,@ADA_TRACE@,$ADA_TRACE,;t t
23104 s,@MATH_LIB@,$MATH_LIB,;t t
23105 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
23106 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
23107 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
23108 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
23109 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
23110 s,@TEST_LIBS@,$TEST_LIBS,;t t
23111 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
23112 s,@CXXCPP@,$CXXCPP,;t t
23113 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
23114 s,@CXX_AR@,$CXX_AR,;t t
23115 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
23116 s,@CXXLIBS@,$CXXLIBS,;t t
23117 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
23118 s,@gnat_exists@,$gnat_exists,;t t
23119 s,@M4_exists@,$M4_exists,;t t
23120 s,@cf_ada_make@,$cf_ada_make,;t t
23121 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
23122 s,@cf_compile_generics@,$cf_compile_generics,;t t
23123 s,@cf_generic_objects@,$cf_generic_objects,;t t
23124 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
23125 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
23126 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
23127 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
23128 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
23129 s,@cf_ada_package@,$cf_ada_package,;t t
23130 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
23131 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
23132 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
23133 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
23134 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
23135 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
23136 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
23137 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
23138 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
23139 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
23140 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
23141 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
23142 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
23143 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
23144 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
23145 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
23146 s,@TICS_LIBS@,$TICS_LIBS,;t t
23147 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
23148 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
23149 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
23150 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23151 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23152 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
23153 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23154 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23155 s,@includesubdir@,$includesubdir,;t t
23156 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
23157 s,@TICS_LIST@,$TICS_LIST,;t t
23158 s,@TINFO_LIST@,$TINFO_LIST,;t t
23159 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
23160 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
23161 s,@TEST_ARGS@,$TEST_ARGS,;t t
23162 s,@TEST_DEPS@,$TEST_DEPS,;t t
23163 s,@TEST_ARG2@,$TEST_ARG2,;t t
23164 s,@TEST_DEP2@,$TEST_DEP2,;t t
23165 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
23166 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
23167 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
23168 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
23169 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
23170 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
23171 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
23172 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
23173 s,@cross_compiling@,$cross_compiling,;t t
23174 s,@TIC_PATH@,$TIC_PATH,;t t
23175 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
23176 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
23177 s,@PANEL_NAME@,$PANEL_NAME,;t t
23178 s,@MENU_NAME@,$MENU_NAME,;t t
23179 s,@FORM_NAME@,$FORM_NAME,;t t
23180 s,@CXX_NAME@,$CXX_NAME,;t t
23181 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
23182 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
23183 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
23184 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
23185 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
23186 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
23191 cat >>$CONFIG_STATUS <<\EOF
23192 # Split the substitutions into bite-sized pieces for seds with
23193 # small command number limits, like on Digital OSF/1 and HP-UX.
23194 ac_max_sed_lines=48
23195 ac_sed_frag=1 # Number of current file.
23196 ac_beg=1 # First line for current file.
23197 ac_end=$ac_max_sed_lines # Line after last line for current file.
23200 while $ac_more_lines; do
23201 if test $ac_beg -gt 1; then
23202 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23204 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23206 if test ! -s $tmp/subs.frag; then
23207 ac_more_lines=false
23209 # The purpose of the label and of the branching condition is to
23210 # speed up the sed processing (if there are no `@' at all, there
23211 # is no need to browse any of the substitutions).
23212 # These are the two extra sed commands mentioned above.
23214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23215 # It is possible to make a multiline substitution using escaped newlines.
23216 # Ensure that we do not split the substitution between script fragments.
23218 ac_END=`expr $ac_end + $ac_max_sed_lines`
23219 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
23220 if test -s $tmp/subs.next; then
23221 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
23222 if test ! -s $tmp/subs.edit; then
23223 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
23224 if test ! -s $tmp/subs.edit; then
23225 if test $ac_beg -gt 1; then
23226 ac_end=`expr $ac_end - 1`
23233 if test -z "$ac_sed_cmds"; then
23234 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23236 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23238 ac_sed_frag=`expr $ac_sed_frag + 1`
23240 ac_end=`expr $ac_end + $ac_max_sed_lines`
23243 if test -z "$ac_sed_cmds"; then
23246 fi # test -n "$CONFIG_FILES"
23249 cat >>$CONFIG_STATUS <<\EOF
23250 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23253 - | *:- | *:-:* ) # input from stdin
23255 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23257 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23259 * ) ac_file_in=$ac_file.in ;;
23262 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23263 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23264 X"$ac_file" : 'X\(//\)[^/]' \| \
23265 X"$ac_file" : 'X\(//\)$' \| \
23266 X"$ac_file" : 'X\(/\)' \| \
23267 . : '\(.\)' 2>/dev/null ||
23269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23271 /^X\(\/\/\)$/{ s//\1/; q; }
23272 /^X\(\/\).*/{ s//\1/; q; }
23274 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23275 { case "$ac_dir" in
23276 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23280 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23281 case $as_mkdir_dir in
23282 # Skip DOS drivespec
23283 ?:) as_incr_dir=$as_mkdir_dir ;;
23285 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23286 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23291 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
23292 # A "../" for each directory in $ac_dir_suffix.
23293 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
23295 ac_dir_suffix= ac_dots=
23300 if test -z "$ac_dots"; then
23303 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
23305 [\\/]* | ?:[\\/]* )
23306 ac_srcdir=$srcdir$ac_dir_suffix;
23307 ac_top_srcdir=$srcdir ;;
23308 *) # Relative path.
23309 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
23310 ac_top_srcdir=$ac_dots$srcdir ;;
23314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23315 *) ac_INSTALL=$ac_dots$INSTALL ;;
23318 if test x"$ac_file" != x-; then
23319 { echo "$as_me:23319: creating $ac_file" >&5
23320 echo "$as_me: creating $ac_file" >&6;}
23323 # Let's still pretend it is `configure' which instantiates (i.e., don't
23324 # use $as_me), people would be surprised to read:
23325 # /* config.h. Generated automatically by config.status. */
23326 configure_input="Generated automatically from `echo $ac_file_in |
23327 sed 's,.*/,,'` by configure."
23329 # First look for the input files in the build tree, otherwise in the
23331 ac_file_inputs=`IFS=:
23332 for f in $ac_file_in; do
23334 -) echo $tmp/stdin ;;
23336 # Absolute (can't be DOS-style, as IFS=:)
23337 test -f "$f" || { { echo "$as_me:23337: error: cannot find input file: $f" >&5
23338 echo "$as_me: error: cannot find input file: $f" >&2;}
23339 { (exit 1); exit 1; }; }
23342 if test -f "$f"; then
23345 elif test -f "$srcdir/$f"; then
23350 { { echo "$as_me:23350: error: cannot find input file: $f" >&5
23351 echo "$as_me: error: cannot find input file: $f" >&2;}
23352 { (exit 1); exit 1; }; }
23355 done` || { (exit 1); exit 1; }
23357 cat >>$CONFIG_STATUS <<\EOF
23358 ac_warn_datarootdir=no
23359 if test x"$ac_file" != x-; then
23360 for ac_item in $ac_file_inputs
23362 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
23363 if test -n "$ac_seen"; then
23364 ac_used=`grep '@datarootdir@' $ac_item`
23365 if test -z "$ac_used"; then
23366 { echo "$as_me:23366: WARNING: datarootdir was used implicitly but not set:
23368 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
23370 ac_warn_datarootdir=yes
23373 ac_seen=`grep '${datarootdir}' $ac_item`
23374 if test -n "$ac_seen"; then
23375 { echo "$as_me:23375: WARNING: datarootdir was used explicitly but not set:
23377 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
23379 ac_warn_datarootdir=yes
23384 if test "x$ac_warn_datarootdir" = xyes; then
23385 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
23389 cat >>$CONFIG_STATUS <<EOF
23393 cat >>$CONFIG_STATUS <<\EOF
23395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23396 s,@configure_input@,$configure_input,;t t
23397 s,@srcdir@,$ac_srcdir,;t t
23398 s,@top_srcdir@,$ac_top_srcdir,;t t
23399 s,@INSTALL@,$ac_INSTALL,;t t
23400 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23402 if test x"$ac_file" != x-; then
23403 cp $tmp/out $ac_file
23405 for ac_name in prefix exec_prefix datarootdir
23407 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
23408 if test -n "$ac_seen"; then
23409 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
23410 if test -z "$ac_init"; then
23411 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
23412 { echo "$as_me:23412: WARNING: Variable $ac_name is used but was not set:
23414 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
23419 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
23420 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
23421 if test -s $tmp/out; then
23422 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
23423 { echo "$as_me:23423: WARNING: Some variables may not be substituted:
23425 echo "$as_me: WARNING: Some variables may not be substituted:
23435 cat >>$CONFIG_STATUS <<\EOF
23438 # CONFIG_HEADER section.
23441 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23442 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23444 # ac_d sets the value in "#define NAME VALUE" lines.
23445 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23446 ac_dB='[ ].*$,\1#\2'
23449 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23450 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23451 ac_iB='\([ ]\),\1#\2define\3'
23454 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23455 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23456 ac_uB='$,\1#\2define\3'
23460 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23463 - | *:- | *:-:* ) # input from stdin
23465 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23467 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23469 * ) ac_file_in=$ac_file.in ;;
23472 test x"$ac_file" != x- && { echo "$as_me:23472: creating $ac_file" >&5
23473 echo "$as_me: creating $ac_file" >&6;}
23475 # First look for the input files in the build tree, otherwise in the
23477 ac_file_inputs=`IFS=:
23478 for f in $ac_file_in; do
23480 -) echo $tmp/stdin ;;
23482 # Absolute (can't be DOS-style, as IFS=:)
23483 test -f "$f" || { { echo "$as_me:23483: error: cannot find input file: $f" >&5
23484 echo "$as_me: error: cannot find input file: $f" >&2;}
23485 { (exit 1); exit 1; }; }
23488 if test -f "$f"; then
23491 elif test -f "$srcdir/$f"; then
23496 { { echo "$as_me:23496: error: cannot find input file: $f" >&5
23497 echo "$as_me: error: cannot find input file: $f" >&2;}
23498 { (exit 1); exit 1; }; }
23501 done` || { (exit 1); exit 1; }
23502 # Remove the trailing spaces.
23503 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23507 # Transform confdefs.h into a list of #define's. We won't use it as a sed
23508 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
23509 # be either 'cat' or 'sort'.
23510 cat confdefs.h | uniq >conftest.vals
23512 # Break up conftest.vals because some shells have a limit on
23513 # the size of here documents, and old seds have small limits too.
23515 rm -f conftest.tail
23516 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
23517 while grep . conftest.vals >/dev/null
23519 # Write chunks of a limited-size here document to conftest.frag.
23520 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
23521 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
23522 echo 'CEOF' >> $CONFIG_STATUS
23523 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23524 rm -f conftest.vals
23525 mv conftest.tail conftest.vals
23527 rm -f conftest.vals
23529 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
23531 echo ' cat >> conftest.edit <<CEOF
23532 /@DEFS@/r conftest.frag
23535 sed -f conftest.edit $tmp/in > $tmp/out
23537 mv $tmp/out $tmp/in
23538 rm -f conftest.edit conftest.frag
23539 ' >> $CONFIG_STATUS
23541 cat >>$CONFIG_STATUS <<\EOF
23542 # Let's still pretend it is `configure' which instantiates (i.e., don't
23543 # use $as_me), people would be surprised to read:
23544 # /* config.h. Generated automatically by config.status. */
23545 if test x"$ac_file" = x-; then
23546 echo "/* Generated automatically by configure. */" >$tmp/config.h
23548 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
23550 cat $tmp/in >>$tmp/config.h
23552 if test x"$ac_file" != x-; then
23553 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
23554 { echo "$as_me:23554: $ac_file is unchanged" >&5
23555 echo "$as_me: $ac_file is unchanged" >&6;}
23557 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23558 X"$ac_file" : 'X\(//\)[^/]' \| \
23559 X"$ac_file" : 'X\(//\)$' \| \
23560 X"$ac_file" : 'X\(/\)' \| \
23561 . : '\(.\)' 2>/dev/null ||
23563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23565 /^X\(\/\/\)$/{ s//\1/; q; }
23566 /^X\(\/\).*/{ s//\1/; q; }
23568 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23569 { case "$ac_dir" in
23570 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23574 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23575 case $as_mkdir_dir in
23576 # Skip DOS drivespec
23577 ?:) as_incr_dir=$as_mkdir_dir ;;
23579 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23580 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23587 mv $tmp/config.h $ac_file
23591 rm -f $tmp/config.h
23595 cat >>$CONFIG_STATUS <<\EOF
23597 # CONFIG_COMMANDS section.
23599 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23600 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23601 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23605 if test "x$cf_with_tests" != xno ; then
23609 if test ! -d $srcdir/$cf_dir; then
23611 elif test -f $srcdir/$cf_dir/programs; then
23612 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
23618 cf_prefix=$LIB_PREFIX
23620 case $cf_cv_shlib_version in
23621 (cygdll|msysdll|mingw)
23622 TINFO_NAME=$TINFO_ARG_SUFFIX
23627 if test -n "$TINFO_SUFFIX" ; then
23628 case $TINFO_SUFFIX in
23630 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
23631 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
23634 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
23635 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
23638 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
23639 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
23644 for cf_dir in $SRC_SUBDIRS
23646 if test ! -d $srcdir/$cf_dir ; then
23648 elif test -f $srcdir/$cf_dir/modules; then
23653 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
23655 cf_awk_program="$cf_awk_program\
23656 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
23657 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
23661 if test "x$WILDCARD_SYMS" = xno
23663 cf_awk_program="$cf_awk_program\
23664 /[ ]_\\*;/ { skip=1; next; }\
23668 if test "x$cf_awk_program" != "x"
23670 cat >>$cf_dir/Makefile <<CF_EOF
23672 # Generated by CF_LIB_RULES
23673 resulting.map: $UNALTERED_SYMS
23674 $AWK 'BEGIN { skip = 1; last=""; } \
23676 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
23677 skip = 0; last = \$\$0; } \
23678 END { print last; }' < $UNALTERED_SYMS >\$@
23681 rm -f resulting.map
23685 for cf_item in $cf_LIST_MODELS
23691 cf_depsuf=$cf_suffix
23695 cf_depsuf=$cf_suffix
23699 cf_depsuf=$cf_suffix
23702 case $cf_cv_system_name in
23705 cf_depsuf=$cf_suffix
23707 (cygwin*|msys*|mingw*)
23713 cf_depsuf=$cf_suffix
23719 cf_depsuf=$cf_suffix
23723 cf_depsuf=$cf_suffix
23729 cf_depsuf=$cf_suffix
23735 cf_depsuf=$cf_suffix
23738 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23740 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
23741 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
23745 test "$cf_dir" = c++ && cf_libname=ncurses++
23746 if test $cf_item = shared ; then
23747 if test -n "${LIB_SUFFIX}"
23749 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23751 cf_shared_suffix="$cf_suffix"
23753 if test "$cf_cv_do_symlinks" = yes ; then
23756 case "$cf_cv_shlib_version" in
23758 cf_version_name=REL_VERSION
23761 cf_version_name=ABI_VERSION
23765 if test -n "$cf_version_name"
23767 case "$cf_cv_system_name" in
23770 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
23773 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
23777 if test -n "${USE_LIB_SUFFIX}"
23779 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23781 cf_shared_suffix="$cf_suffix"
23784 # cygwin needs import library, and has unique naming convention
23785 # use autodetected ${cf_prefix} for import lib and static lib, but
23786 # use 'cyg' prefix for shared lib.
23787 case $cf_cv_shlib_version in
23789 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23790 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
23793 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23794 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
23797 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23798 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
23804 if test -n "$cf_add_lib"
23806 Libs_To_Make="$Libs_To_Make $cf_add_lib"
23810 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
23811 Libs_To_Make="$Libs_To_Make $cf_add_lib"
23814 if test $cf_dir = ncurses ; then
23815 cf_subsets="$LIB_SUBSETS"
23816 cf_r_parts="$cf_subsets"
23817 cf_liblist="$Libs_To_Make"
23819 while test -n "$cf_r_parts"
23821 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
23822 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
23823 if test "$cf_l_parts" != "$cf_r_parts" ; then
23825 case $cf_l_parts in
23827 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
23830 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
23836 if test -n "$cf_add_lib"; then
23837 Libs_To_Make="$cf_add_lib $Libs_To_Make"
23844 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
23847 if test $cf_dir = c++; then
23848 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
23850 for cf_item in $Libs_To_Make
23856 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
23859 for cf_test in $cf_list
23861 if test "$cf_test" = "$cf_item"
23863 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
23868 test -n "$cf_item" && cf_list="$cf_list $cf_item"
23870 Libs_To_Make="$cf_list"
23874 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
23875 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
23876 $cf_dir/Makefile >$cf_dir/Makefile.out
23877 mv $cf_dir/Makefile.out $cf_dir/Makefile
23879 $AWK -f $srcdir/mk-0th.awk \
23880 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
23881 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23883 for cf_subset in $cf_subsets
23886 for cf_item in $cf_LIST_MODELS
23889 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
23891 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23894 if test "$CXX_MODEL" = SHARED; then
23895 case $cf_cv_shlib_version in
23896 (cygdll|msysdll|mingw)
23897 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
23899 echo "${as_me:-configure}:23899: testing overriding CXX_MODEL to SHARED ..." 1>&5
23901 with_shared_cxx=yes
23904 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
23912 cf_depsuf=$cf_suffix
23916 cf_depsuf=$cf_suffix
23920 cf_depsuf=$cf_suffix
23923 case $cf_cv_system_name in
23926 cf_depsuf=$cf_suffix
23928 (cygwin*|msys*|mingw*)
23934 cf_depsuf=$cf_suffix
23940 cf_depsuf=$cf_suffix
23944 cf_depsuf=$cf_suffix
23950 cf_depsuf=$cf_suffix
23956 cf_depsuf=$cf_suffix
23959 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23961 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
23962 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
23966 (libtool) cf_subdir='obj_lo' ;;
23967 (normal) cf_subdir='objects' ;;
23968 (debug) cf_subdir='obj_g' ;;
23969 (profile) cf_subdir='obj_p' ;;
23971 case $cf_cv_system_name in
23973 cf_subdir='objects' ;;
23975 cf_subdir='obj_s' ;;
23979 # Test for case where we build libtinfo with a different name.
23981 if test $cf_dir = ncurses ; then
23984 cf_libname=${cf_libname}$USE_LIB_SUFFIX
23987 cf_libname=$TINFO_LIB_SUFFIX
23990 cf_libname=$TICS_LIB_SUFFIX
23993 elif test $cf_dir = c++ ; then
23994 cf_libname=ncurses++$USE_LIB_SUFFIX
23996 cf_libname=${cf_libname}$USE_LIB_SUFFIX
23998 if test -n "${USE_ARG_SUFFIX}" ; then
23999 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
24000 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
24003 # These dependencies really are for development, not
24004 # builds, but they are useful in porting, too.
24005 cf_depend="../include/ncurses_cfg.h"
24006 if test "$srcdir" = "."; then
24009 cf_reldir="\${srcdir}"
24012 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
24013 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
24014 elif test -f $srcdir/$cf_dir/curses.priv.h; then
24015 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
24019 old_cf_suffix="$cf_suffix"
24020 if test "$cf_cv_shlib_version_infix" = yes ; then
24021 if test -n "$USE_LIB_SUFFIX" ; then
24022 case $USE_LIB_SUFFIX in
24024 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
24025 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
24026 cf_dir_suffix=tw$EXTRA_SUFFIX
24029 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
24030 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
24031 cf_dir_suffix=t$EXTRA_SUFFIX
24034 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
24035 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
24036 cf_dir_suffix=w$EXTRA_SUFFIX
24039 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
24040 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
24041 cf_dir_suffix=$EXTRA_SUFFIX
24047 $AWK -f $srcdir/mk-1st.awk \
24048 name=${cf_libname}${cf_dir_suffix} \
24049 traces=$LIB_TRACING \
24051 CXX_MODEL=$CXX_MODEL \
24053 prefix=$cf_prefix \
24054 suffix=$cf_suffix \
24055 subset=$cf_subset \
24056 driver=$cf_cv_term_driver \
24058 TermlibRoot=$TINFO_NAME \
24059 TermlibSuffix=$TINFO_SUFFIX \
24060 ShlibVer=$cf_cv_shlib_version \
24061 ShlibVerInfix=$cf_cv_shlib_version_infix \
24062 ReLink=${cf_cv_do_relink:-no} \
24063 DoLinks=$cf_cv_do_symlinks \
24064 rmSoLocs=$cf_cv_rm_so_locs \
24065 ldconfig="$LDCONFIG" \
24066 overwrite=$WITH_OVERWRITE \
24067 depend="$cf_depend" \
24069 libtool_version="$LIBTOOL_VERSION" \
24070 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24072 cf_suffix="$old_cf_suffix"
24074 for cf_subdir2 in $cf_subdirs lib
24076 test $cf_subdir = $cf_subdir2 && break
24078 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
24079 $AWK -f $srcdir/mk-2nd.awk \
24081 traces=$LIB_TRACING \
24084 subset=$cf_subset \
24087 crenames=$cf_cv_prog_CC_c_o \
24088 cxxrenames=$cf_cv_prog_CXX_c_o \
24089 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24090 cf_subdirs="$cf_subdirs $cf_subdir"
24095 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
24098 for cf_dir in $SRC_SUBDIRS
24100 if test ! -d $srcdir/$cf_dir ; then
24104 if test -f $cf_dir/Makefile ; then
24107 echo 'libs \' >> Makefile
24108 echo 'install.libs \' >> Makefile
24109 echo 'uninstall.libs ::' >> Makefile
24110 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
24115 if test -f $srcdir/$cf_dir/modules; then
24117 if test -f $srcdir/$cf_dir/headers; then
24118 cat >> Makefile <<CF_EOF
24119 install.includes \\
24120 uninstall.includes \\
24123 if test "$cf_dir" != "c++" ; then
24124 echo 'lint \' >> Makefile
24126 cat >> Makefile <<CF_EOF
24132 uninstall.$cf_dir ::
24133 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24135 elif test -f $srcdir/$cf_dir/headers; then
24136 cat >> Makefile <<CF_EOF
24141 install.includes \\
24142 uninstall.includes ::
24143 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24148 if test "x$cf_with_db_install" = xyes; then
24149 cat >> Makefile <<CF_EOF
24151 install.libs uninstall.libs \\
24152 install.data uninstall.data ::
24153 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24156 cat >> Makefile <<CF_EOF
24158 install.libs uninstall.libs ::
24159 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24163 if test "x$cf_with_manpages" = xyes; then
24164 cat >> Makefile <<CF_EOF
24168 cd man && \${MAKE} \${TOP_MFLAGS} \$@
24172 cat >> Makefile <<CF_EOF
24175 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
24176 rm -f headers.sh headers.sed mk_shared_lib.sh
24177 rm -f edit_man.* man_alias.*
24178 rm -rf \${DIRS_TO_MAKE}
24181 # Special case: tack's manpage lives in its own directory.
24182 if test "x$cf_with_manpages" = xyes; then
24183 if test -d tack ; then
24184 if test -f $srcdir/$tack.h; then
24185 cat >> Makefile <<CF_EOF
24189 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
24195 rm -f headers.sed headers.sh
24197 echo creating headers.sh
24198 cat >headers.sh <<CF_EOF
24200 # This shell script is generated by the 'configure' script. It is invoked in a
24201 # subdirectory of the build tree. It generates a sed-script in the parent
24202 # directory that is used to adjust includes for header files that reside in a
24203 # subdirectory of /usr/include, etc.
24205 while test \$# != 3
24207 PRG="\$PRG \$1"; shift
24212 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
24213 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
24214 echo installing \$SRC in \$DST
24217 if test $WITH_CURSES_H = yes; then
24218 cat >>headers.sh <<CF_EOF
24221 END=\`basename \$DST\`
24222 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24224 NAME=\`basename \$i\`
24225 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24229 echo "" >> \$TMPSED
24235 cat >>headers.sh <<CF_EOF
24238 END=\`basename \$DST\`
24239 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24241 NAME=\`basename \$i\`
24242 if test "\$NAME" = "curses.h"
24244 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24247 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24251 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24256 cat >>headers.sh <<CF_EOF
24258 sed -f \$TMPSED \$SRC > \$TMPSRC
24259 NAME=\`basename \$SRC\`
24261 if test $WITH_CURSES_H != yes; then
24262 cat >>headers.sh <<CF_EOF
24263 test "\$NAME" = "curses.h" && NAME=ncurses.h
24266 cat >>headers.sh <<CF_EOF
24267 # Just in case someone gzip'd manpages, remove the conflicting copy.
24268 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
24270 eval \$PRG \$TMPSRC \$DST/\$NAME
24271 rm -f \$TMPSRC \$TMPSED
24274 chmod 0755 headers.sh
24276 for cf_dir in $SRC_SUBDIRS
24278 if test ! -d $srcdir/$cf_dir ; then
24282 if test -f $srcdir/$cf_dir/headers; then
24283 $AWK -f $srcdir/mk-hdr.awk \
24284 subset="$LIB_SUBSETS" \
24285 compat="$WITH_CURSES_H" \
24286 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
24289 if test -f $srcdir/$cf_dir/modules; then
24290 if test "$cf_dir" != "c++" ; then
24291 cat >>$cf_dir/Makefile <<"CF_EOF"
24292 depend : ${AUTO_SRC}
24293 makedepend -- ${CPPFLAGS} -- ${C_SRC}
24295 # DO NOT DELETE THIS LINE -- make depend depends on it.
24301 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24302 if test -z "$USE_OLD_MAKERULES" ; then
24303 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
24311 cat >>$CONFIG_STATUS <<\EOF
24313 { (exit 0); exit 0; }
24315 chmod +x $CONFIG_STATUS
24316 ac_clean_files=$ac_clean_files_save
24318 # configure is writing to config.log, and then calls config.status.
24319 # config.status does its own redirection, appending to config.log.
24320 # Unfortunately, on DOS this fails, as config.log is still kept open
24321 # by configure, so config.status won't be able to write to it; its
24322 # output is simply discarded. So we exec the FD to /dev/null,
24323 # effectively closing config.log, so it can be properly (re)opened and
24324 # appended to by config.status. When coming back to configure, we
24325 # need to make the FD available again.
24326 if test "$no_create" != yes; then
24329 $SHELL $CONFIG_STATUS || ac_cs_success=false
24331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24332 # would make configure fail if this is the last instruction.
24333 $ac_cs_success || { (exit 1); exit 1; }
24335 ${MAKE:-make} preinstall