2 # From configure.in Revision: 1.649 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
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-tack suppress build/install with tack program
713 --without-tests suppress build/install with test-programs
714 --without-curses-h install curses.h as ncurses.h only
715 --with-config-suffix=X suffixes pc-files
716 --with-pkg-config{=path} enable/disable use of pkg-config
717 --with-pkg-config-libdir=XXX use given directory for installing pc-files
718 --enable-pc-files generate and install .pc files for pkg-config
719 --with-pc-suffix suffixes pc-files
720 --enable-mixed-case tic should assume mixed-case filenames
721 --with-install-prefix prefixes actual install-location ($DESTDIR)
722 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
723 --with-build-cc=XXX the build C compiler ($BUILD_CC)
724 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
725 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
726 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
727 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
728 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
729 Options to Specify the Libraries Built/Used:
730 --disable-libtool-version enable to use libtool's incompatible naming scheme
731 --with-libtool generate libraries with libtool
732 --with-shared generate shared-libraries
733 --with-normal generate normal-libraries (default)
734 --with-debug generate debug-libraries (default)
735 --with-profile generate profile-libraries
736 --with-cxx-shared generate C++ shared-libraries
737 --with-lib-prefix override library-prefix
738 --with-termlib generate separate terminfo library
739 --with-ticlib generate separate tic library
740 --with-gpm use Alessandro Rubini's GPM library
741 --without-dlsym do not use dlsym() to load GPM dynamically
742 --with-sysmouse use sysmouse (FreeBSD console)
743 --enable-rpath use rpath option when generating shared libraries
744 --disable-relink relink shared libraries during install
745 --with-shlib-version=X Specify rel or abi version for shared libs
746 --with-libtool-opts=XXX specify additional libtool options
747 --with-export-syms=XXX limit exported symbols using libtool
748 --with-versioned-syms=X markup versioned symbols using ld
749 --disable-lib-suffixes disable library suffixes
750 --disable-rpath-hack don't add rpath options for additional libraries
751 Fine-Tuning Your Configuration:
752 --with-extra-suffix=X append extra suffix to header/library paths
753 --disable-overwrite put headers in subdir, omit link to -lcurses
754 --disable-database do not use terminfo, only fallbacks/termcap
755 --with-database=XXX specify terminfo source to install
756 --with-hashed-db specify hashed-database library
757 --with-fallbacks=XXX specify list of fallback terminal descriptions
758 --without-xterm-new specify if xterm terminfo should be old version
759 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
760 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
761 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
762 --disable-big-core assume machine has little memory
763 --disable-big-strings assume compiler has only standard-size strings
764 --enable-termcap compile in termcap fallback support
765 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
766 --enable-getcap fast termcap load, no xrefs to terminfo
767 --enable-getcap-cache cache translated termcaps in ~/.terminfo
768 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
769 --disable-root-environ restrict environment when running as root
770 --enable-symlinks make tic use symbolic links not hard links
771 --enable-broken_linker compile with broken-linker support code
772 --enable-bsdpad recognize BSD-style prefix padding
773 --enable-widec compile with wide-char/UTF-8 code
774 --disable-lp64 allow chtype to be long (ignore _LP64)
775 --disable-largefile omit support for large files
776 --disable-tparm-varargs compile tparm() without varargs interface
777 --disable-tic-depends link tic library without explicit dependency on ncurses library
778 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
779 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
780 --with-bool=TYPE override fallback type of bool variable
781 --with-caps=alt compile with alternate Caps file
782 --with-chtype=TYPE override type of chtype
783 --with-ospeed=TYPE override type of ospeed variable
784 --with-mmask-t=TYPE override type of mmask_t
785 --with-ccharw-max=XXX override size CCHARW_MAX
786 --with-tparm-arg=TYPE override parameter type of tparm
787 --with-rcs-ids compile-in RCS identifiers
788 Options to Specify How Manpages are Installed:
789 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
790 optionally formatted/catonly, e.g., gzip,formatted
791 --with-manpage-renames specify manpage-renaming
792 --with-manpage-aliases specify manpage-aliases using .so
793 --with-manpage-symlinks specify manpage-aliases using symlinks
794 --with-manpage-tbl specify manpage processing with tbl
796 --disable-ext-funcs disable function-extensions
797 --enable-sp-funcs enable SCREEN-extensions
798 --enable-term-driver enable terminal-driver
799 --enable-const compile with extra/non-standard const
800 --enable-ext-colors compile for 256-color support
801 --enable-ext-mouse compile for extended mouse-encoding
802 --enable-ext-putwin compile with extended putwin/screendump
803 --enable-no-padding compile with $NCURSES_NO_PADDING code
804 --enable-signed-char compile using signed Boolean's in term.h
805 --enable-sigwinch compile with SIGWINCH handler
806 --enable-tcap-names compile with user-definable terminal capabilities
807 --with-pthread use POSIX thread library
808 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
809 --enable-weak-symbols enable weak-symbols for pthreads
810 --enable-reentrant compile with reentrant code
811 --enable-opaque-curses make curses WINDOW, etc., "opaque"
812 --enable-opaque-form make form-library structures "opaque"
813 --enable-opaque-menu make menu-library structures "opaque"
814 --enable-opaque-panel make panel-library structures "opaque"
815 --with-wrap-prefix=XXX override prefix used for public variables
817 --without-develop disable development options
818 --enable-hard-tabs compile with hard-tabs code
819 --enable-xmc-glitch compile with support for xmc (magic-cookie)
821 --disable-assumed-color do not assume anything about default-colors
822 --disable-hashmap compile without hashmap scrolling-optimization
823 --enable-colorfgbg compile-in experimental $COLORFGBG code
824 --enable-interop compile-in interop bindings
825 --enable-safe-sprintf compile with experimental safe-sprintf code
826 --disable-scroll-hints compile without scroll-hints code
827 --enable-wgetch-events compile with wgetch-events code
828 Testing/development Options:
829 --disable-echo do not display "compiling" commands
830 --enable-warnings build: turn on GCC compiler warnings
831 --enable-string-hacks work around bogus compiler/loader warnings
832 --enable-assertions test: turn on generation of assertion code
833 --with-dmalloc test: use Gray Watson's dmalloc library
834 --with-dbmalloc test: use Conor Cahill's dbmalloc library
835 --with-valgrind test: use valgrind
836 --disable-leaks test: free permanent memory, analyze leaks
837 --enable-expanded test: generate functions for certain macros
838 --disable-macros test: use functions rather than macros
839 --with-trace test: add trace() function to all models of ncurses
840 --disable-gnat-projects test: disable GNAT projects even if usable
841 Ada95 Binding Options:
842 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
843 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
844 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
845 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
847 Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
855 CXX C++ compiler command
856 CXXFLAGS C++ compiler flags
857 CXXCPP C++ preprocessor
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
868 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
870 # A "../" for each directory in /$ac_subdir.
871 ac_dots=`echo $ac_subdir |
872 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
875 .) # No --srcdir option. We are building in place.
876 ac_sub_srcdir=$srcdir ;;
877 [\\/]* | ?:[\\/]* ) # Absolute path.
878 ac_sub_srcdir=$srcdir/$ac_subdir ;;
880 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
883 # Check for guested configure; otherwise get Cygnus style configure.
884 if test -f $ac_sub_srcdir/configure.gnu; then
886 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
887 elif test -f $ac_sub_srcdir/configure; then
889 $SHELL $ac_sub_srcdir/configure --help=recursive
890 elif test -f $ac_sub_srcdir/configure.ac ||
891 test -f $ac_sub_srcdir/configure.in; then
895 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
901 test -n "$ac_init_help" && exit 0
902 if $ac_init_version; then
905 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
906 Free Software Foundation, Inc.
907 This configure script is free software; the Free Software Foundation
908 gives unlimited permission to copy, distribute and modify it.
914 This file contains any messages produced by compilers while
915 running configure, to aid debugging if configure makes a mistake.
917 It was created by $as_me, which was
918 generated by GNU Autoconf 2.52.20170501. Invocation command line was
929 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
930 uname -m = `(uname -m) 2>/dev/null || echo unknown`
931 uname -r = `(uname -r) 2>/dev/null || echo unknown`
932 uname -s = `(uname -s) 2>/dev/null || echo unknown`
933 uname -v = `(uname -v) 2>/dev/null || echo unknown`
935 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
936 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
938 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
939 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
940 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
941 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
942 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
943 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
944 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
958 # Keep a trace of the command line.
959 # Strip out --no-create and --no-recursion so they do not pile up.
960 # Also quote any args containing shell meta-characters.
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c) ;;
968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
970 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
971 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
972 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
974 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
977 # Get rid of the leading space.
980 # When interrupted or exit'd, cleanup temporary files, and complete
981 # config.log. We remove comments because anyway the quotes in there
982 # would cause problems or look ugly.
984 # Save into config.log some information that might help in debugging.
986 echo "## ----------------- ##" >&5
987 echo "## Cache variables. ##" >&5
988 echo "## ----------------- ##" >&5
990 # The following way of writing the cache mishandles newlines in values,
993 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
996 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1001 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1005 sed "/^$/d" confdefs.h >conftest.log
1006 if test -s conftest.log; then
1008 echo "## ------------ ##" >&5
1009 echo "## confdefs.h. ##" >&5
1010 echo "## ------------ ##" >&5
1012 cat conftest.log >&5
1015 test "$ac_signal" != 0 &&
1016 echo "$as_me: caught signal $ac_signal" >&5
1017 echo "$as_me: exit $exit_status" >&5
1018 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1021 for ac_signal in 1 2 13 15; do
1022 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1027 rm -rf conftest* confdefs.h
1028 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1031 # Let the site file select an alternate cache file if it wants to.
1032 # Prefer explicitly selected file to automatically selected ones.
1033 if test -z "$CONFIG_SITE"; then
1034 if test "x$prefix" != xNONE; then
1035 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1037 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1040 for ac_site_file in $CONFIG_SITE; do
1041 if test -r "$ac_site_file"; then
1042 { echo "$as_me:1042: loading site script $ac_site_file" >&5
1043 echo "$as_me: loading site script $ac_site_file" >&6;}
1044 cat "$ac_site_file" >&5
1049 if test -r "$cache_file"; then
1050 # Some versions of bash will fail to source /dev/null (special
1051 # files actually), so we avoid doing that.
1052 if test -f "$cache_file"; then
1053 { echo "$as_me:1053: loading cache $cache_file" >&5
1054 echo "$as_me: loading cache $cache_file" >&6;}
1056 [\\/]* | ?:[\\/]* ) . $cache_file;;
1057 *) . ./$cache_file;;
1061 { echo "$as_me:1061: creating cache $cache_file" >&5
1062 echo "$as_me: creating cache $cache_file" >&6;}
1066 # Check that the precious variables saved in the cache have kept the same
1068 ac_cache_corrupted=false
1069 for ac_var in `(set) 2>&1 |
1070 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1071 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1072 eval ac_new_set=\$ac_env_${ac_var}_set
1073 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1074 eval ac_new_val="\$ac_env_${ac_var}_value"
1075 case $ac_old_set,$ac_new_set in
1077 { echo "$as_me:1077: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1078 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1079 ac_cache_corrupted=: ;;
1081 { echo "$as_me:1081: error: \`$ac_var' was not set in the previous run" >&5
1082 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1083 ac_cache_corrupted=: ;;
1086 if test "x$ac_old_val" != "x$ac_new_val"; then
1087 { echo "$as_me:1087: error: \`$ac_var' has changed since the previous run:" >&5
1088 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1089 { echo "$as_me:1089: former value: $ac_old_val" >&5
1090 echo "$as_me: former value: $ac_old_val" >&2;}
1091 { echo "$as_me:1091: current value: $ac_new_val" >&5
1092 echo "$as_me: current value: $ac_new_val" >&2;}
1093 ac_cache_corrupted=:
1096 # Pass precious variables to config.status. It doesn't matter if
1097 # we pass some twice (in addition to the command line arguments).
1098 if test "$ac_new_set" = set; then
1100 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1101 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1102 ac_configure_args="$ac_configure_args '$ac_arg'"
1104 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1109 if $ac_cache_corrupted; then
1110 { echo "$as_me:1110: error: changes in the environment can compromise the build" >&5
1111 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1112 { { echo "$as_me:1112: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1113 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1114 { (exit 1); exit 1; }; }
1118 ac_cpp='$CPP $CPPFLAGS'
1119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1122 ac_main_return=return
1124 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1125 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1127 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1128 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1130 echo "#! $SHELL" >conftest.sh
1131 echo "exit 0" >>conftest.sh
1132 chmod +x conftest.sh
1133 if { (echo "$as_me:1133: PATH=\".;.\"; conftest.sh") >&5
1134 (PATH=".;."; conftest.sh) 2>&5
1136 echo "$as_me:1136: \$? = $ac_status" >&5
1137 (exit $ac_status); }; then
1138 ac_path_separator=';'
1142 PATH_SEPARATOR="$ac_path_separator"
1145 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1149 echo "$as_me:1149: checking for egrep" >&5
1150 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1151 if test "${ac_cv_prog_egrep+set}" = set; then
1152 echo $ECHO_N "(cached) $ECHO_C" >&6
1154 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1155 then ac_cv_prog_egrep='grep -E'
1156 else ac_cv_prog_egrep='egrep'
1159 echo "$as_me:1159: result: $ac_cv_prog_egrep" >&5
1160 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1161 EGREP=$ac_cv_prog_egrep
1163 test -z "$EGREP" && { { echo "$as_me:1163: error: No egrep program found" >&5
1164 echo "$as_me: error: No egrep program found" >&2;}
1165 { (exit 1); exit 1; }; }
1167 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1168 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1169 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1170 cf_cv_abi_version=${NCURSES_MAJOR}
1171 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1172 cf_cv_timestamp=`date`
1173 echo "$as_me:1173: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1174 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1176 if test -f $srcdir/VERSION ; then
1177 echo "$as_me:1177: checking for package version" >&5
1178 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1180 # if there are not enough fields, cut returns the last one...
1181 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1182 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1183 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1185 # this is how CF_BUNDLED_INTL uses $VERSION:
1186 VERSION="$cf_field1"
1188 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1189 test -z "$VERSION_MAJOR" && { { echo "$as_me:1189: error: missing major-version" >&5
1190 echo "$as_me: error: missing major-version" >&2;}
1191 { (exit 1); exit 1; }; }
1193 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1194 test -z "$VERSION_MINOR" && { { echo "$as_me:1194: error: missing minor-version" >&5
1195 echo "$as_me: error: missing minor-version" >&2;}
1196 { (exit 1); exit 1; }; }
1198 echo "$as_me:1198: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1199 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1201 echo "$as_me:1201: checking for package patch date" >&5
1202 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1203 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1204 case .$VERSION_PATCH in
1206 { { echo "$as_me:1206: error: missing patch-date $VERSION_PATCH" >&5
1207 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1208 { (exit 1); exit 1; }; }
1210 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1213 { { echo "$as_me:1213: error: illegal patch-date $VERSION_PATCH" >&5
1214 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1215 { (exit 1); exit 1; }; }
1218 echo "$as_me:1218: result: $VERSION_PATCH" >&5
1219 echo "${ECHO_T}$VERSION_PATCH" >&6
1221 { { echo "$as_me:1221: error: did not find $srcdir/VERSION" >&5
1222 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1223 { (exit 1); exit 1; }; }
1226 # show the actual data that we have for versions:
1227 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1229 echo "${as_me:-configure}:1229: testing ABI VERSION $VERSION ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1235 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1237 echo "${as_me:-configure}:1237: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1239 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1241 echo "${as_me:-configure}:1241: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1246 cat >>confdefs.h <<EOF
1247 #define PACKAGE "$PACKAGE"
1250 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1252 cat >>confdefs.h <<EOF
1253 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1256 cat >>confdefs.h <<EOF
1257 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1260 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1262 # Check whether --with-rel-version or --without-rel-version was given.
1263 if test "${with_rel_version+set}" = set; then
1264 withval="$with_rel_version"
1265 { echo "$as_me:1265: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1266 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1267 cf_cv_rel_version=$withval
1270 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1271 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1273 if test -n "$NCURSES_MAJOR" ; then
1274 case $NCURSES_MAJOR in
1278 { { echo "$as_me:1278: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1279 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1280 { (exit 1); exit 1; }; }
1284 { { echo "$as_me:1284: error: Release major-version value is empty" >&5
1285 echo "$as_me: error: Release major-version value is empty" >&2;}
1286 { (exit 1); exit 1; }; }
1289 if test -n "$NCURSES_MINOR" ; then
1290 case $NCURSES_MINOR in
1294 { { echo "$as_me:1294: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1295 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1296 { (exit 1); exit 1; }; }
1300 { { echo "$as_me:1300: error: Release minor-version value is empty" >&5
1301 echo "$as_me: error: Release minor-version value is empty" >&2;}
1302 { (exit 1); exit 1; }; }
1305 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1307 # Check whether --with-abi-version or --without-abi-version was given.
1308 if test "${with_abi_version+set}" = set; then
1309 withval="$with_abi_version"
1311 if test "x$cf_cv_abi_version" != "x$withval"
1313 { echo "$as_me:1313: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1314 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1315 case $cf_cv_rel_version in
1317 cf_cv_rel_version=$withval.0
1320 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1324 cf_cv_abi_version=$withval
1327 if test -n "$cf_cv_abi_version" ; then
1328 case $cf_cv_abi_version in
1332 { { echo "$as_me:1332: error: ABI version is not a number: $cf_cv_abi_version" >&5
1333 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1334 { (exit 1); exit 1; }; }
1338 { { echo "$as_me:1338: error: ABI version value is empty" >&5
1339 echo "$as_me: error: ABI version value is empty" >&2;}
1340 { (exit 1); exit 1; }; }
1343 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1345 case $cf_cv_rel_version in
1347 cf_cv_rel_version=$with_abi_version.0
1353 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1354 if test -f $ac_dir/install-sh; then
1356 ac_install_sh="$ac_aux_dir/install-sh -c"
1358 elif test -f $ac_dir/install.sh; then
1360 ac_install_sh="$ac_aux_dir/install.sh -c"
1362 elif test -f $ac_dir/shtool; then
1364 ac_install_sh="$ac_aux_dir/shtool install -c"
1368 if test -z "$ac_aux_dir"; then
1369 { { echo "$as_me:1369: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1370 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1371 { (exit 1); exit 1; }; }
1373 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1374 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1375 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377 # Make sure we can run config.sub.
1378 $ac_config_sub sun4 >/dev/null 2>&1 ||
1379 { { echo "$as_me:1379: error: cannot run $ac_config_sub" >&5
1380 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1381 { (exit 1); exit 1; }; }
1383 echo "$as_me:1383: checking build system type" >&5
1384 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1385 if test "${ac_cv_build+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 ac_cv_build_alias=$build_alias
1389 test -z "$ac_cv_build_alias" &&
1390 ac_cv_build_alias=`$ac_config_guess`
1391 test -z "$ac_cv_build_alias" &&
1392 { { echo "$as_me:1392: error: cannot guess build type; you must specify one" >&5
1393 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1394 { (exit 1); exit 1; }; }
1395 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1396 { { echo "$as_me:1396: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1398 { (exit 1); exit 1; }; }
1401 echo "$as_me:1401: result: $ac_cv_build" >&5
1402 echo "${ECHO_T}$ac_cv_build" >&6
1404 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:1408: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415 ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417 { { echo "$as_me:1417: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:1422: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1430 echo "$as_me:1430: checking target system type" >&5
1431 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1432 if test "${ac_cv_target+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 ac_cv_target_alias=$target_alias
1436 test "x$ac_cv_target_alias" = "x" &&
1437 ac_cv_target_alias=$ac_cv_host_alias
1438 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1439 { { echo "$as_me:1439: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:1444: result: $ac_cv_target" >&5
1445 echo "${ECHO_T}$ac_cv_target" >&6
1446 target=$ac_cv_target
1447 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451 # The aliases save the names the user supplied, while $host etc.
1452 # will get canonicalized.
1453 test -n "$target_alias" &&
1454 test "$program_prefix$program_suffix$program_transform_name" = \
1456 program_prefix=${target_alias}-
1457 system_name="$host_os"
1459 system_name="`(uname -s -r) 2>/dev/null`"
1460 if test -z "$system_name" ; then
1461 system_name="`(hostname) 2>/dev/null`"
1464 test -n "$system_name" &&
1465 cat >>confdefs.h <<EOF
1466 #define SYSTEM_NAME "$system_name"
1469 if test "${cf_cv_system_name+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 cf_cv_system_name="$system_name"
1475 test -z "$system_name" && system_name="$cf_cv_system_name"
1476 test -n "$cf_cv_system_name" && echo "$as_me:1476: result: Configuring for $cf_cv_system_name" >&5
1477 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1479 if test ".$system_name" != ".$cf_cv_system_name" ; then
1480 echo "$as_me:1480: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1481 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1482 { { echo "$as_me:1482: error: \"Please remove config.cache and try again.\"" >&5
1483 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1484 { (exit 1); exit 1; }; }
1487 # Check whether --with-system-type or --without-system-type was given.
1488 if test "${with_system_type+set}" = set; then
1489 withval="$with_system_type"
1490 { echo "$as_me:1490: WARNING: overriding system type to $withval" >&5
1491 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1492 cf_cv_system_name=$withval
1497 ### Save the given $CFLAGS to allow user-override.
1498 cf_user_CFLAGS="$CFLAGS"
1500 ### Default install-location
1502 echo "$as_me:1502: checking for prefix" >&5
1503 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1504 if test "x$prefix" = "xNONE" ; then
1505 case "$cf_cv_system_name" in
1506 # non-vendor systems don't have a conflict
1507 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1510 (*) prefix=$ac_default_prefix
1514 echo "$as_me:1514: result: $prefix" >&5
1515 echo "${ECHO_T}$prefix" >&6
1517 if test "x$prefix" = "xNONE" ; then
1518 echo "$as_me:1518: checking for default include-directory" >&5
1519 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1520 test -n "$verbose" && echo 1>&6
1523 $includedir/ncurses \
1525 $prefix/include/ncurses \
1526 /usr/local/include \
1527 /usr/local/include/ncurses \
1529 /usr/include/ncurses
1531 cf_dir=`eval echo $cf_symbol`
1532 if test -f $cf_dir/curses.h ; then
1533 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1534 includedir="$cf_symbol"
1535 test -n "$verbose" && echo $ac_n " found " 1>&6
1539 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1541 echo "$as_me:1541: result: $includedir" >&5
1542 echo "${ECHO_T}$includedir" >&6
1545 ### Defaults for ncurses ABI
1547 case x$cf_cv_abi_version in
1549 cf_dft_ext_colors=yes
1550 cf_dft_ext_const=yes
1551 cf_dft_ext_mouse=yes
1552 cf_dft_ext_putwin=yes
1553 cf_dft_ext_spfuncs=yes
1554 cf_dft_filter_syms=yes
1555 cf_dft_chtype=uint32_t
1556 cf_dft_mmask_t=uint32_t
1558 cf_dft_tparm_arg=intptr_t
1559 cf_dft_with_lp64=yes
1562 cf_dft_ext_colors=no
1565 cf_dft_ext_putwin=no
1566 cf_dft_ext_spfuncs=no
1567 cf_dft_filter_syms=no
1571 cf_dft_tparm_arg=long
1576 ### Checks for programs.
1578 # Check whether --with-ada or --without-ada was given.
1579 if test "${with_ada+set}" = set; then
1581 cf_with_ada=$withval
1585 if test "x$cf_with_ada" = xyes
1587 cf_PROG_CC="gnatgcc gcc cc"
1593 ac_cpp='$CPP $CPPFLAGS'
1594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597 ac_main_return=return
1598 if test -n "$ac_tool_prefix"; then
1599 for ac_prog in $cf_PROG_CC
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603 echo "$as_me:1603: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 ac_save_IFS=$IFS; IFS=$ac_path_separator
1613 for ac_dir in $ac_dummy; do
1615 test -z "$ac_dir" && ac_dir=.
1616 $as_executable_p "$ac_dir/$ac_word" || continue
1617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1618 echo "$as_me:1618: found $ac_dir/$ac_word" >&5
1625 if test -n "$CC"; then
1626 echo "$as_me:1626: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1629 echo "$as_me:1629: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1633 test -n "$CC" && break
1636 if test -z "$CC"; then
1638 for ac_prog in $cf_PROG_CC
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy $ac_prog; ac_word=$2
1642 echo "$as_me:1642: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$ac_ct_CC"; then
1648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650 ac_save_IFS=$IFS; IFS=$ac_path_separator
1652 for ac_dir in $ac_dummy; do
1654 test -z "$ac_dir" && ac_dir=.
1655 $as_executable_p "$ac_dir/$ac_word" || continue
1656 ac_cv_prog_ac_ct_CC="$ac_prog"
1657 echo "$as_me:1657: found $ac_dir/$ac_word" >&5
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665 echo "$as_me:1665: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1668 echo "$as_me:1668: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1672 test -n "$ac_ct_CC" && break
1678 test -z "$CC" && { { echo "$as_me:1678: error: no acceptable cc found in \$PATH" >&5
1679 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1680 { (exit 1); exit 1; }; }
1682 # Provide some information about the compiler.
1683 echo "$as_me:1683:" \
1684 "checking for C compiler version" >&5
1685 ac_compiler=`set X $ac_compile; echo $2`
1686 { (eval echo "$as_me:1686: \"$ac_compiler --version </dev/null >&5\"") >&5
1687 (eval $ac_compiler --version </dev/null >&5) 2>&5
1689 echo "$as_me:1689: \$? = $ac_status" >&5
1690 (exit $ac_status); }
1691 { (eval echo "$as_me:1691: \"$ac_compiler -v </dev/null >&5\"") >&5
1692 (eval $ac_compiler -v </dev/null >&5) 2>&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696 { (eval echo "$as_me:1696: \"$ac_compiler -V </dev/null >&5\"") >&5
1697 (eval $ac_compiler -V </dev/null >&5) 2>&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1702 cat >conftest.$ac_ext <<_ACEOF
1703 #line 1703 "configure"
1704 #include "confdefs.h"
1714 ac_clean_files_save=$ac_clean_files
1715 ac_clean_files="$ac_clean_files a.out a.exe"
1716 # Try to create an executable without -o first, disregard a.out.
1717 # It will help us diagnose broken compilers, and finding out an intuition
1719 echo "$as_me:1719: checking for C compiler default output" >&5
1720 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1721 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1722 if { (eval echo "$as_me:1722: \"$ac_link_default\"") >&5
1723 (eval $ac_link_default) 2>&5
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 # Find the output, starting from the most likely. This scheme is
1728 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1730 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1731 ls a.out conftest 2>/dev/null;
1732 ls a.* conftest.* 2>/dev/null`; do
1734 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1735 a.out ) # We found the default executable, but exeext='' is most
1738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1739 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1746 echo "$as_me: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 { { echo "$as_me:1748: error: C compiler cannot create executables" >&5
1749 echo "$as_me: error: C compiler cannot create executables" >&2;}
1750 { (exit 77); exit 77; }; }
1753 ac_exeext=$ac_cv_exeext
1754 echo "$as_me:1754: result: $ac_file" >&5
1755 echo "${ECHO_T}$ac_file" >&6
1757 # Check the compiler produces executables we can run. If not, either
1758 # the compiler is broken, or we cross compile.
1759 echo "$as_me:1759: checking whether the C compiler works" >&5
1760 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1761 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1762 # If not cross compiling, check that we can run a simple program.
1763 if test "$cross_compiling" != yes; then
1764 if { ac_try='./$ac_file'
1765 { (eval echo "$as_me:1765: \"$ac_try\"") >&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); }; }; then
1772 if test "$cross_compiling" = maybe; then
1775 { { echo "$as_me:1775: error: cannot run C compiled programs.
1776 If you meant to cross compile, use \`--host'." >&5
1777 echo "$as_me: error: cannot run C compiled programs.
1778 If you meant to cross compile, use \`--host'." >&2;}
1779 { (exit 1); exit 1; }; }
1783 echo "$as_me:1783: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1786 rm -f a.out a.exe conftest$ac_cv_exeext
1787 ac_clean_files=$ac_clean_files_save
1788 # Check the compiler produces executables we can run. If not, either
1789 # the compiler is broken, or we cross compile.
1790 echo "$as_me:1790: checking whether we are cross compiling" >&5
1791 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1792 echo "$as_me:1792: result: $cross_compiling" >&5
1793 echo "${ECHO_T}$cross_compiling" >&6
1795 echo "$as_me:1795: checking for executable suffix" >&5
1796 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1797 if { (eval echo "$as_me:1797: \"$ac_link\"") >&5
1798 (eval $ac_link) 2>&5
1800 echo "$as_me:1800: \$? = $ac_status" >&5
1801 (exit $ac_status); }; then
1802 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1803 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1804 # work properly (i.e., refer to `conftest.exe'), while it won't with
1806 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 { { echo "$as_me:1816: error: cannot compute EXEEXT: cannot compile and link" >&5
1817 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1818 { (exit 1); exit 1; }; }
1821 rm -f conftest$ac_cv_exeext
1822 echo "$as_me:1822: result: $ac_cv_exeext" >&5
1823 echo "${ECHO_T}$ac_cv_exeext" >&6
1825 rm -f conftest.$ac_ext
1826 EXEEXT=$ac_cv_exeext
1828 echo "$as_me:1828: checking for object suffix" >&5
1829 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1830 if test "${ac_cv_objext+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 cat >conftest.$ac_ext <<_ACEOF
1834 #line 1834 "configure"
1835 #include "confdefs.h"
1845 rm -f conftest.o conftest.obj
1846 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
1847 (eval $ac_compile) 2>&5
1849 echo "$as_me:1849: \$? = $ac_status" >&5
1850 (exit $ac_status); }; then
1851 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1853 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1859 echo "$as_me: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1861 { { echo "$as_me:1861: error: cannot compute OBJEXT: cannot compile" >&5
1862 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1863 { (exit 1); exit 1; }; }
1866 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1868 echo "$as_me:1868: result: $ac_cv_objext" >&5
1869 echo "${ECHO_T}$ac_cv_objext" >&6
1870 OBJEXT=$ac_cv_objext
1872 echo "$as_me:1872: checking whether we are using the GNU C compiler" >&5
1873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 cat >conftest.$ac_ext <<_ACEOF
1878 #line 1878 "configure"
1879 #include "confdefs.h"
1892 rm -f conftest.$ac_objext
1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>&5
1896 echo "$as_me:1896: \$? = $ac_status" >&5
1897 (exit $ac_status); } &&
1898 { ac_try='test -s conftest.$ac_objext'
1899 { (eval echo "$as_me:1899: \"$ac_try\"") >&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); }; }; then
1906 echo "$as_me: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1910 rm -f conftest.$ac_objext conftest.$ac_ext
1911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1914 echo "$as_me:1914: result: $ac_cv_c_compiler_gnu" >&5
1915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1916 GCC=`test $ac_compiler_gnu = yes && echo yes`
1917 ac_test_CFLAGS=${CFLAGS+set}
1918 ac_save_CFLAGS=$CFLAGS
1920 echo "$as_me:1920: checking whether $CC accepts -g" >&5
1921 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1922 if test "${ac_cv_prog_cc_g+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.$ac_ext <<_ACEOF
1926 #line 1926 "configure"
1927 #include "confdefs.h"
1937 rm -f conftest.$ac_objext
1938 if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1941 echo "$as_me:1941: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:1944: \"$ac_try\"") >&5
1947 echo "$as_me:1947: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1951 echo "$as_me: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1955 rm -f conftest.$ac_objext conftest.$ac_ext
1957 echo "$as_me:1957: result: $ac_cv_prog_cc_g" >&5
1958 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1959 if test "$ac_test_CFLAGS" = set; then
1960 CFLAGS=$ac_save_CFLAGS
1961 elif test $ac_cv_prog_cc_g = yes; then
1962 if test "$GCC" = yes; then
1968 if test "$GCC" = yes; then
1974 # Some people use a C++ compiler to compile C. Since we use `exit',
1975 # in C++ we need to declare it. In case someone uses the same compiler
1976 # for both compiling C and C++ we need to have the C++ compiler decide
1977 # the declaration of exit, since it's the most demanding environment.
1978 cat >conftest.$ac_ext <<_ACEOF
1983 rm -f conftest.$ac_objext
1984 if { (eval echo "$as_me:1984: \"$ac_compile\"") >&5
1985 (eval $ac_compile) 2>&5
1987 echo "$as_me:1987: \$? = $ac_status" >&5
1988 (exit $ac_status); } &&
1989 { ac_try='test -s conftest.$ac_objext'
1990 { (eval echo "$as_me:1990: \"$ac_try\"") >&5
1993 echo "$as_me:1993: \$? = $ac_status" >&5
1994 (exit $ac_status); }; }; then
1995 for ac_declaration in \
1997 '#include <stdlib.h>' \
1998 'extern "C" void std::exit (int) throw (); using std::exit;' \
1999 'extern "C" void std::exit (int); using std::exit;' \
2000 'extern "C" void exit (int) throw ();' \
2001 'extern "C" void exit (int);' \
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line 2005 "configure"
2006 #include "confdefs.h"
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:2018: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>&5
2021 echo "$as_me:2021: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -s conftest.$ac_objext'
2024 { (eval echo "$as_me:2024: \"$ac_try\"") >&5
2027 echo "$as_me:2027: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2031 echo "$as_me: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2035 rm -f conftest.$ac_objext conftest.$ac_ext
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:2049: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>&5
2052 echo "$as_me:2052: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:2055: \"$ac_try\"") >&5
2058 echo "$as_me:2058: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2062 echo "$as_me: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2065 rm -f conftest.$ac_objext conftest.$ac_ext
2068 if test -n "$ac_declaration"; then
2069 echo '#ifdef __cplusplus' >>confdefs.h
2070 echo $ac_declaration >>confdefs.h
2071 echo '#endif' >>confdefs.h
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2080 ac_cpp='$CPP $CPPFLAGS'
2081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 ac_main_return=return
2087 if test "$GCC" = yes ; then
2088 echo "$as_me:2088: checking version of $CC" >&5
2089 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2090 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.].*//'`"
2091 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2092 echo "$as_me:2092: result: $GCC_VERSION" >&5
2093 echo "${ECHO_T}$GCC_VERSION" >&6
2096 echo "$as_me:2096: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 ac_cv_prog_cc_stdc=no
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #line 2104 "configure"
2105 #include "confdefs.h"
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2124 s = g (p, va_arg (v,int));
2128 int test (int i, double x);
2129 struct s1 {int (*f) (int a);};
2130 struct s2 {int (*f) (double a);};
2131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2142 # Don't try gcc -ansi; that turns off useful extensions and
2143 # breaks some systems' header files.
2144 # AIX -qlanglvl=ansi
2145 # Ultrix and OSF/1 -std1
2146 # HP-UX 10.20 and later -Ae
2147 # HP-UX older versions -Aa -D_HPUX_SOURCE
2148 # SVR4 -Xc -D__EXTENSIONS__
2149 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151 CC="$ac_save_CC $ac_arg"
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:2153: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:2159: \"$ac_try\"") >&5
2162 echo "$as_me:2162: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_cv_prog_cc_stdc=$ac_arg
2167 echo "$as_me: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 rm -f conftest.$ac_objext
2172 rm -f conftest.$ac_ext conftest.$ac_objext
2177 case "x$ac_cv_prog_cc_stdc" in
2179 echo "$as_me:2179: result: none needed" >&5
2180 echo "${ECHO_T}none needed" >&6 ;;
2182 echo "$as_me:2182: result: $ac_cv_prog_cc_stdc" >&5
2183 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2184 CC="$CC $ac_cv_prog_cc_stdc" ;;
2187 # This should have been defined by AC_PROG_CC
2190 echo "$as_me:2190: checking \$CC variable" >&5
2191 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2194 echo "$as_me:2194: result: broken" >&5
2195 echo "${ECHO_T}broken" >&6
2196 { echo "$as_me:2196: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2197 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2199 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2200 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2202 for cf_arg in $cf_flags
2210 cf_new_extra_cppflags=
2212 for cf_add_cflags in $cf_arg
2214 case $cf_fix_cppflags in
2216 case $cf_add_cflags in
2217 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2218 case $cf_add_cflags in
2220 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2222 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2223 && test -z "${cf_tst_cflags}" \
2224 && cf_fix_cppflags=yes
2226 if test $cf_fix_cppflags = yes ; then
2228 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2229 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2232 elif test "${cf_tst_cflags}" = "\"'" ; then
2234 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2235 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2245 case $cf_add_cflags in
2247 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2249 CPPFLAGS=`echo "$CPPFLAGS" | \
2250 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2251 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2256 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2257 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2264 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2265 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2272 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2273 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2275 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2277 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2278 && test -z "${cf_tst_cflags}" \
2279 && cf_fix_cppflags=no
2284 if test -n "$cf_new_cflags" ; then
2286 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2287 CFLAGS="${CFLAGS}$cf_new_cflags"
2291 if test -n "$cf_new_cppflags" ; then
2293 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2294 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2298 if test -n "$cf_new_extra_cppflags" ; then
2300 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2301 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2311 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2313 echo "${as_me:-configure}:2313: testing resulting CC: '$CC' ..." 1>&5
2315 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2317 echo "${as_me:-configure}:2317: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2319 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2321 echo "${as_me:-configure}:2321: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2325 echo "$as_me:2325: result: ok" >&5
2326 echo "${ECHO_T}ok" >&6
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 ac_main_return=return
2336 echo "$as_me:2336: checking how to run the C preprocessor" >&5
2337 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2338 # On Suns, sometimes $CPP names a directory.
2339 if test -n "$CPP" && test -d "$CPP"; then
2342 if test -z "$CPP"; then
2343 if test "${ac_cv_prog_CPP+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 # Double quotes because CPP needs to be expanded
2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2350 for ac_c_preproc_warn_flag in '' yes
2352 # Use a header file that comes with gcc, so configuring glibc
2353 # with a fresh cross-compiler works.
2354 # On the NeXT, cc -E runs the code through the compiler's parser,
2355 # not just through cpp. "Syntax error" is here to catch this case.
2356 cat >conftest.$ac_ext <<_ACEOF
2357 #line 2357 "configure"
2358 #include "confdefs.h"
2362 if { (eval echo "$as_me:2362: \"$ac_cpp conftest.$ac_ext\"") >&5
2363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2365 egrep -v '^ *\+' conftest.er1 >conftest.err
2367 cat conftest.err >&5
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit $ac_status); } >/dev/null; then
2370 if test -s conftest.err; then
2371 ac_cpp_err=$ac_c_preproc_warn_flag
2378 if test -z "$ac_cpp_err"; then
2381 echo "$as_me: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 # Broken: fails on valid input.
2386 rm -f conftest.err conftest.$ac_ext
2388 # OK, works on sane cases. Now check whether non-existent headers
2389 # can be detected and how.
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line 2391 "configure"
2392 #include "confdefs.h"
2393 #include <ac_nonexistent.h>
2395 if { (eval echo "$as_me:2395: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2398 egrep -v '^ *\+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:2401: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev/null; then
2403 if test -s conftest.err; then
2404 ac_cpp_err=$ac_c_preproc_warn_flag
2411 if test -z "$ac_cpp_err"; then
2412 # Broken: success on invalid input.
2415 echo "$as_me: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 # Passes both tests.
2421 rm -f conftest.err conftest.$ac_ext
2424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2425 rm -f conftest.err conftest.$ac_ext
2426 if $ac_preproc_ok; then
2438 echo "$as_me:2438: result: $CPP" >&5
2439 echo "${ECHO_T}$CPP" >&6
2441 for ac_c_preproc_warn_flag in '' yes
2443 # Use a header file that comes with gcc, so configuring glibc
2444 # with a fresh cross-compiler works.
2445 # On the NeXT, cc -E runs the code through the compiler's parser,
2446 # not just through cpp. "Syntax error" is here to catch this case.
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line 2448 "configure"
2449 #include "confdefs.h"
2453 if { (eval echo "$as_me:2453: \"$ac_cpp conftest.$ac_ext\"") >&5
2454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 egrep -v '^ *\+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:2459: \$? = $ac_status" >&5
2460 (exit $ac_status); } >/dev/null; then
2461 if test -s conftest.err; then
2462 ac_cpp_err=$ac_c_preproc_warn_flag
2469 if test -z "$ac_cpp_err"; then
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 # Broken: fails on valid input.
2477 rm -f conftest.err conftest.$ac_ext
2479 # OK, works on sane cases. Now check whether non-existent headers
2480 # can be detected and how.
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #line 2482 "configure"
2483 #include "confdefs.h"
2484 #include <ac_nonexistent.h>
2486 if { (eval echo "$as_me:2486: \"$ac_cpp conftest.$ac_ext\"") >&5
2487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 egrep -v '^ *\+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 echo "$as_me:2492: \$? = $ac_status" >&5
2493 (exit $ac_status); } >/dev/null; then
2494 if test -s conftest.err; then
2495 ac_cpp_err=$ac_c_preproc_warn_flag
2502 if test -z "$ac_cpp_err"; then
2503 # Broken: success on invalid input.
2506 echo "$as_me: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 # Passes both tests.
2512 rm -f conftest.err conftest.$ac_ext
2515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2516 rm -f conftest.err conftest.$ac_ext
2517 if $ac_preproc_ok; then
2520 { { echo "$as_me:2520: error: C preprocessor \"$CPP\" fails sanity check" >&5
2521 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2522 { (exit 1); exit 1; }; }
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 ac_main_return=return
2532 if test $ac_cv_c_compiler_gnu = yes; then
2533 echo "$as_me:2533: checking whether $CC needs -traditional" >&5
2534 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2535 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 ac_pattern="Autoconf.*'x'"
2539 cat >conftest.$ac_ext <<_ACEOF
2540 #line 2540 "configure"
2541 #include "confdefs.h"
2543 int Autoconf = TIOCGETP;
2545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2546 egrep "$ac_pattern" >/dev/null 2>&1; then
2547 ac_cv_prog_gcc_traditional=yes
2549 ac_cv_prog_gcc_traditional=no
2553 if test $ac_cv_prog_gcc_traditional = no; then
2554 cat >conftest.$ac_ext <<_ACEOF
2555 #line 2555 "configure"
2556 #include "confdefs.h"
2558 int Autoconf = TCGETA;
2560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2561 egrep "$ac_pattern" >/dev/null 2>&1; then
2562 ac_cv_prog_gcc_traditional=yes
2568 echo "$as_me:2568: result: $ac_cv_prog_gcc_traditional" >&5
2569 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2570 if test $ac_cv_prog_gcc_traditional = yes; then
2571 CC="$CC -traditional"
2575 echo "$as_me:2575: checking whether $CC understands -c and -o together" >&5
2576 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2577 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 cat > conftest.$ac_ext <<CF_EOF
2584 ${cf_cv_main_return:-return}(0);
2587 # We do the test twice because some compilers refuse to overwrite an
2588 # existing .o file with -o, though they will create one.
2589 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2590 if { (eval echo "$as_me:2590: \"$ac_try\"") >&5
2593 echo "$as_me:2593: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 test -f conftest2.$ac_objext && { (eval echo "$as_me:2595: \"$ac_try\"") >&5
2598 echo "$as_me:2598: \$? = $ac_status" >&5
2599 (exit $ac_status); };
2601 eval cf_cv_prog_CC_c_o=yes
2603 eval cf_cv_prog_CC_c_o=no
2608 if test $cf_cv_prog_CC_c_o = yes; then
2609 echo "$as_me:2609: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2612 echo "$as_me:2612: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2616 if test "$cross_compiling" = yes ; then
2619 case "$cf_cv_system_name" in
2620 (dragonfly*|mirbsd*|freebsd*)
2621 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2623 (*) LDPATH=$PATH:/sbin:/usr/sbin
2624 # Extract the first word of "ldconfig", so it can be a program name with args.
2625 set dummy ldconfig; ac_word=$2
2626 echo "$as_me:2626: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2636 ac_save_IFS=$IFS; IFS=$ac_path_separator
2638 for ac_dir in $ac_dummy; do
2640 test -z "$ac_dir" && ac_dir=.
2641 if $as_executable_p "$ac_dir/$ac_word"; then
2642 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2643 echo "$as_me:2643: found $ac_dir/$ac_word" >&5
2651 LDCONFIG=$ac_cv_path_LDCONFIG
2653 if test -n "$LDCONFIG"; then
2654 echo "$as_me:2654: result: $LDCONFIG" >&5
2655 echo "${ECHO_T}$LDCONFIG" >&6
2657 echo "$as_me:2657: result: no" >&5
2658 echo "${ECHO_T}no" >&6
2665 echo "$as_me:2665: checking if you want to ensure bool is consistent with C++" >&5
2666 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2668 # Check whether --with-cxx or --without-cxx was given.
2669 if test "${with_cxx+set}" = set; then
2671 cf_with_cxx=$withval
2675 echo "$as_me:2675: result: $cf_with_cxx" >&5
2676 echo "${ECHO_T}$cf_with_cxx" >&6
2677 if test "X$cf_with_cxx" = Xno ; then
2681 # with autoconf 2.13, we can change the error to a warning:
2683 ac_cpp='$CXXCPP $CPPFLAGS'
2684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2687 ac_main_return=return
2688 if test -n "$ac_tool_prefix"; then
2689 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 echo "$as_me:2693: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CXX+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$CXX"; then
2699 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2701 ac_save_IFS=$IFS; IFS=$ac_path_separator
2703 for ac_dir in $ac_dummy; do
2705 test -z "$ac_dir" && ac_dir=.
2706 $as_executable_p "$ac_dir/$ac_word" || continue
2707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2708 echo "$as_me:2708: found $ac_dir/$ac_word" >&5
2715 if test -n "$CXX"; then
2716 echo "$as_me:2716: result: $CXX" >&5
2717 echo "${ECHO_T}$CXX" >&6
2719 echo "$as_me:2719: result: no" >&5
2720 echo "${ECHO_T}no" >&6
2723 test -n "$CXX" && break
2726 if test -z "$CXX"; then
2728 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 echo "$as_me:2732: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 if test -n "$ac_ct_CXX"; then
2738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2740 ac_save_IFS=$IFS; IFS=$ac_path_separator
2742 for ac_dir in $ac_dummy; do
2744 test -z "$ac_dir" && ac_dir=.
2745 $as_executable_p "$ac_dir/$ac_word" || continue
2746 ac_cv_prog_ac_ct_CXX="$ac_prog"
2747 echo "$as_me:2747: found $ac_dir/$ac_word" >&5
2753 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2754 if test -n "$ac_ct_CXX"; then
2755 echo "$as_me:2755: result: $ac_ct_CXX" >&5
2756 echo "${ECHO_T}$ac_ct_CXX" >&6
2758 echo "$as_me:2758: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2762 test -n "$ac_ct_CXX" && break
2764 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2769 # Provide some information about the compiler.
2770 echo "$as_me:2770:" \
2771 "checking for C++ compiler version" >&5
2772 ac_compiler=`set X $ac_compile; echo $2`
2773 { (eval echo "$as_me:2773: \"$ac_compiler --version </dev/null >&5\"") >&5
2774 (eval $ac_compiler --version </dev/null >&5) 2>&5
2776 echo "$as_me:2776: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2778 { (eval echo "$as_me:2778: \"$ac_compiler -v </dev/null >&5\"") >&5
2779 (eval $ac_compiler -v </dev/null >&5) 2>&5
2781 echo "$as_me:2781: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2783 { (eval echo "$as_me:2783: \"$ac_compiler -V </dev/null >&5\"") >&5
2784 (eval $ac_compiler -V </dev/null >&5) 2>&5
2786 echo "$as_me:2786: \$? = $ac_status" >&5
2787 (exit $ac_status); }
2789 echo "$as_me:2789: checking whether we are using the GNU C++ compiler" >&5
2790 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2791 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 cat >conftest.$ac_ext <<_ACEOF
2795 #line 2795 "configure"
2796 #include "confdefs.h"
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:2810: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>&5
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:2816: \"$ac_try\"") >&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2823 echo "$as_me: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2827 rm -f conftest.$ac_objext conftest.$ac_ext
2828 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2831 echo "$as_me:2831: result: $ac_cv_cxx_compiler_gnu" >&5
2832 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2833 GXX=`test $ac_compiler_gnu = yes && echo yes`
2834 ac_test_CXXFLAGS=${CXXFLAGS+set}
2835 ac_save_CXXFLAGS=$CXXFLAGS
2837 echo "$as_me:2837: checking whether $CXX accepts -g" >&5
2838 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2839 if test "${ac_cv_prog_cxx_g+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 cat >conftest.$ac_ext <<_ACEOF
2843 #line 2843 "configure"
2844 #include "confdefs.h"
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:2855: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:2861: \"$ac_try\"") >&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 ac_cv_prog_cxx_g=yes
2868 echo "$as_me: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2872 rm -f conftest.$ac_objext conftest.$ac_ext
2874 echo "$as_me:2874: result: $ac_cv_prog_cxx_g" >&5
2875 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2876 if test "$ac_test_CXXFLAGS" = set; then
2877 CXXFLAGS=$ac_save_CXXFLAGS
2878 elif test $ac_cv_prog_cxx_g = yes; then
2879 if test "$GXX" = yes; then
2885 if test "$GXX" = yes; then
2891 for ac_declaration in \
2893 '#include <stdlib.h>' \
2894 'extern "C" void std::exit (int) throw (); using std::exit;' \
2895 'extern "C" void std::exit (int); using std::exit;' \
2896 'extern "C" void exit (int) throw ();' \
2897 'extern "C" void exit (int);' \
2900 cat >conftest.$ac_ext <<_ACEOF
2901 #line 2901 "configure"
2902 #include "confdefs.h"
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:2914: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>&5
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:2920: \"$ac_try\"") >&5
2923 echo "$as_me:2923: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 echo "$as_me: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2931 rm -f conftest.$ac_objext conftest.$ac_ext
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line 2933 "configure"
2934 #include "confdefs.h"
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:2945: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>&5
2948 echo "$as_me:2948: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:2951: \"$ac_try\"") >&5
2954 echo "$as_me:2954: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 echo "$as_me: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 rm -f conftest.$ac_objext conftest.$ac_ext
2964 if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 ac_main_return=return
2978 ac_cpp='$CXXCPP $CPPFLAGS'
2979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2982 ac_main_return=return
2984 if test "x$cf_with_cxx" != xno
2986 # Several of the C++ configurations do not work, particularly when
2987 # cross-compiling (20140913 -TD)
2988 echo "$as_me:2988: checking if $CXX works" >&5
2989 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2991 save_CPPFLAGS="$CPPFLAGS"
2992 eval cf_includedir=${includedir}
2993 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line 2996 "configure"
2997 #include "confdefs.h"
3006 printf("Hello world!\n")
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:3013: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>&5
3016 echo "$as_me:3016: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (eval echo "$as_me:3019: \"$ac_try\"") >&5
3022 echo "$as_me:3022: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3026 echo "$as_me: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3030 rm -f conftest.$ac_objext conftest.$ac_ext
3031 CPPFLAGS="$save_CPPFLAGS"
3033 echo "$as_me:3033: result: $cf_cxx_works" >&5
3034 echo "${ECHO_T}$cf_cxx_works" >&6
3035 if test "x$cf_cxx_works" = xno
3037 { echo "$as_me:3037: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3038 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3039 cf_with_cxx=no; CXX=""; GXX="";
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 ac_main_return=return
3049 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3050 if test "$CXX" = "g++" ; then
3051 # Extract the first word of "g++", so it can be a program name with args.
3052 set dummy g++; ac_word=$2
3053 echo "$as_me:3053: checking for $ac_word" >&5
3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055 if test "${ac_cv_path_CXX+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3063 ac_save_IFS=$IFS; IFS=$ac_path_separator
3065 for ac_dir in $ac_dummy; do
3067 test -z "$ac_dir" && ac_dir=.
3068 if $as_executable_p "$ac_dir/$ac_word"; then
3069 ac_cv_path_CXX="$ac_dir/$ac_word"
3070 echo "$as_me:3070: found $ac_dir/$ac_word" >&5
3080 if test -n "$CXX"; then
3081 echo "$as_me:3081: result: $CXX" >&5
3082 echo "${ECHO_T}$CXX" >&6
3084 echo "$as_me:3084: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3091 { echo "$as_me:3091: WARNING: You don't have any C++ compiler, too bad" >&5
3092 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3093 cf_with_cxx=no; CXX=""; GXX="";
3099 if test "$GXX" = yes; then
3100 echo "$as_me:3100: checking version of ${CXX:-g++}" >&5
3101 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3102 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3103 if test -z "$GXX_VERSION"
3108 echo "$as_me:3108: result: $GXX_VERSION" >&5
3109 echo "${ECHO_T}$GXX_VERSION" >&6
3112 case $GXX_VERSION in
3114 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3116 { echo "$as_me:3116: WARNING: templates do not work" >&5
3117 echo "$as_me: WARNING: templates do not work" >&2;}
3121 echo "$as_me:3121: checking if you want to build C++ binding and demo" >&5
3122 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3124 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3125 if test "${with_cxx_binding+set}" = set; then
3126 withval="$with_cxx_binding"
3127 cf_with_cxx_binding=$withval
3129 cf_with_cxx_binding=$cf_with_cxx
3131 echo "$as_me:3131: result: $cf_with_cxx_binding" >&5
3132 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3134 echo "$as_me:3134: checking if you want to build with Ada95" >&5
3135 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3136 echo "$as_me:3136: result: $cf_with_ada" >&5
3137 echo "${ECHO_T}$cf_with_ada" >&6
3139 echo "$as_me:3139: checking if you want to install terminal database" >&5
3140 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3142 # Check whether --enable-db-install or --disable-db-install was given.
3143 if test "${enable_db_install+set}" = set; then
3144 enableval="$enable_db_install"
3145 cf_with_db_install=$enableval
3147 cf_with_db_install=yes
3149 echo "$as_me:3149: result: $cf_with_db_install" >&5
3150 echo "${ECHO_T}$cf_with_db_install" >&6
3152 echo "$as_me:3152: checking if you want to install manpages" >&5
3153 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3155 # Check whether --with-manpages or --without-manpages was given.
3156 if test "${with_manpages+set}" = set; then
3157 withval="$with_manpages"
3158 cf_with_manpages=$withval
3160 cf_with_manpages=yes
3162 echo "$as_me:3162: result: $cf_with_manpages" >&5
3163 echo "${ECHO_T}$cf_with_manpages" >&6
3165 echo "$as_me:3165: checking if you want to build programs such as tic" >&5
3166 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3168 # Check whether --with-progs or --without-progs was given.
3169 if test "${with_progs+set}" = set; then
3170 withval="$with_progs"
3171 cf_with_progs=$withval
3175 echo "$as_me:3175: result: $cf_with_progs" >&5
3176 echo "${ECHO_T}$cf_with_progs" >&6
3178 if test -f $srcdir/tack/tack.h; then
3179 if test "x$cross_compiling" = xyes ; then
3180 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3182 echo "${as_me:-configure}:3182: testing ignoring tack because we are cross-compiling ..." 1>&5
3186 echo "$as_me:3186: checking if you want to build the tack program" >&5
3187 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3189 # Check whether --with-tack or --without-tack was given.
3190 if test "${with_tack+set}" = set; then
3191 withval="$with_tack"
3192 cf_with_tack=$withval
3194 cf_with_tack=$cf_with_progs
3196 echo "$as_me:3196: result: $cf_with_tack" >&5
3197 echo "${ECHO_T}$cf_with_tack" >&6
3203 echo "$as_me:3203: checking if you want to build test-programs" >&5
3204 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3206 # Check whether --with-tests or --without-tests was given.
3207 if test "${with_tests+set}" = set; then
3208 withval="$with_tests"
3209 cf_with_tests=$withval
3213 echo "$as_me:3213: result: $cf_with_tests" >&5
3214 echo "${ECHO_T}$cf_with_tests" >&6
3216 echo "$as_me:3216: checking if you wish to install curses.h" >&5
3217 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3219 # Check whether --with-curses-h or --without-curses-h was given.
3220 if test "${with_curses_h+set}" = set; then
3221 withval="$with_curses_h"
3222 with_curses_h=$withval
3226 echo "$as_me:3226: result: $with_curses_h" >&5
3227 echo "${ECHO_T}$with_curses_h" >&6
3229 modules_to_build="ncurses"
3230 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3231 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3232 modules_to_build="$modules_to_build panel menu form"
3234 test "$program_prefix" != NONE &&
3235 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3236 # Use a double $ so make ignores it.
3237 test "$program_suffix" != NONE &&
3238 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3239 # Double any \ or $. echo might interpret backslashes.
3240 # By default was `s,x,x', remove it if useless.
3241 cat <<\_ACEOF >conftest.sed
3242 s/[\\$]/&&/g;s/;s,x,x,$//
3244 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3247 for ac_prog in mawk gawk nawk awk
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 echo "$as_me:3251: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_AWK+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if test -n "$AWK"; then
3257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3259 ac_save_IFS=$IFS; IFS=$ac_path_separator
3261 for ac_dir in $ac_dummy; do
3263 test -z "$ac_dir" && ac_dir=.
3264 $as_executable_p "$ac_dir/$ac_word" || continue
3265 ac_cv_prog_AWK="$ac_prog"
3266 echo "$as_me:3266: found $ac_dir/$ac_word" >&5
3273 if test -n "$AWK"; then
3274 echo "$as_me:3274: result: $AWK" >&5
3275 echo "${ECHO_T}$AWK" >&6
3277 echo "$as_me:3277: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3281 test -n "$AWK" && break
3284 test -z "$AWK" && { { echo "$as_me:3284: error: No awk program found" >&5
3285 echo "$as_me: error: No awk program found" >&2;}
3286 { (exit 1); exit 1; }; }
3288 echo "$as_me:3288: checking for egrep" >&5
3289 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3290 if test "${ac_cv_prog_egrep+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3294 then ac_cv_prog_egrep='grep -E'
3295 else ac_cv_prog_egrep='egrep'
3298 echo "$as_me:3298: result: $ac_cv_prog_egrep" >&5
3299 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3300 EGREP=$ac_cv_prog_egrep
3302 test -z "$EGREP" && { { echo "$as_me:3302: error: No egrep program found" >&5
3303 echo "$as_me: error: No egrep program found" >&2;}
3304 { (exit 1); exit 1; }; }
3306 # Find a good install program. We prefer a C program (faster),
3307 # so one script is as good as another. But avoid the broken or
3308 # incompatible versions:
3309 # SysV /etc/install, /usr/sbin/install
3310 # SunOS /usr/etc/install
3311 # IRIX /sbin/install
3313 # AmigaOS /C/install, which installs bootblocks on floppy discs
3314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3317 # ./install, which can be erroneously created by make from ./install.sh.
3318 echo "$as_me:3318: checking for a BSD compatible install" >&5
3319 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3320 if test -z "$INSTALL"; then
3321 if test "${ac_cv_path_install+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 ac_save_IFS=$IFS; IFS=$ac_path_separator
3325 for ac_dir in $PATH; do
3327 # Account for people who put trailing slashes in PATH elements.
3329 / | ./ | .// | /cC/* \
3330 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3333 # OSF1 and SCO ODT 3.0 have their own names for install.
3334 # Don't use installbsd from OSF since it installs stuff as root
3336 for ac_prog in ginstall scoinst install; do
3337 if $as_executable_p "$ac_dir/$ac_prog"; then
3338 if test $ac_prog = install &&
3339 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3340 # AIX install. It has an incompatible calling convention.
3342 elif test $ac_prog = install &&
3343 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3344 # program-specific install script used by HP pwplus--don't use.
3347 ac_cv_path_install="$ac_dir/$ac_prog -c"
3357 if test "${ac_cv_path_install+set}" = set; then
3358 INSTALL=$ac_cv_path_install
3360 # As a last resort, use the slow shell script. We don't cache a
3361 # path for INSTALL within a source directory, because that will
3362 # break other packages using the cache if that directory is
3363 # removed, or if the path is relative.
3364 INSTALL=$ac_install_sh
3367 echo "$as_me:3367: result: $INSTALL" >&5
3368 echo "${ECHO_T}$INSTALL" >&6
3370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3371 # It thinks the first close brace ends the variable substitution.
3372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3376 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3382 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3383 test -z "$cf_dir" && cf_dir=.
3384 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3388 for ac_prog in lint cppcheck splint
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 echo "$as_me:3392: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_LINT+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$LINT"; then
3398 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3400 ac_save_IFS=$IFS; IFS=$ac_path_separator
3402 for ac_dir in $ac_dummy; do
3404 test -z "$ac_dir" && ac_dir=.
3405 $as_executable_p "$ac_dir/$ac_word" || continue
3406 ac_cv_prog_LINT="$ac_prog"
3407 echo "$as_me:3407: found $ac_dir/$ac_word" >&5
3413 LINT=$ac_cv_prog_LINT
3414 if test -n "$LINT"; then
3415 echo "$as_me:3415: result: $LINT" >&5
3416 echo "${ECHO_T}$LINT" >&6
3418 echo "$as_me:3418: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3422 test -n "$LINT" && break
3425 echo "$as_me:3425: checking whether ln -s works" >&5
3426 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3428 if test "$LN_S" = "ln -s"; then
3429 echo "$as_me:3429: result: yes" >&5
3430 echo "${ECHO_T}yes" >&6
3432 echo "$as_me:3432: result: no, using $LN_S" >&5
3433 echo "${ECHO_T}no, using $LN_S" >&6
3436 echo "$as_me:3436: checking if $LN_S -f options work" >&5
3437 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3439 rm -f conf$$.src conf$$dst
3441 echo first >conf$$.src
3442 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3447 rm -f conf$$.dst conf$$src
3448 echo "$as_me:3448: result: $cf_prog_ln_sf" >&5
3449 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3451 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3453 echo "$as_me:3453: checking for long file names" >&5
3454 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3455 if test "${ac_cv_sys_long_file_names+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_cv_sys_long_file_names=yes
3459 # Test for long file names in all the places we know might matter:
3460 # . the current directory, where building will happen
3461 # $prefix/lib where we will be installing things
3462 # $exec_prefix/lib likewise
3463 # eval it to expand exec_prefix.
3464 # $TMPDIR if set, where it might want to write temporary files
3465 # if $TMPDIR is not set:
3466 # /tmp where it might want to write temporary files
3469 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3472 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3474 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3475 test -d $ac_dir || continue
3476 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3477 ac_xdir=$ac_dir/cf$$
3478 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3479 ac_tf1=$ac_xdir/conftest9012345
3480 ac_tf2=$ac_xdir/conftest9012346
3481 (echo 1 >$ac_tf1) 2>/dev/null
3482 (echo 2 >$ac_tf2) 2>/dev/null
3483 ac_val=`cat $ac_tf1 2>/dev/null`
3484 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3485 ac_cv_sys_long_file_names=no
3486 rm -rf $ac_xdir 2>/dev/null
3489 rm -rf $ac_xdir 2>/dev/null
3492 echo "$as_me:3492: result: $ac_cv_sys_long_file_names" >&5
3493 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3494 if test $ac_cv_sys_long_file_names = yes; then
3496 cat >>confdefs.h <<\EOF
3497 #define HAVE_LONG_FILE_NAMES 1
3502 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3503 # of package conflict.
3506 # Check whether --with-config-suffix or --without-config-suffix was given.
3507 if test "${with_config_suffix+set}" = set; then
3508 withval="$with_config_suffix"
3511 { echo "$as_me:3511: WARNING: expected a value for config-suffix option" >&5
3512 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3514 (*) cf_config_suffix="$withval"
3519 # If we find pkg-config, check if we should install the ".pc" files.
3521 echo "$as_me:3521: checking if you want to use pkg-config" >&5
3522 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3524 # Check whether --with-pkg-config or --without-pkg-config was given.
3525 if test "${with_pkg_config+set}" = set; then
3526 withval="$with_pkg_config"
3527 cf_pkg_config=$withval
3531 echo "$as_me:3531: result: $cf_pkg_config" >&5
3532 echo "${ECHO_T}$cf_pkg_config" >&6
3534 case $cf_pkg_config in
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3543 echo "$as_me:3543: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3553 ac_save_IFS=$IFS; IFS=$ac_path_separator
3555 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if $as_executable_p "$ac_dir/$ac_word"; then
3559 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3560 echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3568 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3570 if test -n "$PKG_CONFIG"; then
3571 echo "$as_me:3571: result: $PKG_CONFIG" >&5
3572 echo "${ECHO_T}$PKG_CONFIG" >&6
3574 echo "$as_me:3574: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3579 if test -z "$ac_cv_path_PKG_CONFIG"; then
3580 ac_pt_PKG_CONFIG=$PKG_CONFIG
3581 # Extract the first word of "pkg-config", so it can be a program name with args.
3582 set dummy pkg-config; ac_word=$2
3583 echo "$as_me:3583: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 case $ac_pt_PKG_CONFIG in
3590 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3593 ac_save_IFS=$IFS; IFS=$ac_path_separator
3595 for ac_dir in $ac_dummy; do
3597 test -z "$ac_dir" && ac_dir=.
3598 if $as_executable_p "$ac_dir/$ac_word"; then
3599 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3600 echo "$as_me:3600: found $ac_dir/$ac_word" >&5
3605 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3609 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3611 if test -n "$ac_pt_PKG_CONFIG"; then
3612 echo "$as_me:3612: result: $ac_pt_PKG_CONFIG" >&5
3613 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3615 echo "$as_me:3615: result: no" >&5
3616 echo "${ECHO_T}no" >&6
3619 PKG_CONFIG=$ac_pt_PKG_CONFIG
3621 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3630 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3631 if test "$PKG_CONFIG" != none ; then
3633 if test "x$prefix" != xNONE; then
3634 cf_path_syntax="$prefix"
3636 cf_path_syntax="$ac_default_prefix"
3639 case ".$PKG_CONFIG" in
3644 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3646 (.\${*prefix}*|.\${*dir}*)
3647 eval PKG_CONFIG="$PKG_CONFIG"
3648 case ".$PKG_CONFIG" in
3650 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3655 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3658 { { echo "$as_me:3658: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3659 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3660 { (exit 1); exit 1; }; }
3664 elif test "x$cf_pkg_config" != xno ; then
3665 { echo "$as_me:3665: WARNING: pkg-config is not installed" >&5
3666 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3671 echo "$as_me:3671: checking for pkg-config library directory" >&5
3672 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3675 echo "$as_me:3675: checking for $PKG_CONFIG library directory" >&5
3676 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3680 PKG_CONFIG_LIBDIR=no
3682 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3683 if test "${with_pkg_config_libdir+set}" = set; then
3684 withval="$with_pkg_config_libdir"
3685 PKG_CONFIG_LIBDIR=$withval
3687 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3690 case x$PKG_CONFIG_LIBDIR in
3694 # Look for the library directory using the same prefix as the executable
3695 if test "x$PKG_CONFIG" = xnone
3699 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3702 # If you don't like using the default architecture, you have to specify the
3703 # intended library directory and corresponding compiler/linker options.
3705 # This case allows for Debian's 2014-flavor of multiarch, along with the
3706 # most common variations before that point. Some other variants spell the
3707 # directory differently, e.g., "pkg-config", and put it in unusual places.
3708 # pkg-config has always been poorly standardized, which is ironic...
3709 case x`(arch) 2>/dev/null` in
3712 $cf_path/lib/*64-linux-gnu \
3720 $cf_path/lib/*-linux-gnu \
3728 test -n "$verbose" && echo " list..." 1>&6
3730 echo "${as_me:-configure}:3730: testing list... ..." 1>&5
3732 for cf_config in $cf_search_path
3734 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3736 echo "${as_me:-configure}:3736: testing checking $cf_config/pkgconfig ..." 1>&5
3738 if test -d $cf_config/pkgconfig
3740 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3741 echo "$as_me:3741: checking done" >&5
3742 echo $ECHO_N "checking done... $ECHO_C" >&6
3751 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3752 echo "$as_me:3752: result: $PKG_CONFIG_LIBDIR" >&5
3753 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3756 if test "x$PKG_CONFIG" != xnone
3758 echo "$as_me:3758: checking if we should install .pc files for $PKG_CONFIG" >&5
3759 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3761 echo "$as_me:3761: checking if we should install .pc files" >&5
3762 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3765 # Check whether --enable-pc-files or --disable-pc-files was given.
3766 if test "${enable_pc_files+set}" = set; then
3767 enableval="$enable_pc_files"
3768 enable_pc_files=$enableval
3772 echo "$as_me:3772: result: $enable_pc_files" >&5
3773 echo "${ECHO_T}$enable_pc_files" >&6
3775 if test "x$enable_pc_files" != xno
3778 case "x$PKG_CONFIG_LIBDIR" in
3780 { echo "$as_me:3780: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3781 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3785 if test "x$prefix" != xNONE; then
3786 cf_path_syntax="$prefix"
3788 cf_path_syntax="$ac_default_prefix"
3791 case ".$PKG_CONFIG_LIBDIR" in
3796 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3798 (.\${*prefix}*|.\${*dir}*)
3799 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3800 case ".$PKG_CONFIG_LIBDIR" in
3802 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3807 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3810 { { echo "$as_me:3810: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3811 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3812 { (exit 1); exit 1; }; }
3822 if test -z "$MAKE_PC_FILES"
3824 echo "$as_me:3824: checking for suffix to add to pc-files" >&5
3825 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3827 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3828 if test "${with_pc_suffix+set}" = set; then
3829 withval="$with_pc_suffix"
3834 (*) PC_MODULE_SUFFIX="$withval"
3838 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3839 echo "$as_me:3839: result: $PC_MODULE_SUFFIX" >&5
3840 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3841 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3845 echo "$as_me:3845: checking if we should assume mixed-case filenames" >&5
3846 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3848 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3849 if test "${enable_mixed_case+set}" = set; then
3850 enableval="$enable_mixed_case"
3851 enable_mixedcase=$enableval
3853 enable_mixedcase=auto
3855 echo "$as_me:3855: result: $enable_mixedcase" >&5
3856 echo "${ECHO_T}$enable_mixedcase" >&6
3857 if test "$enable_mixedcase" = "auto" ; then
3859 echo "$as_me:3859: checking if filesystem supports mixed-case filenames" >&5
3860 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3861 if test "${cf_cv_mixedcase+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if test "$cross_compiling" = yes ; then
3866 case $target_alias in
3867 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3875 rm -f conftest CONFTEST
3877 if test -f CONFTEST ; then
3882 rm -f conftest CONFTEST
3886 echo "$as_me:3886: result: $cf_cv_mixedcase" >&5
3887 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3888 test "$cf_cv_mixedcase" = yes &&
3889 cat >>confdefs.h <<\EOF
3890 #define MIXEDCASE_FILENAMES 1
3894 cf_cv_mixedcase=$enable_mixedcase
3895 if test "x$enable_mixedcase" = "xyes" ; then
3897 cat >>confdefs.h <<\EOF
3898 #define MIXEDCASE_FILENAMES 1
3904 # do this after mixed-case option (tags/TAGS is not as important as tic).
3905 echo "$as_me:3905: checking whether ${MAKE-make} sets \${MAKE}" >&5
3906 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3908 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 cat >conftest.make <<\EOF
3913 @echo 'ac_maketemp="${MAKE}"'
3915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3916 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3917 if test -n "$ac_maketemp"; then
3918 eval ac_cv_prog_make_${ac_make}_set=yes
3920 eval ac_cv_prog_make_${ac_make}_set=no
3924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3925 echo "$as_me:3925: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6
3929 echo "$as_me:3929: result: no" >&5
3930 echo "${ECHO_T}no" >&6
3931 SET_MAKE="MAKE=${MAKE-make}"
3934 for ac_prog in exctags ctags
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 echo "$as_me:3938: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_CTAGS+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 if test -n "$CTAGS"; then
3944 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3946 ac_save_IFS=$IFS; IFS=$ac_path_separator
3948 for ac_dir in $ac_dummy; do
3950 test -z "$ac_dir" && ac_dir=.
3951 $as_executable_p "$ac_dir/$ac_word" || continue
3952 ac_cv_prog_CTAGS="$ac_prog"
3953 echo "$as_me:3953: found $ac_dir/$ac_word" >&5
3959 CTAGS=$ac_cv_prog_CTAGS
3960 if test -n "$CTAGS"; then
3961 echo "$as_me:3961: result: $CTAGS" >&5
3962 echo "${ECHO_T}$CTAGS" >&6
3964 echo "$as_me:3964: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3968 test -n "$CTAGS" && break
3971 for ac_prog in exetags etags
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974 set dummy $ac_prog; ac_word=$2
3975 echo "$as_me:3975: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977 if test "${ac_cv_prog_ETAGS+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 if test -n "$ETAGS"; then
3981 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3983 ac_save_IFS=$IFS; IFS=$ac_path_separator
3985 for ac_dir in $ac_dummy; do
3987 test -z "$ac_dir" && ac_dir=.
3988 $as_executable_p "$ac_dir/$ac_word" || continue
3989 ac_cv_prog_ETAGS="$ac_prog"
3990 echo "$as_me:3990: found $ac_dir/$ac_word" >&5
3996 ETAGS=$ac_cv_prog_ETAGS
3997 if test -n "$ETAGS"; then
3998 echo "$as_me:3998: result: $ETAGS" >&5
3999 echo "${ECHO_T}$ETAGS" >&6
4001 echo "$as_me:4001: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4005 test -n "$ETAGS" && break
4008 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4009 set dummy ${CTAGS:-ctags}; ac_word=$2
4010 echo "$as_me:4010: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 if test -n "$MAKE_LOWER_TAGS"; then
4016 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4018 ac_save_IFS=$IFS; IFS=$ac_path_separator
4020 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 $as_executable_p "$ac_dir/$ac_word" || continue
4024 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4025 echo "$as_me:4025: found $ac_dir/$ac_word" >&5
4029 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4032 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4033 if test -n "$MAKE_LOWER_TAGS"; then
4034 echo "$as_me:4034: result: $MAKE_LOWER_TAGS" >&5
4035 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4037 echo "$as_me:4037: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4041 if test "$cf_cv_mixedcase" = yes ; then
4042 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4043 set dummy ${ETAGS:-etags}; ac_word=$2
4044 echo "$as_me:4044: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test -n "$MAKE_UPPER_TAGS"; then
4050 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4052 ac_save_IFS=$IFS; IFS=$ac_path_separator
4054 for ac_dir in $ac_dummy; do
4056 test -z "$ac_dir" && ac_dir=.
4057 $as_executable_p "$ac_dir/$ac_word" || continue
4058 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4059 echo "$as_me:4059: found $ac_dir/$ac_word" >&5
4063 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4066 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4067 if test -n "$MAKE_UPPER_TAGS"; then
4068 echo "$as_me:4068: result: $MAKE_UPPER_TAGS" >&5
4069 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4071 echo "$as_me:4071: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4079 if test "$MAKE_UPPER_TAGS" = yes ; then
4085 if test "$MAKE_LOWER_TAGS" = yes ; then
4091 echo "$as_me:4091: checking for makeflags variable" >&5
4092 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4093 if test "${cf_cv_makeflags+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4100 cat >cf_makeflags.tmp <<CF_EOF
4103 @ echo '.$cf_option'
4105 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4106 case "$cf_result" in
4108 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4109 case "$cf_result" in
4110 (.*CC=*) cf_cv_makeflags=
4112 (*) cf_cv_makeflags=$cf_option
4118 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4122 rm -f cf_makeflags.tmp
4125 echo "$as_me:4125: result: $cf_cv_makeflags" >&5
4126 echo "${ECHO_T}$cf_cv_makeflags" >&6
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4131 echo "$as_me:4131: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_RANLIB+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 if test -n "$RANLIB"; then
4137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4139 ac_save_IFS=$IFS; IFS=$ac_path_separator
4141 for ac_dir in $ac_dummy; do
4143 test -z "$ac_dir" && ac_dir=.
4144 $as_executable_p "$ac_dir/$ac_word" || continue
4145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4146 echo "$as_me:4146: found $ac_dir/$ac_word" >&5
4152 RANLIB=$ac_cv_prog_RANLIB
4153 if test -n "$RANLIB"; then
4154 echo "$as_me:4154: result: $RANLIB" >&5
4155 echo "${ECHO_T}$RANLIB" >&6
4157 echo "$as_me:4157: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4162 if test -z "$ac_cv_prog_RANLIB"; then
4163 ac_ct_RANLIB=$RANLIB
4164 # Extract the first word of "ranlib", so it can be a program name with args.
4165 set dummy ranlib; ac_word=$2
4166 echo "$as_me:4166: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if test -n "$ac_ct_RANLIB"; then
4172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4174 ac_save_IFS=$IFS; IFS=$ac_path_separator
4176 for ac_dir in $ac_dummy; do
4178 test -z "$ac_dir" && ac_dir=.
4179 $as_executable_p "$ac_dir/$ac_word" || continue
4180 ac_cv_prog_ac_ct_RANLIB="ranlib"
4181 echo "$as_me:4181: found $ac_dir/$ac_word" >&5
4185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4189 if test -n "$ac_ct_RANLIB"; then
4190 echo "$as_me:4190: result: $ac_ct_RANLIB" >&5
4191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4193 echo "$as_me:4193: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4197 RANLIB=$ac_ct_RANLIB
4199 RANLIB="$ac_cv_prog_RANLIB"
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}ld; ac_word=$2
4205 echo "$as_me:4205: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_LD+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$LD"; then
4211 ac_cv_prog_LD="$LD" # Let the user override the test.
4213 ac_save_IFS=$IFS; IFS=$ac_path_separator
4215 for ac_dir in $ac_dummy; do
4217 test -z "$ac_dir" && ac_dir=.
4218 $as_executable_p "$ac_dir/$ac_word" || continue
4219 ac_cv_prog_LD="${ac_tool_prefix}ld"
4220 echo "$as_me:4220: found $ac_dir/$ac_word" >&5
4227 if test -n "$LD"; then
4228 echo "$as_me:4228: result: $LD" >&5
4229 echo "${ECHO_T}$LD" >&6
4231 echo "$as_me:4231: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4236 if test -z "$ac_cv_prog_LD"; then
4238 # Extract the first word of "ld", so it can be a program name with args.
4239 set dummy ld; ac_word=$2
4240 echo "$as_me:4240: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$ac_ct_LD"; then
4246 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4248 ac_save_IFS=$IFS; IFS=$ac_path_separator
4250 for ac_dir in $ac_dummy; do
4252 test -z "$ac_dir" && ac_dir=.
4253 $as_executable_p "$ac_dir/$ac_word" || continue
4254 ac_cv_prog_ac_ct_LD="ld"
4255 echo "$as_me:4255: found $ac_dir/$ac_word" >&5
4259 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4262 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4263 if test -n "$ac_ct_LD"; then
4264 echo "$as_me:4264: result: $ac_ct_LD" >&5
4265 echo "${ECHO_T}$ac_ct_LD" >&6
4267 echo "$as_me:4267: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4276 if test -n "$ac_tool_prefix"; then
4277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4278 set dummy ${ac_tool_prefix}ar; ac_word=$2
4279 echo "$as_me:4279: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AR+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test -n "$AR"; then
4285 ac_cv_prog_AR="$AR" # Let the user override the test.
4287 ac_save_IFS=$IFS; IFS=$ac_path_separator
4289 for ac_dir in $ac_dummy; do
4291 test -z "$ac_dir" && ac_dir=.
4292 $as_executable_p "$ac_dir/$ac_word" || continue
4293 ac_cv_prog_AR="${ac_tool_prefix}ar"
4294 echo "$as_me:4294: found $ac_dir/$ac_word" >&5
4301 if test -n "$AR"; then
4302 echo "$as_me:4302: result: $AR" >&5
4303 echo "${ECHO_T}$AR" >&6
4305 echo "$as_me:4305: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4310 if test -z "$ac_cv_prog_AR"; then
4312 # Extract the first word of "ar", so it can be a program name with args.
4313 set dummy ar; ac_word=$2
4314 echo "$as_me:4314: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$ac_ct_AR"; then
4320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4322 ac_save_IFS=$IFS; IFS=$ac_path_separator
4324 for ac_dir in $ac_dummy; do
4326 test -z "$ac_dir" && ac_dir=.
4327 $as_executable_p "$ac_dir/$ac_word" || continue
4328 ac_cv_prog_ac_ct_AR="ar"
4329 echo "$as_me:4329: found $ac_dir/$ac_word" >&5
4333 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4336 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4337 if test -n "$ac_ct_AR"; then
4338 echo "$as_me:4338: result: $ac_ct_AR" >&5
4339 echo "${ECHO_T}$ac_ct_AR" >&6
4341 echo "$as_me:4341: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}nm; ac_word=$2
4353 echo "$as_me:4353: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_NM+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 if test -n "$NM"; then
4359 ac_cv_prog_NM="$NM" # Let the user override the test.
4361 ac_save_IFS=$IFS; IFS=$ac_path_separator
4363 for ac_dir in $ac_dummy; do
4365 test -z "$ac_dir" && ac_dir=.
4366 $as_executable_p "$ac_dir/$ac_word" || continue
4367 ac_cv_prog_NM="${ac_tool_prefix}nm"
4368 echo "$as_me:4368: found $ac_dir/$ac_word" >&5
4375 if test -n "$NM"; then
4376 echo "$as_me:4376: result: $NM" >&5
4377 echo "${ECHO_T}$NM" >&6
4379 echo "$as_me:4379: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4384 if test -z "$ac_cv_prog_NM"; then
4386 # Extract the first word of "nm", so it can be a program name with args.
4387 set dummy nm; ac_word=$2
4388 echo "$as_me:4388: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$ac_ct_NM"; then
4394 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4396 ac_save_IFS=$IFS; IFS=$ac_path_separator
4398 for ac_dir in $ac_dummy; do
4400 test -z "$ac_dir" && ac_dir=.
4401 $as_executable_p "$ac_dir/$ac_word" || continue
4402 ac_cv_prog_ac_ct_NM="nm"
4403 echo "$as_me:4403: found $ac_dir/$ac_word" >&5
4407 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4410 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4411 if test -n "$ac_ct_NM"; then
4412 echo "$as_me:4412: result: $ac_ct_NM" >&5
4413 echo "${ECHO_T}$ac_ct_NM" >&6
4415 echo "$as_me:4415: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4424 if test -n "$ac_tool_prefix"; then
4425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}ar; ac_word=$2
4427 echo "$as_me:4427: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_prog_AR+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$AR"; then
4433 ac_cv_prog_AR="$AR" # Let the user override the test.
4435 ac_save_IFS=$IFS; IFS=$ac_path_separator
4437 for ac_dir in $ac_dummy; do
4439 test -z "$ac_dir" && ac_dir=.
4440 $as_executable_p "$ac_dir/$ac_word" || continue
4441 ac_cv_prog_AR="${ac_tool_prefix}ar"
4442 echo "$as_me:4442: found $ac_dir/$ac_word" >&5
4449 if test -n "$AR"; then
4450 echo "$as_me:4450: result: $AR" >&5
4451 echo "${ECHO_T}$AR" >&6
4453 echo "$as_me:4453: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4458 if test -z "$ac_cv_prog_AR"; then
4460 # Extract the first word of "ar", so it can be a program name with args.
4461 set dummy ar; ac_word=$2
4462 echo "$as_me:4462: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4464 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$ac_ct_AR"; then
4468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4470 ac_save_IFS=$IFS; IFS=$ac_path_separator
4472 for ac_dir in $ac_dummy; do
4474 test -z "$ac_dir" && ac_dir=.
4475 $as_executable_p "$ac_dir/$ac_word" || continue
4476 ac_cv_prog_ac_ct_AR="ar"
4477 echo "$as_me:4477: found $ac_dir/$ac_word" >&5
4481 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4484 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4485 if test -n "$ac_ct_AR"; then
4486 echo "$as_me:4486: result: $ac_ct_AR" >&5
4487 echo "${ECHO_T}$ac_ct_AR" >&6
4489 echo "$as_me:4489: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4498 echo "$as_me:4498: checking for options to update archives" >&5
4499 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4500 if test "${cf_cv_ar_flags+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 cf_cv_ar_flags=unknown
4505 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4508 # check if $ARFLAGS already contains this choice
4509 if test "x$ARFLAGS" != "x" ; then
4510 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4511 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4517 rm -f conftest.$ac_cv_objext
4520 cat >conftest.$ac_ext <<EOF
4521 #line 4521 "configure"
4522 int testdata[3] = { 123, 456, 789 };
4524 if { (eval echo "$as_me:4524: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>&5
4527 echo "$as_me:4527: \$? = $ac_status" >&5
4528 (exit $ac_status); } ; then
4529 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4530 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4531 if test -f conftest.a ; then
4532 cf_cv_ar_flags=$cf_ar_flags
4536 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4538 echo "${as_me:-configure}:4538: testing cannot compile test-program ..." 1>&5
4543 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4546 echo "$as_me:4546: result: $cf_cv_ar_flags" >&5
4547 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4549 if test -n "$ARFLAGS" ; then
4550 if test -n "$cf_cv_ar_flags" ; then
4551 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4554 ARFLAGS=$cf_cv_ar_flags
4557 echo "$as_me:4557: checking if you have specified an install-prefix" >&5
4558 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4560 # Check whether --with-install-prefix or --without-install-prefix was given.
4561 if test "${with_install_prefix+set}" = set; then
4562 withval="$with_install_prefix"
4566 (*) DESTDIR="$withval"
4570 echo "$as_me:4570: result: $DESTDIR" >&5
4571 echo "${ECHO_T}$DESTDIR" >&6
4573 ###############################################################################
4575 # If we're cross-compiling, allow the user to override the tools and their
4576 # options. The configure script is oriented toward identifying the host
4577 # compiler, etc., but we need a build compiler to generate parts of the source.
4579 if test "$cross_compiling" = yes ; then
4581 # defaults that we might want to override
4582 : ${BUILD_CFLAGS:=''}
4583 : ${BUILD_CPPFLAGS:=''}
4584 : ${BUILD_LDFLAGS:=''}
4586 : ${BUILD_EXEEXT:='$x'}
4587 : ${BUILD_OBJEXT:='o'}
4589 # Check whether --with-build-cc or --without-build-cc was given.
4590 if test "${with_build_cc+set}" = set; then
4591 withval="$with_build_cc"
4594 for ac_prog in gcc cc cl
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 echo "$as_me:4598: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4600 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 if test -n "$BUILD_CC"; then
4604 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4606 ac_save_IFS=$IFS; IFS=$ac_path_separator
4608 for ac_dir in $ac_dummy; do
4610 test -z "$ac_dir" && ac_dir=.
4611 $as_executable_p "$ac_dir/$ac_word" || continue
4612 ac_cv_prog_BUILD_CC="$ac_prog"
4613 echo "$as_me:4613: found $ac_dir/$ac_word" >&5
4619 BUILD_CC=$ac_cv_prog_BUILD_CC
4620 if test -n "$BUILD_CC"; then
4621 echo "$as_me:4621: result: $BUILD_CC" >&5
4622 echo "${ECHO_T}$BUILD_CC" >&6
4624 echo "$as_me:4624: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4628 test -n "$BUILD_CC" && break
4632 echo "$as_me:4632: checking for native build C compiler" >&5
4633 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4634 echo "$as_me:4634: result: $BUILD_CC" >&5
4635 echo "${ECHO_T}$BUILD_CC" >&6
4637 echo "$as_me:4637: checking for native build C preprocessor" >&5
4638 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4640 # Check whether --with-build-cpp or --without-build-cpp was given.
4641 if test "${with_build_cpp+set}" = set; then
4642 withval="$with_build_cpp"
4643 BUILD_CPP="$withval"
4645 BUILD_CPP='${BUILD_CC} -E'
4647 echo "$as_me:4647: result: $BUILD_CPP" >&5
4648 echo "${ECHO_T}$BUILD_CPP" >&6
4650 echo "$as_me:4650: checking for native build C flags" >&5
4651 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4653 # Check whether --with-build-cflags or --without-build-cflags was given.
4654 if test "${with_build_cflags+set}" = set; then
4655 withval="$with_build_cflags"
4656 BUILD_CFLAGS="$withval"
4658 echo "$as_me:4658: result: $BUILD_CFLAGS" >&5
4659 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4661 echo "$as_me:4661: checking for native build C preprocessor-flags" >&5
4662 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4664 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4665 if test "${with_build_cppflags+set}" = set; then
4666 withval="$with_build_cppflags"
4667 BUILD_CPPFLAGS="$withval"
4669 echo "$as_me:4669: result: $BUILD_CPPFLAGS" >&5
4670 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4672 echo "$as_me:4672: checking for native build linker-flags" >&5
4673 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4675 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4676 if test "${with_build_ldflags+set}" = set; then
4677 withval="$with_build_ldflags"
4678 BUILD_LDFLAGS="$withval"
4680 echo "$as_me:4680: result: $BUILD_LDFLAGS" >&5
4681 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4683 echo "$as_me:4683: checking for native build linker-libraries" >&5
4684 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4686 # Check whether --with-build-libs or --without-build-libs was given.
4687 if test "${with_build_libs+set}" = set; then
4688 withval="$with_build_libs"
4689 BUILD_LIBS="$withval"
4691 echo "$as_me:4691: result: $BUILD_LIBS" >&5
4692 echo "${ECHO_T}$BUILD_LIBS" >&6
4694 # this assumes we're on Unix.
4698 : ${BUILD_CC:='${CC}'}
4700 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4701 { { echo "$as_me:4701: error: Cross-build requires two compilers.
4702 Use --with-build-cc to specify the native compiler." >&5
4703 echo "$as_me: error: Cross-build requires two compilers.
4704 Use --with-build-cc to specify the native compiler." >&2;}
4705 { (exit 1); exit 1; }; }
4709 : ${BUILD_CC:='${CC}'}
4710 : ${BUILD_CPP:='${CPP}'}
4711 : ${BUILD_CFLAGS:='${CFLAGS}'}
4712 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4713 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4714 : ${BUILD_LIBS:='${LIBS}'}
4715 : ${BUILD_EXEEXT:='$x'}
4716 : ${BUILD_OBJEXT:='o'}
4719 ###############################################################################
4721 ### Options to allow the user to specify the set of libraries which are used.
4722 ### Use "--without-normal --with-shared" to allow the default model to be
4723 ### shared, for example.
4726 echo "$as_me:4726: checking if libtool -version-number should be used" >&5
4727 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4729 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4730 if test "${enable_libtool_version+set}" = set; then
4731 enableval="$enable_libtool_version"
4732 test "$enableval" != no && enableval=yes
4733 if test "$enableval" != "yes" ; then
4734 cf_libtool_version=no
4736 cf_libtool_version=yes
4740 cf_libtool_version=yes
4743 echo "$as_me:4743: result: $cf_libtool_version" >&5
4744 echo "${ECHO_T}$cf_libtool_version" >&6
4746 if test "$cf_libtool_version" = yes ; then
4747 LIBTOOL_VERSION="-version-number"
4749 LIBTOOL_VERSION="-version-info"
4752 { echo "$as_me:4752: WARNING: VERSION was not set" >&5
4753 echo "$as_me: WARNING: VERSION was not set" >&2;}
4756 ABI_VERSION="$VERSION"
4757 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4759 echo "${as_me:-configure}:4759: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4763 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4764 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4766 echo "${as_me:-configure}:4766: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4770 { echo "$as_me:4770: WARNING: unexpected VERSION value: $VERSION" >&5
4771 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4778 # common library maintenance symbols that are convenient for libtool scripts:
4779 LIB_CREATE='${AR} -cr'
4780 LIB_OBJECT='${OBJECTS}'
4784 # symbols used to prop libtool up to enable it to determine what it should be
4792 echo "$as_me:4792: checking if you want to build libraries with libtool" >&5
4793 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4795 # Check whether --with-libtool or --without-libtool was given.
4796 if test "${with_libtool+set}" = set; then
4797 withval="$with_libtool"
4798 with_libtool=$withval
4802 echo "$as_me:4802: result: $with_libtool" >&5
4803 echo "${ECHO_T}$with_libtool" >&6
4804 if test "$with_libtool" != "no"; then
4806 if test "$with_libtool" != "yes" ; then
4808 if test "x$prefix" != xNONE; then
4809 cf_path_syntax="$prefix"
4811 cf_path_syntax="$ac_default_prefix"
4814 case ".$with_libtool" in
4819 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4821 (.\${*prefix}*|.\${*dir}*)
4822 eval with_libtool="$with_libtool"
4823 case ".$with_libtool" in
4825 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4830 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4833 { { echo "$as_me:4833: error: expected a pathname, not \"$with_libtool\"" >&5
4834 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4835 { (exit 1); exit 1; }; }
4839 LIBTOOL=$with_libtool
4841 if test -n "$ac_tool_prefix"; then
4842 for ac_prog in libtool glibtool
4844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4846 echo "$as_me:4846: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4848 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 if test -n "$LIBTOOL"; then
4852 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4854 ac_save_IFS=$IFS; IFS=$ac_path_separator
4856 for ac_dir in $ac_dummy; do
4858 test -z "$ac_dir" && ac_dir=.
4859 $as_executable_p "$ac_dir/$ac_word" || continue
4860 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4861 echo "$as_me:4861: found $ac_dir/$ac_word" >&5
4867 LIBTOOL=$ac_cv_prog_LIBTOOL
4868 if test -n "$LIBTOOL"; then
4869 echo "$as_me:4869: result: $LIBTOOL" >&5
4870 echo "${ECHO_T}$LIBTOOL" >&6
4872 echo "$as_me:4872: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4876 test -n "$LIBTOOL" && break
4879 if test -z "$LIBTOOL"; then
4880 ac_ct_LIBTOOL=$LIBTOOL
4881 for ac_prog in libtool glibtool
4883 # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 echo "$as_me:4885: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4887 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 if test -n "$ac_ct_LIBTOOL"; then
4891 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4893 ac_save_IFS=$IFS; IFS=$ac_path_separator
4895 for ac_dir in $ac_dummy; do
4897 test -z "$ac_dir" && ac_dir=.
4898 $as_executable_p "$ac_dir/$ac_word" || continue
4899 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4900 echo "$as_me:4900: found $ac_dir/$ac_word" >&5
4906 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4907 if test -n "$ac_ct_LIBTOOL"; then
4908 echo "$as_me:4908: result: $ac_ct_LIBTOOL" >&5
4909 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4911 echo "$as_me:4911: result: no" >&5
4912 echo "${ECHO_T}no" >&6
4915 test -n "$ac_ct_LIBTOOL" && break
4917 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4919 LIBTOOL=$ac_ct_LIBTOOL
4922 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4924 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.].*//'`
4926 cf_cv_libtool_version=
4928 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4930 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4933 unset ac_cv_prog_ac_ct_LIBTOOL
4937 if test -n "$ac_tool_prefix"; then
4938 for ac_prog in glibtool
4940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4942 echo "$as_me:4942: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 if test -n "$LIBTOOL"; then
4948 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4950 ac_save_IFS=$IFS; IFS=$ac_path_separator
4952 for ac_dir in $ac_dummy; do
4954 test -z "$ac_dir" && ac_dir=.
4955 $as_executable_p "$ac_dir/$ac_word" || continue
4956 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4957 echo "$as_me:4957: found $ac_dir/$ac_word" >&5
4963 LIBTOOL=$ac_cv_prog_LIBTOOL
4964 if test -n "$LIBTOOL"; then
4965 echo "$as_me:4965: result: $LIBTOOL" >&5
4966 echo "${ECHO_T}$LIBTOOL" >&6
4968 echo "$as_me:4968: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4972 test -n "$LIBTOOL" && break
4975 if test -z "$LIBTOOL"; then
4976 ac_ct_LIBTOOL=$LIBTOOL
4977 for ac_prog in glibtool
4979 # Extract the first word of "$ac_prog", so it can be a program name with args.
4980 set dummy $ac_prog; ac_word=$2
4981 echo "$as_me:4981: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$ac_ct_LIBTOOL"; then
4987 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4989 ac_save_IFS=$IFS; IFS=$ac_path_separator
4991 for ac_dir in $ac_dummy; do
4993 test -z "$ac_dir" && ac_dir=.
4994 $as_executable_p "$ac_dir/$ac_word" || continue
4995 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4996 echo "$as_me:4996: found $ac_dir/$ac_word" >&5
5002 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5003 if test -n "$ac_ct_LIBTOOL"; then
5004 echo "$as_me:5004: result: $ac_ct_LIBTOOL" >&5
5005 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5007 echo "$as_me:5007: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5011 test -n "$ac_ct_LIBTOOL" && break
5013 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5015 LIBTOOL=$ac_ct_LIBTOOL
5018 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5020 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.].*//'`
5022 cf_cv_libtool_version=
5024 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5028 if test -z "$LIBTOOL" ; then
5029 { { echo "$as_me:5029: error: Cannot find libtool" >&5
5030 echo "$as_me: error: Cannot find libtool" >&2;}
5031 { (exit 1); exit 1; }; }
5033 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5034 LIB_OBJECT='${OBJECTS:.o=.lo}'
5036 LIB_CLEAN='${LIBTOOL} --mode=clean'
5037 LIB_COMPILE='${LIBTOOL} --mode=compile'
5038 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5039 LIB_INSTALL='${LIBTOOL} --mode=install'
5040 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5043 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5045 echo "$as_me:5045: checking version of $LIBTOOL" >&5
5046 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5048 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5050 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.].*//'`
5052 cf_cv_libtool_version=
5054 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5056 echo "$as_me:5056: result: $cf_cv_libtool_version" >&5
5057 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5058 if test -z "$cf_cv_libtool_version" ; then
5059 { { echo "$as_me:5059: error: This is not GNU libtool" >&5
5060 echo "$as_me: error: This is not GNU libtool" >&2;}
5061 { (exit 1); exit 1; }; }
5064 { { echo "$as_me:5064: error: GNU libtool has not been found" >&5
5065 echo "$as_me: error: GNU libtool has not been found" >&2;}
5066 { (exit 1); exit 1; }; }
5069 # special hack to add -no-undefined (which libtool should do for itself)
5071 case "$cf_cv_system_name" in
5072 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5073 LT_UNDEF=-no-undefined
5077 # special hack to add --tag option for C++ compiler
5078 case $cf_cv_libtool_version in
5079 (1.[5-9]*|[2-9].[0-9.a-z]*)
5080 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5081 LIBTOOL="$LIBTOOL --tag=CC"
5084 LIBTOOL_CXX="$LIBTOOL"
5092 test -z "$LIBTOOL" && ECHO_LT=
5094 if test "$with_libtool" != "no" ; then
5096 cf_list_models="$cf_list_models libtool"
5100 echo "$as_me:5100: checking if you want to build shared libraries" >&5
5101 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5103 # Check whether --with-shared or --without-shared was given.
5104 if test "${with_shared+set}" = set; then
5105 withval="$with_shared"
5106 with_shared=$withval
5110 echo "$as_me:5110: result: $with_shared" >&5
5111 echo "${ECHO_T}$with_shared" >&6
5112 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5114 echo "$as_me:5114: checking if you want to build static libraries" >&5
5115 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5117 # Check whether --with-normal or --without-normal was given.
5118 if test "${with_normal+set}" = set; then
5119 withval="$with_normal"
5120 with_normal=$withval
5124 echo "$as_me:5124: result: $with_normal" >&5
5125 echo "${ECHO_T}$with_normal" >&6
5126 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5128 echo "$as_me:5128: checking if you want to build debug libraries" >&5
5129 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5131 # Check whether --with-debug or --without-debug was given.
5132 if test "${with_debug+set}" = set; then
5133 withval="$with_debug"
5138 echo "$as_me:5138: result: $with_debug" >&5
5139 echo "${ECHO_T}$with_debug" >&6
5140 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5142 echo "$as_me:5142: checking if you want to build profiling libraries" >&5
5143 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5145 # Check whether --with-profile or --without-profile was given.
5146 if test "${with_profile+set}" = set; then
5147 withval="$with_profile"
5148 with_profile=$withval
5152 echo "$as_me:5152: result: $with_profile" >&5
5153 echo "${ECHO_T}$with_profile" >&6
5154 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5158 if test "X$cf_with_cxx_binding" != Xno; then
5159 if test "x$with_shared" = "xyes"; then
5160 echo "$as_me:5160: checking if you want to build C++ shared libraries" >&5
5161 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5163 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5164 if test "${with_cxx_shared+set}" = set; then
5165 withval="$with_cxx_shared"
5166 with_shared_cxx=$withval
5170 echo "$as_me:5170: result: $with_shared_cxx" >&5
5171 echo "${ECHO_T}$with_shared_cxx" >&6
5175 ###############################################################################
5177 echo "$as_me:5177: checking for specified models" >&5
5178 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5179 test -z "$cf_list_models" && cf_list_models=normal
5180 test "$with_libtool" != "no" && cf_list_models=libtool
5181 echo "$as_me:5181: result: $cf_list_models" >&5
5182 echo "${ECHO_T}$cf_list_models" >&6
5184 ### Use the first model as the default, and save its suffix for use in building
5185 ### up test-applications.
5186 echo "$as_me:5186: checking for default model" >&5
5187 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5188 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5189 echo "$as_me:5189: result: $DFT_LWR_MODEL" >&5
5190 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5192 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5203 echo "$as_me:5203: checking if you want to have a library-prefix" >&5
5204 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5206 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5207 if test "${with_lib_prefix+set}" = set; then
5208 withval="$with_lib_prefix"
5209 with_lib_prefix=$withval
5211 with_lib_prefix=auto
5213 echo "$as_me:5213: result: $with_lib_prefix" >&5
5214 echo "${ECHO_T}$with_lib_prefix" >&6
5216 if test $with_lib_prefix = auto
5219 case $cf_cv_system_name in
5221 if test "$DFT_LWR_MODEL" = libtool; then
5227 (*) LIB_PREFIX='lib'
5230 cf_prefix=$LIB_PREFIX
5232 elif test $with_lib_prefix = no
5236 LIB_PREFIX=$with_lib_prefix
5241 echo "$as_me:5241: checking for PATH separator" >&5
5242 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5243 case $cf_cv_system_name in
5244 (os2*) PATH_SEPARATOR=';' ;;
5245 (*) ${PATH_SEPARATOR:=':'} ;;
5248 echo "$as_me:5248: result: $PATH_SEPARATOR" >&5
5249 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5251 ###############################################################################
5253 echo "$as_me:5253: checking if you want to build a separate terminfo library" >&5
5254 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5256 # Check whether --with-termlib or --without-termlib was given.
5257 if test "${with_termlib+set}" = set; then
5258 withval="$with_termlib"
5259 with_termlib=$withval
5263 echo "$as_me:5263: result: $with_termlib" >&5
5264 echo "${ECHO_T}$with_termlib" >&6
5266 echo "$as_me:5266: checking if you want to build a separate tic library" >&5
5267 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5269 # Check whether --with-ticlib or --without-ticlib was given.
5270 if test "${with_ticlib+set}" = set; then
5271 withval="$with_ticlib"
5272 with_ticlib=$withval
5276 echo "$as_me:5276: result: $with_ticlib" >&5
5277 echo "${ECHO_T}$with_ticlib" >&6
5279 ### Checks for special libraries, must be done up-front.
5282 echo "$as_me:5282: checking if you want to link with the GPM mouse library" >&5
5283 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5285 # Check whether --with-gpm or --without-gpm was given.
5286 if test "${with_gpm+set}" = set; then
5292 echo "$as_me:5292: result: $with_gpm" >&5
5293 echo "${ECHO_T}$with_gpm" >&6
5295 if test "$with_gpm" != no ; then
5296 echo "$as_me:5296: checking for gpm.h" >&5
5297 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5298 if test "${ac_cv_header_gpm_h+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5302 #line 5302 "configure"
5303 #include "confdefs.h"
5306 if { (eval echo "$as_me:5306: \"$ac_cpp conftest.$ac_ext\"") >&5
5307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5309 egrep -v '^ *\+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 echo "$as_me:5312: \$? = $ac_status" >&5
5313 (exit $ac_status); } >/dev/null; then
5314 if test -s conftest.err; then
5315 ac_cpp_err=$ac_c_preproc_warn_flag
5322 if test -z "$ac_cpp_err"; then
5323 ac_cv_header_gpm_h=yes
5325 echo "$as_me: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5327 ac_cv_header_gpm_h=no
5329 rm -f conftest.err conftest.$ac_ext
5331 echo "$as_me:5331: result: $ac_cv_header_gpm_h" >&5
5332 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5333 if test $ac_cv_header_gpm_h = yes; then
5335 cat >>confdefs.h <<\EOF
5336 #define HAVE_GPM_H 1
5339 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5340 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5342 echo "${as_me:-configure}:5342: testing assuming we really have GPM library ..." 1>&5
5344 cat >>confdefs.h <<\EOF
5345 #define HAVE_LIBGPM 1
5350 echo "$as_me:5350: checking for Gpm_Open in -lgpm" >&5
5351 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5352 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 ac_check_lib_save_LIBS=$LIBS
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line 5358 "configure"
5359 #include "confdefs.h"
5361 /* Override any gcc2 internal prototype to avoid an error. */
5365 /* We use char because int might match the return type of a gcc2
5366 builtin and then its argument prototype would still apply. */
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:5377: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>&5
5380 echo "$as_me:5380: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -s conftest$ac_exeext'
5383 { (eval echo "$as_me:5383: \"$ac_try\"") >&5
5386 echo "$as_me:5386: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_lib_gpm_Gpm_Open=yes
5390 echo "$as_me: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5392 ac_cv_lib_gpm_Gpm_Open=no
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5397 echo "$as_me:5397: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5398 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5399 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5403 if test "$with_gpm" = maybe; then
5404 { echo "$as_me:5404: WARNING: Cannot link with GPM library" >&5
5405 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
5408 { { echo "$as_me:5408: error: Cannot link with GPM library" >&5
5409 echo "$as_me: error: Cannot link with GPM library" >&2;}
5410 { (exit 1); exit 1; }; }
5419 test "$with_gpm" != maybe && { echo "$as_me:5419: WARNING: Cannot find GPM header" >&5
5420 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5427 if test "$with_gpm" != no ; then
5428 echo "$as_me:5428: checking if you want to load GPM dynamically" >&5
5429 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5431 # Check whether --with-dlsym or --without-dlsym was given.
5432 if test "${with_dlsym+set}" = set; then
5433 withval="$with_dlsym"
5438 echo "$as_me:5438: result: $with_dlsym" >&5
5439 echo "${ECHO_T}$with_dlsym" >&6
5440 if test "x$with_dlsym" = xyes ; then
5443 echo "$as_me:5443: checking for dlsym" >&5
5444 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5445 if test "${ac_cv_func_dlsym+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 cat >conftest.$ac_ext <<_ACEOF
5449 #line 5449 "configure"
5450 #include "confdefs.h"
5451 /* System header to define __stub macros and hopefully few prototypes,
5452 which can conflict with char dlsym (); below. */
5454 /* Override any gcc2 internal prototype to avoid an error. */
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5466 /* The GNU C library defines this for functions which it implements
5467 to always fail with ENOSYS. Some functions are actually named
5468 something starting with __ and the normal name is an alias. */
5469 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5472 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (eval echo "$as_me:5480: \"$ac_link\"") >&5
5481 (eval $ac_link) 2>&5
5483 echo "$as_me:5483: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:5486: \"$ac_try\"") >&5
5489 echo "$as_me:5489: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_func_dlsym=yes
5493 echo "$as_me: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 echo "$as_me:5499: result: $ac_cv_func_dlsym" >&5
5500 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5501 if test $ac_cv_func_dlsym = yes; then
5506 echo "$as_me:5506: checking for dlsym in -ldl" >&5
5507 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5508 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_check_lib_save_LIBS=$LIBS
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line 5514 "configure"
5515 #include "confdefs.h"
5517 /* Override any gcc2 internal prototype to avoid an error. */
5521 /* We use char because int might match the return type of a gcc2
5522 builtin and then its argument prototype would still apply. */
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:5533: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>&5
5536 echo "$as_me:5536: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -s conftest$ac_exeext'
5539 { (eval echo "$as_me:5539: \"$ac_try\"") >&5
5542 echo "$as_me:5542: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_lib_dl_dlsym=yes
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 ac_cv_lib_dl_dlsym=no
5550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5551 LIBS=$ac_check_lib_save_LIBS
5553 echo "$as_me:5553: result: $ac_cv_lib_dl_dlsym" >&5
5554 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5555 if test $ac_cv_lib_dl_dlsym = yes; then
5563 if test "$cf_have_dlsym" = yes ; then
5564 test "$cf_have_libdl" = yes && {
5566 # Filter out duplicates - this happens with badly-designed ".pc" files...
5567 for cf_add_1lib in $LIBS
5569 for cf_add_2lib in $cf_add_libs
5571 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5577 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5582 echo "$as_me:5582: checking whether able to link to dl*() functions" >&5
5583 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line 5585 "configure"
5586 #include "confdefs.h"
5593 if ((obj = dlopen("filename", 0)) != 0) {
5594 if (dlsym(obj, "symbolname") == 0) {
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (eval echo "$as_me:5603: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>&5
5606 echo "$as_me:5606: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -s conftest$ac_exeext'
5609 { (eval echo "$as_me:5609: \"$ac_try\"") >&5
5612 echo "$as_me:5612: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5615 cat >>confdefs.h <<\EOF
5616 #define HAVE_LIBDL 1
5620 echo "$as_me: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5623 { { echo "$as_me:5623: error: Cannot link test program for libdl" >&5
5624 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5625 { (exit 1); exit 1; }; }
5627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5628 echo "$as_me:5628: result: ok" >&5
5629 echo "${ECHO_T}ok" >&6
5631 { { echo "$as_me:5631: error: Cannot find dlsym function" >&5
5632 echo "$as_me: error: Cannot find dlsym function" >&2;}
5633 { (exit 1); exit 1; }; }
5636 if test "x$with_gpm" != xyes ; then
5637 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5639 echo "${as_me:-configure}:5639: testing assuming soname for gpm is $with_gpm ..." 1>&5
5641 cf_cv_gpm_soname="$with_gpm"
5644 echo "$as_me:5644: checking for soname of gpm library" >&5
5645 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5646 if test "${cf_cv_gpm_soname+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cf_cv_gpm_soname=unknown
5651 if test "$cross_compiling" != yes ; then
5652 cat >conftest.$ac_ext <<CF_EOF
5656 if (Gpm_Open(0,0)) Gpm_Close();
5657 ${cf_cv_main_return:-return}(0);
5660 cf_save_LIBS="$LIBS"
5663 # Filter out duplicates - this happens with badly-designed ".pc" files...
5664 for cf_add_1lib in $LIBS
5666 for cf_add_2lib in $cf_add_libs
5668 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5674 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5678 if { (eval echo "$as_me:5678: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>&5
5681 echo "$as_me:5681: \$? = $ac_status" >&5
5682 (exit $ac_status); } ; then
5683 if { (eval echo "$as_me:5683: \"$ac_link\"") >&5
5684 (eval $ac_link) 2>&5
5686 echo "$as_me:5686: \$? = $ac_status" >&5
5687 (exit $ac_status); } ; then
5688 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5689 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5693 LIBS="$cf_save_LIBS"
5697 echo "$as_me:5697: result: $cf_cv_gpm_soname" >&5
5698 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5701 test "$cf_cv_gpm_soname" != "unknown" &&
5702 cat >>confdefs.h <<EOF
5703 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5706 SHLIB_LIST="-ldl $SHLIB_LIST"
5708 SHLIB_LIST="-lgpm $SHLIB_LIST"
5711 # Filter out duplicates - this happens with badly-designed ".pc" files...
5712 for cf_add_1lib in $TEST_LIBS
5714 for cf_add_2lib in $cf_add_libs
5716 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5722 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5724 TEST_LIBS="$cf_add_libs"
5728 cat >>confdefs.h <<\EOF
5729 #define HAVE_LIBGPM 1
5732 echo "$as_me:5732: checking for Gpm_Wgetch in -lgpm" >&5
5733 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5734 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_check_lib_save_LIBS=$LIBS
5739 cat >conftest.$ac_ext <<_ACEOF
5740 #line 5740 "configure"
5741 #include "confdefs.h"
5743 /* Override any gcc2 internal prototype to avoid an error. */
5747 /* We use char because int might match the return type of a gcc2
5748 builtin and then its argument prototype would still apply. */
5758 rm -f conftest.$ac_objext conftest$ac_exeext
5759 if { (eval echo "$as_me:5759: \"$ac_link\"") >&5
5760 (eval $ac_link) 2>&5
5762 echo "$as_me:5762: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -s conftest$ac_exeext'
5765 { (eval echo "$as_me:5765: \"$ac_try\"") >&5
5768 echo "$as_me:5768: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_lib_gpm_Gpm_Wgetch=yes
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5774 ac_cv_lib_gpm_Gpm_Wgetch=no
5776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5777 LIBS=$ac_check_lib_save_LIBS
5779 echo "$as_me:5779: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5780 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5781 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5783 echo "$as_me:5783: checking if GPM is weakly bound to curses library" >&5
5784 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5785 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cf_cv_check_gpm_wgetch=unknown
5790 if test "$cross_compiling" != yes ; then
5792 cat >conftest.$ac_ext <<CF_EOF
5797 ${cf_cv_main_return:-return}(0);
5801 cf_save_LIBS="$LIBS"
5802 # This only works if we can look at the symbol table. If a shared
5803 # library is stripped for install, we cannot use that. So we're forced
5804 # to rely on the static library, noting that some packagers may not
5806 LIBS="-static -lgpm -dynamic $LIBS"
5807 if { (eval echo "$as_me:5807: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>&5
5810 echo "$as_me:5810: \$? = $ac_status" >&5
5811 (exit $ac_status); } ; then
5812 if { (eval echo "$as_me:5812: \"$ac_link\"") >&5
5813 (eval $ac_link) 2>&5
5815 echo "$as_me:5815: \$? = $ac_status" >&5
5816 (exit $ac_status); } ; then
5817 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5818 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5819 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5823 LIBS="$cf_save_LIBS"
5827 echo "$as_me:5827: result: $cf_cv_check_gpm_wgetch" >&5
5828 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5830 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5831 { echo "$as_me:5831: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5832 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5839 # not everyone has "test -c"
5840 if test -c /dev/sysmouse 2>/dev/null ; then
5841 echo "$as_me:5841: checking if you want to use sysmouse" >&5
5842 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5844 # Check whether --with-sysmouse or --without-sysmouse was given.
5845 if test "${with_sysmouse+set}" = set; then
5846 withval="$with_sysmouse"
5847 cf_with_sysmouse=$withval
5849 cf_with_sysmouse=maybe
5851 if test "$cf_with_sysmouse" != no ; then
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line 5853 "configure"
5854 #include "confdefs.h"
5856 #include <osreldate.h>
5857 #if (__FreeBSD_version >= 400017)
5858 #include <sys/consio.h>
5859 #include <sys/fbio.h>
5861 #include <machine/console.h>
5868 struct mouse_info the_mouse;
5869 ioctl(0, CONS_MOUSECTL, &the_mouse);
5875 rm -f conftest.$ac_objext
5876 if { (eval echo "$as_me:5876: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>&5
5879 echo "$as_me:5879: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:5882: \"$ac_try\"") >&5
5885 echo "$as_me:5885: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 cf_with_sysmouse=yes
5889 echo "$as_me: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5893 rm -f conftest.$ac_objext conftest.$ac_ext
5895 echo "$as_me:5895: result: $cf_with_sysmouse" >&5
5896 echo "${ECHO_T}$cf_with_sysmouse" >&6
5897 test "$cf_with_sysmouse" = yes &&
5898 cat >>confdefs.h <<\EOF
5899 #define USE_SYSMOUSE 1
5904 if test X"$CC_G_OPT" = X"" ; then
5906 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5909 if test X"$CXX_G_OPT" = X"" ; then
5911 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5914 echo "$as_me:5914: checking for default loader flags" >&5
5915 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5916 case $DFT_LWR_MODEL in
5917 (libtool) LD_MODEL='' ;;
5918 (normal) LD_MODEL='' ;;
5919 (debug) LD_MODEL=$CC_G_OPT ;;
5920 (profile) LD_MODEL='-pg';;
5921 (shared) LD_MODEL='' ;;
5923 echo "$as_me:5923: result: $LD_MODEL" >&5
5924 echo "${ECHO_T}$LD_MODEL" >&6
5926 case $DFT_LWR_MODEL in
5929 echo "$as_me:5929: checking if rpath option should be used" >&5
5930 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5932 # Check whether --enable-rpath or --disable-rpath was given.
5933 if test "${enable_rpath+set}" = set; then
5934 enableval="$enable_rpath"
5935 cf_cv_enable_rpath=$enableval
5937 cf_cv_enable_rpath=no
5939 echo "$as_me:5939: result: $cf_cv_enable_rpath" >&5
5940 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5942 echo "$as_me:5942: checking if shared libraries should be relinked during install" >&5
5943 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5945 # Check whether --enable-relink or --disable-relink was given.
5946 if test "${enable_relink+set}" = set; then
5947 enableval="$enable_relink"
5948 cf_cv_do_relink=$enableval
5952 echo "$as_me:5952: result: $cf_cv_do_relink" >&5
5953 echo "${ECHO_T}$cf_cv_do_relink" >&6
5957 # we will build libraries one-level down.
5961 echo "$as_me:5961: checking for an rpath option" >&5
5962 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5963 case $cf_cv_system_name in
5965 if test "$GCC" = yes; then
5966 LD_RPATH_OPT="-Wl,-rpath,"
5968 LD_RPATH_OPT="-rpath "
5971 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5972 LD_RPATH_OPT="-Wl,-rpath,"
5974 (openbsd[2-9].*|mirbsd*)
5975 LD_RPATH_OPT="-Wl,-rpath,"
5978 LD_RPATH_OPT="-rpath "
5981 LD_RPATH_OPT="-Wl,-rpath,"
5984 LD_RPATH_OPT="-rpath "
5992 echo "$as_me:5992: result: $LD_RPATH_OPT" >&5
5993 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5995 case "x$LD_RPATH_OPT" in
5997 echo "$as_me:5997: checking if we need a space after rpath option" >&5
5998 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5999 cf_save_LIBS="$LIBS"
6001 cf_add_libs="${LD_RPATH_OPT}$libdir"
6002 # Filter out duplicates - this happens with badly-designed ".pc" files...
6003 for cf_add_1lib in $LIBS
6005 for cf_add_2lib in $cf_add_libs
6007 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6013 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6017 cat >conftest.$ac_ext <<_ACEOF
6018 #line 6018 "configure"
6019 #include "confdefs.h"
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (eval echo "$as_me:6030: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>&5
6033 echo "$as_me:6033: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -s conftest$ac_exeext'
6036 { (eval echo "$as_me:6036: \"$ac_try\"") >&5
6039 echo "$as_me:6039: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6043 echo "$as_me: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6048 LIBS="$cf_save_LIBS"
6049 echo "$as_me:6049: result: $cf_rpath_space" >&5
6050 echo "${ECHO_T}$cf_rpath_space" >&6
6051 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6059 INSTALL_LIB="-m 644"
6060 : ${rel_builddir:=.}
6066 cf_cv_do_symlinks=no
6068 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6070 echo "$as_me:6070: checking if release/abi version should be used for shared libs" >&5
6071 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6073 # Check whether --with-shlib-version or --without-shlib-version was given.
6074 if test "${with_shlib_version+set}" = set; then
6075 withval="$with_shlib_version"
6076 test -z "$withval" && withval=auto
6079 cf_cv_shlib_version=auto
6082 cf_cv_shlib_version=$withval
6085 echo "$as_me:6085: result: $withval" >&5
6086 echo "${ECHO_T}$withval" >&6
6087 { { echo "$as_me:6087: error: option value must be one of: rel, abi, or auto" >&5
6088 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6089 { (exit 1); exit 1; }; }
6094 cf_cv_shlib_version=auto
6096 echo "$as_me:6096: result: $cf_cv_shlib_version" >&5
6097 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6102 # Some less-capable ports of gcc support only -fpic
6106 if test "$GCC" = yes
6110 case $cf_cv_system_name in
6111 (*linux*) # e.g., PGI compiler
6117 if test "$cf_try_fPIC" = yes
6119 echo "$as_me:6119: checking which $CC option to use" >&5
6120 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6121 cf_save_CFLAGS="$CFLAGS"
6122 for CC_SHARED_OPTS in -fPIC -fpic ''
6124 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line 6126 "configure"
6127 #include "confdefs.h"
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:6138: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>&5
6141 echo "$as_me:6141: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:6144: \"$ac_try\"") >&5
6147 echo "$as_me:6147: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6151 echo "$as_me: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 rm -f conftest.$ac_objext conftest.$ac_ext
6156 echo "$as_me:6156: result: $CC_SHARED_OPTS" >&5
6157 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6158 CFLAGS="$cf_save_CFLAGS"
6161 cf_cv_shlib_version_infix=no
6163 case $cf_cv_system_name in
6164 (aix4.3-9*|aix[5-7]*)
6165 if test "$GCC" = yes; then
6166 CC_SHARED_OPTS='-Wl,-brtl'
6167 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6169 CC_SHARED_OPTS='-brtl'
6170 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6171 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6175 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6179 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6180 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6181 cf_cv_shlib_version=cygdll
6182 cf_cv_shlib_version_infix=cygdll
6185 cat >mk_shared_lib.sh <<-CF_EOF
6188 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6191 Linking shared library
6192 ** SHARED_LIB \$SHARED_LIB
6193 ** IMPORT_LIB \$IMPORT_LIB
6195 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6197 chmod +x mk_shared_lib.sh
6201 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6202 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6203 cf_cv_shlib_version=msysdll
6204 cf_cv_shlib_version_infix=msysdll
6207 cat >mk_shared_lib.sh <<-CF_EOF
6210 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6213 Linking shared library
6214 ** SHARED_LIB \$SHARED_LIB
6215 ** IMPORT_LIB \$IMPORT_LIB
6217 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6219 chmod +x mk_shared_lib.sh
6222 cf_try_cflags="no-cpp-precomp"
6223 CC_SHARED_OPTS="-dynamic"
6224 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6225 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6226 cf_cv_shlib_version_infix=yes
6227 echo "$as_me:6227: checking if ld -search_paths_first works" >&5
6228 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6229 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 cf_save_LDFLAGS=$LDFLAGS
6234 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line 6236 "configure"
6237 #include "confdefs.h"
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (eval echo "$as_me:6248: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6251 echo "$as_me:6251: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -s conftest$ac_exeext'
6254 { (eval echo "$as_me:6254: \"$ac_try\"") >&5
6257 echo "$as_me:6257: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 cf_cv_ldflags_search_paths_first=yes
6261 echo "$as_me: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6263 cf_cv_ldflags_search_paths_first=no
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 LDFLAGS=$cf_save_LDFLAGS
6268 echo "$as_me:6268: result: $cf_cv_ldflags_search_paths_first" >&5
6269 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6270 if test $cf_cv_ldflags_search_paths_first = yes; then
6271 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6275 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6276 if test "$GCC" != yes; then
6279 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6280 INSTALL_LIB="-m 555"
6283 # (tested with gcc 2.7.2 -- I don't have c89)
6284 if test "$GCC" = yes; then
6285 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6288 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6290 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6291 # HP-UX shared libraries must be executable, and should be
6292 # readonly to exploit a quirk in the memory manager.
6293 INSTALL_LIB="-m 555"
6296 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6297 if test "$cf_cv_shlib_version" = rel; then
6298 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6300 cf_shared_soname='`basename $@`'
6303 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6306 if test "$cf_cv_enable_rpath" = yes ; then
6307 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6309 # tested with IRIX 5.2 and 'cc'.
6310 if test "$GCC" != yes; then
6311 CC_SHARED_OPTS='-KPIC'
6312 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6314 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6316 cf_cv_rm_so_locs=yes
6318 (linux*|gnu*|k*bsd*-gnu)
6319 if test "$DFT_LWR_MODEL" = "shared" ; then
6320 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6321 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6323 if test "$cf_cv_enable_rpath" = yes ; then
6324 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6327 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6328 if test "$cf_cv_shlib_version" = rel; then
6329 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6331 cf_cv_shared_soname='`basename $@`'
6334 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6337 cf_cv_shlib_version=mingw
6338 cf_cv_shlib_version_infix=mingw
6341 if test "$DFT_LWR_MODEL" = "shared" ; then
6342 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6343 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6344 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6347 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6348 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6349 cat >mk_shared_lib.sh <<-CF_EOF
6352 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6355 Linking shared library
6356 ** SHARED_LIB \$SHARED_LIB
6357 ** IMPORT_LIB \$IMPORT_LIB
6359 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6361 chmod +x mk_shared_lib.sh
6363 (openbsd[2-9].*|mirbsd*)
6364 if test "$DFT_LWR_MODEL" = "shared" ; then
6365 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6366 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6368 if test "$cf_cv_enable_rpath" = yes ; then
6369 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6371 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6373 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6374 if test "$cf_cv_shlib_version" = rel; then
6375 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6377 cf_cv_shared_soname='`basename $@`'
6380 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6382 (nto-qnx*|openbsd*|freebsd[12].*)
6383 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6384 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6385 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6387 (dragonfly*|freebsd*)
6388 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6389 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6390 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6391 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6392 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6395 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6396 if test "$cf_cv_shlib_version" = rel; then
6397 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6399 cf_cv_shared_soname='`basename $@`'
6402 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6405 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6406 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6407 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6408 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6409 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6410 if test "$cf_cv_shlib_version" = auto; then
6411 if test -f /usr/libexec/ld.elf_so; then
6412 cf_cv_shlib_version=abi
6414 cf_cv_shlib_version=rel
6418 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6419 if test "$cf_cv_shlib_version" = rel; then
6420 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6422 cf_cv_shared_soname='`basename $@`'
6425 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6427 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
6431 # tested with OSF/1 V3.2 and 'cc'
6432 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6433 # link with shared libs).
6434 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6437 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6440 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6441 if test "$DFT_LWR_MODEL" = "shared" ; then
6442 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6443 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6445 cf_cv_rm_so_locs=yes
6447 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6448 # tested with osr5.0.5
6449 if test "$GCC" != yes; then
6450 CC_SHARED_OPTS='-belf -KPIC'
6452 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6453 if test "$cf_cv_enable_rpath" = yes ; then
6454 # only way is to set LD_RUN_PATH but no switch for it
6457 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6458 LINK_PROGS='LD_RUN_PATH=${libdir}'
6459 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6462 # tested with SunOS 4.1.1 and gcc 2.7.0
6463 if test "$GCC" != yes; then
6464 CC_SHARED_OPTS='-KPIC'
6466 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6467 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6470 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6471 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6472 if test "$DFT_LWR_MODEL" = "shared" ; then
6473 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6474 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6476 if test "$cf_cv_enable_rpath" = yes ; then
6477 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6480 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6481 if test "$cf_cv_shlib_version" = rel; then
6482 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6484 cf_cv_shared_soname='`basename $@`'
6487 if test "$GCC" != yes; then
6488 cf_save_CFLAGS="$CFLAGS"
6489 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6491 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6492 cat >conftest.$ac_ext <<_ACEOF
6493 #line 6493 "configure"
6494 #include "confdefs.h"
6504 rm -f conftest.$ac_objext
6505 if { (eval echo "$as_me:6505: \"$ac_compile\"") >&5
6506 (eval $ac_compile) 2>&5
6508 echo "$as_me:6508: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -s conftest.$ac_objext'
6511 { (eval echo "$as_me:6511: \"$ac_try\"") >&5
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6518 echo "$as_me: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 rm -f conftest.$ac_objext conftest.$ac_ext
6523 CFLAGS="$cf_save_CFLAGS"
6524 CC_SHARED_OPTS=$cf_shared_opts
6525 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6527 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6530 (sysv5uw7*|unix_sv*)
6531 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6532 if test "$GCC" != yes; then
6533 CC_SHARED_OPTS='-KPIC'
6535 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6538 CC_SHARED_OPTS='unknown'
6539 MK_SHARED_LIB='echo unknown'
6543 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6544 case "$cf_cv_shlib_version" in
6546 case "$MK_SHARED_LIB" in
6548 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6551 { echo "$as_me:6551: WARNING: ignored --with-shlib-version" >&5
6552 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6558 if test -n "$cf_try_cflags"
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6561 "${as_me:-configure}"
6563 int main(int argc, char *argv[])
6566 return (argv[argc-1] == 0) ;
6569 cf_save_CFLAGS="$CFLAGS"
6570 for cf_opt in $cf_try_cflags
6572 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6573 echo "$as_me:6573: checking if CFLAGS option -$cf_opt works" >&5
6574 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6575 if { (eval echo "$as_me:6575: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>&5
6578 echo "$as_me:6578: \$? = $ac_status" >&5
6579 (exit $ac_status); }; then
6580 echo "$as_me:6580: result: yes" >&5
6581 echo "${ECHO_T}yes" >&6
6582 cf_save_CFLAGS="$CFLAGS"
6584 echo "$as_me:6584: result: no" >&5
6585 echo "${ECHO_T}no" >&6
6588 CFLAGS="$cf_save_CFLAGS"
6591 # RPATH_LIST is a colon-separated list of directories
6592 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6593 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6595 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6597 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6599 echo "${as_me:-configure}:6599: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6601 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6603 echo "${as_me:-configure}:6603: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6605 for model in $cf_list_models; do
6609 echo "$as_me:6609: checking for additional libtool options" >&5
6610 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6612 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6613 if test "${with_libtool_opts+set}" = set; then
6614 withval="$with_libtool_opts"
6615 with_libtool_opts=$withval
6617 with_libtool_opts=no
6619 echo "$as_me:6619: result: $with_libtool_opts" >&5
6620 echo "${ECHO_T}$with_libtool_opts" >&6
6622 case .$with_libtool_opts in
6626 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6630 echo "$as_me:6630: checking if exported-symbols file should be used" >&5
6631 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6633 # Check whether --with-export-syms or --without-export-syms was given.
6634 if test "${with_export_syms+set}" = set; then
6635 withval="$with_export_syms"
6636 with_export_syms=$withval
6640 if test "x$with_export_syms" = xyes
6642 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6645 echo "$as_me:6645: result: $with_export_syms" >&5
6646 echo "${ECHO_T}$with_export_syms" >&6
6647 if test "x$with_export_syms" != xno
6649 EXPORT_SYMS="-export-symbols $with_export_syms"
6655 if test "$CC_SHARED_OPTS" = "unknown"; then
6656 { { echo "$as_me:6656: error: Shared libraries are not supported in this version" >&5
6657 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6658 { (exit 1); exit 1; }; }
6660 # workaround for inept transition to PIE vs PIC...
6661 echo "$as_me:6661: checking if current CFLAGS link properly" >&5
6662 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6663 cat >conftest.$ac_ext <<_ACEOF
6664 #line 6664 "configure"
6665 #include "confdefs.h"
6670 printf("Hello work\n");
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:6676: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>&5
6679 echo "$as_me:6679: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:6682: \"$ac_try\"") >&5
6685 echo "$as_me:6685: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6689 echo "$as_me: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6694 echo "$as_me:6694: result: $cf_cflags_work" >&5
6695 echo "${ECHO_T}$cf_cflags_work" >&6
6696 if test "$cf_cflags_work" = no
6698 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6700 echo "${as_me:-configure}:6700: testing try to work around by appending shared-options ..." 1>&5
6702 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6705 echo "$as_me:6705: checking if versioned-symbols file should be used" >&5
6706 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6708 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6709 if test "${with_versioned_syms+set}" = set; then
6710 withval="$with_versioned_syms"
6711 with_versioned_syms=$withval
6713 with_versioned_syms=no
6715 if test "x$with_versioned_syms" = xyes
6717 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6720 echo "$as_me:6720: result: $with_versioned_syms" >&5
6721 echo "${ECHO_T}$with_versioned_syms" >&6
6727 if test "x$with_versioned_syms" != xno
6729 RESULTING_SYMS=$with_versioned_syms
6730 case "x$MK_SHARED_LIB" in
6732 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6733 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6734 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6736 echo "${as_me:-configure}:6736: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6740 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6741 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6742 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6744 echo "${as_me:-configure}:6744: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6748 { echo "$as_me:6748: WARNING: this system does not support versioned-symbols" >&5
6749 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6753 # Linux ld can selectively override scope, e.g., of symbols beginning with
6754 # "_" by first declaring some as global, and then using a wildcard to
6755 # declare the others as local. Some other loaders cannot do this. Check
6756 # by constructing a (very) simple shared library and inspecting its
6758 if test "x$VERSIONED_SYMS" != "x"
6760 echo "$as_me:6760: checking if wildcards can be used to selectively omit symbols" >&5
6761 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6767 cat >conftest.ver <<EOF
6796 cat >conftest.$ac_ext <<EOF
6797 #line 6797 "configure"
6798 int _ismissing(void) { return 1; }
6799 int _localf1(void) { return 1; }
6800 int _localf2(void) { return 2; }
6801 int globalf1(void) { return 1; }
6802 int globalf2(void) { return 2; }
6803 int _sublocalf1(void) { return 1; }
6804 int _sublocalf2(void) { return 2; }
6805 int subglobalf1(void) { return 1; }
6806 int subglobalf2(void) { return 2; }
6808 cat >conftest.mk <<EOF
6811 CPPFLAGS=${CPPFLAGS}
6814 VERSIONED_SYMS=${VERSIONED_SYMS}
6815 RESULTING_SYMS=conftest.ver
6816 MK_SHARED_LIB=${MK_SHARED_LIB}
6817 conftest.so: conftest.$ac_cv_objext
6818 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6821 # compile source, make library
6822 if make -f conftest.mk 2>&5 >/dev/null
6824 # test for missing symbol in either Data or Text section
6825 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6826 test -n "$cf_missing" && WILDCARD_SYMS=yes
6828 echo "$as_me:6828: result: $WILDCARD_SYMS" >&5
6829 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6838 # pretend that ncurses==ncursesw==ncursest
6839 echo "$as_me:6839: checking if you want to disable library suffixes" >&5
6840 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6842 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6843 if test "${enable_lib_suffixes+set}" = set; then
6844 enableval="$enable_lib_suffixes"
6845 test "$enableval" != no && enableval=yes
6846 if test "$enableval" != "yes" ; then
6847 disable_lib_suffixes=yes
6849 disable_lib_suffixes=no
6853 disable_lib_suffixes=no
6856 echo "$as_me:6856: result: $disable_lib_suffixes" >&5
6857 echo "${ECHO_T}$disable_lib_suffixes" >&6
6859 ### If we're building with rpath, try to link non-standard libs that way too.
6860 if test "$DFT_LWR_MODEL" = "shared"; then
6862 echo "$as_me:6862: checking if rpath-hack should be disabled" >&5
6863 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6865 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6866 if test "${enable_rpath_hack+set}" = set; then
6867 enableval="$enable_rpath_hack"
6868 test "$enableval" != no && enableval=yes
6869 if test "$enableval" != "yes" ; then
6870 cf_disable_rpath_hack=yes
6872 cf_disable_rpath_hack=no
6876 cf_disable_rpath_hack=no
6879 echo "$as_me:6879: result: $cf_disable_rpath_hack" >&5
6880 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6881 if test "$cf_disable_rpath_hack" = no ; then
6883 echo "$as_me:6883: checking for updated LDFLAGS" >&5
6884 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6885 if test -n "$LD_RPATH_OPT" ; then
6886 echo "$as_me:6886: result: maybe" >&5
6887 echo "${ECHO_T}maybe" >&6
6891 # Extract the first word of "$ac_prog", so it can be a program name with args.
6892 set dummy $ac_prog; ac_word=$2
6893 echo "$as_me:6893: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6895 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 if test -n "$cf_ldd_prog"; then
6899 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6901 ac_save_IFS=$IFS; IFS=$ac_path_separator
6903 for ac_dir in $ac_dummy; do
6905 test -z "$ac_dir" && ac_dir=.
6906 $as_executable_p "$ac_dir/$ac_word" || continue
6907 ac_cv_prog_cf_ldd_prog="$ac_prog"
6908 echo "$as_me:6908: found $ac_dir/$ac_word" >&5
6914 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6915 if test -n "$cf_ldd_prog"; then
6916 echo "$as_me:6916: result: $cf_ldd_prog" >&5
6917 echo "${ECHO_T}$cf_ldd_prog" >&6
6919 echo "$as_me:6919: result: no" >&5
6920 echo "${ECHO_T}no" >&6
6923 test -n "$cf_ldd_prog" && break
6925 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6927 cf_rpath_list="/usr/lib /lib"
6928 if test "$cf_ldd_prog" != no
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line 6933 "configure"
6934 #include "confdefs.h"
6944 rm -f conftest.$ac_objext conftest$ac_exeext
6945 if { (eval echo "$as_me:6945: \"$ac_link\"") >&5
6946 (eval $ac_link) 2>&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -s conftest$ac_exeext'
6951 { (eval echo "$as_me:6951: \"$ac_try\"") >&5
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6957 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6959 echo "$as_me: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6964 # If we passed the link-test, but get a "not found" on a given library,
6965 # this could be due to inept reconfiguration of gcc to make it only
6966 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6967 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6968 # /usr/local libraries.
6969 if test -n "$cf_rpath_oops"
6971 for cf_rpath_src in $cf_rpath_oops
6973 for cf_rpath_dir in \
6978 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6980 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6982 echo "${as_me:-configure}:6982: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6984 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6992 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6994 echo "${as_me:-configure}:6994: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6996 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6998 echo "${as_me:-configure}:6998: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7001 for cf_rpath_src in $LDFLAGS
7003 case $cf_rpath_src in
7006 # check if this refers to a directory which we will ignore
7008 if test -n "$cf_rpath_list"
7010 for cf_rpath_item in $cf_rpath_list
7012 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7020 if test "$cf_rpath_skip" = no
7022 # transform the option
7023 if test "$LD_RPATH_OPT" = "-R " ; then
7024 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7026 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7029 # if we have not already added this, add it now
7030 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7031 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7033 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7035 echo "${as_me:-configure}:7035: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7037 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7042 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7044 LDFLAGS=$cf_rpath_dst
7046 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7048 echo "${as_me:-configure}:7048: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7050 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7052 echo "${as_me:-configure}:7052: testing ...checking LIBS $LIBS ..." 1>&5
7055 for cf_rpath_src in $LIBS
7057 case $cf_rpath_src in
7060 # check if this refers to a directory which we will ignore
7062 if test -n "$cf_rpath_list"
7064 for cf_rpath_item in $cf_rpath_list
7066 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7074 if test "$cf_rpath_skip" = no
7076 # transform the option
7077 if test "$LD_RPATH_OPT" = "-R " ; then
7078 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7080 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7083 # if we have not already added this, add it now
7084 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7085 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7087 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7089 echo "${as_me:-configure}:7089: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7091 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7096 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7100 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7102 echo "${as_me:-configure}:7102: testing ...checked LIBS $LIBS ..." 1>&5
7104 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7106 echo "${as_me:-configure}:7106: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7109 echo "$as_me:7109: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7117 ###############################################################################
7119 ### use option --with-extra-suffix to append suffix to headers and libraries
7120 echo "$as_me:7120: checking if you wish to append extra suffix to header/library paths" >&5
7121 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7124 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7125 if test "${with_extra_suffix+set}" = set; then
7126 withval="$with_extra_suffix"
7131 EXTRA_SUFFIX=$cf_cv_abi_version
7134 EXTRA_SUFFIX=$withval
7139 echo "$as_me:7139: result: $EXTRA_SUFFIX" >&5
7140 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7142 ### use option --disable-overwrite to leave out the link to -lcurses
7143 echo "$as_me:7143: checking if you wish to install ncurses overwriting curses" >&5
7144 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7146 # Check whether --enable-overwrite or --disable-overwrite was given.
7147 if test "${enable_overwrite+set}" = set; then
7148 enableval="$enable_overwrite"
7149 with_overwrite=$enableval
7151 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7153 echo "$as_me:7153: result: $with_overwrite" >&5
7154 echo "${ECHO_T}$with_overwrite" >&6
7156 echo "$as_me:7156: checking if external terminfo-database is used" >&5
7157 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7159 # Check whether --enable-database or --disable-database was given.
7160 if test "${enable_database+set}" = set; then
7161 enableval="$enable_database"
7162 use_database=$enableval
7166 echo "$as_me:7166: result: $use_database" >&5
7167 echo "${ECHO_T}$use_database" >&6
7171 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7174 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7178 NCURSES_USE_DATABASE=0
7179 if test "$use_database" != no ; then
7180 NCURSES_USE_DATABASE=1
7182 echo "$as_me:7182: checking which terminfo source-file will be installed" >&5
7183 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7185 # Check whether --with-database or --without-database was given.
7186 if test "${with_database+set}" = set; then
7187 withval="$with_database"
7188 TERMINFO_SRC=$withval
7190 echo "$as_me:7190: result: $TERMINFO_SRC" >&5
7191 echo "${ECHO_T}$TERMINFO_SRC" >&6
7193 echo "$as_me:7193: checking whether to use hashed database instead of directory/tree" >&5
7194 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7196 # Check whether --with-hashed-db or --without-hashed-db was given.
7197 if test "${with_hashed_db+set}" = set; then
7198 withval="$with_hashed_db"
7203 echo "$as_me:7203: result: $with_hashed_db" >&5
7204 echo "${ECHO_T}$with_hashed_db" >&6
7209 echo "$as_me:7209: checking for list of fallback descriptions" >&5
7210 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7212 # Check whether --with-fallbacks or --without-fallbacks was given.
7213 if test "${with_fallbacks+set}" = set; then
7214 withval="$with_fallbacks"
7215 with_fallback=$withval
7219 echo "$as_me:7219: result: $with_fallback" >&5
7220 echo "${ECHO_T}$with_fallback" >&6
7221 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7223 echo "$as_me:7223: checking if you want modern xterm or antique" >&5
7224 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7226 # Check whether --with-xterm-new or --without-xterm-new was given.
7227 if test "${with_xterm_new+set}" = set; then
7228 withval="$with_xterm_new"
7229 with_xterm_new=$withval
7233 case $with_xterm_new in
7234 (no) with_xterm_new=xterm-old;;
7235 (*) with_xterm_new=xterm-new;;
7237 echo "$as_me:7237: result: $with_xterm_new" >&5
7238 echo "${ECHO_T}$with_xterm_new" >&6
7239 WHICH_XTERM=$with_xterm_new
7241 echo "$as_me:7241: checking if xterm backspace sends BS or DEL" >&5
7242 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7244 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7245 if test "${with_xterm_kbs+set}" = set; then
7246 withval="$with_xterm_kbs"
7247 with_xterm_kbs=$withval
7251 case x$with_xterm_kbs in
7252 (xyes|xno|xBS|xbs|x8)
7259 with_xterm_kbs=$withval
7262 echo "$as_me:7262: result: $with_xterm_kbs" >&5
7263 echo "${ECHO_T}$with_xterm_kbs" >&6
7264 XTERM_KBS=$with_xterm_kbs
7267 if test "$use_database" = no ; then
7268 TERMINFO="${datadir}/terminfo"
7272 echo "$as_me:7272: checking for list of terminfo directories" >&5
7273 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7275 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7276 if test "${with_terminfo_dirs+set}" = set; then
7277 withval="$with_terminfo_dirs"
7280 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7282 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7284 for cf_src_path in $withval
7287 if test "x$prefix" != xNONE; then
7288 cf_path_syntax="$prefix"
7290 cf_path_syntax="$ac_default_prefix"
7293 case ".$cf_src_path" in
7298 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7300 (.\${*prefix}*|.\${*dir}*)
7301 eval cf_src_path="$cf_src_path"
7302 case ".$cf_src_path" in
7304 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7309 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7312 { { echo "$as_me:7312: error: expected a pathname, not \"$cf_src_path\"" >&5
7313 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7314 { (exit 1); exit 1; }; }
7318 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7319 cf_dst_path="${cf_dst_path}${cf_src_path}"
7323 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7324 # so we have to check/work around. We do prefer the result of "eval"...
7325 eval cf_dst_eval="$cf_dst_path"
7326 case "x$cf_dst_eval" in
7328 TERMINFO_DIRS=$cf_dst_path
7331 TERMINFO_DIRS="$cf_dst_eval"
7335 echo "$as_me:7335: result: $TERMINFO_DIRS" >&5
7336 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7337 test -n "$TERMINFO_DIRS" &&
7338 cat >>confdefs.h <<EOF
7339 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7342 echo "$as_me:7342: checking for default terminfo directory" >&5
7343 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7345 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7346 if test "${with_default_terminfo_dir+set}" = set; then
7347 withval="$with_default_terminfo_dir"
7350 withval="${TERMINFO:-${datadir}/terminfo}"
7351 fi; if test -n "${datadir}/terminfo" ; then
7353 if test "x$prefix" != xNONE; then
7354 cf_path_syntax="$prefix"
7356 cf_path_syntax="$ac_default_prefix"
7364 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7366 (.\${*prefix}*|.\${*dir}*)
7367 eval withval="$withval"
7370 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7375 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7378 { { echo "$as_me:7378: error: expected a pathname, not \"$withval\"" >&5
7379 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7380 { (exit 1); exit 1; }; }
7385 eval TERMINFO="$withval"
7387 echo "$as_me:7387: result: $TERMINFO" >&5
7388 echo "${ECHO_T}$TERMINFO" >&6
7390 cat >>confdefs.h <<EOF
7391 #define TERMINFO "$TERMINFO"
7396 ### use option --disable-big-core to make tic run on small machines
7397 ### We need 4Mb, check if we can allocate 50% more than that.
7398 echo "$as_me:7398: checking if big-core option selected" >&5
7399 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7401 # Check whether --enable-big-core or --disable-big-core was given.
7402 if test "${enable_big_core+set}" = set; then
7403 enableval="$enable_big_core"
7404 with_big_core=$enableval
7406 if test "$cross_compiling" = yes; then
7409 cat >conftest.$ac_ext <<_ACEOF
7410 #line 7410 "configure"
7411 #include "confdefs.h"
7416 unsigned long n = 6000000L;
7417 char *s = malloc(n);
7420 ${cf_cv_main_return:-return}(s == 0);
7423 rm -f conftest$ac_exeext
7424 if { (eval echo "$as_me:7424: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>&5
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7429 { (eval echo "$as_me:7429: \"$ac_try\"") >&5
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7436 echo "$as_me: program exited with status $ac_status" >&5
7437 echo "$as_me: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7441 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7444 echo "$as_me:7444: result: $with_big_core" >&5
7445 echo "${ECHO_T}$with_big_core" >&6
7446 test "x$with_big_core" = "xyes" &&
7447 cat >>confdefs.h <<\EOF
7448 #define HAVE_BIG_CORE 1
7451 ### ISO C only guarantees 512-char strings, we have tables which load faster
7452 ### when constructed using "big" strings. More than the C compiler, the awk
7453 ### program is a limit on most vendor UNIX systems. Check that we can build.
7454 echo "$as_me:7454: checking if big-strings option selected" >&5
7455 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7457 # Check whether --enable-big-strings or --disable-big-strings was given.
7458 if test "${enable_big_strings+set}" = set; then
7459 enableval="$enable_big_strings"
7460 with_big_strings=$enableval
7465 eval with_big_strings=no
7468 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7469 | $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
7470 eval with_big_strings=yes
7472 eval with_big_strings=no
7478 echo "$as_me:7478: result: $with_big_strings" >&5
7479 echo "${ECHO_T}$with_big_strings" >&6
7482 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7484 ### use option --enable-termcap to compile in the termcap fallback support
7485 echo "$as_me:7485: checking if you want termcap-fallback support" >&5
7486 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7488 # Check whether --enable-termcap or --disable-termcap was given.
7489 if test "${enable_termcap+set}" = set; then
7490 enableval="$enable_termcap"
7491 with_termcap=$enableval
7495 echo "$as_me:7495: result: $with_termcap" >&5
7496 echo "${ECHO_T}$with_termcap" >&6
7498 NCURSES_USE_TERMCAP=0
7499 if test "x$with_termcap" != "xyes" ; then
7500 if test "$use_database" = no ; then
7501 if test -z "$with_fallback" ; then
7502 { { echo "$as_me:7502: error: You have disabled the database w/o specifying fallbacks" >&5
7503 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7504 { (exit 1); exit 1; }; }
7508 cat >>confdefs.h <<\EOF
7509 #define PURE_TERMINFO 1
7514 if test "$with_ticlib" != no ; then
7515 { { echo "$as_me:7515: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7516 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7517 { (exit 1); exit 1; }; }
7520 NCURSES_USE_TERMCAP=1
7521 echo "$as_me:7521: checking for list of termcap files" >&5
7522 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7524 # Check whether --with-termpath or --without-termpath was given.
7525 if test "${with_termpath+set}" = set; then
7526 withval="$with_termpath"
7529 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7531 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7533 for cf_src_path in $withval
7536 if test "x$prefix" != xNONE; then
7537 cf_path_syntax="$prefix"
7539 cf_path_syntax="$ac_default_prefix"
7542 case ".$cf_src_path" in
7547 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7549 (.\${*prefix}*|.\${*dir}*)
7550 eval cf_src_path="$cf_src_path"
7551 case ".$cf_src_path" in
7553 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7558 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7561 { { echo "$as_me:7561: error: expected a pathname, not \"$cf_src_path\"" >&5
7562 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7563 { (exit 1); exit 1; }; }
7567 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7568 cf_dst_path="${cf_dst_path}${cf_src_path}"
7572 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7573 # so we have to check/work around. We do prefer the result of "eval"...
7574 eval cf_dst_eval="$cf_dst_path"
7575 case "x$cf_dst_eval" in
7577 TERMPATH=$cf_dst_path
7580 TERMPATH="$cf_dst_eval"
7584 echo "$as_me:7584: result: $TERMPATH" >&5
7585 echo "${ECHO_T}$TERMPATH" >&6
7586 test -n "$TERMPATH" &&
7587 cat >>confdefs.h <<EOF
7588 #define TERMPATH "$TERMPATH"
7591 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7592 echo "$as_me:7592: checking if fast termcap-loader is needed" >&5
7593 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7595 # Check whether --enable-getcap or --disable-getcap was given.
7596 if test "${enable_getcap+set}" = set; then
7597 enableval="$enable_getcap"
7598 with_getcap=$enableval
7602 echo "$as_me:7602: result: $with_getcap" >&5
7603 echo "${ECHO_T}$with_getcap" >&6
7604 test "x$with_getcap" = "xyes" &&
7605 cat >>confdefs.h <<\EOF
7606 #define USE_GETCAP 1
7609 echo "$as_me:7609: checking if translated termcaps will be cached in ~/.terminfo" >&5
7610 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7612 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7613 if test "${enable_getcap_cache+set}" = set; then
7614 enableval="$enable_getcap_cache"
7615 with_getcap_cache=$enableval
7617 with_getcap_cache=no
7619 echo "$as_me:7619: result: $with_getcap_cache" >&5
7620 echo "${ECHO_T}$with_getcap_cache" >&6
7621 test "x$with_getcap_cache" = "xyes" &&
7622 cat >>confdefs.h <<\EOF
7623 #define USE_GETCAP_CACHE 1
7628 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7629 echo "$as_me:7629: checking if ~/.terminfo is wanted" >&5
7630 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7632 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7633 if test "${enable_home_terminfo+set}" = set; then
7634 enableval="$enable_home_terminfo"
7635 with_home_terminfo=$enableval
7637 with_home_terminfo=yes
7639 echo "$as_me:7639: result: $with_home_terminfo" >&5
7640 echo "${ECHO_T}$with_home_terminfo" >&6
7641 test "x$with_home_terminfo" = "xyes" &&
7642 cat >>confdefs.h <<\EOF
7643 #define USE_HOME_TERMINFO 1
7646 echo "$as_me:7646: checking if you want to use restricted environment when running as root" >&5
7647 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7649 # Check whether --enable-root-environ or --disable-root-environ was given.
7650 if test "${enable_root_environ+set}" = set; then
7651 enableval="$enable_root_environ"
7652 with_root_environ=$enableval
7654 with_root_environ=yes
7656 echo "$as_me:7656: result: $with_root_environ" >&5
7657 echo "${ECHO_T}$with_root_environ" >&6
7658 test "x$with_root_environ" = xyes &&
7659 cat >>confdefs.h <<\EOF
7660 #define USE_ROOT_ENVIRON 1
7663 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7664 ### to reduce storage requirements for the terminfo database.
7670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7671 echo "$as_me:7671: checking for $ac_header" >&5
7672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 cat >conftest.$ac_ext <<_ACEOF
7677 #line 7677 "configure"
7678 #include "confdefs.h"
7679 #include <$ac_header>
7681 if { (eval echo "$as_me:7681: \"$ac_cpp conftest.$ac_ext\"") >&5
7682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7684 egrep -v '^ *\+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 (exit $ac_status); } >/dev/null; then
7689 if test -s conftest.err; then
7690 ac_cpp_err=$ac_c_preproc_warn_flag
7697 if test -z "$ac_cpp_err"; then
7698 eval "$as_ac_Header=yes"
7700 echo "$as_me: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7702 eval "$as_ac_Header=no"
7704 rm -f conftest.err conftest.$ac_ext
7706 echo "$as_me:7706: result: `eval echo '${'$as_ac_Header'}'`" >&5
7707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7709 cat >>confdefs.h <<EOF
7710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7721 echo "$as_me:7721: checking for $ac_func" >&5
7722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7723 if eval "test \"\${$as_ac_var+set}\" = set"; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 cat >conftest.$ac_ext <<_ACEOF
7727 #line 7727 "configure"
7728 #include "confdefs.h"
7729 /* System header to define __stub macros and hopefully few prototypes,
7730 which can conflict with char $ac_func (); below. */
7732 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7750 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (eval echo "$as_me:7758: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7761 echo "$as_me:7761: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (eval echo "$as_me:7764: \"$ac_try\"") >&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 eval "$as_ac_var=yes"
7771 echo "$as_me: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 eval "$as_ac_var=no"
7775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7777 echo "$as_me:7777: result: `eval echo '${'$as_ac_var'}'`" >&5
7778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7779 if test `eval echo '${'$as_ac_var'}'` = yes; then
7780 cat >>confdefs.h <<EOF
7781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7787 if test "$cross_compiling" = yes ; then
7793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7794 echo "$as_me:7794: checking for $ac_func" >&5
7795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7796 if eval "test \"\${$as_ac_var+set}\" = set"; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line 7800 "configure"
7801 #include "confdefs.h"
7802 /* System header to define __stub macros and hopefully few prototypes,
7803 which can conflict with char $ac_func (); below. */
7805 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7817 /* The GNU C library defines this for functions which it implements
7818 to always fail with ENOSYS. Some functions are actually named
7819 something starting with __ and the normal name is an alias. */
7820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7823 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (eval echo "$as_me:7831: \"$ac_link\"") >&5
7832 (eval $ac_link) 2>&5
7834 echo "$as_me:7834: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:7837: \"$ac_try\"") >&5
7840 echo "$as_me:7840: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 eval "$as_ac_var=yes"
7844 echo "$as_me: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 eval "$as_ac_var=no"
7848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7850 echo "$as_me:7850: result: `eval echo '${'$as_ac_var'}'`" >&5
7851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7852 if test `eval echo '${'$as_ac_var'}'` = yes; then
7853 cat >>confdefs.h <<EOF
7854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7861 echo "$as_me:7861: checking if link/symlink functions work" >&5
7862 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7863 if test "${cf_cv_link_funcs+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 for cf_func in link symlink ; do
7869 if test "$cross_compiling" = yes; then
7871 eval 'ac_cv_func_'$cf_func'=error'
7873 cat >conftest.$ac_ext <<_ACEOF
7874 #line 7874 "configure"
7875 #include "confdefs.h"
7877 #include <sys/types.h>
7878 #include <sys/stat.h>
7879 #ifdef HAVE_UNISTD_H
7885 char *src = "config.log";
7886 char *dst = "conftest.chk";
7891 fail = ($cf_func("config.log", "conftest.chk") < 0)
7892 || (stat(dst, &dst_sb) < 0)
7893 || (dst_sb.st_mtime != src_sb.st_mtime);
7899 ${cf_cv_main_return:-return} (fail);
7903 rm -f conftest$ac_exeext
7904 if { (eval echo "$as_me:7904: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
7908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7909 { (eval echo "$as_me:7909: \"$ac_try\"") >&5
7912 echo "$as_me:7912: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7915 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7916 eval 'ac_cv_func_'$cf_func'=yes'
7918 echo "$as_me: program exited with status $ac_status" >&5
7919 echo "$as_me: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7922 eval 'ac_cv_func_'$cf_func'=no'
7924 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7927 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7930 echo "$as_me:7930: result: $cf_cv_link_funcs" >&5
7931 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7932 test "$ac_cv_func_link" = yes &&
7933 cat >>confdefs.h <<\EOF
7937 test "$ac_cv_func_symlink" = yes &&
7938 cat >>confdefs.h <<\EOF
7939 #define HAVE_SYMLINK 1
7947 # soft links (symbolic links) are useful for some systems where hard links do
7948 # not work, or to make it simpler to copy terminfo trees around.
7949 if test "x$ac_cv_func_symlink" = xyes ; then
7950 echo "$as_me:7950: checking if tic should use symbolic links" >&5
7951 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7953 # Check whether --enable-symlinks or --disable-symlinks was given.
7954 if test "${enable_symlinks+set}" = set; then
7955 enableval="$enable_symlinks"
7956 with_symlinks=$enableval
7960 echo "$as_me:7960: result: $with_symlinks" >&5
7961 echo "${ECHO_T}$with_symlinks" >&6
7964 # If we have hard links and did not choose to use soft links instead, there is
7965 # no reason to make this choice optional - use the hard links.
7966 if test "$with_symlinks" = no ; then
7967 echo "$as_me:7967: checking if tic should use hard links" >&5
7968 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7969 if test "x$ac_cv_func_link" = xyes ; then
7974 echo "$as_me:7974: result: $with_links" >&5
7975 echo "${ECHO_T}$with_links" >&6
7978 test "x$with_links" = xyes &&
7979 cat >>confdefs.h <<\EOF
7983 test "x$with_symlinks" = xyes &&
7984 cat >>confdefs.h <<\EOF
7985 #define USE_SYMLINKS 1
7988 ### use option --enable-broken-linker to force on use of broken-linker support
7989 echo "$as_me:7989: checking if you want broken-linker support code" >&5
7990 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7992 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7993 if test "${enable_broken_linker+set}" = set; then
7994 enableval="$enable_broken_linker"
7995 with_broken_linker=$enableval
7997 with_broken_linker=${BROKEN_LINKER:-no}
7999 echo "$as_me:7999: result: $with_broken_linker" >&5
8000 echo "${ECHO_T}$with_broken_linker" >&6
8003 if test "x$with_broken_linker" = xyes ; then
8005 cat >>confdefs.h <<\EOF
8006 #define BROKEN_LINKER 1
8010 elif test "$DFT_LWR_MODEL" = shared ; then
8011 case $cf_cv_system_name in
8014 cat >>confdefs.h <<\EOF
8015 #define BROKEN_LINKER 1
8019 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
8021 echo "${as_me:-configure}:8021: testing cygwin linker is broken anyway ..." 1>&5
8027 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
8028 echo "$as_me:8028: checking if tputs should process BSD-style prefix padding" >&5
8029 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
8031 # Check whether --enable-bsdpad or --disable-bsdpad was given.
8032 if test "${enable_bsdpad+set}" = set; then
8033 enableval="$enable_bsdpad"
8034 with_bsdpad=$enableval
8038 echo "$as_me:8038: result: $with_bsdpad" >&5
8039 echo "${ECHO_T}$with_bsdpad" >&6
8040 test "x$with_bsdpad" = xyes &&
8041 cat >>confdefs.h <<\EOF
8045 ### use option --enable-widec to turn on use of wide-character support
8054 # Check to define _XOPEN_SOURCE "automatically"
8055 CPPFLAGS_before_XOPEN="$CPPFLAGS"
8058 cf_POSIX_C_SOURCE=199506L
8063 cf_xopen_source="-D_ALL_SOURCE"
8069 cf_xopen_source="-D_APPLE_C_SOURCE"
8072 cf_xopen_source="-D_DARWIN_C_SOURCE"
8075 (freebsd*|dragonfly*)
8076 # 5.x headers associate
8077 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
8078 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
8079 cf_POSIX_C_SOURCE=200112L
8081 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8084 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
8087 cf_xopen_source="-D_HPUX_SOURCE"
8090 cf_xopen_source="-D_SGI_SOURCE"
8093 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
8095 echo "$as_me:8095: checking if we must define _GNU_SOURCE" >&5
8096 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
8097 if test "${cf_cv_gnu_source+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line 8102 "configure"
8103 #include "confdefs.h"
8104 #include <sys/types.h>
8109 #ifndef _XOPEN_SOURCE
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:8117: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8120 echo "$as_me:8120: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:8123: \"$ac_try\"") >&5
8126 echo "$as_me:8126: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8130 echo "$as_me: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8134 cat >conftest.$ac_ext <<_ACEOF
8135 #line 8135 "configure"
8136 #include "confdefs.h"
8137 #include <sys/types.h>
8142 #ifdef _XOPEN_SOURCE
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:8150: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>&5
8153 echo "$as_me:8153: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -s conftest.$ac_objext'
8156 { (eval echo "$as_me:8156: \"$ac_try\"") >&5
8159 echo "$as_me:8159: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8163 echo "$as_me: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8165 cf_cv_gnu_source=yes
8167 rm -f conftest.$ac_objext conftest.$ac_ext
8171 rm -f conftest.$ac_objext conftest.$ac_ext
8174 echo "$as_me:8174: result: $cf_cv_gnu_source" >&5
8175 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8177 if test "$cf_cv_gnu_source" = yes
8179 echo "$as_me:8179: checking if we should also define _DEFAULT_SOURCE" >&5
8180 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
8181 if test "${cf_cv_default_source+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line 8187 "configure"
8188 #include "confdefs.h"
8189 #include <sys/types.h>
8194 #ifdef _DEFAULT_SOURCE
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:8202: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>&5
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:8208: \"$ac_try\"") >&5
8211 echo "$as_me:8211: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 cf_cv_default_source=no
8215 echo "$as_me: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8217 cf_cv_default_source=yes
8219 rm -f conftest.$ac_objext conftest.$ac_ext
8222 echo "$as_me:8222: result: $cf_cv_default_source" >&5
8223 echo "${ECHO_T}$cf_cv_default_source" >&6
8224 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
8229 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
8232 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
8235 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8237 cf_save_CFLAGS="$CFLAGS"
8238 cf_save_CPPFLAGS="$CPPFLAGS"
8240 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8241 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8242 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8244 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8245 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8246 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8248 echo "$as_me:8248: checking if we should define _POSIX_C_SOURCE" >&5
8249 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8250 if test "${cf_cv_posix_c_source+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 echo "${as_me:-configure}:8254: testing if the symbol is already defined go no further ..." 1>&5
8256 cat >conftest.$ac_ext <<_ACEOF
8257 #line 8257 "configure"
8258 #include "confdefs.h"
8259 #include <sys/types.h>
8264 #ifndef _POSIX_C_SOURCE
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:8272: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>&5
8275 echo "$as_me:8275: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (eval echo "$as_me:8278: \"$ac_try\"") >&5
8281 echo "$as_me:8281: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 cf_cv_posix_c_source=no
8285 echo "$as_me: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 cf_want_posix_source=no
8288 case .$cf_POSIX_C_SOURCE in
8290 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8293 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8294 cf_want_posix_source=yes
8297 cf_want_posix_source=yes
8300 if test "$cf_want_posix_source" = yes ; then
8301 cat >conftest.$ac_ext <<_ACEOF
8302 #line 8302 "configure"
8303 #include "confdefs.h"
8304 #include <sys/types.h>
8309 #ifdef _POSIX_SOURCE
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:8317: \"$ac_compile\"") >&5
8318 (eval $ac_compile) 2>&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -s conftest.$ac_objext'
8323 { (eval echo "$as_me:8323: \"$ac_try\"") >&5
8326 echo "$as_me:8326: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8330 echo "$as_me: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8332 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8334 rm -f conftest.$ac_objext conftest.$ac_ext
8337 echo "${as_me:-configure}:8337: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8339 CFLAGS="$cf_trim_CFLAGS"
8340 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8342 echo "${as_me:-configure}:8342: testing if the second compile does not leave our definition intact error ..." 1>&5
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line 8345 "configure"
8346 #include "confdefs.h"
8347 #include <sys/types.h>
8352 #ifndef _POSIX_C_SOURCE
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:8360: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>&5
8363 echo "$as_me:8363: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:8366: \"$ac_try\"") >&5
8369 echo "$as_me:8369: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8373 echo "$as_me: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 cf_cv_posix_c_source=no
8377 rm -f conftest.$ac_objext conftest.$ac_ext
8378 CFLAGS="$cf_save_CFLAGS"
8379 CPPFLAGS="$cf_save_CPPFLAGS"
8382 rm -f conftest.$ac_objext conftest.$ac_ext
8385 echo "$as_me:8385: result: $cf_cv_posix_c_source" >&5
8386 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8388 if test "$cf_cv_posix_c_source" != no ; then
8389 CFLAGS="$cf_trim_CFLAGS"
8390 CPPFLAGS="$cf_trim_CPPFLAGS"
8395 cf_new_extra_cppflags=
8397 for cf_add_cflags in $cf_cv_posix_c_source
8399 case $cf_fix_cppflags in
8401 case $cf_add_cflags in
8402 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8403 case $cf_add_cflags in
8405 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8407 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8408 && test -z "${cf_tst_cflags}" \
8409 && cf_fix_cppflags=yes
8411 if test $cf_fix_cppflags = yes ; then
8413 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8414 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8417 elif test "${cf_tst_cflags}" = "\"'" ; then
8419 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8420 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8430 case $cf_add_cflags in
8432 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8434 CPPFLAGS=`echo "$CPPFLAGS" | \
8435 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8436 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8441 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8442 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8449 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8450 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8457 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8458 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8460 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8462 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8463 && test -z "${cf_tst_cflags}" \
8464 && cf_fix_cppflags=no
8469 if test -n "$cf_new_cflags" ; then
8471 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8472 CFLAGS="${CFLAGS}$cf_new_cflags"
8476 if test -n "$cf_new_cppflags" ; then
8478 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8479 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8483 if test -n "$cf_new_extra_cppflags" ; then
8485 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8486 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8494 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8497 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8498 cf_xopen_source="-D_BSD_SOURCE"
8502 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8505 cf_xopen_source="-D_OSF_SOURCE"
8508 cf_xopen_source="-D_QNX_SOURCE"
8511 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8514 cf_xopen_source="-D__EXTENSIONS__"
8515 cf_cv_xopen_source=broken
8517 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8523 echo "$as_me:8523: checking if we should define _XOPEN_SOURCE" >&5
8524 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8525 if test "${cf_cv_xopen_source+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line 8530 "configure"
8531 #include "confdefs.h"
8535 #include <sys/types.h>
8541 #ifndef _XOPEN_SOURCE
8548 rm -f conftest.$ac_objext
8549 if { (eval echo "$as_me:8549: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>&5
8552 echo "$as_me:8552: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:8555: \"$ac_try\"") >&5
8558 echo "$as_me:8558: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 cf_cv_xopen_source=no
8562 echo "$as_me: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8565 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8566 cat >conftest.$ac_ext <<_ACEOF
8567 #line 8567 "configure"
8568 #include "confdefs.h"
8572 #include <sys/types.h>
8578 #ifdef _XOPEN_SOURCE
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:8586: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>&5
8589 echo "$as_me:8589: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:8592: \"$ac_try\"") >&5
8595 echo "$as_me:8595: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 cf_cv_xopen_source=no
8599 echo "$as_me: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8601 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8603 rm -f conftest.$ac_objext conftest.$ac_ext
8607 rm -f conftest.$ac_objext conftest.$ac_ext
8610 echo "$as_me:8610: result: $cf_cv_xopen_source" >&5
8611 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8613 if test "$cf_cv_xopen_source" != no ; then
8615 CFLAGS=`echo "$CFLAGS" | \
8616 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8617 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8619 CPPFLAGS=`echo "$CPPFLAGS" | \
8620 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8621 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8623 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8628 cf_new_extra_cppflags=
8630 for cf_add_cflags in $cf_temp_xopen_source
8632 case $cf_fix_cppflags in
8634 case $cf_add_cflags in
8635 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8636 case $cf_add_cflags in
8638 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8640 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8641 && test -z "${cf_tst_cflags}" \
8642 && cf_fix_cppflags=yes
8644 if test $cf_fix_cppflags = yes ; then
8646 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8647 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8650 elif test "${cf_tst_cflags}" = "\"'" ; then
8652 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8653 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8663 case $cf_add_cflags in
8665 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8667 CPPFLAGS=`echo "$CPPFLAGS" | \
8668 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8669 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8674 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8675 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8682 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8683 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8690 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8691 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8693 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8695 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8696 && test -z "${cf_tst_cflags}" \
8697 && cf_fix_cppflags=no
8702 if test -n "$cf_new_cflags" ; then
8704 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8705 CFLAGS="${CFLAGS}$cf_new_cflags"
8709 if test -n "$cf_new_cppflags" ; then
8711 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8712 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8716 if test -n "$cf_new_extra_cppflags" ; then
8718 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8719 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8725 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8727 cf_save_CFLAGS="$CFLAGS"
8728 cf_save_CPPFLAGS="$CPPFLAGS"
8730 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8731 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8732 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8734 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8735 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8736 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8738 echo "$as_me:8738: checking if we should define _POSIX_C_SOURCE" >&5
8739 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8740 if test "${cf_cv_posix_c_source+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 echo "${as_me:-configure}:8744: testing if the symbol is already defined go no further ..." 1>&5
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line 8747 "configure"
8748 #include "confdefs.h"
8749 #include <sys/types.h>
8754 #ifndef _POSIX_C_SOURCE
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:8762: \"$ac_compile\"") >&5
8763 (eval $ac_compile) 2>&5
8765 echo "$as_me:8765: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -s conftest.$ac_objext'
8768 { (eval echo "$as_me:8768: \"$ac_try\"") >&5
8771 echo "$as_me:8771: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 cf_cv_posix_c_source=no
8775 echo "$as_me: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 cf_want_posix_source=no
8778 case .$cf_POSIX_C_SOURCE in
8780 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8783 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8784 cf_want_posix_source=yes
8787 cf_want_posix_source=yes
8790 if test "$cf_want_posix_source" = yes ; then
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line 8792 "configure"
8793 #include "confdefs.h"
8794 #include <sys/types.h>
8799 #ifdef _POSIX_SOURCE
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:8807: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>&5
8810 echo "$as_me:8810: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:8813: \"$ac_try\"") >&5
8816 echo "$as_me:8816: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8820 echo "$as_me: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8824 rm -f conftest.$ac_objext conftest.$ac_ext
8827 echo "${as_me:-configure}:8827: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8829 CFLAGS="$cf_trim_CFLAGS"
8830 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8832 echo "${as_me:-configure}:8832: testing if the second compile does not leave our definition intact error ..." 1>&5
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line 8835 "configure"
8836 #include "confdefs.h"
8837 #include <sys/types.h>
8842 #ifndef _POSIX_C_SOURCE
8849 rm -f conftest.$ac_objext
8850 if { (eval echo "$as_me:8850: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>&5
8853 echo "$as_me:8853: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -s conftest.$ac_objext'
8856 { (eval echo "$as_me:8856: \"$ac_try\"") >&5
8859 echo "$as_me:8859: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8863 echo "$as_me: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 cf_cv_posix_c_source=no
8867 rm -f conftest.$ac_objext conftest.$ac_ext
8868 CFLAGS="$cf_save_CFLAGS"
8869 CPPFLAGS="$cf_save_CPPFLAGS"
8872 rm -f conftest.$ac_objext conftest.$ac_ext
8875 echo "$as_me:8875: result: $cf_cv_posix_c_source" >&5
8876 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8878 if test "$cf_cv_posix_c_source" != no ; then
8879 CFLAGS="$cf_trim_CFLAGS"
8880 CPPFLAGS="$cf_trim_CPPFLAGS"
8885 cf_new_extra_cppflags=
8887 for cf_add_cflags in $cf_cv_posix_c_source
8889 case $cf_fix_cppflags in
8891 case $cf_add_cflags in
8892 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8893 case $cf_add_cflags in
8895 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8897 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8898 && test -z "${cf_tst_cflags}" \
8899 && cf_fix_cppflags=yes
8901 if test $cf_fix_cppflags = yes ; then
8903 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8904 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8907 elif test "${cf_tst_cflags}" = "\"'" ; then
8909 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8910 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8920 case $cf_add_cflags in
8922 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8924 CPPFLAGS=`echo "$CPPFLAGS" | \
8925 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8926 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8931 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8932 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8939 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8940 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8947 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8948 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8950 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8952 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8953 && test -z "${cf_tst_cflags}" \
8954 && cf_fix_cppflags=no
8959 if test -n "$cf_new_cflags" ; then
8961 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8962 CFLAGS="${CFLAGS}$cf_new_cflags"
8966 if test -n "$cf_new_cppflags" ; then
8968 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8969 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8973 if test -n "$cf_new_extra_cppflags" ; then
8975 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8976 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8985 if test -n "$cf_xopen_source" ; then
8990 cf_new_extra_cppflags=
8992 for cf_add_cflags in $cf_xopen_source
8994 case $cf_fix_cppflags in
8996 case $cf_add_cflags in
8997 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8998 case $cf_add_cflags in
9000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9002 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9003 && test -z "${cf_tst_cflags}" \
9004 && cf_fix_cppflags=yes
9006 if test $cf_fix_cppflags = yes ; then
9008 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9009 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9012 elif test "${cf_tst_cflags}" = "\"'" ; then
9014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9015 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9025 case $cf_add_cflags in
9027 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9029 CPPFLAGS=`echo "$CPPFLAGS" | \
9030 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9031 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9036 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9037 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9044 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9045 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9052 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9053 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9055 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9057 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9058 && test -z "${cf_tst_cflags}" \
9059 && cf_fix_cppflags=no
9064 if test -n "$cf_new_cflags" ; then
9065 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
9067 echo "${as_me:-configure}:9067: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
9069 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9070 CFLAGS="${CFLAGS}$cf_new_cflags"
9074 if test -n "$cf_new_cppflags" ; then
9075 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
9077 echo "${as_me:-configure}:9077: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
9079 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9080 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9084 if test -n "$cf_new_extra_cppflags" ; then
9085 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
9087 echo "${as_me:-configure}:9087: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
9089 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9090 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9096 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
9097 echo "$as_me:9097: checking if _XOPEN_SOURCE really is set" >&5
9098 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 #line 9100 "configure"
9101 #include "confdefs.h"
9107 #ifndef _XOPEN_SOURCE
9114 rm -f conftest.$ac_objext
9115 if { (eval echo "$as_me:9115: \"$ac_compile\"") >&5
9116 (eval $ac_compile) 2>&5
9118 echo "$as_me:9118: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -s conftest.$ac_objext'
9121 { (eval echo "$as_me:9121: \"$ac_try\"") >&5
9124 echo "$as_me:9124: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 cf_XOPEN_SOURCE_set=yes
9128 echo "$as_me: failed program was:" >&5
9129 cat conftest.$ac_ext >&5
9130 cf_XOPEN_SOURCE_set=no
9132 rm -f conftest.$ac_objext conftest.$ac_ext
9133 echo "$as_me:9133: result: $cf_XOPEN_SOURCE_set" >&5
9134 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
9135 if test $cf_XOPEN_SOURCE_set = yes
9137 cat >conftest.$ac_ext <<_ACEOF
9138 #line 9138 "configure"
9139 #include "confdefs.h"
9145 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
9152 rm -f conftest.$ac_objext
9153 if { (eval echo "$as_me:9153: \"$ac_compile\"") >&5
9154 (eval $ac_compile) 2>&5
9156 echo "$as_me:9156: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -s conftest.$ac_objext'
9159 { (eval echo "$as_me:9159: \"$ac_try\"") >&5
9162 echo "$as_me:9162: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 cf_XOPEN_SOURCE_set_ok=yes
9166 echo "$as_me: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 cf_XOPEN_SOURCE_set_ok=no
9170 rm -f conftest.$ac_objext conftest.$ac_ext
9171 if test $cf_XOPEN_SOURCE_set_ok = no
9173 { echo "$as_me:9173: WARNING: _XOPEN_SOURCE is lower than requested" >&5
9174 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
9178 echo "$as_me:9178: checking if we should define _XOPEN_SOURCE" >&5
9179 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
9180 if test "${cf_cv_xopen_source+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 cat >conftest.$ac_ext <<_ACEOF
9185 #line 9185 "configure"
9186 #include "confdefs.h"
9190 #include <sys/types.h>
9196 #ifndef _XOPEN_SOURCE
9203 rm -f conftest.$ac_objext
9204 if { (eval echo "$as_me:9204: \"$ac_compile\"") >&5
9205 (eval $ac_compile) 2>&5
9207 echo "$as_me:9207: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:9210: \"$ac_try\"") >&5
9213 echo "$as_me:9213: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 cf_cv_xopen_source=no
9217 echo "$as_me: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9220 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9221 cat >conftest.$ac_ext <<_ACEOF
9222 #line 9222 "configure"
9223 #include "confdefs.h"
9227 #include <sys/types.h>
9233 #ifdef _XOPEN_SOURCE
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:9241: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>&5
9244 echo "$as_me:9244: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
9246 { ac_try='test -s conftest.$ac_objext'
9247 { (eval echo "$as_me:9247: \"$ac_try\"") >&5
9250 echo "$as_me:9250: \$? = $ac_status" >&5
9251 (exit $ac_status); }; }; then
9252 cf_cv_xopen_source=no
9254 echo "$as_me: failed program was:" >&5
9255 cat conftest.$ac_ext >&5
9256 cf_cv_xopen_source=$cf_XOPEN_SOURCE
9258 rm -f conftest.$ac_objext conftest.$ac_ext
9262 rm -f conftest.$ac_objext conftest.$ac_ext
9265 echo "$as_me:9265: result: $cf_cv_xopen_source" >&5
9266 echo "${ECHO_T}$cf_cv_xopen_source" >&6
9268 if test "$cf_cv_xopen_source" != no ; then
9270 CFLAGS=`echo "$CFLAGS" | \
9271 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9272 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9274 CPPFLAGS=`echo "$CPPFLAGS" | \
9275 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9276 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9278 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9283 cf_new_extra_cppflags=
9285 for cf_add_cflags in $cf_temp_xopen_source
9287 case $cf_fix_cppflags in
9289 case $cf_add_cflags in
9290 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9291 case $cf_add_cflags in
9293 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9295 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9296 && test -z "${cf_tst_cflags}" \
9297 && cf_fix_cppflags=yes
9299 if test $cf_fix_cppflags = yes ; then
9301 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9302 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9305 elif test "${cf_tst_cflags}" = "\"'" ; then
9307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9318 case $cf_add_cflags in
9320 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9322 CPPFLAGS=`echo "$CPPFLAGS" | \
9323 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9324 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9329 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9330 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9337 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9338 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9345 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9346 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9348 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9350 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9351 && test -z "${cf_tst_cflags}" \
9352 && cf_fix_cppflags=no
9357 if test -n "$cf_new_cflags" ; then
9359 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9360 CFLAGS="${CFLAGS}$cf_new_cflags"
9364 if test -n "$cf_new_cppflags" ; then
9366 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9367 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9371 if test -n "$cf_new_extra_cppflags" ; then
9373 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9374 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9383 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9385 # Work around breakage on OS X
9387 echo "$as_me:9387: checking if SIGWINCH is defined" >&5
9388 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9389 if test "${cf_cv_define_sigwinch+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9394 #line 9394 "configure"
9395 #include "confdefs.h"
9397 #include <sys/types.h>
9398 #include <sys/signal.h>
9408 rm -f conftest.$ac_objext
9409 if { (eval echo "$as_me:9409: \"$ac_compile\"") >&5
9410 (eval $ac_compile) 2>&5
9412 echo "$as_me:9412: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -s conftest.$ac_objext'
9415 { (eval echo "$as_me:9415: \"$ac_try\"") >&5
9418 echo "$as_me:9418: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 cf_cv_define_sigwinch=yes
9422 echo "$as_me: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 cat >conftest.$ac_ext <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9428 #undef _XOPEN_SOURCE
9429 #undef _POSIX_SOURCE
9430 #undef _POSIX_C_SOURCE
9431 #include <sys/types.h>
9432 #include <sys/signal.h>
9442 rm -f conftest.$ac_objext
9443 if { (eval echo "$as_me:9443: \"$ac_compile\"") >&5
9444 (eval $ac_compile) 2>&5
9446 echo "$as_me:9446: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:9449: \"$ac_try\"") >&5
9452 echo "$as_me:9452: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 cf_cv_define_sigwinch=maybe
9456 echo "$as_me: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 cf_cv_define_sigwinch=no
9460 rm -f conftest.$ac_objext conftest.$ac_ext
9463 rm -f conftest.$ac_objext conftest.$ac_ext
9466 echo "$as_me:9466: result: $cf_cv_define_sigwinch" >&5
9467 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9469 if test "$cf_cv_define_sigwinch" = maybe ; then
9470 echo "$as_me:9470: checking for actual SIGWINCH definition" >&5
9471 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9472 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 cf_cv_fixup_sigwinch=unknown
9478 while test $cf_sigwinch != 1
9480 cat >conftest.$ac_ext <<_ACEOF
9481 #line 9481 "configure"
9482 #include "confdefs.h"
9484 #undef _XOPEN_SOURCE
9485 #undef _POSIX_SOURCE
9486 #undef _POSIX_C_SOURCE
9487 #include <sys/types.h>
9488 #include <sys/signal.h>
9494 #if SIGWINCH != $cf_sigwinch
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:9503: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>&5
9506 echo "$as_me:9506: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -s conftest.$ac_objext'
9509 { (eval echo "$as_me:9509: \"$ac_try\"") >&5
9512 echo "$as_me:9512: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 cf_cv_fixup_sigwinch=$cf_sigwinch
9517 echo "$as_me: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9520 rm -f conftest.$ac_objext conftest.$ac_ext
9522 cf_sigwinch=`expr $cf_sigwinch - 1`
9526 echo "$as_me:9526: result: $cf_cv_fixup_sigwinch" >&5
9527 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9529 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9530 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9534 # Checks for CODESET support.
9536 echo "$as_me:9536: checking for nl_langinfo and CODESET" >&5
9537 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9538 if test "${am_cv_langinfo_codeset+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9542 #line 9542 "configure"
9543 #include "confdefs.h"
9544 #include <langinfo.h>
9548 char* cs = nl_langinfo(CODESET);
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (eval echo "$as_me:9554: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9557 echo "$as_me:9557: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -s conftest$ac_exeext'
9560 { (eval echo "$as_me:9560: \"$ac_try\"") >&5
9563 echo "$as_me:9563: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 am_cv_langinfo_codeset=yes
9567 echo "$as_me: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 am_cv_langinfo_codeset=no
9571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9574 echo "$as_me:9574: result: $am_cv_langinfo_codeset" >&5
9575 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9576 if test $am_cv_langinfo_codeset = yes; then
9578 cat >>confdefs.h <<\EOF
9579 #define HAVE_LANGINFO_CODESET 1
9584 # use these variables to work around a defect in gcc's fixincludes.
9588 echo "$as_me:9588: checking if you want wide-character code" >&5
9589 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9591 # Check whether --enable-widec or --disable-widec was given.
9592 if test "${enable_widec+set}" = set; then
9593 enableval="$enable_widec"
9594 with_widec=$enableval
9598 echo "$as_me:9598: result: $with_widec" >&5
9599 echo "${ECHO_T}$with_widec" >&6
9601 NCURSES_WCWIDTH_GRAPHICS=1
9603 if test "x$with_widec" = xyes ; then
9604 if test "x$disable_lib_suffixes" = xno ; then
9605 LIB_SUFFIX="w${LIB_SUFFIX}"
9608 cat >>confdefs.h <<\EOF
9609 #define USE_WIDEC_SUPPORT 1
9612 cat >>confdefs.h <<\EOF
9613 #define NCURSES_WIDECHAR 1
9621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9622 echo "$as_me:9622: checking for $ac_header" >&5
9623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 cat >conftest.$ac_ext <<_ACEOF
9628 #line 9628 "configure"
9629 #include "confdefs.h"
9630 #include <$ac_header>
9632 if { (eval echo "$as_me:9632: \"$ac_cpp conftest.$ac_ext\"") >&5
9633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9635 egrep -v '^ *\+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:9638: \$? = $ac_status" >&5
9639 (exit $ac_status); } >/dev/null; then
9640 if test -s conftest.err; then
9641 ac_cpp_err=$ac_c_preproc_warn_flag
9648 if test -z "$ac_cpp_err"; then
9649 eval "$as_ac_Header=yes"
9651 echo "$as_me: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9653 eval "$as_ac_Header=no"
9655 rm -f conftest.err conftest.$ac_ext
9657 echo "$as_me:9657: result: `eval echo '${'$as_ac_Header'}'`" >&5
9658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9660 cat >>confdefs.h <<EOF
9661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9667 echo "$as_me:9667: checking if wchar.h can be used as is" >&5
9668 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9669 if test "${cf_cv_wchar_h_okay+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line 9674 "configure"
9675 #include "confdefs.h"
9681 #ifdef HAVE_WCTYPE_H
9690 int bar = iswpunct(foo)
9695 rm -f conftest.$ac_objext
9696 if { (eval echo "$as_me:9696: \"$ac_compile\"") >&5
9697 (eval $ac_compile) 2>&5
9699 echo "$as_me:9699: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -s conftest.$ac_objext'
9702 { (eval echo "$as_me:9702: \"$ac_try\"") >&5
9705 echo "$as_me:9705: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 cf_cv_wchar_h_okay=yes
9709 echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 cf_cv_wchar_h_okay=no
9713 rm -f conftest.$ac_objext conftest.$ac_ext
9715 echo "$as_me:9715: result: $cf_cv_wchar_h_okay" >&5
9716 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9718 if test $cf_cv_wchar_h_okay = no
9721 echo "$as_me:9721: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9722 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line 9724 "configure"
9725 #include "confdefs.h"
9726 #include <sys/types.h>
9732 #ifndef _XOPEN_SOURCE_EXTENDED
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:9740: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>&5
9743 echo "$as_me:9743: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:9746: \"$ac_try\"") >&5
9749 echo "$as_me:9749: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9753 echo "$as_me: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9757 rm -f conftest.$ac_objext conftest.$ac_ext
9758 echo "$as_me:9758: result: $cf_result" >&5
9759 echo "${ECHO_T}$cf_result" >&6
9761 if test "$cf_result" = yes ; then
9762 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9763 elif test "x" != "x" ; then
9764 echo "$as_me:9764: checking checking for compatible value versus " >&5
9765 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9766 cat >conftest.$ac_ext <<_ACEOF
9767 #line 9767 "configure"
9768 #include "confdefs.h"
9769 #include <sys/types.h>
9775 #if _XOPEN_SOURCE_EXTENDED- < 0
9782 rm -f conftest.$ac_objext
9783 if { (eval echo "$as_me:9783: \"$ac_compile\"") >&5
9784 (eval $ac_compile) 2>&5
9786 echo "$as_me:9786: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:9789: \"$ac_try\"") >&5
9792 echo "$as_me:9792: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9796 echo "$as_me: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9800 rm -f conftest.$ac_objext conftest.$ac_ext
9801 echo "$as_me:9801: result: $cf_result" >&5
9802 echo "${ECHO_T}$cf_result" >&6
9803 if test "$cf_result" = no ; then
9804 # perhaps we can override it - try...
9805 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9811 echo "$as_me:9811: checking if wcwidth agrees graphics are single-width" >&5
9812 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
9813 if test "${cf_cv_wcwidth_graphics+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 cat >conftest.in <<CF_EOF
9819 0x250c upper left corner
9820 0x2514 lower left corner
9821 0x2510 upper right corner
9822 0x2518 lower right corner
9823 0x251c tee pointing left
9824 0x2524 tee pointing right
9825 0x2534 tee pointing up
9826 0x252c tee pointing down
9827 0x2500 horizontal line
9828 0x2502 vertical line
9829 0x253c large plus or crossover
9833 0x2592 checker board (stipple)
9834 0x00b0 degree symbol
9837 - Teletype 5410v1 symbols
9838 0x2190 arrow pointing left
9839 0x2192 arrow pointing right
9840 0x2193 arrow pointing down
9841 0x2191 arrow pointing up
9842 0x2592 board of squares
9843 0x2603 lantern symbol
9844 0x25ae solid square block
9845 - these defaults were invented for ncurses
9848 0x2264 less-than-or-equal-to
9849 0x2265 greater-than-or-equal-to
9852 0x00a3 pound-sterling symbol
9853 - thick-line-drawing
9854 0x250f upper left corner
9855 0x2517 lower left corner
9856 0x2513 upper right corner
9857 0x251b lower right corner
9858 0x2523 tee pointing left
9859 0x252b tee pointing right
9860 0x253b tee pointing up
9861 0x2533 tee pointing down
9862 0x2501 horizontal line
9863 0x2503 vertical line
9864 0x254b large plus or crossover
9865 - double-line-drawing
9866 0x2554 upper left corner
9867 0x255a lower left corner
9868 0x2557 upper right corner
9869 0x255d lower right corner
9870 0x2563 tee pointing left
9871 0x2560 tee pointing right
9872 0x2569 tee pointing up
9873 0x2566 tee pointing down
9874 0x2550 horizontal line
9875 0x2551 vertical line
9876 0x256c large plus or crossover
9878 if test "$cross_compiling" = yes; then
9879 cf_cv_wcwidth_graphics=unknown
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line 9882 "configure"
9883 #include "confdefs.h"
9896 char buffer[MY_LEN + 1];
9897 char notes[MY_LEN + 1];
9901 if (setlocale(LC_ALL, "en_US.UTF8") ||
9902 setlocale(LC_ALL, "en_US.UTF-8") ||
9903 setlocale(LC_ALL, "en_US.utf8") ||
9904 setlocale(LC_ALL, "en_US.utf-8")) {
9905 if ((fp = fopen("conftest.in", "r")) != 0) {
9906 while (fgets(buffer, MY_LEN, fp) != 0) {
9907 if (*buffer == '-') {
9908 fprintf(stderr, "\t%s", buffer);
9909 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
9911 if (wcwidth(value) == 1)
9913 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
9915 fprintf(stderr, "?\t%s", buffer);
9920 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
9921 return (totals == passed) ? 0 : 1;
9925 rm -f conftest$ac_exeext
9926 if { (eval echo "$as_me:9926: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>&5
9929 echo "$as_me:9929: \$? = $ac_status" >&5
9930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 cf_cv_wcwidth_graphics=yes
9938 echo "$as_me: program exited with status $ac_status" >&5
9939 echo "$as_me: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 cf_cv_wcwidth_graphics=no
9943 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9947 echo "$as_me:9947: result: $cf_cv_wcwidth_graphics" >&5
9948 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
9950 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
9953 NCURSES_CH_T=cchar_t
9955 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9958 echo "$as_me:9958: checking for $ac_func" >&5
9959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9960 if eval "test \"\${$as_ac_var+set}\" = set"; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.$ac_ext <<_ACEOF
9964 #line 9964 "configure"
9965 #include "confdefs.h"
9966 /* System header to define __stub macros and hopefully few prototypes,
9967 which can conflict with char $ac_func (); below. */
9969 /* Override any gcc2 internal prototype to avoid an error. */
9973 /* We use char because int might match the return type of a gcc2
9974 builtin and then its argument prototype would still apply. */
9981 /* The GNU C library defines this for functions which it implements
9982 to always fail with ENOSYS. Some functions are actually named
9983 something starting with __ and the normal name is an alias. */
9984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9987 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (eval echo "$as_me:9995: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>&5
9998 echo "$as_me:9998: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (eval echo "$as_me:10001: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10004 echo "$as_me:10004: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 eval "$as_ac_var=yes"
10008 echo "$as_me: failed program was:" >&5
10009 cat conftest.$ac_ext >&5
10010 eval "$as_ac_var=no"
10012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10014 echo "$as_me:10014: result: `eval echo '${'$as_ac_var'}'`" >&5
10015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10016 if test `eval echo '${'$as_ac_var'}'` = yes; then
10017 cat >>confdefs.h <<EOF
10018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 if test "x$ac_cv_func_putwc" != xyes ; then
10026 echo "$as_me:10026: checking for multibyte character support" >&5
10027 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
10028 if test "${cf_cv_utf8_lib+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 cf_save_LIBS="$LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10034 #line 10034 "configure"
10035 #include "confdefs.h"
10037 #include <stdlib.h>
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (eval echo "$as_me:10047: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10050 echo "$as_me:10050: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:10053: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:10056: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10060 echo "$as_me: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10063 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
10064 # will be set on completion of the AC_TRY_LINK below.
10065 cf_cv_header_path_utf8=
10066 cf_cv_library_path_utf8=
10068 echo "${as_me:-configure}:10068: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
10070 cf_save_LIBS="$LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 #line 10073 "configure"
10074 #include "confdefs.h"
10076 #include <libutf8.h>
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (eval echo "$as_me:10086: \"$ac_link\"") >&5
10087 (eval $ac_link) 2>&5
10089 echo "$as_me:10089: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -s conftest$ac_exeext'
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
10098 cf_cv_find_linkage_utf8=yes
10099 cf_cv_header_path_utf8=/usr/include
10100 cf_cv_library_path_utf8=/usr/lib
10103 echo "$as_me: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10106 LIBS="-lutf8 $cf_save_LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10109 #line 10109 "configure"
10110 #include "confdefs.h"
10112 #include <libutf8.h>
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:10122: \"$ac_link\"") >&5
10123 (eval $ac_link) 2>&5
10125 echo "$as_me:10125: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:10128: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:10131: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10134 cf_cv_find_linkage_utf8=yes
10135 cf_cv_header_path_utf8=/usr/include
10136 cf_cv_library_path_utf8=/usr/lib
10137 cf_cv_library_file_utf8="-lutf8"
10140 echo "$as_me: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 cf_cv_find_linkage_utf8=no
10144 LIBS="$cf_save_LIBS"
10146 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
10148 echo "${as_me:-configure}:10148: testing find linkage for utf8 library ..." 1>&5
10150 echo "${as_me:-configure}:10150: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
10152 cf_save_CPPFLAGS="$CPPFLAGS"
10153 cf_test_CPPFLAGS="$CPPFLAGS"
10157 # collect the current set of include-directories from compiler flags
10158 cf_header_path_list=""
10159 if test -n "${CFLAGS}${CPPFLAGS}" ; then
10160 for cf_header_path in $CPPFLAGS $CFLAGS
10162 case $cf_header_path in
10164 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
10166 test "x$cf_header_path" != "xNONE" && \
10167 test -d "$cf_header_path" && \
10169 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
10170 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
10171 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
10172 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
10173 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
10174 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
10177 cf_header_path_list="$cf_header_path_list $cf_search"
10183 # add the variations for the package we are looking for
10187 test "x$prefix" != "xNONE" && \
10188 test -d "$prefix" && \
10190 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
10191 test -d $prefix/include && cf_search="$cf_search $prefix/include"
10192 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
10193 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
10194 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
10195 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
10198 for cf_subdir_prefix in \
10207 test "x$cf_subdir_prefix" != "x$prefix" && \
10208 test -d "$cf_subdir_prefix" && \
10209 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10210 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
10211 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
10212 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
10213 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
10214 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
10215 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
10220 test "$includedir" != NONE && \
10221 test "$includedir" != "/usr/include" && \
10222 test -d "$includedir" && {
10223 test -d $includedir && cf_search="$cf_search $includedir"
10224 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
10227 test "$oldincludedir" != NONE && \
10228 test "$oldincludedir" != "/usr/include" && \
10229 test -d "$oldincludedir" && {
10230 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
10231 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
10234 cf_search="$cf_search $cf_header_path_list"
10236 for cf_cv_header_path_utf8 in $cf_search
10238 if test -d $cf_cv_header_path_utf8 ; then
10239 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
10241 echo "${as_me:-configure}:10241: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
10243 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
10244 cat >conftest.$ac_ext <<_ACEOF
10245 #line 10245 "configure"
10246 #include "confdefs.h"
10248 #include <libutf8.h>
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:10258: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10261 echo "$as_me:10261: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -s conftest.$ac_objext'
10264 { (eval echo "$as_me:10264: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:10267: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10270 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
10272 echo "${as_me:-configure}:10272: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
10274 cf_cv_find_linkage_utf8=maybe
10275 cf_test_CPPFLAGS="$CPPFLAGS"
10278 echo "$as_me: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10281 CPPFLAGS="$cf_save_CPPFLAGS"
10284 rm -f conftest.$ac_objext conftest.$ac_ext
10288 if test "$cf_cv_find_linkage_utf8" = maybe ; then
10290 echo "${as_me:-configure}:10290: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
10292 cf_save_LIBS="$LIBS"
10293 cf_save_LDFLAGS="$LDFLAGS"
10295 if test "$cf_cv_find_linkage_utf8" != yes ; then
10298 cf_library_path_list=""
10299 if test -n "${LDFLAGS}${LIBS}" ; then
10300 for cf_library_path in $LDFLAGS $LIBS
10302 case $cf_library_path in
10304 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10306 test "x$cf_library_path" != "xNONE" && \
10307 test -d "$cf_library_path" && \
10309 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10310 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
10311 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
10312 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
10313 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
10314 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
10317 cf_library_path_list="$cf_library_path_list $cf_search"
10325 test "x$prefix" != "xNONE" && \
10326 test -d "$prefix" && \
10328 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10329 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
10330 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
10331 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
10332 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
10333 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
10336 for cf_subdir_prefix in \
10345 test "x$cf_subdir_prefix" != "x$prefix" && \
10346 test -d "$cf_subdir_prefix" && \
10347 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10348 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10349 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
10350 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
10351 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
10352 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
10353 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
10358 cf_search="$cf_library_path_list $cf_search"
10360 for cf_cv_library_path_utf8 in $cf_search
10362 if test -d $cf_cv_library_path_utf8 ; then
10363 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
10365 echo "${as_me:-configure}:10365: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
10367 CPPFLAGS="$cf_test_CPPFLAGS"
10368 LIBS="-lutf8 $cf_save_LIBS"
10369 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10374 #include <libutf8.h>
10383 rm -f conftest.$ac_objext conftest$ac_exeext
10384 if { (eval echo "$as_me:10384: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10387 echo "$as_me:10387: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:10390: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:10393: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10396 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
10398 echo "${as_me:-configure}:10398: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
10400 cf_cv_find_linkage_utf8=yes
10401 cf_cv_library_file_utf8="-lutf8"
10404 echo "$as_me: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10407 CPPFLAGS="$cf_save_CPPFLAGS"
10408 LIBS="$cf_save_LIBS"
10409 LDFLAGS="$cf_save_LDFLAGS"
10412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10415 CPPFLAGS="$cf_save_CPPFLAGS"
10416 LDFLAGS="$cf_save_LDFLAGS"
10420 cf_cv_find_linkage_utf8=no
10424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10429 LIBS="$cf_save_LIBS"
10431 if test "$cf_cv_find_linkage_utf8" = yes ; then
10432 cf_cv_utf8_lib=add-on
10438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10440 echo "$as_me:10440: result: $cf_cv_utf8_lib" >&5
10441 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10443 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10444 # ncurses/ncursesw:
10445 if test "$cf_cv_utf8_lib" = "add-on" ; then
10447 cat >>confdefs.h <<\EOF
10448 #define HAVE_LIBUTF8_H 1
10451 if test -n "$cf_cv_header_path_utf8" ; then
10452 for cf_add_incdir in $cf_cv_header_path_utf8
10454 while test $cf_add_incdir != /usr/include
10456 if test -d $cf_add_incdir
10459 if test -n "$CFLAGS$CPPFLAGS" ; then
10460 # a loop is needed to ensure we can add subdirs of existing dirs
10461 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10462 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10463 cf_have_incdir=yes; break
10468 if test "$cf_have_incdir" = no ; then
10469 if test "$cf_add_incdir" = /usr/local/include ; then
10470 if test "$GCC" = yes
10472 cf_save_CPPFLAGS=$CPPFLAGS
10473 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 #line 10475 "configure"
10476 #include "confdefs.h"
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:10487: \"$ac_compile\"") >&5
10488 (eval $ac_compile) 2>&5
10490 echo "$as_me:10490: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -s conftest.$ac_objext'
10493 { (eval echo "$as_me:10493: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:10496: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10500 echo "$as_me: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10504 rm -f conftest.$ac_objext conftest.$ac_ext
10505 CPPFLAGS=$cf_save_CPPFLAGS
10510 if test "$cf_have_incdir" = no ; then
10511 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10513 echo "${as_me:-configure}:10513: testing adding $cf_add_incdir to include-path ..." 1>&5
10515 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10517 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10518 test "$cf_top_incdir" = "$cf_add_incdir" && break
10519 cf_add_incdir="$cf_top_incdir"
10530 if test -n "$cf_cv_library_path_utf8" ; then
10531 for cf_add_libdir in $cf_cv_library_path_utf8
10533 if test $cf_add_libdir = /usr/lib ; then
10535 elif test -d $cf_add_libdir
10538 if test -n "$LDFLAGS$LIBS" ; then
10539 # a loop is needed to ensure we can add subdirs of existing dirs
10540 for cf_test_libdir in $LDFLAGS $LIBS ; do
10541 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10542 cf_have_libdir=yes; break
10546 if test "$cf_have_libdir" = no ; then
10547 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10549 echo "${as_me:-configure}:10549: testing adding $cf_add_libdir to library-path ..." 1>&5
10551 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10557 cf_add_libs="$cf_cv_library_file_utf8"
10558 # Filter out duplicates - this happens with badly-designed ".pc" files...
10559 for cf_add_1lib in $LIBS
10561 for cf_add_2lib in $cf_add_libs
10563 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10569 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10571 LIBS="$cf_add_libs"
10575 if test "$cf_cv_utf8_lib" != no ; then
10580 # This is needed on Tru64 5.0 to declare mbstate_t
10581 echo "$as_me:10581: checking if we must include wchar.h to declare mbstate_t" >&5
10582 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10583 if test "${cf_cv_mbstate_t+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 cat >conftest.$ac_ext <<_ACEOF
10588 #line 10588 "configure"
10589 #include "confdefs.h"
10591 #include <stdlib.h>
10592 #include <stdarg.h>
10594 #ifdef HAVE_LIBUTF8_H
10595 #include <libutf8.h>
10605 rm -f conftest.$ac_objext
10606 if { (eval echo "$as_me:10606: \"$ac_compile\"") >&5
10607 (eval $ac_compile) 2>&5
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -s conftest.$ac_objext'
10612 { (eval echo "$as_me:10612: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 cat >conftest.$ac_ext <<_ACEOF
10622 #line 10622 "configure"
10623 #include "confdefs.h"
10625 #include <stdlib.h>
10626 #include <stdarg.h>
10629 #ifdef HAVE_LIBUTF8_H
10630 #include <libutf8.h>
10640 rm -f conftest.$ac_objext
10641 if { (eval echo "$as_me:10641: \"$ac_compile\"") >&5
10642 (eval $ac_compile) 2>&5
10644 echo "$as_me:10644: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -s conftest.$ac_objext'
10647 { (eval echo "$as_me:10647: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:10650: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 cf_cv_mbstate_t=yes
10654 echo "$as_me: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 cf_cv_mbstate_t=unknown
10658 rm -f conftest.$ac_objext conftest.$ac_ext
10660 rm -f conftest.$ac_objext conftest.$ac_ext
10662 echo "$as_me:10662: result: $cf_cv_mbstate_t" >&5
10663 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10665 if test "$cf_cv_mbstate_t" = yes ; then
10667 cat >>confdefs.h <<\EOF
10668 #define NEED_WCHAR_H 1
10674 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10675 if test "$cf_cv_mbstate_t" = unknown ; then
10676 NCURSES_MBSTATE_T=1
10679 # This is needed on Tru64 5.0 to declare wchar_t
10680 echo "$as_me:10680: checking if we must include wchar.h to declare wchar_t" >&5
10681 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10682 if test "${cf_cv_wchar_t+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 cat >conftest.$ac_ext <<_ACEOF
10687 #line 10687 "configure"
10688 #include "confdefs.h"
10690 #include <stdlib.h>
10691 #include <stdarg.h>
10693 #ifdef HAVE_LIBUTF8_H
10694 #include <libutf8.h>
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:10705: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>&5
10708 echo "$as_me:10708: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -s conftest.$ac_objext'
10711 { (eval echo "$as_me:10711: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10714 echo "$as_me:10714: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10718 echo "$as_me: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line 10721 "configure"
10722 #include "confdefs.h"
10724 #include <stdlib.h>
10725 #include <stdarg.h>
10728 #ifdef HAVE_LIBUTF8_H
10729 #include <libutf8.h>
10739 rm -f conftest.$ac_objext
10740 if { (eval echo "$as_me:10740: \"$ac_compile\"") >&5
10741 (eval $ac_compile) 2>&5
10743 echo "$as_me:10743: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try='test -s conftest.$ac_objext'
10746 { (eval echo "$as_me:10746: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 echo "$as_me:10749: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10753 echo "$as_me: failed program was:" >&5
10754 cat conftest.$ac_ext >&5
10755 cf_cv_wchar_t=unknown
10757 rm -f conftest.$ac_objext conftest.$ac_ext
10759 rm -f conftest.$ac_objext conftest.$ac_ext
10761 echo "$as_me:10761: result: $cf_cv_wchar_t" >&5
10762 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10764 if test "$cf_cv_wchar_t" = yes ; then
10766 cat >>confdefs.h <<\EOF
10767 #define NEED_WCHAR_H 1
10773 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10774 if test "$cf_cv_wchar_t" = unknown ; then
10778 # if we find wchar_t in either place, use substitution to provide a fallback.
10779 if test "$cf_cv_wchar_t" != unknown ; then
10780 NCURSES_OK_WCHAR_T=1
10783 # This is needed on Tru64 5.0 to declare wint_t
10784 echo "$as_me:10784: checking if we must include wchar.h to declare wint_t" >&5
10785 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10786 if test "${cf_cv_wint_t+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10791 #line 10791 "configure"
10792 #include "confdefs.h"
10794 #include <stdlib.h>
10795 #include <stdarg.h>
10797 #ifdef HAVE_LIBUTF8_H
10798 #include <libutf8.h>
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:10809: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>&5
10812 echo "$as_me:10812: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -s conftest.$ac_objext'
10815 { (eval echo "$as_me:10815: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:10818: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10822 echo "$as_me: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 cat >conftest.$ac_ext <<_ACEOF
10825 #line 10825 "configure"
10826 #include "confdefs.h"
10828 #include <stdlib.h>
10829 #include <stdarg.h>
10832 #ifdef HAVE_LIBUTF8_H
10833 #include <libutf8.h>
10843 rm -f conftest.$ac_objext
10844 if { (eval echo "$as_me:10844: \"$ac_compile\"") >&5
10845 (eval $ac_compile) 2>&5
10847 echo "$as_me:10847: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try='test -s conftest.$ac_objext'
10850 { (eval echo "$as_me:10850: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10853 echo "$as_me:10853: \$? = $ac_status" >&5
10854 (exit $ac_status); }; }; then
10857 echo "$as_me: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 cf_cv_wint_t=unknown
10861 rm -f conftest.$ac_objext conftest.$ac_ext
10863 rm -f conftest.$ac_objext conftest.$ac_ext
10865 echo "$as_me:10865: result: $cf_cv_wint_t" >&5
10866 echo "${ECHO_T}$cf_cv_wint_t" >&6
10868 if test "$cf_cv_wint_t" = yes ; then
10870 cat >>confdefs.h <<\EOF
10871 #define NEED_WCHAR_H 1
10877 # if we do not find wint_t in either place, use substitution to provide a fallback.
10878 if test "$cf_cv_wint_t" = unknown ; then
10882 # if we find wint_t in either place, use substitution to provide a fallback.
10883 if test "$cf_cv_wint_t" != unknown ; then
10884 NCURSES_OK_WINT_T=1
10887 if test "$NCURSES_MBSTATE_T" != 0; then
10889 cat >>confdefs.h <<\EOF
10890 #define NEED_MBSTATE_T_DEF 1
10896 ### use option --disable-lp64 to allow long chtype
10897 echo "$as_me:10897: checking whether to enable _LP64 definition in curses.h" >&5
10898 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10900 # Check whether --enable-lp64 or --disable-lp64 was given.
10901 if test "${enable_lp64+set}" = set; then
10902 enableval="$enable_lp64"
10903 with_lp64=$enableval
10905 with_lp64=$cf_dft_with_lp64
10907 echo "$as_me:10907: result: $with_lp64" >&5
10908 echo "${ECHO_T}$with_lp64" >&6
10910 if test "x$with_lp64" = xyes ; then
10911 cf_cv_enable_lp64=1
10913 cf_cv_enable_lp64=0
10916 # Check whether --enable-largefile or --disable-largefile was given.
10917 if test "${enable_largefile+set}" = set; then
10918 enableval="$enable_largefile"
10921 if test "$enable_largefile" != no; then
10923 echo "$as_me:10923: checking for special C compiler options needed for large files" >&5
10924 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10925 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 ac_cv_sys_largefile_CC=no
10929 if test "$GCC" != yes; then
10932 # IRIX 6.2 and later do not support large files by default,
10933 # so use the C compiler's -n32 option if that helps.
10934 cat >conftest.$ac_ext <<_ACEOF
10935 #line 10935 "configure"
10936 #include "confdefs.h"
10937 #include <sys/types.h>
10938 /* Check that off_t can represent 2**63 - 1 correctly.
10939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10940 since some C++ compilers masquerading as C compilers
10941 incorrectly reject 9223372036854775807. */
10942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10944 && LARGE_OFF_T % 2147483647 == 1)
10954 rm -f conftest.$ac_objext
10955 if { (eval echo "$as_me:10955: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>&5
10958 echo "$as_me:10958: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:10961: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:10964: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10968 echo "$as_me: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10971 rm -f conftest.$ac_objext
10973 rm -f conftest.$ac_objext
10974 if { (eval echo "$as_me:10974: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>&5
10977 echo "$as_me:10977: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:10980: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:10983: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_sys_largefile_CC=' -n32'; break
10987 echo "$as_me: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10990 rm -f conftest.$ac_objext
10994 rm -f conftest.$ac_ext
10997 echo "$as_me:10997: result: $ac_cv_sys_largefile_CC" >&5
10998 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10999 if test "$ac_cv_sys_largefile_CC" != no; then
11000 CC=$CC$ac_cv_sys_largefile_CC
11003 echo "$as_me:11003: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11004 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
11005 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 ac_cv_sys_file_offset_bits=no
11010 cat >conftest.$ac_ext <<_ACEOF
11011 #line 11011 "configure"
11012 #include "confdefs.h"
11013 #include <sys/types.h>
11014 /* Check that off_t can represent 2**63 - 1 correctly.
11015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11016 since some C++ compilers masquerading as C compilers
11017 incorrectly reject 9223372036854775807. */
11018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11020 && LARGE_OFF_T % 2147483647 == 1)
11030 rm -f conftest.$ac_objext
11031 if { (eval echo "$as_me:11031: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>&5
11034 echo "$as_me:11034: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -s conftest.$ac_objext'
11037 { (eval echo "$as_me:11037: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:11040: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11044 echo "$as_me: failed program was:" >&5
11045 cat conftest.$ac_ext >&5
11047 rm -f conftest.$ac_objext conftest.$ac_ext
11048 cat >conftest.$ac_ext <<_ACEOF
11049 #line 11049 "configure"
11050 #include "confdefs.h"
11051 #define _FILE_OFFSET_BITS 64
11052 #include <sys/types.h>
11053 /* Check that off_t can represent 2**63 - 1 correctly.
11054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11055 since some C++ compilers masquerading as C compilers
11056 incorrectly reject 9223372036854775807. */
11057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11059 && LARGE_OFF_T % 2147483647 == 1)
11069 rm -f conftest.$ac_objext
11070 if { (eval echo "$as_me:11070: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>&5
11073 echo "$as_me:11073: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:11076: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:11079: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_sys_file_offset_bits=64; break
11083 echo "$as_me: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11086 rm -f conftest.$ac_objext conftest.$ac_ext
11090 echo "$as_me:11090: result: $ac_cv_sys_file_offset_bits" >&5
11091 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11092 if test "$ac_cv_sys_file_offset_bits" != no; then
11094 cat >>confdefs.h <<EOF
11095 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11100 echo "$as_me:11100: checking for _LARGE_FILES value needed for large files" >&5
11101 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11102 if test "${ac_cv_sys_large_files+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 ac_cv_sys_large_files=no
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line 11108 "configure"
11109 #include "confdefs.h"
11110 #include <sys/types.h>
11111 /* Check that off_t can represent 2**63 - 1 correctly.
11112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11113 since some C++ compilers masquerading as C compilers
11114 incorrectly reject 9223372036854775807. */
11115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11117 && LARGE_OFF_T % 2147483647 == 1)
11127 rm -f conftest.$ac_objext
11128 if { (eval echo "$as_me:11128: \"$ac_compile\"") >&5
11129 (eval $ac_compile) 2>&5
11131 echo "$as_me:11131: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (eval echo "$as_me:11134: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:11137: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11141 echo "$as_me: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 rm -f conftest.$ac_objext conftest.$ac_ext
11145 cat >conftest.$ac_ext <<_ACEOF
11146 #line 11146 "configure"
11147 #include "confdefs.h"
11148 #define _LARGE_FILES 1
11149 #include <sys/types.h>
11150 /* Check that off_t can represent 2**63 - 1 correctly.
11151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11152 since some C++ compilers masquerading as C compilers
11153 incorrectly reject 9223372036854775807. */
11154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11156 && LARGE_OFF_T % 2147483647 == 1)
11166 rm -f conftest.$ac_objext
11167 if { (eval echo "$as_me:11167: \"$ac_compile\"") >&5
11168 (eval $ac_compile) 2>&5
11170 echo "$as_me:11170: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:11173: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:11176: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_cv_sys_large_files=1; break
11180 echo "$as_me: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11183 rm -f conftest.$ac_objext conftest.$ac_ext
11187 echo "$as_me:11187: result: $ac_cv_sys_large_files" >&5
11188 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11189 if test "$ac_cv_sys_large_files" != no; then
11191 cat >>confdefs.h <<EOF
11192 #define _LARGE_FILES $ac_cv_sys_large_files
11199 if test "$enable_largefile" != no ; then
11200 echo "$as_me:11200: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11201 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11202 if test "${ac_cv_sys_largefile_source+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 ac_cv_sys_largefile_source=no
11207 cat >conftest.$ac_ext <<_ACEOF
11208 #line 11208 "configure"
11209 #include "confdefs.h"
11219 rm -f conftest.$ac_objext
11220 if { (eval echo "$as_me:11220: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>&5
11223 echo "$as_me:11223: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -s conftest.$ac_objext'
11226 { (eval echo "$as_me:11226: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:11229: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11233 echo "$as_me: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11236 rm -f conftest.$ac_objext conftest.$ac_ext
11237 cat >conftest.$ac_ext <<_ACEOF
11238 #line 11238 "configure"
11239 #include "confdefs.h"
11240 #define _LARGEFILE_SOURCE 1
11250 rm -f conftest.$ac_objext
11251 if { (eval echo "$as_me:11251: \"$ac_compile\"") >&5
11252 (eval $ac_compile) 2>&5
11254 echo "$as_me:11254: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -s conftest.$ac_objext'
11257 { (eval echo "$as_me:11257: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:11260: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 ac_cv_sys_largefile_source=1; break
11264 echo "$as_me: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11267 rm -f conftest.$ac_objext conftest.$ac_ext
11271 echo "$as_me:11271: result: $ac_cv_sys_largefile_source" >&5
11272 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11273 if test "$ac_cv_sys_largefile_source" != no; then
11275 cat >>confdefs.h <<EOF
11276 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11282 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11283 # in glibc 2.1.3, but that breaks too many other things.
11284 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11285 echo "$as_me:11285: checking for fseeko" >&5
11286 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11287 if test "${ac_cv_func_fseeko+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 cat >conftest.$ac_ext <<_ACEOF
11291 #line 11291 "configure"
11292 #include "confdefs.h"
11297 return fseeko && fseeko (stdin, 0, 0);
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:11303: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>&5
11306 echo "$as_me:11306: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -s conftest$ac_exeext'
11309 { (eval echo "$as_me:11309: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:11312: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_cv_func_fseeko=yes
11316 echo "$as_me: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11318 ac_cv_func_fseeko=no
11320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11322 echo "$as_me:11322: result: $ac_cv_func_fseeko" >&5
11323 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11324 if test $ac_cv_func_fseeko = yes; then
11326 cat >>confdefs.h <<\EOF
11327 #define HAVE_FSEEKO 1
11332 # Normally we would collect these definitions in the config.h,
11333 # but (like _XOPEN_SOURCE), some environments rely on having these
11334 # defined before any of the system headers are included. Another
11335 # case comes up with C++, e.g., on AIX the compiler compiles the
11336 # header files by themselves before looking at the body files it is
11337 # told to compile. For ncurses, those header files do not include
11339 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
11340 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
11341 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
11343 echo "$as_me:11343: checking whether to use struct dirent64" >&5
11344 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
11345 if test "${cf_cv_struct_dirent64+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 cat >conftest.$ac_ext <<_ACEOF
11350 #line 11350 "configure"
11351 #include "confdefs.h"
11353 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
11354 #include <sys/types.h>
11355 #include <dirent.h>
11361 /* if transitional largefile support is setup, this is true */
11362 extern struct dirent64 * readdir(DIR *);
11363 struct dirent64 *x = readdir((DIR *)0);
11364 struct dirent *y = readdir((DIR *)0);
11371 rm -f conftest.$ac_objext
11372 if { (eval echo "$as_me:11372: \"$ac_compile\"") >&5
11373 (eval $ac_compile) 2>&5
11375 echo "$as_me:11375: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:11378: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:11381: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 cf_cv_struct_dirent64=yes
11385 echo "$as_me: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11387 cf_cv_struct_dirent64=no
11389 rm -f conftest.$ac_objext conftest.$ac_ext
11392 echo "$as_me:11392: result: $cf_cv_struct_dirent64" >&5
11393 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
11394 test "$cf_cv_struct_dirent64" = yes &&
11395 cat >>confdefs.h <<\EOF
11396 #define HAVE_STRUCT_DIRENT64 1
11401 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
11402 echo "$as_me:11402: checking if you want tparm not to use X/Open fixed-parameter list" >&5
11403 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
11405 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
11406 if test "${enable_tparm_varargs+set}" = set; then
11407 enableval="$enable_tparm_varargs"
11408 with_tparm_varargs=$enableval
11410 with_tparm_varargs=yes
11412 echo "$as_me:11412: result: $with_tparm_varargs" >&5
11413 echo "${ECHO_T}$with_tparm_varargs" >&6
11414 NCURSES_TPARM_VARARGS=0
11415 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
11417 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
11418 if test "$with_ticlib" != no ; then
11419 echo "$as_me:11419: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
11420 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
11422 # Check whether --enable-tic-depends or --disable-tic-depends was given.
11423 if test "${enable_tic_depends+set}" = set; then
11424 enableval="$enable_tic_depends"
11425 with_tic_depends=$enableval
11427 with_tic_depends=yes
11429 echo "$as_me:11429: result: $with_tic_depends" >&5
11430 echo "${ECHO_T}$with_tic_depends" >&6
11432 with_tic_depends=no
11435 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
11436 echo "$as_me:11436: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
11437 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
11439 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
11440 if test "${enable_wattr_macros+set}" = set; then
11441 enableval="$enable_wattr_macros"
11442 with_wattr_macros=$enableval
11444 with_wattr_macros=yes
11446 if [ "x$with_wattr_macros" != xyes ]; then
11447 NCURSES_WATTR_MACROS=0
11448 echo "$as_me:11448: result: yes" >&5
11449 echo "${ECHO_T}yes" >&6
11451 NCURSES_WATTR_MACROS=1
11452 echo "$as_me:11452: result: no" >&5
11453 echo "${ECHO_T}no" >&6
11456 echo "$as_me:11456: checking for X11 rgb file" >&5
11457 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
11459 # Check whether --with-x11-rgb or --without-x11-rgb was given.
11460 if test "${with_x11_rgb+set}" = set; then
11461 withval="$with_x11_rgb"
11467 if test "x$RGB_PATH" = xauto
11469 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
11471 /opt/local/share/X11/rgb.txt \
11472 /opt/X11/share/X11/rgb.txt \
11473 /usr/share/X11/rgb.txt \
11474 /usr/X11/share/X11/rgb.txt \
11475 /usr/X11/lib/X11/rgb.txt \
11476 /usr/lib/X11/rgb.txt \
11478 /usr/pkg/lib/X11/rgb.txt \
11479 /usr/X11R7/lib/X11/rgb.txt \
11480 /usr/X11R6/lib/X11/rgb.txt \
11481 /usr/X11R5/lib/X11/rgb.txt \
11482 /usr/X11R4/lib/X11/rgb.txt \
11483 /usr/local/lib/X11/rgb.txt \
11484 /usr/local/share/X11/rgb.txt \
11485 /usr/lib64/X11/rgb.txt
11487 if test -f "$cf_path" ; then
11488 RGB_PATH="$cf_path"
11495 if test "x$prefix" != xNONE; then
11496 cf_path_syntax="$prefix"
11498 cf_path_syntax="$ac_default_prefix"
11501 case ".$cf_path" in
11502 (.\$\(*\)*|.\'*\'*)
11506 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
11508 (.\${*prefix}*|.\${*dir}*)
11509 eval cf_path="$cf_path"
11510 case ".$cf_path" in
11512 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
11517 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
11520 { { echo "$as_me:11520: error: expected a pathname, not \"$cf_path\"" >&5
11521 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
11522 { (exit 1); exit 1; }; }
11528 echo "$as_me:11528: result: $RGB_PATH" >&5
11529 echo "${ECHO_T}$RGB_PATH" >&6
11531 cat >>confdefs.h <<EOF
11532 #define RGB_PATH "$cf_path"
11536 if test "$RGB_PATH" = no
11541 ### use option --with-bool to override bool's type
11542 echo "$as_me:11542: checking for type of bool" >&5
11543 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
11545 # Check whether --with-bool or --without-bool was given.
11546 if test "${with_bool+set}" = set; then
11547 withval="$with_bool"
11548 NCURSES_BOOL="$withval"
11552 echo "$as_me:11552: result: $NCURSES_BOOL" >&5
11553 echo "${ECHO_T}$NCURSES_BOOL" >&6
11555 echo "$as_me:11555: checking for alternate terminal capabilities file" >&5
11556 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
11558 # Check whether --with-caps or --without-caps was given.
11559 if test "${with_caps+set}" = set; then
11560 withval="$with_caps"
11561 TERMINFO_CAPS=Caps.$withval
11565 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
11566 echo "$as_me:11566: result: $TERMINFO_CAPS" >&5
11567 echo "${ECHO_T}$TERMINFO_CAPS" >&6
11569 ### use option --with-chtype to override chtype's type
11570 echo "$as_me:11570: checking for type of chtype" >&5
11571 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11573 # Check whether --with-chtype or --without-chtype was given.
11574 if test "${with_chtype+set}" = set; then
11575 withval="$with_chtype"
11576 NCURSES_CHTYPE="$withval"
11578 NCURSES_CHTYPE=$cf_dft_chtype
11580 echo "$as_me:11580: result: $NCURSES_CHTYPE" >&5
11581 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
11583 ### use option --with-ospeed to override ospeed's type
11584 echo "$as_me:11584: checking for type of ospeed" >&5
11585 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
11587 # Check whether --with-ospeed or --without-ospeed was given.
11588 if test "${with_ospeed+set}" = set; then
11589 withval="$with_ospeed"
11590 NCURSES_OSPEED="$withval"
11592 NCURSES_OSPEED=short
11594 echo "$as_me:11594: result: $NCURSES_OSPEED" >&5
11595 echo "${ECHO_T}$NCURSES_OSPEED" >&6
11597 ### use option --with-mmask-t to override mmask_t's type
11598 echo "$as_me:11598: checking for type of mmask_t" >&5
11599 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
11601 # Check whether --with-mmask-t or --without-mmask-t was given.
11602 if test "${with_mmask_t+set}" = set; then
11603 withval="$with_mmask_t"
11604 NCURSES_MMASK_T="$withval"
11606 NCURSES_MMASK_T=$cf_dft_mmask_t
11608 echo "$as_me:11608: result: $NCURSES_MMASK_T" >&5
11609 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
11611 ### use option --with-ccharw-max to override CCHARW_MAX size
11612 echo "$as_me:11612: checking for size CCHARW_MAX" >&5
11613 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
11615 # Check whether --with-ccharw-max or --without-ccharw-max was given.
11616 if test "${with_ccharw_max+set}" = set; then
11617 withval="$with_ccharw_max"
11618 NCURSES_CCHARW_MAX="$withval"
11620 NCURSES_CCHARW_MAX=5
11622 echo "$as_me:11622: result: $NCURSES_CCHARW_MAX" >&5
11623 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
11625 ### use option --with-tparm-arg to override tparm's argument type
11626 echo "$as_me:11626: checking for type of tparm args" >&5
11627 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
11629 # Check whether --with-tparm-arg or --without-tparm-arg was given.
11630 if test "${with_tparm_arg+set}" = set; then
11631 withval="$with_tparm_arg"
11632 NCURSES_TPARM_ARG="$withval"
11634 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
11636 echo "$as_me:11636: result: $NCURSES_TPARM_ARG" >&5
11637 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
11639 ### Enable compiling-in rcs id's
11640 echo "$as_me:11640: checking if RCS identifiers should be compiled-in" >&5
11641 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
11643 # Check whether --with-rcs-ids or --without-rcs-ids was given.
11644 if test "${with_rcs_ids+set}" = set; then
11645 withval="$with_rcs_ids"
11646 with_rcs_ids=$withval
11650 echo "$as_me:11650: result: $with_rcs_ids" >&5
11651 echo "${ECHO_T}$with_rcs_ids" >&6
11652 test "x$with_rcs_ids" = xyes &&
11653 cat >>confdefs.h <<\EOF
11654 #define USE_RCS_IDS 1
11657 ###############################################################################
11659 echo "$as_me:11659: checking format of man-pages" >&5
11660 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11662 # Check whether --with-manpage-format or --without-manpage-format was given.
11663 if test "${with_manpage_format+set}" = set; then
11664 withval="$with_manpage_format"
11665 MANPAGE_FORMAT=$withval
11667 MANPAGE_FORMAT=unknown
11670 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11671 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11675 case $MANPAGE_FORMAT in
11677 if test -z "$MANPATH" ; then
11678 MANPATH="/usr/man:/usr/share/man"
11681 # look for the 'date' man-page (it's most likely to be installed!)
11687 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11688 for cf_dir in $MANPATH; do
11689 test -z "$cf_dir" && cf_dir=/usr/man
11690 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
11692 cf_test=`echo $cf_name | sed -e 's/*//'`
11693 if test "x$cf_test" = "x$cf_name" ; then
11696 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11697 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11698 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11699 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11713 # if we found a match in either man* or cat*, stop looking
11714 if test -n "$MANPAGE_FORMAT" ; then
11716 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11717 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11723 test $cf_found=yes && break
11726 # only check the first directory in $MANPATH where we find manpages
11727 if test -n "$MANPAGE_FORMAT" ; then
11731 # if we did not find the example, just assume it is normal
11732 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11736 for cf_option in $MANPAGE_FORMAT; do
11738 (gzip|compress|BSDI|normal|formatted|catonly)
11741 cf_unknown="$cf_unknown $cf_option"
11748 echo "$as_me:11748: result: $MANPAGE_FORMAT" >&5
11749 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11750 if test -n "$cf_unknown" ; then
11751 { echo "$as_me:11751: WARNING: Unexpected manpage-format $cf_unknown" >&5
11752 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11755 echo "$as_me:11755: checking for manpage renaming" >&5
11756 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11758 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11759 if test "${with_manpage_renames+set}" = set; then
11760 withval="$with_manpage_renames"
11761 MANPAGE_RENAMES=$withval
11763 MANPAGE_RENAMES=yes
11766 case ".$MANPAGE_RENAMES" in
11770 # Debian 'man' program?
11771 if test -f /etc/debian_version ; then
11772 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11779 if test "$MANPAGE_RENAMES" != no ; then
11780 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11781 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11782 elif test ! -f $MANPAGE_RENAMES ; then
11783 { { echo "$as_me:11783: error: not a filename: $MANPAGE_RENAMES" >&5
11784 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11785 { (exit 1); exit 1; }; }
11788 test ! -d man && mkdir man
11790 # Construct a sed-script to perform renaming within man-pages
11791 if test -n "$MANPAGE_RENAMES" ; then
11792 test ! -d man && mkdir man
11793 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11797 echo "$as_me:11797: result: $MANPAGE_RENAMES" >&5
11798 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11800 echo "$as_me:11800: checking if manpage aliases will be installed" >&5
11801 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11803 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11804 if test "${with_manpage_aliases+set}" = set; then
11805 withval="$with_manpage_aliases"
11806 MANPAGE_ALIASES=$withval
11808 MANPAGE_ALIASES=yes
11811 echo "$as_me:11811: result: $MANPAGE_ALIASES" >&5
11812 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11816 cf_use_symlinks=yes
11823 MANPAGE_SYMLINKS=no
11824 if test "$MANPAGE_ALIASES" = yes ; then
11825 echo "$as_me:11825: checking if manpage symlinks should be used" >&5
11826 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11828 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11829 if test "${with_manpage_symlinks+set}" = set; then
11830 withval="$with_manpage_symlinks"
11831 MANPAGE_SYMLINKS=$withval
11833 MANPAGE_SYMLINKS=$cf_use_symlinks
11836 if test "$$cf_use_symlinks" = no; then
11837 if test "$MANPAGE_SYMLINKS" = yes ; then
11838 { echo "$as_me:11838: WARNING: cannot make symlinks" >&5
11839 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11840 MANPAGE_SYMLINKS=no
11844 echo "$as_me:11844: result: $MANPAGE_SYMLINKS" >&5
11845 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11848 echo "$as_me:11848: checking for manpage tbl" >&5
11849 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11851 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11852 if test "${with_manpage_tbl+set}" = set; then
11853 withval="$with_manpage_tbl"
11854 MANPAGE_TBL=$withval
11859 echo "$as_me:11859: result: $MANPAGE_TBL" >&5
11860 echo "${ECHO_T}$MANPAGE_TBL" >&6
11862 if test "$prefix" = "NONE" ; then
11863 cf_prefix="$ac_default_prefix"
11865 cf_prefix="$prefix"
11868 case "$MANPAGE_FORMAT" in
11883 test ! -d man && mkdir man
11887 case "$MANPAGE_FORMAT" in
11890 cf_compress=compress
11898 cf_edit_man=./edit_man.sh
11899 cf_man_alias=`pwd`/man_alias.sed
11901 cat >$cf_edit_man <<CF_EOF
11903 # this script is generated by the configure-script CF_MAN_PAGES macro.
11905 prefix="$cf_prefix"
11906 datarootdir="$datarootdir"
11909 NCURSES_MAJOR="$NCURSES_MAJOR"
11910 NCURSES_MINOR="$NCURSES_MINOR"
11911 NCURSES_PATCH="$NCURSES_PATCH"
11913 NCURSES_OSPEED="$NCURSES_OSPEED"
11914 TERMINFO="$TERMINFO"
11917 INSTALL_DATA="$INSTALL_DATA"
11919 transform="$program_transform_name"
11921 TMP=\${TMPDIR:=/tmp}/man\$\$
11922 trap "rm -f \$TMP" 0 1 2 3 15
11934 top_srcdir=\$srcdir/..
11937 if test "\$form" = normal ; then
11938 if test "$cf_format" = yes ; then
11939 if test "$cf_inboth" = no ; then
11940 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11944 cf_subdir=\$mandir/man
11945 cf_tables=$MANPAGE_TBL
11947 cf_subdir=\$mandir/cat
11951 # process the list of source-files
11956 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11957 if test \$verb = installing ; then
11958 if test ! -d \$cf_subdir\${section} ; then
11959 mkdir -p \$cf_subdir\$section
11963 # replace variables in man page
11964 if test ! -f $cf_man_alias ; then
11965 cat >>$cf_man_alias <<-CF_EOF2
11966 s,@DATADIR@,\$datadir,g
11967 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11968 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11969 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11970 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11971 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11972 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11975 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
11977 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11978 cf_name=`echo $cf_name|sed "$program_transform_name"`
11979 cat >>$cf_edit_man <<-CF_EOF
11980 s,@$cf_NAME@,$cf_name,g
11984 cat >>$cf_edit_man <<CF_EOF
11986 echo "...made $cf_man_alias"
11990 cf_source=\`basename \$i\`
11991 inalias=\$cf_source
11992 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11993 if test ! -f \$inalias ; then
11994 echo .. skipped \$cf_source
11999 if test "$MANPAGE_ALIASES" != no ; then
12000 cat >>$cf_edit_man <<CF_EOF
12002 test $with_curses_h = yes && nCurses=ncurses.3x
12003 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
12007 if test "$MANPAGE_RENAMES" = no ; then
12008 cat >>$cf_edit_man <<CF_EOF
12009 # perform program transformations for section 1 man pages
12010 if test \$section = 1 ; then
12011 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
12013 cf_target=\$cf_subdir\${section}/\$cf_source
12017 cat >>$cf_edit_man <<CF_EOF
12018 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
12019 if test -z "\$cf_target" ; then
12020 echo '? missing rename for '\$cf_source
12021 cf_target="\$cf_source"
12023 cf_target="\$cf_subdir\${section}/\${cf_target}"
12028 cat >>$cf_edit_man <<CF_EOF
12029 sed -f $cf_man_alias \\
12032 if test -f $MANPAGE_RENAMES ; then
12033 cat >>$cf_edit_man <<CF_EOF
12034 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
12037 cat >>$cf_edit_man <<CF_EOF
12042 cat >>$cf_edit_man <<CF_EOF
12043 if test \$cf_tables = yes ; then
12044 tbl \$TMP >\$TMP.out
12049 if test $with_overwrite != yes ; then
12050 cat >>$cf_edit_man <<CF_EOF
12051 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
12056 if test $with_curses_h != yes ; then
12057 cat >>$cf_edit_man <<CF_EOF
12058 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
12063 cat >>$cf_edit_man <<CF_EOF
12064 if test \$form = format ; then
12065 nroff -man \$TMP >\$TMP.out
12070 if test -n "$cf_compress" ; then
12071 cat >>$cf_edit_man <<CF_EOF
12072 if test \$verb = installing ; then
12073 if ( $cf_compress -f \$TMP )
12075 mv \$TMP.$cf_so_strip \$TMP
12078 cf_target="\$cf_target.$cf_so_strip"
12082 case "$MANPAGE_FORMAT" in
12084 cat >>$cf_edit_man <<CF_EOF
12085 if test \$form = format ; then
12086 # BSDI installs only .0 suffixes in the cat directories
12087 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
12093 cat >>$cf_edit_man <<CF_EOF
12094 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
12095 if test \$verb = installing ; then
12096 echo \$verb \$cf_target
12097 \$INSTALL_DATA \$TMP \$cf_target
12098 test -d \$cf_subdir\${section} &&
12099 test -n "\$aliases" && (
12100 cd \$cf_subdir\${section} && (
12101 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
12102 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
12103 cf_target=\`basename \$cf_target\`
12104 for cf_alias in \$aliases
12106 if test \$section = 1 ; then
12107 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
12110 if test "$MANPAGE_SYMLINKS" = yes ; then
12111 if test -f \$cf_alias\${suffix} ; then
12112 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
12117 echo .. \$verb alias \$cf_alias\${suffix}
12121 cat >>$cf_edit_man <<CF_EOF
12122 $LN_S \$cf_target \$cf_alias\${suffix}
12126 cat >>$cf_edit_man <<CF_EOF
12127 rm -f \$cf_alias\${suffix}
12128 $LN_S \$cf_target \$cf_alias\${suffix}
12132 cat >>$cf_edit_man <<CF_EOF
12133 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
12134 echo ".so \$cf_source" >\$TMP
12136 if test -n "$cf_compress" ; then
12137 cat >>$cf_edit_man <<CF_EOF
12138 if test -n "$cf_so_strip" ; then
12139 $cf_compress -f \$TMP
12140 mv \$TMP.$cf_so_strip \$TMP
12144 cat >>$cf_edit_man <<CF_EOF
12145 echo .. \$verb alias \$cf_alias\${suffix}
12146 rm -f \$cf_alias\${suffix}
12147 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
12152 elif test \$verb = removing ; then
12153 test -f \$cf_target && (
12154 echo \$verb \$cf_target
12157 test -d \$cf_subdir\${section} &&
12158 test -n "\$aliases" && (
12159 cd \$cf_subdir\${section} && (
12160 for cf_alias in \$aliases
12162 if test \$section = 1 ; then
12163 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
12166 echo .. \$verb alias \$cf_alias\${suffix}
12167 rm -f \$cf_alias\${suffix}
12179 if test $cf_inboth = yes ; then
12180 if test \$form != format ; then
12181 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
12187 chmod 755 $cf_edit_man
12189 ###############################################################################
12191 ### Note that some functions (such as const) are normally disabled anyway.
12192 echo "$as_me:12192: checking if you want to build with function extensions" >&5
12193 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
12195 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
12196 if test "${enable_ext_funcs+set}" = set; then
12197 enableval="$enable_ext_funcs"
12198 with_ext_funcs=$enableval
12202 echo "$as_me:12202: result: $with_ext_funcs" >&5
12203 echo "${ECHO_T}$with_ext_funcs" >&6
12204 if test "x$with_ext_funcs" = xyes ; then
12205 NCURSES_EXT_FUNCS=1
12207 cat >>confdefs.h <<\EOF
12208 #define NCURSES_EXT_FUNCS 1
12211 cat >>confdefs.h <<\EOF
12212 #define HAVE_ASSUME_DEFAULT_COLORS 1
12215 cat >>confdefs.h <<\EOF
12216 #define HAVE_CURSES_VERSION 1
12219 cat >>confdefs.h <<\EOF
12220 #define HAVE_HAS_KEY 1
12223 cat >>confdefs.h <<\EOF
12224 #define HAVE_RESIZETERM 1
12227 cat >>confdefs.h <<\EOF
12228 #define HAVE_RESIZE_TERM 1
12231 cat >>confdefs.h <<\EOF
12232 #define HAVE_TERM_ENTRY_H 1
12235 cat >>confdefs.h <<\EOF
12236 #define HAVE_USE_DEFAULT_COLORS 1
12239 cat >>confdefs.h <<\EOF
12240 #define HAVE_USE_EXTENDED_NAMES 1
12243 cat >>confdefs.h <<\EOF
12244 #define HAVE_USE_SCREEN 1
12247 cat >>confdefs.h <<\EOF
12248 #define HAVE_USE_WINDOW 1
12251 cat >>confdefs.h <<\EOF
12252 #define HAVE_WRESIZE 1
12255 GENERATED_EXT_FUNCS=generated
12256 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
12258 NCURSES_EXT_FUNCS=0
12259 GENERATED_EXT_FUNCS=
12262 echo "$as_me:12262: checking if you want to build with SCREEN extensions" >&5
12263 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
12265 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
12266 if test "${enable_sp_funcs+set}" = set; then
12267 enableval="$enable_sp_funcs"
12268 with_sp_funcs=$enableval
12270 with_sp_funcs=$cf_dft_ext_spfuncs
12272 echo "$as_me:12272: result: $with_sp_funcs" >&5
12273 echo "${ECHO_T}$with_sp_funcs" >&6
12274 if test "x$with_sp_funcs" = xyes ; then
12277 cat >>confdefs.h <<\EOF
12278 #define NCURSES_SP_FUNCS 1
12281 cat >>confdefs.h <<\EOF
12282 #define HAVE_TPUTS_SP 1
12285 GENERATED_SP_FUNCS=generated
12288 GENERATED_SP_FUNCS=
12291 echo "$as_me:12291: checking if you want to build with terminal-driver" >&5
12292 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
12294 # Check whether --enable-term-driver or --disable-term-driver was given.
12295 if test "${enable_term_driver+set}" = set; then
12296 enableval="$enable_term_driver"
12297 with_term_driver=$enableval
12299 with_term_driver=no
12301 echo "$as_me:12301: result: $with_term_driver" >&5
12302 echo "${ECHO_T}$with_term_driver" >&6
12303 if test "x$with_term_driver" = xyes ; then
12305 cat >>confdefs.h <<\EOF
12306 #define USE_TERM_DRIVER 1
12309 if test "x$with_termlib" != xno ; then
12310 { { echo "$as_me:12310: error: The term-driver option conflicts with the termlib option" >&5
12311 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
12312 { (exit 1); exit 1; }; }
12314 if test "x$with_sp_funcs" != xyes ; then
12315 { { echo "$as_me:12315: error: The term-driver option relies upon sp-funcs" >&5
12316 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
12317 { (exit 1); exit 1; }; }
12321 ### use option --enable-const to turn on use of const beyond that in XSI.
12322 echo "$as_me:12322: checking for extended use of const keyword" >&5
12323 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
12325 # Check whether --enable-const or --disable-const was given.
12326 if test "${enable_const+set}" = set; then
12327 enableval="$enable_const"
12328 with_ext_const=$enableval
12330 with_ext_const=$cf_dft_ext_const
12332 echo "$as_me:12332: result: $with_ext_const" >&5
12333 echo "${ECHO_T}$with_ext_const" >&6
12334 NCURSES_CONST='/*nothing*/'
12335 if test "x$with_ext_const" = xyes ; then
12336 NCURSES_CONST=const
12339 ### use option --enable-ext-colors to turn on use of colors beyond 16.
12340 echo "$as_me:12340: checking if you want to use extended colors" >&5
12341 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
12343 # Check whether --enable-ext-colors or --disable-ext-colors was given.
12344 if test "${enable_ext_colors+set}" = set; then
12345 enableval="$enable_ext_colors"
12346 with_ext_colors=$enableval
12348 with_ext_colors=$cf_dft_ext_colors
12350 echo "$as_me:12350: result: $with_ext_colors" >&5
12351 echo "${ECHO_T}$with_ext_colors" >&6
12352 NCURSES_EXT_COLORS=0
12353 if test "x$with_ext_colors" = xyes ; then
12354 if test "x$with_widec" != xyes ; then
12355 { echo "$as_me:12355: WARNING: This option applies only to wide-character library" >&5
12356 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
12358 # cannot be ABI 5 since it changes sizeof(cchar_t)
12360 if test "${with_abi_version+set}" != set; then
12361 case $cf_cv_rel_version in
12363 cf_cv_rel_version=6.0
12364 cf_cv_abi_version=6
12365 { echo "$as_me:12365: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12366 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12371 NCURSES_EXT_COLORS=1
12373 cat >>confdefs.h <<\EOF
12374 #define NCURSES_EXT_COLORS 1
12377 cat >>confdefs.h <<\EOF
12378 #define HAVE_ALLOC_PAIR 1
12381 cat >>confdefs.h <<\EOF
12382 #define HAVE_INIT_EXTENDED_COLOR 1
12385 cat >>confdefs.h <<\EOF
12386 #define HAVE_RESET_COLOR_PAIRS 1
12392 ### use option --enable-ext-mouse to modify coding to support 5-button mice
12393 echo "$as_me:12393: checking if you want to use extended mouse encoding" >&5
12394 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
12396 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
12397 if test "${enable_ext_mouse+set}" = set; then
12398 enableval="$enable_ext_mouse"
12399 with_ext_mouse=$enableval
12401 with_ext_mouse=$cf_dft_ext_mouse
12403 echo "$as_me:12403: result: $with_ext_mouse" >&5
12404 echo "${ECHO_T}$with_ext_mouse" >&6
12405 NCURSES_MOUSE_VERSION=1
12406 if test "x$with_ext_mouse" = xyes ; then
12407 NCURSES_MOUSE_VERSION=2
12409 if test "${with_abi_version+set}" != set; then
12410 case $cf_cv_rel_version in
12412 cf_cv_rel_version=6.0
12413 cf_cv_abi_version=6
12414 { echo "$as_me:12414: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12415 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12422 ### use option --enable-ext-putwin to turn on extended screendumps
12423 echo "$as_me:12423: checking if you want to use extended putwin/screendump" >&5
12424 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
12426 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
12427 if test "${enable_ext_putwin+set}" = set; then
12428 enableval="$enable_ext_putwin"
12429 with_ext_putwin=$enableval
12431 with_ext_putwin=$cf_dft_ext_putwin
12433 echo "$as_me:12433: result: $with_ext_putwin" >&5
12434 echo "${ECHO_T}$with_ext_putwin" >&6
12435 if test "x$with_ext_putwin" = xyes ; then
12437 cat >>confdefs.h <<\EOF
12438 #define NCURSES_EXT_PUTWIN 1
12443 echo "$as_me:12443: checking if you want \$NCURSES_NO_PADDING code" >&5
12444 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
12446 # Check whether --enable-no-padding or --disable-no-padding was given.
12447 if test "${enable_no_padding+set}" = set; then
12448 enableval="$enable_no_padding"
12449 with_no_padding=$enableval
12451 with_no_padding=$with_ext_funcs
12453 echo "$as_me:12453: result: $with_no_padding" >&5
12454 echo "${ECHO_T}$with_no_padding" >&6
12455 test "x$with_no_padding" = xyes &&
12456 cat >>confdefs.h <<\EOF
12457 #define NCURSES_NO_PADDING 1
12460 echo "$as_me:12460: checking for ANSI C header files" >&5
12461 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12462 if test "${ac_cv_header_stdc+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 cat >conftest.$ac_ext <<_ACEOF
12466 #line 12466 "configure"
12467 #include "confdefs.h"
12468 #include <stdlib.h>
12469 #include <stdarg.h>
12470 #include <string.h>
12474 if { (eval echo "$as_me:12474: \"$ac_cpp conftest.$ac_ext\"") >&5
12475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12477 egrep -v '^ *\+' conftest.er1 >conftest.err
12479 cat conftest.err >&5
12480 echo "$as_me:12480: \$? = $ac_status" >&5
12481 (exit $ac_status); } >/dev/null; then
12482 if test -s conftest.err; then
12483 ac_cpp_err=$ac_c_preproc_warn_flag
12490 if test -z "$ac_cpp_err"; then
12491 ac_cv_header_stdc=yes
12493 echo "$as_me: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 ac_cv_header_stdc=no
12497 rm -f conftest.err conftest.$ac_ext
12499 if test $ac_cv_header_stdc = yes; then
12500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12501 cat >conftest.$ac_ext <<_ACEOF
12502 #line 12502 "configure"
12503 #include "confdefs.h"
12504 #include <string.h>
12507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12508 egrep "memchr" >/dev/null 2>&1; then
12511 ac_cv_header_stdc=no
12517 if test $ac_cv_header_stdc = yes; then
12518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #line 12520 "configure"
12521 #include "confdefs.h"
12522 #include <stdlib.h>
12525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12526 egrep "free" >/dev/null 2>&1; then
12529 ac_cv_header_stdc=no
12535 if test $ac_cv_header_stdc = yes; then
12536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12537 if test "$cross_compiling" = yes; then
12540 cat >conftest.$ac_ext <<_ACEOF
12541 #line 12541 "configure"
12542 #include "confdefs.h"
12544 #if ((' ' & 0x0FF) == 0x020)
12545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12548 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12549 || ('j' <= (c) && (c) <= 'r') \
12550 || ('s' <= (c) && (c) <= 'z'))
12551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12559 for (i = 0; i < 256; i++)
12560 if (XOR (islower (i), ISLOWER (i))
12561 || toupper (i) != TOUPPER (i))
12562 $ac_main_return(2);
12563 $ac_main_return (0);
12566 rm -f conftest$ac_exeext
12567 if { (eval echo "$as_me:12567: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>&5
12570 echo "$as_me:12570: \$? = $ac_status" >&5
12571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12572 { (eval echo "$as_me:12572: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:12575: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12579 echo "$as_me: program exited with status $ac_status" >&5
12580 echo "$as_me: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 ac_cv_header_stdc=no
12584 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12588 echo "$as_me:12588: result: $ac_cv_header_stdc" >&5
12589 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12590 if test $ac_cv_header_stdc = yes; then
12592 cat >>confdefs.h <<\EOF
12593 #define STDC_HEADERS 1
12598 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12601 inttypes.h stdint.h unistd.h
12603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12604 echo "$as_me:12604: checking for $ac_header" >&5
12605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12610 #line 12610 "configure"
12611 #include "confdefs.h"
12612 $ac_includes_default
12613 #include <$ac_header>
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:12616: \"$ac_compile\"") >&5
12617 (eval $ac_compile) 2>&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:12622: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:12625: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 eval "$as_ac_Header=yes"
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 eval "$as_ac_Header=no"
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12635 echo "$as_me:12635: result: `eval echo '${'$as_ac_Header'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12638 cat >>confdefs.h <<EOF
12639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12645 echo "$as_me:12645: checking for signed char" >&5
12646 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12647 if test "${ac_cv_type_signed_char+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 cat >conftest.$ac_ext <<_ACEOF
12651 #line 12651 "configure"
12652 #include "confdefs.h"
12653 $ac_includes_default
12657 if ((signed char *) 0)
12659 if (sizeof (signed char))
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:12666: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>&5
12669 echo "$as_me:12669: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:12672: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:12675: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_cv_type_signed_char=yes
12679 echo "$as_me: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 ac_cv_type_signed_char=no
12683 rm -f conftest.$ac_objext conftest.$ac_ext
12685 echo "$as_me:12685: result: $ac_cv_type_signed_char" >&5
12686 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12688 echo "$as_me:12688: checking size of signed char" >&5
12689 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12690 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 if test "$ac_cv_type_signed_char" = yes; then
12694 if test "$cross_compiling" = yes; then
12695 # Depending upon the size, compute the lo and hi bounds.
12696 cat >conftest.$ac_ext <<_ACEOF
12697 #line 12697 "configure"
12698 #include "confdefs.h"
12699 $ac_includes_default
12703 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12708 rm -f conftest.$ac_objext
12709 if { (eval echo "$as_me:12709: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>&5
12712 echo "$as_me:12712: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -s conftest.$ac_objext'
12715 { (eval echo "$as_me:12715: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12718 echo "$as_me:12718: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12722 cat >conftest.$ac_ext <<_ACEOF
12723 #line 12723 "configure"
12724 #include "confdefs.h"
12725 $ac_includes_default
12729 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12734 rm -f conftest.$ac_objext
12735 if { (eval echo "$as_me:12735: \"$ac_compile\"") >&5
12736 (eval $ac_compile) 2>&5
12738 echo "$as_me:12738: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:12741: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12744 echo "$as_me:12744: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_hi=$ac_mid; break
12748 echo "$as_me: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12750 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12752 rm -f conftest.$ac_objext conftest.$ac_ext
12755 echo "$as_me: failed program was:" >&5
12756 cat conftest.$ac_ext >&5
12759 cat >conftest.$ac_ext <<_ACEOF
12760 #line 12760 "configure"
12761 #include "confdefs.h"
12762 $ac_includes_default
12766 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12771 rm -f conftest.$ac_objext
12772 if { (eval echo "$as_me:12772: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>&5
12775 echo "$as_me:12775: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:12778: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:12781: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_lo=$ac_mid; break
12785 echo "$as_me: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12789 rm -f conftest.$ac_objext conftest.$ac_ext
12792 rm -f conftest.$ac_objext conftest.$ac_ext
12793 # Binary search between lo and hi bounds.
12794 while test "x$ac_lo" != "x$ac_hi"; do
12795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12796 cat >conftest.$ac_ext <<_ACEOF
12797 #line 12797 "configure"
12798 #include "confdefs.h"
12799 $ac_includes_default
12803 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:12809: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>&5
12812 echo "$as_me:12812: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:12815: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:12818: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12822 echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 ac_lo=`expr $ac_mid + 1`
12826 rm -f conftest.$ac_objext conftest.$ac_ext
12828 ac_cv_sizeof_signed_char=$ac_lo
12830 if test "$cross_compiling" = yes; then
12831 { { echo "$as_me:12831: error: cannot run test program while cross compiling" >&5
12832 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12833 { (exit 1); exit 1; }; }
12835 cat >conftest.$ac_ext <<_ACEOF
12836 #line 12836 "configure"
12837 #include "confdefs.h"
12838 $ac_includes_default
12842 FILE *f = fopen ("conftest.val", "w");
12844 $ac_main_return (1);
12845 fprintf (f, "%d", (sizeof (signed char)));
12851 rm -f conftest$ac_exeext
12852 if { (eval echo "$as_me:12852: \"$ac_link\"") >&5
12853 (eval $ac_link) 2>&5
12855 echo "$as_me:12855: \$? = $ac_status" >&5
12856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12857 { (eval echo "$as_me:12857: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:12860: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_cv_sizeof_signed_char=`cat conftest.val`
12864 echo "$as_me: program exited with status $ac_status" >&5
12865 echo "$as_me: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12868 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12873 ac_cv_sizeof_signed_char=0
12876 echo "$as_me:12876: result: $ac_cv_sizeof_signed_char" >&5
12877 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12878 cat >>confdefs.h <<EOF
12879 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12882 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12883 NCURSES_SBOOL="signed char"
12885 NCURSES_SBOOL="char"
12887 echo "$as_me:12887: checking if you want to use signed Boolean array in term.h" >&5
12888 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12890 # Check whether --enable-signed-char or --disable-signed-char was given.
12891 if test "${enable_signed_char+set}" = set; then
12892 enableval="$enable_signed_char"
12893 with_signed_char=$enableval
12895 with_signed_char=no
12897 echo "$as_me:12897: result: $with_signed_char" >&5
12898 echo "${ECHO_T}$with_signed_char" >&6
12899 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12901 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12902 echo "$as_me:12902: checking if you want SIGWINCH handler" >&5
12903 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12905 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12906 if test "${enable_sigwinch+set}" = set; then
12907 enableval="$enable_sigwinch"
12908 with_sigwinch=$enableval
12910 with_sigwinch=$with_ext_funcs
12912 echo "$as_me:12912: result: $with_sigwinch" >&5
12913 echo "${ECHO_T}$with_sigwinch" >&6
12914 test "x$with_sigwinch" = xyes &&
12915 cat >>confdefs.h <<\EOF
12916 #define USE_SIGWINCH 1
12919 ### use option --enable-tcap-names to allow user to define new capabilities
12920 echo "$as_me:12920: checking if you want user-definable terminal capabilities like termcap" >&5
12921 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12923 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12924 if test "${enable_tcap_names+set}" = set; then
12925 enableval="$enable_tcap_names"
12926 with_tcap_names=$enableval
12928 with_tcap_names=$with_ext_funcs
12930 echo "$as_me:12930: result: $with_tcap_names" >&5
12931 echo "${ECHO_T}$with_tcap_names" >&6
12933 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12935 ##############################################################################
12937 echo "$as_me:12937: checking if you want to link with the pthread library" >&5
12938 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12940 # Check whether --with-pthread or --without-pthread was given.
12941 if test "${with_pthread+set}" = set; then
12942 withval="$with_pthread"
12943 with_pthread=$withval
12947 echo "$as_me:12947: result: $with_pthread" >&5
12948 echo "${ECHO_T}$with_pthread" >&6
12950 if test "$with_pthread" != no ; then
12951 echo "$as_me:12951: checking for pthread.h" >&5
12952 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12953 if test "${ac_cv_header_pthread_h+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 cat >conftest.$ac_ext <<_ACEOF
12957 #line 12957 "configure"
12958 #include "confdefs.h"
12959 #include <pthread.h>
12961 if { (eval echo "$as_me:12961: \"$ac_cpp conftest.$ac_ext\"") >&5
12962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12964 egrep -v '^ *\+' conftest.er1 >conftest.err
12966 cat conftest.err >&5
12967 echo "$as_me:12967: \$? = $ac_status" >&5
12968 (exit $ac_status); } >/dev/null; then
12969 if test -s conftest.err; then
12970 ac_cpp_err=$ac_c_preproc_warn_flag
12977 if test -z "$ac_cpp_err"; then
12978 ac_cv_header_pthread_h=yes
12980 echo "$as_me: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 ac_cv_header_pthread_h=no
12984 rm -f conftest.err conftest.$ac_ext
12986 echo "$as_me:12986: result: $ac_cv_header_pthread_h" >&5
12987 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12988 if test $ac_cv_header_pthread_h = yes; then
12990 cat >>confdefs.h <<\EOF
12991 #define HAVE_PTHREADS_H 1
12994 for cf_lib_pthread in pthread c_r
12996 echo "$as_me:12996: checking if we can link with the $cf_lib_pthread library" >&5
12997 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12998 cf_save_LIBS="$LIBS"
13000 cf_add_libs="-l$cf_lib_pthread"
13001 # Filter out duplicates - this happens with badly-designed ".pc" files...
13002 for cf_add_1lib in $LIBS
13004 for cf_add_2lib in $cf_add_libs
13006 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13012 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13014 LIBS="$cf_add_libs"
13016 cat >conftest.$ac_ext <<_ACEOF
13017 #line 13017 "configure"
13018 #include "confdefs.h"
13020 #include <pthread.h>
13026 int rc = pthread_create(0,0,0,0);
13027 int r2 = pthread_mutexattr_settype(0, 0);
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (eval echo "$as_me:13034: \"$ac_link\"") >&5
13035 (eval $ac_link) 2>&5
13037 echo "$as_me:13037: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (eval echo "$as_me:13040: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13043 echo "$as_me:13043: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13047 echo "$as_me: failed program was:" >&5
13048 cat conftest.$ac_ext >&5
13051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13052 LIBS="$cf_save_LIBS"
13053 echo "$as_me:13053: result: $with_pthread" >&5
13054 echo "${ECHO_T}$with_pthread" >&6
13055 test "$with_pthread" = yes && break
13058 if test "$with_pthread" = yes ; then
13060 cf_add_libs="-l$cf_lib_pthread"
13061 # Filter out duplicates - this happens with badly-designed ".pc" files...
13062 for cf_add_1lib in $LIBS
13064 for cf_add_2lib in $cf_add_libs
13066 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13072 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13074 LIBS="$cf_add_libs"
13076 cat >>confdefs.h <<\EOF
13077 #define HAVE_LIBPTHREADS 1
13081 { { echo "$as_me:13081: error: Cannot link with pthread library" >&5
13082 echo "$as_me: error: Cannot link with pthread library" >&2;}
13083 { (exit 1); exit 1; }; }
13090 if test "x$with_pthread" != xno; then
13091 echo "$as_me:13091: checking for pthread_kill" >&5
13092 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
13093 if test "${ac_cv_func_pthread_kill+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line 13097 "configure"
13098 #include "confdefs.h"
13099 /* System header to define __stub macros and hopefully few prototypes,
13100 which can conflict with char pthread_kill (); below. */
13101 #include <assert.h>
13102 /* Override any gcc2 internal prototype to avoid an error. */
13106 /* We use char because int might match the return type of a gcc2
13107 builtin and then its argument prototype would still apply. */
13108 char pthread_kill ();
13114 /* The GNU C library defines this for functions which it implements
13115 to always fail with ENOSYS. Some functions are actually named
13116 something starting with __ and the normal name is an alias. */
13117 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
13120 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:13128: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>&5
13131 echo "$as_me:13131: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -s conftest$ac_exeext'
13134 { (eval echo "$as_me:13134: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_cv_func_pthread_kill=yes
13141 echo "$as_me: failed program was:" >&5
13142 cat conftest.$ac_ext >&5
13143 ac_cv_func_pthread_kill=no
13145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13147 echo "$as_me:13147: result: $ac_cv_func_pthread_kill" >&5
13148 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
13149 if test $ac_cv_func_pthread_kill = yes; then
13151 echo "$as_me:13151: checking if you want to allow EINTR in wgetch with pthreads" >&5
13152 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
13154 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
13155 if test "${enable_pthreads_eintr+set}" = set; then
13156 enableval="$enable_pthreads_eintr"
13157 use_pthreads_eintr=$enableval
13159 use_pthreads_eintr=no
13161 echo "$as_me:13161: result: $use_pthreads_eintr" >&5
13162 echo "${ECHO_T}$use_pthreads_eintr" >&6
13163 if test "x$use_pthreads_eintr" = xyes ; then
13165 cat >>confdefs.h <<\EOF
13166 #define USE_PTHREADS_EINTR 1
13172 echo "$as_me:13172: checking if you want to use weak-symbols for pthreads" >&5
13173 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
13175 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
13176 if test "${enable_weak_symbols+set}" = set; then
13177 enableval="$enable_weak_symbols"
13178 use_weak_symbols=$enableval
13180 use_weak_symbols=no
13182 echo "$as_me:13182: result: $use_weak_symbols" >&5
13183 echo "${ECHO_T}$use_weak_symbols" >&6
13184 if test "x$use_weak_symbols" = xyes ; then
13186 echo "$as_me:13186: checking if $CC supports weak symbols" >&5
13187 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
13188 if test "${cf_cv_weak_symbols+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13193 #line 13193 "configure"
13194 #include "confdefs.h"
13201 #if defined(__GNUC__)
13202 # if defined __USE_ISOC99
13203 # define _cat_pragma(exp) _Pragma(#exp)
13204 # define _weak_pragma(exp) _cat_pragma(weak name)
13206 # define _weak_pragma(exp)
13208 # define _declare(name) __extension__ extern __typeof__(name) name
13209 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
13212 weak_symbol(fopen);
13218 rm -f conftest.$ac_objext
13219 if { (eval echo "$as_me:13219: \"$ac_compile\"") >&5
13220 (eval $ac_compile) 2>&5
13222 echo "$as_me:13222: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:13225: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:13228: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 cf_cv_weak_symbols=yes
13232 echo "$as_me: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 cf_cv_weak_symbols=no
13236 rm -f conftest.$ac_objext conftest.$ac_ext
13239 echo "$as_me:13239: result: $cf_cv_weak_symbols" >&5
13240 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
13243 cf_cv_weak_symbols=no
13246 if test "x$cf_cv_weak_symbols" = xyes ; then
13248 cat >>confdefs.h <<\EOF
13249 #define USE_WEAK_SYMBOLS 1
13256 if test "x$with_pthread" = "xyes" ; then
13258 cat >>confdefs.h <<\EOF
13259 #define USE_PTHREADS 1
13262 enable_reentrant=yes
13263 if test "x$cf_cv_weak_symbols" = xyes ; then
13268 # Reentrant code has to be opaque; there's little advantage to making ncurses
13269 # opaque outside of that, so there is no --enable-opaque option. We can use
13270 # this option without --with-pthreads, but this will be always set for
13272 echo "$as_me:13272: checking if you want reentrant code" >&5
13273 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
13275 # Check whether --enable-reentrant or --disable-reentrant was given.
13276 if test "${enable_reentrant+set}" = set; then
13277 enableval="$enable_reentrant"
13278 with_reentrant=$enableval
13282 echo "$as_me:13282: result: $with_reentrant" >&5
13283 echo "${ECHO_T}$with_reentrant" >&6
13284 if test "x$with_reentrant" = xyes ; then
13285 cf_cv_enable_reentrant=1
13286 cf_cv_enable_opaque="NCURSES_INTERNALS"
13288 if test "x$cf_cv_weak_symbols" = xyes ; then
13290 # remove pthread library from $LIBS
13291 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
13293 cf_add_libs="-lpthread"
13294 # Filter out duplicates - this happens with badly-designed ".pc" files...
13295 for cf_add_1lib in $TEST_LIBS
13297 for cf_add_2lib in $cf_add_libs
13299 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13305 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13307 TEST_LIBS="$cf_add_libs"
13309 cf_add_libs="-lpthread"
13310 # Filter out duplicates - this happens with badly-designed ".pc" files...
13311 for cf_add_1lib in $TEST_LIBS2
13313 for cf_add_2lib in $cf_add_libs
13315 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13321 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13323 TEST_LIBS2="$cf_add_libs"
13326 # when not using weak symbols but with_reentrant,
13327 # add 't' to the library suffix on all platforms
13328 # except cygwin, where we only do that if ALSO
13329 # compiling with full thread support.
13331 (*cygwin* | *msys*)
13332 if test "$with_pthread" = "yes" ; then
13333 if test "x$disable_lib_suffixes" = "xno" ; then
13334 LIB_SUFFIX="t${LIB_SUFFIX}"
13338 if test "x$disable_lib_suffixes" = "xno" ; then
13339 LIB_SUFFIX="t${LIB_SUFFIX}"
13345 cat >>confdefs.h <<\EOF
13346 #define USE_REENTRANT 1
13349 if test "${with_abi_version+set}" != set; then
13350 case $cf_cv_rel_version in
13352 cf_cv_rel_version=6.0
13353 cf_cv_abi_version=6
13354 { echo "$as_me:13354: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13355 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13361 cf_cv_enable_reentrant=0
13362 cf_cv_enable_opaque="NCURSES_OPAQUE"
13363 NCURSES_SIZE_T=short
13366 echo "$as_me:13366: checking if you want opaque curses-library structures" >&5
13367 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
13369 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
13370 if test "${enable_opaque_curses+set}" = set; then
13371 enableval="$enable_opaque_curses"
13372 test "$enableval" != yes && enableval=no
13373 if test "$enableval" != "no" ; then
13374 enable_opaque_curses=yes
13377 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
13378 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
13384 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
13385 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
13388 echo "$as_me:13388: result: $enable_opaque_curses" >&5
13389 echo "${ECHO_T}$enable_opaque_curses" >&6
13391 test "$cf_cv_enable_reentrant" = 1 && \
13392 test "$enable_opaque_curses" = no && \
13393 { { echo "$as_me:13393: error: reentrant configuration requires opaque library" >&5
13394 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
13395 { (exit 1); exit 1; }; }
13397 echo "$as_me:13397: checking if you want opaque form-library structures" >&5
13398 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
13400 # Check whether --enable-opaque-form or --disable-opaque-form was given.
13401 if test "${enable_opaque_form+set}" = set; then
13402 enableval="$enable_opaque_form"
13403 enable_opaque_form=yes
13405 enable_opaque_form=no
13407 echo "$as_me:13407: result: $enable_opaque_form" >&5
13408 echo "${ECHO_T}$enable_opaque_form" >&6
13410 echo "$as_me:13410: checking if you want opaque menu-library structures" >&5
13411 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
13413 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
13414 if test "${enable_opaque_menu+set}" = set; then
13415 enableval="$enable_opaque_menu"
13416 enable_opaque_menu=yes
13418 enable_opaque_menu=no
13420 echo "$as_me:13420: result: $enable_opaque_menu" >&5
13421 echo "${ECHO_T}$enable_opaque_menu" >&6
13423 echo "$as_me:13423: checking if you want opaque panel-library structures" >&5
13424 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
13426 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
13427 if test "${enable_opaque_panel+set}" = set; then
13428 enableval="$enable_opaque_panel"
13429 enable_opaque_panel=yes
13431 enable_opaque_panel=no
13433 echo "$as_me:13433: result: $enable_opaque_panel" >&5
13434 echo "${ECHO_T}$enable_opaque_panel" >&6
13436 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
13437 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
13438 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
13439 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
13441 ### Allow using a different wrap-prefix
13442 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
13443 echo "$as_me:13443: checking for prefix used to wrap public variables" >&5
13444 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
13446 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
13447 if test "${with_wrap_prefix+set}" = set; then
13448 withval="$with_wrap_prefix"
13449 NCURSES_WRAP_PREFIX=$withval
13451 NCURSES_WRAP_PREFIX=_nc_
13453 echo "$as_me:13453: result: $NCURSES_WRAP_PREFIX" >&5
13454 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13456 NCURSES_WRAP_PREFIX=_nc_
13459 cat >>confdefs.h <<EOF
13460 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
13463 ###############################################################################
13464 # These options are relatively safe to experiment with.
13466 echo "$as_me:13466: checking if you want all development code" >&5
13467 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
13469 # Check whether --with-develop or --without-develop was given.
13470 if test "${with_develop+set}" = set; then
13471 withval="$with_develop"
13472 with_develop=$withval
13476 echo "$as_me:13476: result: $with_develop" >&5
13477 echo "${ECHO_T}$with_develop" >&6
13479 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
13480 echo "$as_me:13480: checking if you want hard-tabs code" >&5
13481 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
13483 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
13484 if test "${enable_hard_tabs+set}" = set; then
13485 enableval="$enable_hard_tabs"
13488 enable_hard_tabs=$with_develop
13490 echo "$as_me:13490: result: $enable_hard_tabs" >&5
13491 echo "${ECHO_T}$enable_hard_tabs" >&6
13492 test "x$enable_hard_tabs" = xyes &&
13493 cat >>confdefs.h <<\EOF
13494 #define USE_HARD_TABS 1
13497 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
13498 echo "$as_me:13498: checking if you want limited support for xmc" >&5
13499 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
13501 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
13502 if test "${enable_xmc_glitch+set}" = set; then
13503 enableval="$enable_xmc_glitch"
13506 enable_xmc_glitch=$with_develop
13508 echo "$as_me:13508: result: $enable_xmc_glitch" >&5
13509 echo "${ECHO_T}$enable_xmc_glitch" >&6
13510 test "x$enable_xmc_glitch" = xyes &&
13511 cat >>confdefs.h <<\EOF
13512 #define USE_XMC_SUPPORT 1
13515 ###############################################################################
13516 # These are just experimental, probably should not be in a package:
13518 echo "$as_me:13518: checking if you do not want to assume colors are white-on-black" >&5
13519 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
13521 # Check whether --enable-assumed-color or --disable-assumed-color was given.
13522 if test "${enable_assumed_color+set}" = set; then
13523 enableval="$enable_assumed_color"
13524 with_assumed_color=$enableval
13526 with_assumed_color=yes
13528 echo "$as_me:13528: result: $with_assumed_color" >&5
13529 echo "${ECHO_T}$with_assumed_color" >&6
13530 test "x$with_assumed_color" = xyes &&
13531 cat >>confdefs.h <<\EOF
13532 #define USE_ASSUMED_COLOR 1
13535 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
13536 echo "$as_me:13536: checking if you want hashmap scrolling-optimization code" >&5
13537 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
13539 # Check whether --enable-hashmap or --disable-hashmap was given.
13540 if test "${enable_hashmap+set}" = set; then
13541 enableval="$enable_hashmap"
13542 with_hashmap=$enableval
13546 echo "$as_me:13546: result: $with_hashmap" >&5
13547 echo "${ECHO_T}$with_hashmap" >&6
13548 test "x$with_hashmap" = xyes &&
13549 cat >>confdefs.h <<\EOF
13550 #define USE_HASHMAP 1
13553 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
13554 echo "$as_me:13554: checking if you want colorfgbg code" >&5
13555 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
13557 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
13558 if test "${enable_colorfgbg+set}" = set; then
13559 enableval="$enable_colorfgbg"
13560 with_colorfgbg=$enableval
13564 echo "$as_me:13564: result: $with_colorfgbg" >&5
13565 echo "${ECHO_T}$with_colorfgbg" >&6
13566 test "x$with_colorfgbg" = xyes &&
13567 cat >>confdefs.h <<\EOF
13568 #define USE_COLORFGBG 1
13571 ### use option --enable-interop to turn on use of bindings used for interop
13572 echo "$as_me:13572: checking if you want interop bindings" >&5
13573 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
13575 # Check whether --enable-interop or --disable-interop was given.
13576 if test "${enable_interop+set}" = set; then
13577 enableval="$enable_interop"
13578 with_exp_interop=$enableval
13580 with_exp_interop=$cf_dft_interop
13582 echo "$as_me:13582: result: $with_exp_interop" >&5
13583 echo "${ECHO_T}$with_exp_interop" >&6
13585 NCURSES_INTEROP_FUNCS=0
13586 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
13588 echo "$as_me:13588: checking if you want experimental safe-sprintf code" >&5
13589 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
13591 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
13592 if test "${enable_safe_sprintf+set}" = set; then
13593 enableval="$enable_safe_sprintf"
13594 with_safe_sprintf=$enableval
13596 with_safe_sprintf=no
13598 echo "$as_me:13598: result: $with_safe_sprintf" >&5
13599 echo "${ECHO_T}$with_safe_sprintf" >&6
13600 test "x$with_safe_sprintf" = xyes &&
13601 cat >>confdefs.h <<\EOF
13602 #define USE_SAFE_SPRINTF 1
13605 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
13606 # when hashmap is used scroll hints are useless
13607 if test "$with_hashmap" = no ; then
13608 echo "$as_me:13608: checking if you want to experiment without scrolling-hints code" >&5
13609 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
13611 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
13612 if test "${enable_scroll_hints+set}" = set; then
13613 enableval="$enable_scroll_hints"
13614 with_scroll_hints=$enableval
13616 with_scroll_hints=yes
13618 echo "$as_me:13618: result: $with_scroll_hints" >&5
13619 echo "${ECHO_T}$with_scroll_hints" >&6
13620 test "x$with_scroll_hints" = xyes &&
13621 cat >>confdefs.h <<\EOF
13622 #define USE_SCROLL_HINTS 1
13627 echo "$as_me:13627: checking if you want wgetch-events code" >&5
13628 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
13630 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
13631 if test "${enable_wgetch_events+set}" = set; then
13632 enableval="$enable_wgetch_events"
13633 with_wgetch_events=$enableval
13635 with_wgetch_events=no
13637 echo "$as_me:13637: result: $with_wgetch_events" >&5
13638 echo "${ECHO_T}$with_wgetch_events" >&6
13639 test "x$with_wgetch_events" = xyes &&
13640 cat >>confdefs.h <<\EOF
13641 #define NCURSES_WGETCH_EVENTS 1
13644 ###############################################################################
13646 ### use option --disable-echo to suppress full display compiling commands
13648 echo "$as_me:13648: checking if you want to see long compiling messages" >&5
13649 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13651 # Check whether --enable-echo or --disable-echo was given.
13652 if test "${enable_echo+set}" = set; then
13653 enableval="$enable_echo"
13654 test "$enableval" != no && enableval=yes
13655 if test "$enableval" != "yes" ; then
13658 ECHO_LD='@echo linking $@;'
13659 RULE_CC='@echo compiling $<'
13660 SHOW_CC='@echo compiling $@'
13682 echo "$as_me:13682: result: $enableval" >&5
13683 echo "${ECHO_T}$enableval" >&6
13685 if test "x$enable_echo" = xyes; then
13688 ECHO_LINK='@ echo linking $@ ... ;'
13689 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
13690 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
13693 ### use option --enable-warnings to turn on all gcc warnings
13694 echo "$as_me:13694: checking if you want to see compiler warnings" >&5
13695 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13697 # Check whether --enable-warnings or --disable-warnings was given.
13698 if test "${enable_warnings+set}" = set; then
13699 enableval="$enable_warnings"
13700 with_warnings=$enableval
13702 echo "$as_me:13702: result: $with_warnings" >&5
13703 echo "${ECHO_T}$with_warnings" >&6
13705 if test "x$with_warnings" = "xyes"; then
13707 ADAFLAGS="$ADAFLAGS -gnatg"
13711 if test "$GCC" = yes ; then
13714 echo "$as_me:13714: checking if this is really Intel C compiler" >&5
13715 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
13716 cf_save_CFLAGS="$CFLAGS"
13717 CFLAGS="$CFLAGS -no-gcc"
13718 cat >conftest.$ac_ext <<_ACEOF
13719 #line 13719 "configure"
13720 #include "confdefs.h"
13726 #ifdef __INTEL_COMPILER
13735 rm -f conftest.$ac_objext
13736 if { (eval echo "$as_me:13736: \"$ac_compile\"") >&5
13737 (eval $ac_compile) 2>&5
13739 echo "$as_me:13739: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:13742: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:13745: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13748 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13751 echo "$as_me: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13754 rm -f conftest.$ac_objext conftest.$ac_ext
13755 CFLAGS="$cf_save_CFLAGS"
13756 echo "$as_me:13756: result: $INTEL_COMPILER" >&5
13757 echo "${ECHO_T}$INTEL_COMPILER" >&6
13764 if test "$GCC" = yes ; then
13765 echo "$as_me:13765: checking if this is really Clang C compiler" >&5
13766 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13767 cf_save_CFLAGS="$CFLAGS"
13768 CFLAGS="$CFLAGS -Qunused-arguments"
13769 cat >conftest.$ac_ext <<_ACEOF
13770 #line 13770 "configure"
13771 #include "confdefs.h"
13786 rm -f conftest.$ac_objext
13787 if { (eval echo "$as_me:13787: \"$ac_compile\"") >&5
13788 (eval $ac_compile) 2>&5
13790 echo "$as_me:13790: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -s conftest.$ac_objext'
13793 { (eval echo "$as_me:13793: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:13796: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13799 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13805 rm -f conftest.$ac_objext conftest.$ac_ext
13806 CFLAGS="$cf_save_CFLAGS"
13807 echo "$as_me:13807: result: $CLANG_COMPILER" >&5
13808 echo "${ECHO_T}$CLANG_COMPILER" >&6
13811 cat > conftest.$ac_ext <<EOF
13812 #line 13812 "${as_me:-configure}"
13813 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13816 if test "$INTEL_COMPILER" = yes
13818 # The "-wdXXX" options suppress warnings:
13819 # remark #1419: external declaration in primary source file
13820 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13821 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13822 # remark #193: zero used for undefined preprocessing identifier
13823 # remark #593: variable "curs_sb_left_arrow" was set but never used
13824 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13825 # remark #869: parameter "tw" was never referenced
13826 # remark #981: operands are evaluated in unspecified order
13827 # warning #279: controlling expression is constant
13829 { echo "$as_me:13829: checking for $CC warning options..." >&5
13830 echo "$as_me: checking for $CC warning options..." >&6;}
13831 cf_save_CFLAGS="$CFLAGS"
13832 EXTRA_CFLAGS="-Wall"
13844 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13845 if { (eval echo "$as_me:13845: \"$ac_compile\"") >&5
13846 (eval $ac_compile) 2>&5
13848 echo "$as_me:13848: \$? = $ac_status" >&5
13849 (exit $ac_status); }; then
13850 test -n "$verbose" && echo "$as_me:13850: result: ... -$cf_opt" >&5
13851 echo "${ECHO_T}... -$cf_opt" >&6
13852 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13855 CFLAGS="$cf_save_CFLAGS"
13857 elif test "$GCC" = yes
13859 { echo "$as_me:13859: checking for $CC warning options..." >&5
13860 echo "$as_me: checking for $CC warning options..." >&6;}
13861 cf_save_CFLAGS="$CFLAGS"
13864 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13865 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13866 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13867 for cf_opt in W Wall \
13868 Wbad-function-cast \
13871 Wdeclaration-after-statement \
13874 Wmissing-declarations \
13875 Wmissing-prototypes \
13879 Wstrict-prototypes \
13880 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13882 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13883 if { (eval echo "$as_me:13883: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>&5
13886 echo "$as_me:13886: \$? = $ac_status" >&5
13887 (exit $ac_status); }; then
13888 test -n "$verbose" && echo "$as_me:13888: result: ... -$cf_opt" >&5
13889 echo "${ECHO_T}... -$cf_opt" >&6
13892 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13895 case $GCC_VERSION in
13897 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13899 echo "${as_me:-configure}:13899: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13905 case $GCC_VERSION in
13907 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13909 echo "${as_me:-configure}:13909: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13915 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13918 CFLAGS="$cf_save_CFLAGS"
13922 if test "x$cf_with_cxx" = xyes ; then
13926 if test "$GCC" = yes ; then
13929 echo "$as_me:13929: checking if this is really Intel C++ compiler" >&5
13930 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13931 cf_save_CFLAGS="$CXXFLAGS"
13932 CXXFLAGS="$CXXFLAGS -no-gcc"
13933 cat >conftest.$ac_ext <<_ACEOF
13934 #line 13934 "configure"
13935 #include "confdefs.h"
13941 #ifdef __INTEL_COMPILER
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:13951: \"$ac_compile\"") >&5
13952 (eval $ac_compile) 2>&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -s conftest.$ac_objext'
13957 { (eval echo "$as_me:13957: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:13960: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 INTEL_CPLUSPLUS=yes
13963 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13966 echo "$as_me: failed program was:" >&5
13967 cat conftest.$ac_ext >&5
13969 rm -f conftest.$ac_objext conftest.$ac_ext
13970 CXXFLAGS="$cf_save_CFLAGS"
13971 echo "$as_me:13971: result: $INTEL_CPLUSPLUS" >&5
13972 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13979 if test "$GCC" = yes ; then
13980 echo "$as_me:13980: checking if this is really Clang C++ compiler" >&5
13981 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13982 cf_save_CFLAGS="$CXXFLAGS"
13983 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13984 cat >conftest.$ac_ext <<_ACEOF
13985 #line 13985 "configure"
13986 #include "confdefs.h"
14001 rm -f conftest.$ac_objext
14002 if { (eval echo "$as_me:14002: \"$ac_compile\"") >&5
14003 (eval $ac_compile) 2>&5
14005 echo "$as_me:14005: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -s conftest.$ac_objext'
14008 { (eval echo "$as_me:14008: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:14011: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 CLANG_CPLUSPLUS=yes
14014 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
14017 echo "$as_me: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14020 rm -f conftest.$ac_objext conftest.$ac_ext
14021 CXXFLAGS="$cf_save_CFLAGS"
14022 echo "$as_me:14022: result: $CLANG_CPLUSPLUS" >&5
14023 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
14027 ac_cpp='$CXXCPP $CPPFLAGS'
14028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14031 ac_main_return=return
14033 cat > conftest.$ac_ext <<EOF
14034 #line 14034 "configure"
14035 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
14038 if test "$INTEL_CPLUSPLUS" = yes
14040 # The "-wdXXX" options suppress warnings:
14041 # remark #1419: external declaration in primary source file
14042 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
14043 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
14044 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
14045 # remark #193: zero used for undefined preprocessing identifier
14046 # remark #593: variable "curs_sb_left_arrow" was set but never used
14047 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
14048 # remark #869: parameter "tw" was never referenced
14049 # remark #981: operands are evaluated in unspecified order
14050 # warning #269: invalid format string conversion
14052 { echo "$as_me:14052: checking for $CC warning options..." >&5
14053 echo "$as_me: checking for $CC warning options..." >&6;}
14054 cf_save_CXXFLAGS="$CXXFLAGS"
14055 EXTRA_CXXFLAGS="-Wall"
14068 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
14069 if { (eval echo "$as_me:14069: \"$ac_compile\"") >&5
14070 (eval $ac_compile) 2>&5
14072 echo "$as_me:14072: \$? = $ac_status" >&5
14073 (exit $ac_status); }; then
14074 test -n "$verbose" && echo "$as_me:14074: result: ... -$cf_opt" >&5
14075 echo "${ECHO_T}... -$cf_opt" >&6
14076 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
14079 CXXFLAGS="$cf_save_CXXFLAGS"
14081 elif test "$GXX" = yes
14083 { echo "$as_me:14083: checking for $CXX warning options..." >&5
14084 echo "$as_me: checking for $CXX warning options..." >&6;}
14085 cf_save_CXXFLAGS="$CXXFLAGS"
14086 EXTRA_CXXFLAGS="-W -Wall"
14087 cf_gxx_extra_warnings=""
14088 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
14089 case "$GCC_VERSION" in
14093 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
14100 Wignored-qualifiers \
14102 Woverloaded-virtual \
14110 Wundef $cf_gxx_extra_warnings Wno-unused
14112 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
14113 if { (eval echo "$as_me:14113: \"$ac_compile\"") >&5
14114 (eval $ac_compile) 2>&5
14116 echo "$as_me:14116: \$? = $ac_status" >&5
14117 (exit $ac_status); }; then
14118 test -n "$verbose" && echo "$as_me:14118: result: ... -$cf_opt" >&5
14119 echo "${ECHO_T}... -$cf_opt" >&6
14120 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
14122 test -n "$verbose" && echo "$as_me:14122: result: ... no -$cf_opt" >&5
14123 echo "${ECHO_T}... no -$cf_opt" >&6
14126 CXXFLAGS="$cf_save_CXXFLAGS"
14131 ac_cpp='$CPP $CPPFLAGS'
14132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14135 ac_main_return=return
14140 if test "$GCC" = yes
14142 cat > conftest.i <<EOF
14144 #define GCC_PRINTF 0
14147 #define GCC_SCANF 0
14149 #ifndef GCC_NORETURN
14150 #define GCC_NORETURN /* nothing */
14153 #define GCC_UNUSED /* nothing */
14156 if test "$GCC" = yes
14158 { echo "$as_me:14158: checking for $CC __attribute__ directives..." >&5
14159 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
14160 cat > conftest.$ac_ext <<EOF
14161 #line 14161 "${as_me:-configure}"
14162 #include "confdefs.h"
14163 #include "conftest.h"
14164 #include "conftest.i"
14166 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
14168 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
14171 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
14173 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
14175 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
14176 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
14177 extern void foo(void) GCC_NORETURN;
14178 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
14180 cf_printf_attribute=no
14181 cf_scanf_attribute=no
14182 for cf_attribute in scanf printf unused noreturn
14185 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14187 cf_directive="__attribute__(($cf_attribute))"
14188 echo "checking for $CC $cf_directive" 1>&5
14190 case $cf_attribute in
14192 cf_printf_attribute=yes
14193 cat >conftest.h <<EOF
14194 #define GCC_$cf_ATTRIBUTE 1
14198 cf_scanf_attribute=yes
14199 cat >conftest.h <<EOF
14200 #define GCC_$cf_ATTRIBUTE 1
14204 cat >conftest.h <<EOF
14205 #define GCC_$cf_ATTRIBUTE $cf_directive
14210 if { (eval echo "$as_me:14210: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14213 echo "$as_me:14213: \$? = $ac_status" >&5
14214 (exit $ac_status); }; then
14215 test -n "$verbose" && echo "$as_me:14215: result: ... $cf_attribute" >&5
14216 echo "${ECHO_T}... $cf_attribute" >&6
14217 cat conftest.h >>confdefs.h
14218 case $cf_attribute in
14221 cat >>confdefs.h <<EOF
14222 #define GCC_NORETURN $cf_directive
14227 cf_value='/* nothing */'
14228 if test "$cf_printf_attribute" != no ; then
14229 cf_value='__attribute__((format(printf,fmt,var)))'
14231 cat >>confdefs.h <<\EOF
14232 #define GCC_PRINTF 1
14237 cat >>confdefs.h <<EOF
14238 #define GCC_PRINTFLIKE(fmt,var) $cf_value
14243 cf_value='/* nothing */'
14244 if test "$cf_scanf_attribute" != no ; then
14245 cf_value='__attribute__((format(scanf,fmt,var)))'
14247 cat >>confdefs.h <<\EOF
14248 #define GCC_SCANF 1
14253 cat >>confdefs.h <<EOF
14254 #define GCC_SCANFLIKE(fmt,var) $cf_value
14260 cat >>confdefs.h <<EOF
14261 #define GCC_UNUSED $cf_directive
14269 fgrep define conftest.i >>confdefs.h
14274 echo "$as_me:14274: checking if you want to work around bogus compiler/loader warnings" >&5
14275 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
14277 # Check whether --enable-string-hacks or --disable-string-hacks was given.
14278 if test "${enable_string_hacks+set}" = set; then
14279 enableval="$enable_string_hacks"
14280 with_string_hacks=$enableval
14282 with_string_hacks=no
14284 echo "$as_me:14284: result: $with_string_hacks" >&5
14285 echo "${ECHO_T}$with_string_hacks" >&6
14287 if test "x$with_string_hacks" = "xyes"; then
14289 cat >>confdefs.h <<\EOF
14290 #define USE_STRING_HACKS 1
14293 { echo "$as_me:14293: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
14294 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
14295 echo "$as_me:14295: checking for strlcat" >&5
14296 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
14297 if test "${ac_cv_func_strlcat+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14301 #line 14301 "configure"
14302 #include "confdefs.h"
14303 /* System header to define __stub macros and hopefully few prototypes,
14304 which can conflict with char strlcat (); below. */
14305 #include <assert.h>
14306 /* Override any gcc2 internal prototype to avoid an error. */
14310 /* We use char because int might match the return type of a gcc2
14311 builtin and then its argument prototype would still apply. */
14318 /* The GNU C library defines this for functions which it implements
14319 to always fail with ENOSYS. Some functions are actually named
14320 something starting with __ and the normal name is an alias. */
14321 #if defined (__stub_strlcat) || defined (__stub___strlcat)
14324 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14331 rm -f conftest.$ac_objext conftest$ac_exeext
14332 if { (eval echo "$as_me:14332: \"$ac_link\"") >&5
14333 (eval $ac_link) 2>&5
14335 echo "$as_me:14335: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -s conftest$ac_exeext'
14338 { (eval echo "$as_me:14338: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:14341: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_func_strlcat=yes
14345 echo "$as_me: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14347 ac_cv_func_strlcat=no
14349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14351 echo "$as_me:14351: result: $ac_cv_func_strlcat" >&5
14352 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
14353 if test $ac_cv_func_strlcat = yes; then
14355 cat >>confdefs.h <<\EOF
14356 #define HAVE_STRLCAT 1
14361 echo "$as_me:14361: checking for strlcat in -lbsd" >&5
14362 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
14363 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 ac_check_lib_save_LIBS=$LIBS
14368 cat >conftest.$ac_ext <<_ACEOF
14369 #line 14369 "configure"
14370 #include "confdefs.h"
14372 /* Override any gcc2 internal prototype to avoid an error. */
14376 /* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (eval echo "$as_me:14388: \"$ac_link\"") >&5
14389 (eval $ac_link) 2>&5
14391 echo "$as_me:14391: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (eval echo "$as_me:14394: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14397 echo "$as_me:14397: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_cv_lib_bsd_strlcat=yes
14401 echo "$as_me: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 ac_cv_lib_bsd_strlcat=no
14405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14408 echo "$as_me:14408: result: $ac_cv_lib_bsd_strlcat" >&5
14409 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
14410 if test $ac_cv_lib_bsd_strlcat = yes; then
14412 cf_add_libs="-lbsd"
14413 # Filter out duplicates - this happens with badly-designed ".pc" files...
14414 for cf_add_1lib in $LIBS
14416 for cf_add_2lib in $cf_add_libs
14418 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14424 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14426 LIBS="$cf_add_libs"
14428 for ac_header in bsd/string.h
14430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431 echo "$as_me:14431: checking for $ac_header" >&5
14432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 cat >conftest.$ac_ext <<_ACEOF
14437 #line 14437 "configure"
14438 #include "confdefs.h"
14439 #include <$ac_header>
14441 if { (eval echo "$as_me:14441: \"$ac_cpp conftest.$ac_ext\"") >&5
14442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14444 egrep -v '^ *\+' conftest.er1 >conftest.err
14446 cat conftest.err >&5
14447 echo "$as_me:14447: \$? = $ac_status" >&5
14448 (exit $ac_status); } >/dev/null; then
14449 if test -s conftest.err; then
14450 ac_cpp_err=$ac_c_preproc_warn_flag
14457 if test -z "$ac_cpp_err"; then
14458 eval "$as_ac_Header=yes"
14460 echo "$as_me: failed program was:" >&5
14461 cat conftest.$ac_ext >&5
14462 eval "$as_ac_Header=no"
14464 rm -f conftest.err conftest.$ac_ext
14466 echo "$as_me:14466: result: `eval echo '${'$as_ac_Header'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14469 cat >>confdefs.h <<EOF
14470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14476 cat >>confdefs.h <<\EOF
14477 #define HAVE_STRLCAT 1
14484 for ac_func in strlcpy snprintf
14486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14487 echo "$as_me:14487: checking for $ac_func" >&5
14488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_var+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 cat >conftest.$ac_ext <<_ACEOF
14493 #line 14493 "configure"
14494 #include "confdefs.h"
14495 /* System header to define __stub macros and hopefully few prototypes,
14496 which can conflict with char $ac_func (); below. */
14497 #include <assert.h>
14498 /* Override any gcc2 internal prototype to avoid an error. */
14502 /* We use char because int might match the return type of a gcc2
14503 builtin and then its argument prototype would still apply. */
14510 /* The GNU C library defines this for functions which it implements
14511 to always fail with ENOSYS. Some functions are actually named
14512 something starting with __ and the normal name is an alias. */
14513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14516 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (eval echo "$as_me:14524: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>&5
14527 echo "$as_me:14527: \$? = $ac_status" >&5
14528 (exit $ac_status); } &&
14529 { ac_try='test -s conftest$ac_exeext'
14530 { (eval echo "$as_me:14530: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:14533: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 eval "$as_ac_var=yes"
14537 echo "$as_me: failed program was:" >&5
14538 cat conftest.$ac_ext >&5
14539 eval "$as_ac_var=no"
14541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14543 echo "$as_me:14543: result: `eval echo '${'$as_ac_var'}'`" >&5
14544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14545 if test `eval echo '${'$as_ac_var'}'` = yes; then
14546 cat >>confdefs.h <<EOF
14547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14555 ### use option --enable-assertions to turn on generation of assertion code
14556 echo "$as_me:14556: checking if you want to enable runtime assertions" >&5
14557 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
14559 # Check whether --enable-assertions or --disable-assertions was given.
14560 if test "${enable_assertions+set}" = set; then
14561 enableval="$enable_assertions"
14562 with_assertions=$enableval
14566 echo "$as_me:14566: result: $with_assertions" >&5
14567 echo "${ECHO_T}$with_assertions" >&6
14570 if test "$with_assertions" = no
14572 CPPFLAGS="$CPPFLAGS -DNDEBUG"
14575 ADAFLAGS="$ADAFLAGS -gnata"
14580 ### use option --disable-leaks to suppress "permanent" leaks, for testing
14582 echo "$as_me:14582: checking if you want to use dmalloc for testing" >&5
14583 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
14585 # Check whether --with-dmalloc or --without-dmalloc was given.
14586 if test "${with_dmalloc+set}" = set; then
14587 withval="$with_dmalloc"
14589 cat >>confdefs.h <<EOF
14590 #define USE_DMALLOC 1
14593 : ${with_cflags:=-g}
14594 : ${with_no_leaks:=yes}
14599 echo "$as_me:14599: result: ${with_dmalloc:-no}" >&5
14600 echo "${ECHO_T}${with_dmalloc:-no}" >&6
14602 case .$with_cflags in
14612 cf_new_extra_cppflags=
14614 for cf_add_cflags in -g
14616 case $cf_fix_cppflags in
14618 case $cf_add_cflags in
14619 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14620 case $cf_add_cflags in
14622 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14624 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14625 && test -z "${cf_tst_cflags}" \
14626 && cf_fix_cppflags=yes
14628 if test $cf_fix_cppflags = yes ; then
14630 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14631 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14634 elif test "${cf_tst_cflags}" = "\"'" ; then
14636 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14637 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14643 case "$CPPFLAGS" in
14647 case $cf_add_cflags in
14649 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14651 CPPFLAGS=`echo "$CPPFLAGS" | \
14652 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14653 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14658 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14659 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14666 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14667 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14674 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14675 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14679 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14680 && test -z "${cf_tst_cflags}" \
14681 && cf_fix_cppflags=no
14686 if test -n "$cf_new_cflags" ; then
14688 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14689 CFLAGS="${CFLAGS}$cf_new_cflags"
14693 if test -n "$cf_new_cppflags" ; then
14695 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14696 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14700 if test -n "$cf_new_extra_cppflags" ; then
14702 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14703 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14712 if test "$with_dmalloc" = yes ; then
14713 echo "$as_me:14713: checking for dmalloc.h" >&5
14714 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
14715 if test "${ac_cv_header_dmalloc_h+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 cat >conftest.$ac_ext <<_ACEOF
14719 #line 14719 "configure"
14720 #include "confdefs.h"
14721 #include <dmalloc.h>
14723 if { (eval echo "$as_me:14723: \"$ac_cpp conftest.$ac_ext\"") >&5
14724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14726 egrep -v '^ *\+' conftest.er1 >conftest.err
14728 cat conftest.err >&5
14729 echo "$as_me:14729: \$? = $ac_status" >&5
14730 (exit $ac_status); } >/dev/null; then
14731 if test -s conftest.err; then
14732 ac_cpp_err=$ac_c_preproc_warn_flag
14739 if test -z "$ac_cpp_err"; then
14740 ac_cv_header_dmalloc_h=yes
14742 echo "$as_me: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14744 ac_cv_header_dmalloc_h=no
14746 rm -f conftest.err conftest.$ac_ext
14748 echo "$as_me:14748: result: $ac_cv_header_dmalloc_h" >&5
14749 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
14750 if test $ac_cv_header_dmalloc_h = yes; then
14752 echo "$as_me:14752: checking for dmalloc_debug in -ldmalloc" >&5
14753 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
14754 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 ac_check_lib_save_LIBS=$LIBS
14758 LIBS="-ldmalloc $LIBS"
14759 cat >conftest.$ac_ext <<_ACEOF
14760 #line 14760 "configure"
14761 #include "confdefs.h"
14763 /* Override any gcc2 internal prototype to avoid an error. */
14767 /* We use char because int might match the return type of a gcc2
14768 builtin and then its argument prototype would still apply. */
14769 char dmalloc_debug ();
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (eval echo "$as_me:14779: \"$ac_link\"") >&5
14780 (eval $ac_link) 2>&5
14782 echo "$as_me:14782: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -s conftest$ac_exeext'
14785 { (eval echo "$as_me:14785: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:14788: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 ac_cv_lib_dmalloc_dmalloc_debug=yes
14792 echo "$as_me: failed program was:" >&5
14793 cat conftest.$ac_ext >&5
14794 ac_cv_lib_dmalloc_dmalloc_debug=no
14796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14799 echo "$as_me:14799: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
14800 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
14801 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
14802 cat >>confdefs.h <<EOF
14803 #define HAVE_LIBDMALLOC 1
14806 LIBS="-ldmalloc $LIBS"
14814 echo "$as_me:14814: checking if you want to use dbmalloc for testing" >&5
14815 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
14817 # Check whether --with-dbmalloc or --without-dbmalloc was given.
14818 if test "${with_dbmalloc+set}" = set; then
14819 withval="$with_dbmalloc"
14821 cat >>confdefs.h <<EOF
14822 #define USE_DBMALLOC 1
14825 : ${with_cflags:=-g}
14826 : ${with_no_leaks:=yes}
14831 echo "$as_me:14831: result: ${with_dbmalloc:-no}" >&5
14832 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
14834 case .$with_cflags in
14844 cf_new_extra_cppflags=
14846 for cf_add_cflags in -g
14848 case $cf_fix_cppflags in
14850 case $cf_add_cflags in
14851 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14852 case $cf_add_cflags in
14854 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14856 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14857 && test -z "${cf_tst_cflags}" \
14858 && cf_fix_cppflags=yes
14860 if test $cf_fix_cppflags = yes ; then
14862 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14863 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14866 elif test "${cf_tst_cflags}" = "\"'" ; then
14868 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14869 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14875 case "$CPPFLAGS" in
14879 case $cf_add_cflags in
14881 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14883 CPPFLAGS=`echo "$CPPFLAGS" | \
14884 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14885 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14890 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14891 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14898 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14899 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14906 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14907 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14909 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14911 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14912 && test -z "${cf_tst_cflags}" \
14913 && cf_fix_cppflags=no
14918 if test -n "$cf_new_cflags" ; then
14920 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14921 CFLAGS="${CFLAGS}$cf_new_cflags"
14925 if test -n "$cf_new_cppflags" ; then
14927 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14928 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14932 if test -n "$cf_new_extra_cppflags" ; then
14934 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14935 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14944 if test "$with_dbmalloc" = yes ; then
14945 echo "$as_me:14945: checking for dbmalloc.h" >&5
14946 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
14947 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 cat >conftest.$ac_ext <<_ACEOF
14951 #line 14951 "configure"
14952 #include "confdefs.h"
14953 #include <dbmalloc.h>
14955 if { (eval echo "$as_me:14955: \"$ac_cpp conftest.$ac_ext\"") >&5
14956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14958 egrep -v '^ *\+' conftest.er1 >conftest.err
14960 cat conftest.err >&5
14961 echo "$as_me:14961: \$? = $ac_status" >&5
14962 (exit $ac_status); } >/dev/null; then
14963 if test -s conftest.err; then
14964 ac_cpp_err=$ac_c_preproc_warn_flag
14971 if test -z "$ac_cpp_err"; then
14972 ac_cv_header_dbmalloc_h=yes
14974 echo "$as_me: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 ac_cv_header_dbmalloc_h=no
14978 rm -f conftest.err conftest.$ac_ext
14980 echo "$as_me:14980: result: $ac_cv_header_dbmalloc_h" >&5
14981 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
14982 if test $ac_cv_header_dbmalloc_h = yes; then
14984 echo "$as_me:14984: checking for debug_malloc in -ldbmalloc" >&5
14985 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14986 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 ac_check_lib_save_LIBS=$LIBS
14990 LIBS="-ldbmalloc $LIBS"
14991 cat >conftest.$ac_ext <<_ACEOF
14992 #line 14992 "configure"
14993 #include "confdefs.h"
14995 /* Override any gcc2 internal prototype to avoid an error. */
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15001 char debug_malloc ();
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (eval echo "$as_me:15011: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>&5
15014 echo "$as_me:15014: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -s conftest$ac_exeext'
15017 { (eval echo "$as_me:15017: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:15020: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_cv_lib_dbmalloc_debug_malloc=yes
15024 echo "$as_me: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15026 ac_cv_lib_dbmalloc_debug_malloc=no
15028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS
15031 echo "$as_me:15031: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
15032 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
15033 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
15034 cat >>confdefs.h <<EOF
15035 #define HAVE_LIBDBMALLOC 1
15038 LIBS="-ldbmalloc $LIBS"
15046 echo "$as_me:15046: checking if you want to use valgrind for testing" >&5
15047 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
15049 # Check whether --with-valgrind or --without-valgrind was given.
15050 if test "${with_valgrind+set}" = set; then
15051 withval="$with_valgrind"
15053 cat >>confdefs.h <<EOF
15054 #define USE_VALGRIND 1
15057 : ${with_cflags:=-g}
15058 : ${with_no_leaks:=yes}
15063 echo "$as_me:15063: result: ${with_valgrind:-no}" >&5
15064 echo "${ECHO_T}${with_valgrind:-no}" >&6
15066 case .$with_cflags in
15076 cf_new_extra_cppflags=
15078 for cf_add_cflags in -g
15080 case $cf_fix_cppflags in
15082 case $cf_add_cflags in
15083 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15084 case $cf_add_cflags in
15086 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15089 && test -z "${cf_tst_cflags}" \
15090 && cf_fix_cppflags=yes
15092 if test $cf_fix_cppflags = yes ; then
15094 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15095 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15098 elif test "${cf_tst_cflags}" = "\"'" ; then
15100 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15101 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15107 case "$CPPFLAGS" in
15111 case $cf_add_cflags in
15113 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15115 CPPFLAGS=`echo "$CPPFLAGS" | \
15116 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15117 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15122 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15123 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15130 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15131 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15138 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15139 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15141 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15143 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15144 && test -z "${cf_tst_cflags}" \
15145 && cf_fix_cppflags=no
15150 if test -n "$cf_new_cflags" ; then
15152 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15153 CFLAGS="${CFLAGS}$cf_new_cflags"
15157 if test -n "$cf_new_cppflags" ; then
15159 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15160 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15164 if test -n "$cf_new_extra_cppflags" ; then
15166 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15167 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15176 echo "$as_me:15176: checking if you want to perform memory-leak testing" >&5
15177 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
15179 # Check whether --enable-leaks or --disable-leaks was given.
15180 if test "${enable_leaks+set}" = set; then
15181 enableval="$enable_leaks"
15182 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
15184 : ${with_no_leaks:=no}
15186 echo "$as_me:15186: result: $with_no_leaks" >&5
15187 echo "${ECHO_T}$with_no_leaks" >&6
15189 if test "$with_no_leaks" = yes ; then
15191 cat >>confdefs.h <<\EOF
15195 cat >>confdefs.h <<\EOF
15196 #define YY_NO_LEAKS 1
15201 cat >>confdefs.h <<\EOF
15202 #define HAVE_NC_ALLOC_H 1
15205 ### use option --enable-expanded to generate certain macros as functions
15207 # Check whether --enable-expanded or --disable-expanded was given.
15208 if test "${enable_expanded+set}" = set; then
15209 enableval="$enable_expanded"
15210 test "x$enableval" = xyes &&
15211 cat >>confdefs.h <<\EOF
15212 #define NCURSES_EXPANDED 1
15217 ### use option --disable-macros to suppress macros in favor of functions
15219 # Check whether --enable-macros or --disable-macros was given.
15220 if test "${enable_macros+set}" = set; then
15221 enableval="$enable_macros"
15222 test "$enableval" = no &&
15223 cat >>confdefs.h <<\EOF
15224 #define NCURSES_NOMACROS 1
15229 # Normally we only add trace() to the debug-library. Allow this to be
15230 # extended to all models of the ncurses library:
15232 case "$CFLAGS $CPPFLAGS" in
15238 echo "$as_me:15238: checking whether to add trace feature to all models" >&5
15239 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
15241 # Check whether --with-trace or --without-trace was given.
15242 if test "${with_trace+set}" = set; then
15243 withval="$with_trace"
15244 cf_with_trace=$withval
15246 cf_with_trace=$cf_all_traces
15248 echo "$as_me:15248: result: $cf_with_trace" >&5
15249 echo "${ECHO_T}$cf_with_trace" >&6
15251 if test "x$cf_with_trace" = xyes ; then
15258 cf_new_extra_cppflags=
15260 for cf_add_cflags in -DTRACE
15262 case $cf_fix_cppflags in
15264 case $cf_add_cflags in
15265 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15266 case $cf_add_cflags in
15268 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15270 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15271 && test -z "${cf_tst_cflags}" \
15272 && cf_fix_cppflags=yes
15274 if test $cf_fix_cppflags = yes ; then
15276 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15277 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15280 elif test "${cf_tst_cflags}" = "\"'" ; then
15282 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15283 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15289 case "$CPPFLAGS" in
15293 case $cf_add_cflags in
15295 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15297 CPPFLAGS=`echo "$CPPFLAGS" | \
15298 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15299 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15304 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15305 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15312 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15313 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15320 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15321 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15323 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15325 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15326 && test -z "${cf_tst_cflags}" \
15327 && cf_fix_cppflags=no
15332 if test -n "$cf_new_cflags" ; then
15334 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15335 CFLAGS="${CFLAGS}$cf_new_cflags"
15339 if test -n "$cf_new_cppflags" ; then
15341 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15342 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15346 if test -n "$cf_new_extra_cppflags" ; then
15348 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15349 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15353 cat >>confdefs.h <<\EOF
15354 #define HAVE__TRACEF 1
15362 echo "$as_me:15362: checking if we want to use GNAT projects" >&5
15363 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
15365 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
15366 if test "${enable_gnat_projects+set}" = set; then
15367 enableval="$enable_gnat_projects"
15368 test "$enableval" != no && enableval=yes
15369 if test "$enableval" != "yes" ; then
15370 enable_gnat_projects=no
15372 enable_gnat_projects=yes
15376 enable_gnat_projects=yes
15379 echo "$as_me:15379: result: $enable_gnat_projects" >&5
15380 echo "${ECHO_T}$enable_gnat_projects" >&6
15382 ### Checks for libraries.
15383 case $cf_cv_system_name in
15384 (*mingw32*|*mingw64*)
15385 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
15386 LIBS=" -lpsapi $LIBS"
15389 echo "$as_me:15389: checking for gettimeofday" >&5
15390 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
15391 if test "${ac_cv_func_gettimeofday+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15395 #line 15395 "configure"
15396 #include "confdefs.h"
15397 /* System header to define __stub macros and hopefully few prototypes,
15398 which can conflict with char gettimeofday (); below. */
15399 #include <assert.h>
15400 /* Override any gcc2 internal prototype to avoid an error. */
15404 /* We use char because int might match the return type of a gcc2
15405 builtin and then its argument prototype would still apply. */
15406 char gettimeofday ();
15412 /* The GNU C library defines this for functions which it implements
15413 to always fail with ENOSYS. Some functions are actually named
15414 something starting with __ and the normal name is an alias. */
15415 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
15418 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15425 rm -f conftest.$ac_objext conftest$ac_exeext
15426 if { (eval echo "$as_me:15426: \"$ac_link\"") >&5
15427 (eval $ac_link) 2>&5
15429 echo "$as_me:15429: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -s conftest$ac_exeext'
15432 { (eval echo "$as_me:15432: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:15435: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_func_gettimeofday=yes
15439 echo "$as_me: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15441 ac_cv_func_gettimeofday=no
15443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15445 echo "$as_me:15445: result: $ac_cv_func_gettimeofday" >&5
15446 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
15447 if test $ac_cv_func_gettimeofday = yes; then
15449 cat >>confdefs.h <<\EOF
15450 #define HAVE_GETTIMEOFDAY 1
15455 echo "$as_me:15455: checking for gettimeofday in -lbsd" >&5
15456 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
15457 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 ac_check_lib_save_LIBS=$LIBS
15462 cat >conftest.$ac_ext <<_ACEOF
15463 #line 15463 "configure"
15464 #include "confdefs.h"
15466 /* Override any gcc2 internal prototype to avoid an error. */
15470 /* We use char because int might match the return type of a gcc2
15471 builtin and then its argument prototype would still apply. */
15472 char gettimeofday ();
15481 rm -f conftest.$ac_objext conftest$ac_exeext
15482 if { (eval echo "$as_me:15482: \"$ac_link\"") >&5
15483 (eval $ac_link) 2>&5
15485 echo "$as_me:15485: \$? = $ac_status" >&5
15486 (exit $ac_status); } &&
15487 { ac_try='test -s conftest$ac_exeext'
15488 { (eval echo "$as_me:15488: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15491 echo "$as_me:15491: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 ac_cv_lib_bsd_gettimeofday=yes
15495 echo "$as_me: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15497 ac_cv_lib_bsd_gettimeofday=no
15499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15500 LIBS=$ac_check_lib_save_LIBS
15502 echo "$as_me:15502: result: $ac_cv_lib_bsd_gettimeofday" >&5
15503 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
15504 if test $ac_cv_lib_bsd_gettimeofday = yes; then
15506 cat >>confdefs.h <<\EOF
15507 #define HAVE_GETTIMEOFDAY 1
15510 cf_add_libs="-lbsd"
15511 # Filter out duplicates - this happens with badly-designed ".pc" files...
15512 for cf_add_1lib in $LIBS
15514 for cf_add_2lib in $cf_add_libs
15516 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15522 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15524 LIBS="$cf_add_libs"
15532 echo "$as_me:15532: checking if -lm needed for math functions" >&5
15533 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
15534 if test "${cf_cv_need_libm+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 cat >conftest.$ac_ext <<_ACEOF
15539 #line 15539 "configure"
15540 #include "confdefs.h"
15543 #include <stdlib.h>
15549 double x = rand(); printf("result = %g\n", pow(sin(x),x))
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (eval echo "$as_me:15555: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>&5
15558 echo "$as_me:15558: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -s conftest$ac_exeext'
15561 { (eval echo "$as_me:15561: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15564 echo "$as_me:15564: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15568 echo "$as_me: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 cf_cv_need_libm=yes
15572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15574 echo "$as_me:15574: result: $cf_cv_need_libm" >&5
15575 echo "${ECHO_T}$cf_cv_need_libm" >&6
15576 if test "$cf_cv_need_libm" = yes
15581 ### Checks for header files.
15582 echo "$as_me:15582: checking for ANSI C header files" >&5
15583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15584 if test "${ac_cv_header_stdc+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 cat >conftest.$ac_ext <<_ACEOF
15588 #line 15588 "configure"
15589 #include "confdefs.h"
15590 #include <stdlib.h>
15591 #include <stdarg.h>
15592 #include <string.h>
15596 if { (eval echo "$as_me:15596: \"$ac_cpp conftest.$ac_ext\"") >&5
15597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15599 egrep -v '^ *\+' conftest.er1 >conftest.err
15601 cat conftest.err >&5
15602 echo "$as_me:15602: \$? = $ac_status" >&5
15603 (exit $ac_status); } >/dev/null; then
15604 if test -s conftest.err; then
15605 ac_cpp_err=$ac_c_preproc_warn_flag
15612 if test -z "$ac_cpp_err"; then
15613 ac_cv_header_stdc=yes
15615 echo "$as_me: failed program was:" >&5
15616 cat conftest.$ac_ext >&5
15617 ac_cv_header_stdc=no
15619 rm -f conftest.err conftest.$ac_ext
15621 if test $ac_cv_header_stdc = yes; then
15622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15623 cat >conftest.$ac_ext <<_ACEOF
15624 #line 15624 "configure"
15625 #include "confdefs.h"
15626 #include <string.h>
15629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15630 egrep "memchr" >/dev/null 2>&1; then
15633 ac_cv_header_stdc=no
15639 if test $ac_cv_header_stdc = yes; then
15640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15641 cat >conftest.$ac_ext <<_ACEOF
15642 #line 15642 "configure"
15643 #include "confdefs.h"
15644 #include <stdlib.h>
15647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15648 egrep "free" >/dev/null 2>&1; then
15651 ac_cv_header_stdc=no
15657 if test $ac_cv_header_stdc = yes; then
15658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15659 if test "$cross_compiling" = yes; then
15662 cat >conftest.$ac_ext <<_ACEOF
15663 #line 15663 "configure"
15664 #include "confdefs.h"
15666 #if ((' ' & 0x0FF) == 0x020)
15667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15670 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15671 || ('j' <= (c) && (c) <= 'r') \
15672 || ('s' <= (c) && (c) <= 'z'))
15673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15681 for (i = 0; i < 256; i++)
15682 if (XOR (islower (i), ISLOWER (i))
15683 || toupper (i) != TOUPPER (i))
15684 $ac_main_return(2);
15685 $ac_main_return (0);
15688 rm -f conftest$ac_exeext
15689 if { (eval echo "$as_me:15689: \"$ac_link\"") >&5
15690 (eval $ac_link) 2>&5
15692 echo "$as_me:15692: \$? = $ac_status" >&5
15693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15694 { (eval echo "$as_me:15694: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:15697: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15701 echo "$as_me: program exited with status $ac_status" >&5
15702 echo "$as_me: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15704 ac_cv_header_stdc=no
15706 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15710 echo "$as_me:15710: result: $ac_cv_header_stdc" >&5
15711 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15712 if test $ac_cv_header_stdc = yes; then
15714 cat >>confdefs.h <<\EOF
15715 #define STDC_HEADERS 1
15720 ac_header_dirent=no
15721 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15722 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15723 echo "$as_me:15723: checking for $ac_hdr that defines DIR" >&5
15724 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 cat >conftest.$ac_ext <<_ACEOF
15729 #line 15729 "configure"
15730 #include "confdefs.h"
15731 #include <sys/types.h>
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
15755 eval "$as_ac_Header=yes"
15757 echo "$as_me: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15759 eval "$as_ac_Header=no"
15761 rm -f conftest.$ac_objext conftest.$ac_ext
15763 echo "$as_me:15763: result: `eval echo '${'$as_ac_Header'}'`" >&5
15764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15766 cat >>confdefs.h <<EOF
15767 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15770 ac_header_dirent=$ac_hdr; break
15774 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15775 if test $ac_header_dirent = dirent.h; then
15776 echo "$as_me:15776: checking for opendir in -ldir" >&5
15777 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
15778 if test "${ac_cv_lib_dir_opendir+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 ac_check_lib_save_LIBS=$LIBS
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line 15784 "configure"
15785 #include "confdefs.h"
15787 /* Override any gcc2 internal prototype to avoid an error. */
15791 /* We use char because int might match the return type of a gcc2
15792 builtin and then its argument prototype would still apply. */
15802 rm -f conftest.$ac_objext conftest$ac_exeext
15803 if { (eval echo "$as_me:15803: \"$ac_link\"") >&5
15804 (eval $ac_link) 2>&5
15806 echo "$as_me:15806: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -s conftest$ac_exeext'
15809 { (eval echo "$as_me:15809: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:15812: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_cv_lib_dir_opendir=yes
15816 echo "$as_me: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15818 ac_cv_lib_dir_opendir=no
15820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15823 echo "$as_me:15823: result: $ac_cv_lib_dir_opendir" >&5
15824 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
15825 if test $ac_cv_lib_dir_opendir = yes; then
15830 echo "$as_me:15830: checking for opendir in -lx" >&5
15831 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
15832 if test "${ac_cv_lib_x_opendir+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 ac_check_lib_save_LIBS=$LIBS
15837 cat >conftest.$ac_ext <<_ACEOF
15838 #line 15838 "configure"
15839 #include "confdefs.h"
15841 /* Override any gcc2 internal prototype to avoid an error. */
15845 /* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (eval echo "$as_me:15857: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>&5
15860 echo "$as_me:15860: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -s conftest$ac_exeext'
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 ac_cv_lib_x_opendir=yes
15870 echo "$as_me: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 ac_cv_lib_x_opendir=no
15874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15877 echo "$as_me:15877: result: $ac_cv_lib_x_opendir" >&5
15878 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
15879 if test $ac_cv_lib_x_opendir = yes; then
15885 echo "$as_me:15885: checking whether time.h and sys/time.h may both be included" >&5
15886 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15887 if test "${ac_cv_header_time+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 cat >conftest.$ac_ext <<_ACEOF
15891 #line 15891 "configure"
15892 #include "confdefs.h"
15893 #include <sys/types.h>
15894 #include <sys/time.h>
15900 if ((struct tm *) 0)
15906 rm -f conftest.$ac_objext
15907 if { (eval echo "$as_me:15907: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>&5
15910 echo "$as_me:15910: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -s conftest.$ac_objext'
15913 { (eval echo "$as_me:15913: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15916 echo "$as_me:15916: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_cv_header_time=yes
15920 echo "$as_me: failed program was:" >&5
15921 cat conftest.$ac_ext >&5
15922 ac_cv_header_time=no
15924 rm -f conftest.$ac_objext conftest.$ac_ext
15926 echo "$as_me:15926: result: $ac_cv_header_time" >&5
15927 echo "${ECHO_T}$ac_cv_header_time" >&6
15928 if test $ac_cv_header_time = yes; then
15930 cat >>confdefs.h <<\EOF
15931 #define TIME_WITH_SYS_TIME 1
15938 cf_regex_libs="regex re"
15941 cf_regex_libs="gnurx $cf_regex_libs"
15945 echo "$as_me:15945: checking for regcomp" >&5
15946 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
15947 if test "${ac_cv_func_regcomp+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 cat >conftest.$ac_ext <<_ACEOF
15951 #line 15951 "configure"
15952 #include "confdefs.h"
15953 /* System header to define __stub macros and hopefully few prototypes,
15954 which can conflict with char regcomp (); below. */
15955 #include <assert.h>
15956 /* Override any gcc2 internal prototype to avoid an error. */
15960 /* We use char because int might match the return type of a gcc2
15961 builtin and then its argument prototype would still apply. */
15968 /* The GNU C library defines this for functions which it implements
15969 to always fail with ENOSYS. Some functions are actually named
15970 something starting with __ and the normal name is an alias. */
15971 #if defined (__stub_regcomp) || defined (__stub___regcomp)
15974 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (eval echo "$as_me:15982: \"$ac_link\"") >&5
15983 (eval $ac_link) 2>&5
15985 echo "$as_me:15985: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -s conftest$ac_exeext'
15988 { (eval echo "$as_me:15988: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:15991: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_cv_func_regcomp=yes
15995 echo "$as_me: failed program was:" >&5
15996 cat conftest.$ac_ext >&5
15997 ac_cv_func_regcomp=no
15999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16001 echo "$as_me:16001: result: $ac_cv_func_regcomp" >&5
16002 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
16003 if test $ac_cv_func_regcomp = yes; then
16004 cf_regex_func=regcomp
16007 for cf_regex_lib in $cf_regex_libs
16009 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
16010 echo "$as_me:16010: checking for regcomp in -l$cf_regex_lib" >&5
16011 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
16012 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 ac_check_lib_save_LIBS=$LIBS
16016 LIBS="-l$cf_regex_lib $LIBS"
16017 cat >conftest.$ac_ext <<_ACEOF
16018 #line 16018 "configure"
16019 #include "confdefs.h"
16021 /* Override any gcc2 internal prototype to avoid an error. */
16025 /* We use char because int might match the return type of a gcc2
16026 builtin and then its argument prototype would still apply. */
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (eval echo "$as_me:16037: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>&5
16040 echo "$as_me:16040: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -s conftest$ac_exeext'
16043 { (eval echo "$as_me:16043: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:16046: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 eval "$as_ac_Lib=yes"
16050 echo "$as_me: failed program was:" >&5
16051 cat conftest.$ac_ext >&5
16052 eval "$as_ac_Lib=no"
16054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16055 LIBS=$ac_check_lib_save_LIBS
16057 echo "$as_me:16057: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16058 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16059 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16061 cf_add_libs="-l$cf_regex_lib"
16062 # Filter out duplicates - this happens with badly-designed ".pc" files...
16063 for cf_add_1lib in $LIBS
16065 for cf_add_2lib in $cf_add_libs
16067 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16073 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16075 LIBS="$cf_add_libs"
16077 cf_regex_func=regcomp
16085 if test "$cf_regex_func" = no ; then
16086 echo "$as_me:16086: checking for compile" >&5
16087 echo $ECHO_N "checking for compile... $ECHO_C" >&6
16088 if test "${ac_cv_func_compile+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16092 #line 16092 "configure"
16093 #include "confdefs.h"
16094 /* System header to define __stub macros and hopefully few prototypes,
16095 which can conflict with char compile (); below. */
16096 #include <assert.h>
16097 /* Override any gcc2 internal prototype to avoid an error. */
16101 /* We use char because int might match the return type of a gcc2
16102 builtin and then its argument prototype would still apply. */
16109 /* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112 #if defined (__stub_compile) || defined (__stub___compile)
16115 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16122 rm -f conftest.$ac_objext conftest$ac_exeext
16123 if { (eval echo "$as_me:16123: \"$ac_link\"") >&5
16124 (eval $ac_link) 2>&5
16126 echo "$as_me:16126: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -s conftest$ac_exeext'
16129 { (eval echo "$as_me:16129: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:16132: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_func_compile=yes
16136 echo "$as_me: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 ac_cv_func_compile=no
16140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16142 echo "$as_me:16142: result: $ac_cv_func_compile" >&5
16143 echo "${ECHO_T}$ac_cv_func_compile" >&6
16144 if test $ac_cv_func_compile = yes; then
16145 cf_regex_func=compile
16148 echo "$as_me:16148: checking for compile in -lgen" >&5
16149 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
16150 if test "${ac_cv_lib_gen_compile+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 ac_check_lib_save_LIBS=$LIBS
16155 cat >conftest.$ac_ext <<_ACEOF
16156 #line 16156 "configure"
16157 #include "confdefs.h"
16159 /* Override any gcc2 internal prototype to avoid an error. */
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:16175: \"$ac_link\"") >&5
16176 (eval $ac_link) 2>&5
16178 echo "$as_me:16178: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -s conftest$ac_exeext'
16181 { (eval echo "$as_me:16181: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:16184: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_lib_gen_compile=yes
16188 echo "$as_me: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16190 ac_cv_lib_gen_compile=no
16192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16193 LIBS=$ac_check_lib_save_LIBS
16195 echo "$as_me:16195: result: $ac_cv_lib_gen_compile" >&5
16196 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
16197 if test $ac_cv_lib_gen_compile = yes; then
16199 cf_add_libs="-lgen"
16200 # Filter out duplicates - this happens with badly-designed ".pc" files...
16201 for cf_add_1lib in $LIBS
16203 for cf_add_2lib in $cf_add_libs
16205 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16211 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16213 LIBS="$cf_add_libs"
16215 cf_regex_func=compile
16222 if test "$cf_regex_func" = no ; then
16223 { echo "$as_me:16223: WARNING: cannot find regular expression library" >&5
16224 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
16227 echo "$as_me:16227: checking for regular-expression headers" >&5
16228 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
16229 if test "${cf_cv_regex_hdrs+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 cf_cv_regex_hdrs=no
16234 case $cf_regex_func in
16236 for cf_regex_hdr in regexp.h regexpr.h
16238 cat >conftest.$ac_ext <<_ACEOF
16239 #line 16239 "configure"
16240 #include "confdefs.h"
16241 #include <$cf_regex_hdr>
16246 char *p = compile("", "", "", 0);
16247 int x = step("", "");
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (eval echo "$as_me:16254: \"$ac_link\"") >&5
16255 (eval $ac_link) 2>&5
16257 echo "$as_me:16257: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
16259 { ac_try='test -s conftest$ac_exeext'
16260 { (eval echo "$as_me:16260: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16263 echo "$as_me:16263: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16266 cf_cv_regex_hdrs=$cf_regex_hdr
16270 echo "$as_me: failed program was:" >&5
16271 cat conftest.$ac_ext >&5
16273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16277 for cf_regex_hdr in regex.h
16279 cat >conftest.$ac_ext <<_ACEOF
16280 #line 16280 "configure"
16281 #include "confdefs.h"
16282 #include <sys/types.h>
16283 #include <$cf_regex_hdr>
16289 int x = regcomp(p, "", 0);
16290 int y = regexec(p, "", 0, 0, 0);
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (eval echo "$as_me:16298: \"$ac_link\"") >&5
16299 (eval $ac_link) 2>&5
16301 echo "$as_me:16301: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -s conftest$ac_exeext'
16304 { (eval echo "$as_me:16304: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:16307: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16310 cf_cv_regex_hdrs=$cf_regex_hdr
16314 echo "$as_me: failed program was:" >&5
16315 cat conftest.$ac_ext >&5
16317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16323 echo "$as_me:16323: result: $cf_cv_regex_hdrs" >&5
16324 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
16326 case $cf_cv_regex_hdrs in
16327 (no) { echo "$as_me:16327: WARNING: no regular expression header found" >&5
16328 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
16330 cat >>confdefs.h <<\EOF
16331 #define HAVE_REGEX_H_FUNCS 1
16335 cat >>confdefs.h <<\EOF
16336 #define HAVE_REGEXP_H_FUNCS 1
16340 cat >>confdefs.h <<\EOF
16341 #define HAVE_REGEXPR_H_FUNCS 1
16365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16366 echo "$as_me:16366: checking for $ac_header" >&5
16367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 cat >conftest.$ac_ext <<_ACEOF
16372 #line 16372 "configure"
16373 #include "confdefs.h"
16374 #include <$ac_header>
16376 if { (eval echo "$as_me:16376: \"$ac_cpp conftest.$ac_ext\"") >&5
16377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16379 egrep -v '^ *\+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 echo "$as_me:16382: \$? = $ac_status" >&5
16383 (exit $ac_status); } >/dev/null; then
16384 if test -s conftest.err; then
16385 ac_cpp_err=$ac_c_preproc_warn_flag
16392 if test -z "$ac_cpp_err"; then
16393 eval "$as_ac_Header=yes"
16395 echo "$as_me: failed program was:" >&5
16396 cat conftest.$ac_ext >&5
16397 eval "$as_ac_Header=no"
16399 rm -f conftest.err conftest.$ac_ext
16401 echo "$as_me:16401: result: `eval echo '${'$as_ac_Header'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16404 cat >>confdefs.h <<EOF
16405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16411 for ac_header in unistd.h getopt.h
16413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16414 echo "$as_me:16414: checking for $ac_header" >&5
16415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 cat >conftest.$ac_ext <<_ACEOF
16420 #line 16420 "configure"
16421 #include "confdefs.h"
16422 #include <$ac_header>
16424 if { (eval echo "$as_me:16424: \"$ac_cpp conftest.$ac_ext\"") >&5
16425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16427 egrep -v '^ *\+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 echo "$as_me:16430: \$? = $ac_status" >&5
16431 (exit $ac_status); } >/dev/null; then
16432 if test -s conftest.err; then
16433 ac_cpp_err=$ac_c_preproc_warn_flag
16440 if test -z "$ac_cpp_err"; then
16441 eval "$as_ac_Header=yes"
16443 echo "$as_me: failed program was:" >&5
16444 cat conftest.$ac_ext >&5
16445 eval "$as_ac_Header=no"
16447 rm -f conftest.err conftest.$ac_ext
16449 echo "$as_me:16449: result: `eval echo '${'$as_ac_Header'}'`" >&5
16450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16452 cat >>confdefs.h <<EOF
16453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16459 echo "$as_me:16459: checking for header declaring getopt variables" >&5
16460 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
16461 if test "${cf_cv_getopt_header+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 cf_cv_getopt_header=none
16466 for cf_header in stdio.h stdlib.h unistd.h getopt.h
16468 cat >conftest.$ac_ext <<_ACEOF
16469 #line 16469 "configure"
16470 #include "confdefs.h"
16472 #include <$cf_header>
16476 int x = optind; char *y = optarg
16481 rm -f conftest.$ac_objext
16482 if { (eval echo "$as_me:16482: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>&5
16485 echo "$as_me:16485: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:16488: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:16491: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 cf_cv_getopt_header=$cf_header
16496 echo "$as_me: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16499 rm -f conftest.$ac_objext conftest.$ac_ext
16503 echo "$as_me:16503: result: $cf_cv_getopt_header" >&5
16504 echo "${ECHO_T}$cf_cv_getopt_header" >&6
16505 if test $cf_cv_getopt_header != none ; then
16507 cat >>confdefs.h <<\EOF
16508 #define HAVE_GETOPT_HEADER 1
16512 if test $cf_cv_getopt_header = getopt.h ; then
16514 cat >>confdefs.h <<\EOF
16515 #define NEED_GETOPT_H 1
16520 # check for ISC (this may also define _POSIX_SOURCE)
16521 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
16522 if test "x$ISC" = xyes ; then
16524 echo "$as_me:16524: checking for main in -lcposix" >&5
16525 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
16526 if test "${ac_cv_lib_cposix_main+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 ac_check_lib_save_LIBS=$LIBS
16530 LIBS="-lcposix $LIBS"
16531 cat >conftest.$ac_ext <<_ACEOF
16532 #line 16532 "configure"
16533 #include "confdefs.h"
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (eval echo "$as_me:16544: \"$ac_link\"") >&5
16545 (eval $ac_link) 2>&5
16547 echo "$as_me:16547: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -s conftest$ac_exeext'
16550 { (eval echo "$as_me:16550: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16553 echo "$as_me:16553: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_lib_cposix_main=yes
16557 echo "$as_me: failed program was:" >&5
16558 cat conftest.$ac_ext >&5
16559 ac_cv_lib_cposix_main=no
16561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16562 LIBS=$ac_check_lib_save_LIBS
16564 echo "$as_me:16564: result: $ac_cv_lib_cposix_main" >&5
16565 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
16566 if test $ac_cv_lib_cposix_main = yes; then
16567 cat >>confdefs.h <<EOF
16568 #define HAVE_LIBCPOSIX 1
16571 LIBS="-lcposix $LIBS"
16575 echo "$as_me:16575: checking for bzero in -linet" >&5
16576 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
16577 if test "${ac_cv_lib_inet_bzero+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 ac_check_lib_save_LIBS=$LIBS
16581 LIBS="-linet $LIBS"
16582 cat >conftest.$ac_ext <<_ACEOF
16583 #line 16583 "configure"
16584 #include "confdefs.h"
16586 /* Override any gcc2 internal prototype to avoid an error. */
16590 /* We use char because int might match the return type of a gcc2
16591 builtin and then its argument prototype would still apply. */
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:16602: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>&5
16605 echo "$as_me:16605: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:16608: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:16611: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ac_cv_lib_inet_bzero=yes
16615 echo "$as_me: failed program was:" >&5
16616 cat conftest.$ac_ext >&5
16617 ac_cv_lib_inet_bzero=no
16619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16620 LIBS=$ac_check_lib_save_LIBS
16622 echo "$as_me:16622: result: $ac_cv_lib_inet_bzero" >&5
16623 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
16624 if test $ac_cv_lib_inet_bzero = yes; then
16626 cf_add_libs="-linet"
16627 # Filter out duplicates - this happens with badly-designed ".pc" files...
16628 for cf_add_1lib in $LIBS
16630 for cf_add_2lib in $cf_add_libs
16632 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16638 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16640 LIBS="$cf_add_libs"
16645 echo "$as_me:16645: checking if sys/time.h works with sys/select.h" >&5
16646 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
16647 if test "${cf_cv_sys_time_select+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 cat >conftest.$ac_ext <<_ACEOF
16652 #line 16652 "configure"
16653 #include "confdefs.h"
16655 #include <sys/types.h>
16656 #ifdef HAVE_SYS_TIME_H
16657 #include <sys/time.h>
16659 #ifdef HAVE_SYS_SELECT_H
16660 #include <sys/select.h>
16671 rm -f conftest.$ac_objext
16672 if { (eval echo "$as_me:16672: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>&5
16675 echo "$as_me:16675: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:16678: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:16681: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 cf_cv_sys_time_select=yes
16685 echo "$as_me: failed program was:" >&5
16686 cat conftest.$ac_ext >&5
16687 cf_cv_sys_time_select=no
16689 rm -f conftest.$ac_objext conftest.$ac_ext
16693 echo "$as_me:16693: result: $cf_cv_sys_time_select" >&5
16694 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
16695 test "$cf_cv_sys_time_select" = yes &&
16696 cat >>confdefs.h <<\EOF
16697 #define HAVE_SYS_TIME_SELECT 1
16700 ### checks for compiler characteristics
16702 ac_cpp='$CPP $CPPFLAGS'
16703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16706 ac_main_return=return
16708 echo "$as_me:16708: checking for an ANSI C-conforming const" >&5
16709 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16710 if test "${ac_cv_c_const+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 cat >conftest.$ac_ext <<_ACEOF
16714 #line 16714 "configure"
16715 #include "confdefs.h"
16720 /* FIXME: Include the comments suggested by Paul. */
16721 #ifndef __cplusplus
16722 /* Ultrix mips cc rejects this. */
16723 typedef int charset[2];
16725 /* SunOS 4.1.1 cc rejects this. */
16726 char const *const *ccp;
16728 /* NEC SVR4.0.2 mips cc rejects this. */
16729 struct point {int x, y;};
16730 static struct point const zero = {0,0};
16731 /* AIX XL C 1.02.0.0 rejects this.
16732 It does not let you subtract one const X* pointer from another in
16733 an arm of an if-expression whose if-part is not a constant
16735 const char *g = "string";
16736 ccp = &g + (g ? g-g : 0);
16737 /* HPUX 7.0 cc rejects these. */
16740 ccp = (char const *const *) p;
16741 { /* SCO 3.2v4 cc rejects this. */
16743 char const *s = 0 ? (char *) 0 : (char const *) 0;
16747 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16748 int x[] = {25, 17};
16749 const int *foo = &x[0];
16752 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16753 typedef const int *iptr;
16757 { /* AIX XL C 1.02.0.0 rejects this saying
16758 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16759 struct s { int j; const int *ap[3]; };
16760 struct s *b; b->j = 5;
16762 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16763 const int foo = 10;
16771 rm -f conftest.$ac_objext
16772 if { (eval echo "$as_me:16772: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>&5
16775 echo "$as_me:16775: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (eval echo "$as_me:16778: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:16781: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16785 echo "$as_me: failed program was:" >&5
16786 cat conftest.$ac_ext >&5
16789 rm -f conftest.$ac_objext conftest.$ac_ext
16791 echo "$as_me:16791: result: $ac_cv_c_const" >&5
16792 echo "${ECHO_T}$ac_cv_c_const" >&6
16793 if test $ac_cv_c_const = no; then
16795 cat >>confdefs.h <<\EOF
16801 echo "$as_me:16801: checking for inline" >&5
16802 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16803 if test "${ac_cv_c_inline+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 for ac_kw in inline __inline__ __inline; do
16808 cat >conftest.$ac_ext <<_ACEOF
16809 #line 16809 "configure"
16810 #include "confdefs.h"
16811 #ifndef __cplusplus
16812 static $ac_kw int static_foo () {return 0; }
16813 $ac_kw int foo () {return 0; }
16817 rm -f conftest.$ac_objext
16818 if { (eval echo "$as_me:16818: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>&5
16821 echo "$as_me:16821: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:16824: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:16827: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_cv_c_inline=$ac_kw; break
16831 echo "$as_me: failed program was:" >&5
16832 cat conftest.$ac_ext >&5
16834 rm -f conftest.$ac_objext conftest.$ac_ext
16838 echo "$as_me:16838: result: $ac_cv_c_inline" >&5
16839 echo "${ECHO_T}$ac_cv_c_inline" >&6
16840 case $ac_cv_c_inline in
16843 cat >>confdefs.h <<\EOF
16847 *) cat >>confdefs.h <<EOF
16848 #define inline $ac_cv_c_inline
16854 if test "$ac_cv_c_inline" != no ; then
16855 NCURSES_INLINE=inline
16856 if test "$INTEL_COMPILER" = yes
16859 elif test "$CLANG_COMPILER" = yes
16862 elif test "$GCC" = yes
16864 echo "$as_me:16864: checking if $CC supports options to tune inlining" >&5
16865 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
16866 if test "${cf_cv_gcc_inline+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 cf_save_CFLAGS=$CFLAGS
16871 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
16872 cat >conftest.$ac_ext <<_ACEOF
16873 #line 16873 "configure"
16874 #include "confdefs.h"
16875 inline int foo(void) { return 1; }
16879 ${cf_cv_main_return:-return} foo()
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:16885: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>&5
16888 echo "$as_me:16888: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -s conftest.$ac_objext'
16891 { (eval echo "$as_me:16891: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:16894: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 cf_cv_gcc_inline=yes
16898 echo "$as_me: failed program was:" >&5
16899 cat conftest.$ac_ext >&5
16900 cf_cv_gcc_inline=no
16902 rm -f conftest.$ac_objext conftest.$ac_ext
16903 CFLAGS=$cf_save_CFLAGS
16906 echo "$as_me:16906: result: $cf_cv_gcc_inline" >&5
16907 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
16908 if test "$cf_cv_gcc_inline" = yes ; then
16913 cf_new_extra_cppflags=
16915 for cf_add_cflags in --param max-inline-insns-single=1200
16917 case $cf_fix_cppflags in
16919 case $cf_add_cflags in
16920 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16921 case $cf_add_cflags in
16923 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16925 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16926 && test -z "${cf_tst_cflags}" \
16927 && cf_fix_cppflags=yes
16929 if test $cf_fix_cppflags = yes ; then
16931 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16932 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16935 elif test "${cf_tst_cflags}" = "\"'" ; then
16937 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16938 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16944 case "$CPPFLAGS" in
16948 case $cf_add_cflags in
16950 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16952 CPPFLAGS=`echo "$CPPFLAGS" | \
16953 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16954 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16959 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16960 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16967 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16968 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16978 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16980 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16981 && test -z "${cf_tst_cflags}" \
16982 && cf_fix_cppflags=no
16987 if test -n "$cf_new_cflags" ; then
16989 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16990 CFLAGS="${CFLAGS}$cf_new_cflags"
16994 if test -n "$cf_new_cppflags" ; then
16996 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16997 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17001 if test -n "$cf_new_extra_cppflags" ; then
17003 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17004 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17012 echo "$as_me:17012: checking for signal global datatype" >&5
17013 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
17014 if test "${cf_cv_sig_atomic_t+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 "volatile sig_atomic_t" \
17023 cat >conftest.$ac_ext <<_ACEOF
17024 #line 17024 "configure"
17025 #include "confdefs.h"
17027 #include <sys/types.h>
17028 #include <signal.h>
17033 static void handler(int sig)
17040 signal(SIGINT, handler);
17046 rm -f conftest.$ac_objext
17047 if { (eval echo "$as_me:17047: \"$ac_compile\"") >&5
17048 (eval $ac_compile) 2>&5
17050 echo "$as_me:17050: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
17052 { ac_try='test -s conftest.$ac_objext'
17053 { (eval echo "$as_me:17053: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17056 echo "$as_me:17056: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 cf_cv_sig_atomic_t=$cf_type
17060 echo "$as_me: failed program was:" >&5
17061 cat conftest.$ac_ext >&5
17062 cf_cv_sig_atomic_t=no
17064 rm -f conftest.$ac_objext conftest.$ac_ext
17065 test "$cf_cv_sig_atomic_t" != no && break
17070 echo "$as_me:17070: result: $cf_cv_sig_atomic_t" >&5
17071 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
17072 test "$cf_cv_sig_atomic_t" != no &&
17073 cat >>confdefs.h <<EOF
17074 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
17077 if test $NCURSES_CHTYPE = auto ; then
17079 echo "$as_me:17079: checking for type of chtype" >&5
17080 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
17081 if test "${cf_cv_typeof_chtype+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 if test "$cross_compiling" = yes; then
17086 cf_cv_typeof_chtype=long
17088 cat >conftest.$ac_ext <<_ACEOF
17089 #line 17089 "configure"
17090 #include "confdefs.h"
17092 #define WANT_BITS 31
17096 FILE *fp = fopen("cf_test.out", "w");
17098 char *result = "long";
17099 if (sizeof(unsigned long) > sizeof(unsigned int)) {
17102 for (n = 0; n < WANT_BITS; n++) {
17105 if (y != 1 || x == 0) {
17111 * If x is nonzero, an int is big enough for the bits
17114 result = (x != 0) ? "int" : "long";
17119 ${cf_cv_main_return:-return}(0);
17123 rm -f conftest$ac_exeext
17124 if { (eval echo "$as_me:17124: \"$ac_link\"") >&5
17125 (eval $ac_link) 2>&5
17127 echo "$as_me:17127: \$? = $ac_status" >&5
17128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17129 { (eval echo "$as_me:17129: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:17132: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 cf_cv_typeof_chtype=`cat cf_test.out`
17136 echo "$as_me: program exited with status $ac_status" >&5
17137 echo "$as_me: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 cf_cv_typeof_chtype=long
17141 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:17147: result: $cf_cv_typeof_chtype" >&5
17148 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
17150 cat >>confdefs.h <<EOF
17151 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
17155 cf_cv_typeof_chtype=$NCURSES_CHTYPE
17157 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
17159 echo "$as_me:17159: checking if unsigned literals are legal" >&5
17160 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
17161 if test "${cf_cv_unsigned_literals+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 cat >conftest.$ac_ext <<_ACEOF
17166 #line 17166 "configure"
17167 #include "confdefs.h"
17172 long x = 1L + 1UL + 1U + 1
17177 rm -f conftest.$ac_objext
17178 if { (eval echo "$as_me:17178: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>&5
17181 echo "$as_me:17181: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
17183 { ac_try='test -s conftest.$ac_objext'
17184 { (eval echo "$as_me:17184: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:17187: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 cf_cv_unsigned_literals=yes
17191 echo "$as_me: failed program was:" >&5
17192 cat conftest.$ac_ext >&5
17193 cf_cv_unsigned_literals=no
17195 rm -f conftest.$ac_objext conftest.$ac_ext
17199 echo "$as_me:17199: result: $cf_cv_unsigned_literals" >&5
17200 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
17203 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
17204 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
17206 if test $NCURSES_MMASK_T = auto ; then
17207 cf_cv_typeof_mmask_t=long
17209 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
17211 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
17213 ### Checks for external-data
17215 echo "$as_me:17215: checking if external errno is declared" >&5
17216 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
17217 if test "${cf_cv_dcl_errno+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 cat >conftest.$ac_ext <<_ACEOF
17222 #line 17222 "configure"
17223 #include "confdefs.h"
17225 #ifdef HAVE_STDLIB_H
17226 #include <stdlib.h>
17229 #include <sys/types.h>
17234 int x = (int) errno
17239 rm -f conftest.$ac_objext
17240 if { (eval echo "$as_me:17240: \"$ac_compile\"") >&5
17241 (eval $ac_compile) 2>&5
17243 echo "$as_me:17243: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try='test -s conftest.$ac_objext'
17246 { (eval echo "$as_me:17246: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17249 echo "$as_me:17249: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 cf_cv_dcl_errno=yes
17253 echo "$as_me: failed program was:" >&5
17254 cat conftest.$ac_ext >&5
17257 rm -f conftest.$ac_objext conftest.$ac_ext
17260 echo "$as_me:17260: result: $cf_cv_dcl_errno" >&5
17261 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
17263 if test "$cf_cv_dcl_errno" = no ; then
17265 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17267 cat >>confdefs.h <<EOF
17268 #define $cf_result 1
17273 # It's possible (for near-UNIX clones) that the data doesn't exist
17275 echo "$as_me:17275: checking if external errno exists" >&5
17276 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
17277 if test "${cf_cv_have_errno+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 cat >conftest.$ac_ext <<_ACEOF
17282 #line 17282 "configure"
17283 #include "confdefs.h"
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (eval echo "$as_me:17297: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17300 echo "$as_me:17300: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -s conftest$ac_exeext'
17303 { (eval echo "$as_me:17303: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17306 echo "$as_me:17306: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 cf_cv_have_errno=yes
17310 echo "$as_me: failed program was:" >&5
17311 cat conftest.$ac_ext >&5
17312 cf_cv_have_errno=no
17314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17317 echo "$as_me:17317: result: $cf_cv_have_errno" >&5
17318 echo "${ECHO_T}$cf_cv_have_errno" >&6
17320 if test "$cf_cv_have_errno" = yes ; then
17322 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17324 cat >>confdefs.h <<EOF
17325 #define $cf_result 1
17330 echo "$as_me:17330: checking if data-only library module links" >&5
17331 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
17332 if test "${cf_cv_link_dataonly+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 cat >conftest.$ac_ext <<EOF
17338 #line 17338 "configure"
17339 int testdata[3] = { 123, 456, 789 };
17341 if { (eval echo "$as_me:17341: \"$ac_compile\"") >&5
17342 (eval $ac_compile) 2>&5
17344 echo "$as_me:17344: \$? = $ac_status" >&5
17345 (exit $ac_status); } ; then
17346 mv conftest.o data.o && \
17347 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
17349 rm -f conftest.$ac_ext data.o
17350 cat >conftest.$ac_ext <<EOF
17351 #line 17351 "configure"
17355 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
17357 extern int testdata[3];
17358 return testdata[0] == 123
17359 && testdata[1] == 456
17360 && testdata[2] == 789;
17364 if { (eval echo "$as_me:17364: \"$ac_compile\"") >&5
17365 (eval $ac_compile) 2>&5
17367 echo "$as_me:17367: \$? = $ac_status" >&5
17368 (exit $ac_status); }; then
17369 mv conftest.o func.o && \
17370 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
17372 rm -f conftest.$ac_ext func.o
17373 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
17374 cf_saveLIBS="$LIBS"
17375 LIBS="conftest.a $LIBS"
17376 if test "$cross_compiling" = yes; then
17377 cf_cv_link_dataonly=unknown
17379 cat >conftest.$ac_ext <<_ACEOF
17380 #line 17380 "configure"
17381 #include "confdefs.h"
17385 extern int testfunc();
17386 ${cf_cv_main_return:-return} (!testfunc());
17390 rm -f conftest$ac_exeext
17391 if { (eval echo "$as_me:17391: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>&5
17394 echo "$as_me:17394: \$? = $ac_status" >&5
17395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17396 { (eval echo "$as_me:17396: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17399 echo "$as_me:17399: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 cf_cv_link_dataonly=yes
17403 echo "$as_me: program exited with status $ac_status" >&5
17404 echo "$as_me: failed program was:" >&5
17405 cat conftest.$ac_ext >&5
17406 cf_cv_link_dataonly=no
17408 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17410 LIBS="$cf_saveLIBS"
17414 echo "$as_me:17414: result: $cf_cv_link_dataonly" >&5
17415 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
17417 if test "$cf_cv_link_dataonly" = no ; then
17419 cat >>confdefs.h <<\EOF
17420 #define BROKEN_LINKER 1
17426 ### Checks for library functions.
17454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17455 echo "$as_me:17455: checking for $ac_func" >&5
17456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17457 if eval "test \"\${$as_ac_var+set}\" = set"; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 cat >conftest.$ac_ext <<_ACEOF
17461 #line 17461 "configure"
17462 #include "confdefs.h"
17463 /* System header to define __stub macros and hopefully few prototypes,
17464 which can conflict with char $ac_func (); below. */
17465 #include <assert.h>
17466 /* Override any gcc2 internal prototype to avoid an error. */
17470 /* We use char because int might match the return type of a gcc2
17471 builtin and then its argument prototype would still apply. */
17478 /* The GNU C library defines this for functions which it implements
17479 to always fail with ENOSYS. Some functions are actually named
17480 something starting with __ and the normal name is an alias. */
17481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17484 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (eval echo "$as_me:17492: \"$ac_link\"") >&5
17493 (eval $ac_link) 2>&5
17495 echo "$as_me:17495: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -s conftest$ac_exeext'
17498 { (eval echo "$as_me:17498: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17501 echo "$as_me:17501: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 eval "$as_ac_var=yes"
17505 echo "$as_me: failed program was:" >&5
17506 cat conftest.$ac_ext >&5
17507 eval "$as_ac_var=no"
17509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17511 echo "$as_me:17511: result: `eval echo '${'$as_ac_var'}'`" >&5
17512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17513 if test `eval echo '${'$as_ac_var'}'` = yes; then
17514 cat >>confdefs.h <<EOF
17515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17521 if test "x$ac_cv_func_getopt" = xno && \
17522 test "x$cf_with_progs$cf_with_tests" != xnono; then
17523 { { echo "$as_me:17523: error: getopt is required for building programs" >&5
17524 echo "$as_me: error: getopt is required for building programs" >&2;}
17525 { (exit 1); exit 1; }; }
17528 if test "x$with_getcap" = "xyes" ; then
17530 echo "$as_me:17530: checking for terminal-capability database functions" >&5
17531 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
17532 if test "${cf_cv_cgetent+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17537 #line 17537 "configure"
17538 #include "confdefs.h"
17540 #include <stdlib.h>
17547 char *db_array = temp;
17548 cgetent(&buf, &db_array, "vt100");
17549 cgetcap(buf, "tc", '=');
17550 cgetmatch(buf, "tc");
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:17557: \"$ac_link\"") >&5
17558 (eval $ac_link) 2>&5
17560 echo "$as_me:17560: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:17563: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 echo "$as_me:17566: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17570 echo "$as_me: failed program was:" >&5
17571 cat conftest.$ac_ext >&5
17574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17577 echo "$as_me:17577: result: $cf_cv_cgetent" >&5
17578 echo "${ECHO_T}$cf_cv_cgetent" >&6
17580 if test "$cf_cv_cgetent" = yes
17583 cat >>confdefs.h <<\EOF
17584 #define HAVE_BSD_CGETENT 1
17587 echo "$as_me:17587: checking if cgetent uses const parameter" >&5
17588 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
17589 if test "${cf_cv_cgetent_const+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.$ac_ext <<_ACEOF
17594 #line 17594 "configure"
17595 #include "confdefs.h"
17597 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
17598 #include <stdlib.h>
17605 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
17606 const char *db_array = temp;
17607 cgetent(&buf, &db_array, "vt100");
17609 cgetcap(buf, "tc", '=');
17610 cgetmatch(buf, "tc");
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:17617: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>&5
17620 echo "$as_me:17620: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -s conftest$ac_exeext'
17623 { (eval echo "$as_me:17623: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:17626: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 cf_cv_cgetent_const=yes
17630 echo "$as_me: failed program was:" >&5
17631 cat conftest.$ac_ext >&5
17632 cf_cv_cgetent_const=no
17634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17637 echo "$as_me:17637: result: $cf_cv_cgetent_const" >&5
17638 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
17639 if test "$cf_cv_cgetent_const" = yes
17642 cat >>confdefs.h <<EOF
17643 #define CGETENT_CONST const
17651 echo "$as_me:17651: checking for isascii" >&5
17652 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
17653 if test "${cf_cv_have_isascii+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 cat >conftest.$ac_ext <<_ACEOF
17658 #line 17658 "configure"
17659 #include "confdefs.h"
17664 int x = isascii(' ')
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (eval echo "$as_me:17670: \"$ac_link\"") >&5
17671 (eval $ac_link) 2>&5
17673 echo "$as_me:17673: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try='test -s conftest$ac_exeext'
17676 { (eval echo "$as_me:17676: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17679 echo "$as_me:17679: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 cf_cv_have_isascii=yes
17683 echo "$as_me: failed program was:" >&5
17684 cat conftest.$ac_ext >&5
17685 cf_cv_have_isascii=no
17687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17690 echo "$as_me:17690: result: $cf_cv_have_isascii" >&5
17691 echo "${ECHO_T}$cf_cv_have_isascii" >&6
17692 test "$cf_cv_have_isascii" = yes &&
17693 cat >>confdefs.h <<\EOF
17694 #define HAVE_ISASCII 1
17697 if test "$ac_cv_func_sigaction" = yes; then
17698 echo "$as_me:17698: checking whether sigaction needs _POSIX_SOURCE" >&5
17699 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
17700 cat >conftest.$ac_ext <<_ACEOF
17701 #line 17701 "configure"
17702 #include "confdefs.h"
17704 #include <sys/types.h>
17705 #include <signal.h>
17709 struct sigaction act
17714 rm -f conftest.$ac_objext
17715 if { (eval echo "$as_me:17715: \"$ac_compile\"") >&5
17716 (eval $ac_compile) 2>&5
17718 echo "$as_me:17718: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -s conftest.$ac_objext'
17721 { (eval echo "$as_me:17721: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17724 echo "$as_me:17724: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17728 echo "$as_me: failed program was:" >&5
17729 cat conftest.$ac_ext >&5
17731 cat >conftest.$ac_ext <<_ACEOF
17732 #line 17732 "configure"
17733 #include "confdefs.h"
17735 #define _POSIX_SOURCE
17736 #include <sys/types.h>
17737 #include <signal.h>
17741 struct sigaction act
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:17747: \"$ac_compile\"") >&5
17748 (eval $ac_compile) 2>&5
17750 echo "$as_me:17750: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -s conftest.$ac_objext'
17753 { (eval echo "$as_me:17753: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:17756: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17760 cat >>confdefs.h <<\EOF
17761 #define _POSIX_SOURCE 1
17765 echo "$as_me: failed program was:" >&5
17766 cat conftest.$ac_ext >&5
17769 rm -f conftest.$ac_objext conftest.$ac_ext
17771 rm -f conftest.$ac_objext conftest.$ac_ext
17772 echo "$as_me:17772: result: $sigact_bad" >&5
17773 echo "${ECHO_T}$sigact_bad" >&6
17776 echo "$as_me:17776: checking if nanosleep really works" >&5
17777 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
17778 if test "${cf_cv_func_nanosleep+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 if test "$cross_compiling" = yes; then
17783 cf_cv_func_nanosleep=unknown
17785 cat >conftest.$ac_ext <<_ACEOF
17786 #line 17786 "configure"
17787 #include "confdefs.h"
17793 #ifdef HAVE_SYS_TIME_H
17794 #include <sys/time.h>
17798 struct timespec ts1, ts2;
17801 ts1.tv_nsec = 750000000;
17805 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
17806 ${cf_cv_main_return:-return}(code != 0);
17810 rm -f conftest$ac_exeext
17811 if { (eval echo "$as_me:17811: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>&5
17814 echo "$as_me:17814: \$? = $ac_status" >&5
17815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17816 { (eval echo "$as_me:17816: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:17819: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 cf_cv_func_nanosleep=yes
17823 echo "$as_me: program exited with status $ac_status" >&5
17824 echo "$as_me: failed program was:" >&5
17825 cat conftest.$ac_ext >&5
17826 cf_cv_func_nanosleep=no
17828 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17831 echo "$as_me:17831: result: $cf_cv_func_nanosleep" >&5
17832 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
17834 test "$cf_cv_func_nanosleep" = "yes" &&
17835 cat >>confdefs.h <<\EOF
17836 #define HAVE_NANOSLEEP 1
17845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17846 echo "$as_me:17846: checking for $ac_header" >&5
17847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17848 if eval "test \"\${$as_ac_Header+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 #include <$ac_header>
17856 if { (eval echo "$as_me:17856: \"$ac_cpp conftest.$ac_ext\"") >&5
17857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17859 egrep -v '^ *\+' conftest.er1 >conftest.err
17861 cat conftest.err >&5
17862 echo "$as_me:17862: \$? = $ac_status" >&5
17863 (exit $ac_status); } >/dev/null; then
17864 if test -s conftest.err; then
17865 ac_cpp_err=$ac_c_preproc_warn_flag
17872 if test -z "$ac_cpp_err"; then
17873 eval "$as_ac_Header=yes"
17875 echo "$as_me: failed program was:" >&5
17876 cat conftest.$ac_ext >&5
17877 eval "$as_ac_Header=no"
17879 rm -f conftest.err conftest.$ac_ext
17881 echo "$as_me:17881: result: `eval echo '${'$as_ac_Header'}'`" >&5
17882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17884 cat >>confdefs.h <<EOF
17885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17891 if test "$ISC" = yes ; then
17893 for ac_header in sys/termio.h
17895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17896 echo "$as_me:17896: checking for $ac_header" >&5
17897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 cat >conftest.$ac_ext <<_ACEOF
17902 #line 17902 "configure"
17903 #include "confdefs.h"
17904 #include <$ac_header>
17906 if { (eval echo "$as_me:17906: \"$ac_cpp conftest.$ac_ext\"") >&5
17907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17909 egrep -v '^ *\+' conftest.er1 >conftest.err
17911 cat conftest.err >&5
17912 echo "$as_me:17912: \$? = $ac_status" >&5
17913 (exit $ac_status); } >/dev/null; then
17914 if test -s conftest.err; then
17915 ac_cpp_err=$ac_c_preproc_warn_flag
17922 if test -z "$ac_cpp_err"; then
17923 eval "$as_ac_Header=yes"
17925 echo "$as_me: failed program was:" >&5
17926 cat conftest.$ac_ext >&5
17927 eval "$as_ac_Header=no"
17929 rm -f conftest.err conftest.$ac_ext
17931 echo "$as_me:17931: result: `eval echo '${'$as_ac_Header'}'`" >&5
17932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17934 cat >>confdefs.h <<EOF
17935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17942 if test "$ac_cv_header_termios_h" = yes ; then
17943 case "$CFLAGS $CPPFLAGS" in
17944 (*-D_POSIX_SOURCE*)
17945 termios_bad=dunno ;;
17946 (*) termios_bad=maybe ;;
17948 if test "$termios_bad" = maybe ; then
17949 echo "$as_me:17949: checking whether termios.h needs _POSIX_SOURCE" >&5
17950 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17952 #line 17952 "configure"
17953 #include "confdefs.h"
17954 #include <termios.h>
17958 struct termios foo; int x = foo.c_iflag
17963 rm -f conftest.$ac_objext
17964 if { (eval echo "$as_me:17964: \"$ac_compile\"") >&5
17965 (eval $ac_compile) 2>&5
17967 echo "$as_me:17967: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:17970: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:17973: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17977 echo "$as_me: failed program was:" >&5
17978 cat conftest.$ac_ext >&5
17980 cat >conftest.$ac_ext <<_ACEOF
17981 #line 17981 "configure"
17982 #include "confdefs.h"
17984 #define _POSIX_SOURCE
17985 #include <termios.h>
17989 struct termios foo; int x = foo.c_iflag
17994 rm -f conftest.$ac_objext
17995 if { (eval echo "$as_me:17995: \"$ac_compile\"") >&5
17996 (eval $ac_compile) 2>&5
17998 echo "$as_me:17998: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -s conftest.$ac_objext'
18001 { (eval echo "$as_me:18001: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:18004: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 termios_bad=unknown
18008 echo "$as_me: failed program was:" >&5
18009 cat conftest.$ac_ext >&5
18011 cat >>confdefs.h <<\EOF
18012 #define _POSIX_SOURCE 1
18016 rm -f conftest.$ac_objext conftest.$ac_ext
18019 rm -f conftest.$ac_objext conftest.$ac_ext
18020 echo "$as_me:18020: result: $termios_bad" >&5
18021 echo "${ECHO_T}$termios_bad" >&6
18025 echo "$as_me:18025: checking for tcgetattr" >&5
18026 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
18027 if test "${cf_cv_have_tcgetattr+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 cat >conftest.$ac_ext <<_ACEOF
18032 #line 18032 "configure"
18033 #include "confdefs.h"
18035 #include <sys/types.h>
18036 #ifdef HAVE_UNISTD_H
18037 #include <unistd.h>
18039 #ifdef HAVE_TERMIOS_H
18040 #include <termios.h>
18041 #define TTY struct termios
18043 #ifdef HAVE_TERMIO_H
18044 #include <termio.h>
18045 #define TTY struct termio
18054 tcgetattr(1, &foo);
18059 rm -f conftest.$ac_objext conftest$ac_exeext
18060 if { (eval echo "$as_me:18060: \"$ac_link\"") >&5
18061 (eval $ac_link) 2>&5
18063 echo "$as_me:18063: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -s conftest$ac_exeext'
18066 { (eval echo "$as_me:18066: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18069 echo "$as_me:18069: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 cf_cv_have_tcgetattr=yes
18073 echo "$as_me: failed program was:" >&5
18074 cat conftest.$ac_ext >&5
18075 cf_cv_have_tcgetattr=no
18077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18079 echo "$as_me:18079: result: $cf_cv_have_tcgetattr" >&5
18080 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
18081 test "$cf_cv_have_tcgetattr" = yes &&
18082 cat >>confdefs.h <<\EOF
18083 #define HAVE_TCGETATTR 1
18086 echo "$as_me:18086: checking for vsscanf function or workaround" >&5
18087 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
18088 if test "${cf_cv_func_vsscanf+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 cat >conftest.$ac_ext <<_ACEOF
18093 #line 18093 "configure"
18094 #include "confdefs.h"
18096 #include <stdarg.h>
18103 vsscanf("from", "%d", ap)
18108 rm -f conftest.$ac_objext conftest$ac_exeext
18109 if { (eval echo "$as_me:18109: \"$ac_link\"") >&5
18110 (eval $ac_link) 2>&5
18112 echo "$as_me:18112: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -s conftest$ac_exeext'
18115 { (eval echo "$as_me:18115: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:18118: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 cf_cv_func_vsscanf=vsscanf
18122 echo "$as_me: failed program was:" >&5
18123 cat conftest.$ac_ext >&5
18125 cat >conftest.$ac_ext <<_ACEOF
18126 #line 18126 "configure"
18127 #include "confdefs.h"
18129 #include <stdarg.h>
18136 char *str = "from";
18138 strbuf._flag = _IOREAD;
18139 strbuf._ptr = strbuf._base = (unsigned char *) str;
18140 strbuf._cnt = strlen(str);
18141 strbuf._file = _NFILE;
18142 return (vfscanf(&strbuf, "%d", ap))
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (eval echo "$as_me:18148: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>&5
18151 echo "$as_me:18151: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -s conftest$ac_exeext'
18154 { (eval echo "$as_me:18154: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:18157: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 cf_cv_func_vsscanf=vfscanf
18161 echo "$as_me: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18164 cat >conftest.$ac_ext <<_ACEOF
18165 #line 18165 "configure"
18166 #include "confdefs.h"
18168 #include <stdarg.h>
18175 char *str = "from";
18177 strbuf._flag = _IOREAD;
18178 strbuf._ptr = strbuf._base = (unsigned char *) str;
18179 strbuf._cnt = strlen(str);
18180 strbuf._file = _NFILE;
18181 return (_doscan(&strbuf, "%d", ap))
18186 rm -f conftest.$ac_objext conftest$ac_exeext
18187 if { (eval echo "$as_me:18187: \"$ac_link\"") >&5
18188 (eval $ac_link) 2>&5
18190 echo "$as_me:18190: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
18192 { ac_try='test -s conftest$ac_exeext'
18193 { (eval echo "$as_me:18193: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18196 echo "$as_me:18196: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18198 cf_cv_func_vsscanf=_doscan
18200 echo "$as_me: failed program was:" >&5
18201 cat conftest.$ac_ext >&5
18203 cf_cv_func_vsscanf=no
18205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18211 echo "$as_me:18211: result: $cf_cv_func_vsscanf" >&5
18212 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
18214 case $cf_cv_func_vsscanf in
18216 cat >>confdefs.h <<\EOF
18217 #define HAVE_VSSCANF 1
18221 cat >>confdefs.h <<\EOF
18222 #define HAVE_VFSCANF 1
18226 cat >>confdefs.h <<\EOF
18227 #define HAVE__DOSCAN 1
18236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18237 echo "$as_me:18237: checking for $ac_header" >&5
18238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 cat >conftest.$ac_ext <<_ACEOF
18243 #line 18243 "configure"
18244 #include "confdefs.h"
18245 #include <$ac_header>
18247 if { (eval echo "$as_me:18247: \"$ac_cpp conftest.$ac_ext\"") >&5
18248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18250 egrep -v '^ *\+' conftest.er1 >conftest.err
18252 cat conftest.err >&5
18253 echo "$as_me:18253: \$? = $ac_status" >&5
18254 (exit $ac_status); } >/dev/null; then
18255 if test -s conftest.err; then
18256 ac_cpp_err=$ac_c_preproc_warn_flag
18263 if test -z "$ac_cpp_err"; then
18264 eval "$as_ac_Header=yes"
18266 echo "$as_me: failed program was:" >&5
18267 cat conftest.$ac_ext >&5
18268 eval "$as_ac_Header=no"
18270 rm -f conftest.err conftest.$ac_ext
18272 echo "$as_me:18272: result: `eval echo '${'$as_ac_Header'}'`" >&5
18273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18275 cat >>confdefs.h <<EOF
18276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18282 echo "$as_me:18282: checking for working mkstemp" >&5
18283 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
18284 if test "${cf_cv_func_mkstemp+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 if test "$cross_compiling" = yes; then
18290 cf_cv_func_mkstemp=maybe
18292 cat >conftest.$ac_ext <<_ACEOF
18293 #line 18293 "configure"
18294 #include "confdefs.h"
18296 #include <sys/types.h>
18297 #ifdef HAVE_UNISTD_H
18298 #include <unistd.h>
18300 #include <stdlib.h>
18302 #include <string.h>
18303 #include <sys/stat.h>
18306 char *tmpl = "conftestXXXXXX";
18314 for (n = 0; n < 2; ++n) {
18315 strcpy(name[n], tmpl);
18316 if ((fd = mkstemp(name[n])) >= 0) {
18317 if (!strcmp(name[n], tmpl)
18318 || stat(name[n], &sb) != 0
18319 || (sb.st_mode & S_IFMT) != S_IFREG
18320 || (sb.st_mode & 077) != 0) {
18327 && !strcmp(name[0], name[1]))
18329 ${cf_cv_main_return:-return}(result);
18333 rm -f conftest$ac_exeext
18334 if { (eval echo "$as_me:18334: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>&5
18337 echo "$as_me:18337: \$? = $ac_status" >&5
18338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18339 { (eval echo "$as_me:18339: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:18342: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 cf_cv_func_mkstemp=yes
18347 echo "$as_me: program exited with status $ac_status" >&5
18348 echo "$as_me: failed program was:" >&5
18349 cat conftest.$ac_ext >&5
18350 cf_cv_func_mkstemp=no
18353 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18357 echo "$as_me:18357: result: $cf_cv_func_mkstemp" >&5
18358 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
18359 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
18360 echo "$as_me:18360: checking for mkstemp" >&5
18361 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
18362 if test "${ac_cv_func_mkstemp+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 cat >conftest.$ac_ext <<_ACEOF
18366 #line 18366 "configure"
18367 #include "confdefs.h"
18368 /* System header to define __stub macros and hopefully few prototypes,
18369 which can conflict with char mkstemp (); below. */
18370 #include <assert.h>
18371 /* Override any gcc2 internal prototype to avoid an error. */
18375 /* We use char because int might match the return type of a gcc2
18376 builtin and then its argument prototype would still apply. */
18383 /* The GNU C library defines this for functions which it implements
18384 to always fail with ENOSYS. Some functions are actually named
18385 something starting with __ and the normal name is an alias. */
18386 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
18389 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (eval echo "$as_me:18397: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>&5
18400 echo "$as_me:18400: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
18402 { ac_try='test -s conftest$ac_exeext'
18403 { (eval echo "$as_me:18403: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:18406: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_func_mkstemp=yes
18410 echo "$as_me: failed program was:" >&5
18411 cat conftest.$ac_ext >&5
18412 ac_cv_func_mkstemp=no
18414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18416 echo "$as_me:18416: result: $ac_cv_func_mkstemp" >&5
18417 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
18420 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
18422 cat >>confdefs.h <<\EOF
18423 #define HAVE_MKSTEMP 1
18428 # setup for prototype of fallback for vsscanf()
18430 if test "$cf_cv_func_vsscanf" = vsscanf ; then
18436 if test "x$cross_compiling" = xyes ; then
18437 { echo "$as_me:18437: WARNING: cross compiling: assume setvbuf params not reversed" >&5
18438 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
18440 echo "$as_me:18440: checking whether setvbuf arguments are reversed" >&5
18441 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
18442 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 if test "$cross_compiling" = yes; then
18446 { { echo "$as_me:18446: error: cannot run test program while cross compiling" >&5
18447 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
18448 { (exit 1); exit 1; }; }
18450 cat >conftest.$ac_ext <<_ACEOF
18451 #line 18451 "configure"
18452 #include "confdefs.h"
18454 /* If setvbuf has the reversed format, exit 0. */
18458 /* This call has the arguments reversed.
18459 A reversed system may check and see that the address of main
18460 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
18461 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
18462 $ac_main_return(1);
18463 putc('\r', stdout);
18464 $ac_main_return(0); /* Non-reversed systems segv here. */
18467 rm -f conftest$ac_exeext
18468 if { (eval echo "$as_me:18468: \"$ac_link\"") >&5
18469 (eval $ac_link) 2>&5
18471 echo "$as_me:18471: \$? = $ac_status" >&5
18472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18473 { (eval echo "$as_me:18473: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:18476: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_func_setvbuf_reversed=yes
18480 echo "$as_me: program exited with status $ac_status" >&5
18481 echo "$as_me: failed program was:" >&5
18482 cat conftest.$ac_ext >&5
18483 ac_cv_func_setvbuf_reversed=no
18485 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18487 rm -f core core.* *.core
18489 echo "$as_me:18489: result: $ac_cv_func_setvbuf_reversed" >&5
18490 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
18491 if test $ac_cv_func_setvbuf_reversed = yes; then
18493 cat >>confdefs.h <<\EOF
18494 #define SETVBUF_REVERSED 1
18500 echo "$as_me:18500: checking for intptr_t" >&5
18501 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
18502 if test "${ac_cv_type_intptr_t+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 cat >conftest.$ac_ext <<_ACEOF
18506 #line 18506 "configure"
18507 #include "confdefs.h"
18508 $ac_includes_default
18512 if ((intptr_t *) 0)
18514 if (sizeof (intptr_t))
18520 rm -f conftest.$ac_objext
18521 if { (eval echo "$as_me:18521: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>&5
18524 echo "$as_me:18524: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -s conftest.$ac_objext'
18527 { (eval echo "$as_me:18527: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:18530: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_type_intptr_t=yes
18534 echo "$as_me: failed program was:" >&5
18535 cat conftest.$ac_ext >&5
18536 ac_cv_type_intptr_t=no
18538 rm -f conftest.$ac_objext conftest.$ac_ext
18540 echo "$as_me:18540: result: $ac_cv_type_intptr_t" >&5
18541 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
18542 if test $ac_cv_type_intptr_t = yes; then
18546 cat >>confdefs.h <<EOF
18547 #define intptr_t long
18552 echo "$as_me:18552: checking for ssize_t" >&5
18553 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18554 if test "${ac_cv_type_ssize_t+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 cat >conftest.$ac_ext <<_ACEOF
18558 #line 18558 "configure"
18559 #include "confdefs.h"
18560 $ac_includes_default
18566 if (sizeof (ssize_t))
18572 rm -f conftest.$ac_objext
18573 if { (eval echo "$as_me:18573: \"$ac_compile\"") >&5
18574 (eval $ac_compile) 2>&5
18576 echo "$as_me:18576: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
18578 { ac_try='test -s conftest.$ac_objext'
18579 { (eval echo "$as_me:18579: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18582 echo "$as_me:18582: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584 ac_cv_type_ssize_t=yes
18586 echo "$as_me: failed program was:" >&5
18587 cat conftest.$ac_ext >&5
18588 ac_cv_type_ssize_t=no
18590 rm -f conftest.$ac_objext conftest.$ac_ext
18592 echo "$as_me:18592: result: $ac_cv_type_ssize_t" >&5
18593 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
18594 if test $ac_cv_type_ssize_t = yes; then
18598 cat >>confdefs.h <<EOF
18599 #define ssize_t int
18604 echo "$as_me:18604: checking for type sigaction_t" >&5
18605 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
18606 if test "${cf_cv_type_sigaction+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 cat >conftest.$ac_ext <<_ACEOF
18611 #line 18611 "configure"
18612 #include "confdefs.h"
18614 #include <signal.h>
18623 rm -f conftest.$ac_objext
18624 if { (eval echo "$as_me:18624: \"$ac_compile\"") >&5
18625 (eval $ac_compile) 2>&5
18627 echo "$as_me:18627: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (eval echo "$as_me:18630: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18633 echo "$as_me:18633: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 cf_cv_type_sigaction=yes
18637 echo "$as_me: failed program was:" >&5
18638 cat conftest.$ac_ext >&5
18639 cf_cv_type_sigaction=no
18641 rm -f conftest.$ac_objext conftest.$ac_ext
18644 echo "$as_me:18644: result: $cf_cv_type_sigaction" >&5
18645 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
18646 test "$cf_cv_type_sigaction" = yes &&
18647 cat >>confdefs.h <<\EOF
18648 #define HAVE_TYPE_SIGACTION 1
18651 echo "$as_me:18651: checking declaration of size-change" >&5
18652 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
18653 if test "${cf_cv_sizechange+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 cf_cv_sizechange=unknown
18658 cf_save_CPPFLAGS="$CPPFLAGS"
18660 for cf_opts in "" "NEED_PTEM_H"
18663 CPPFLAGS="$cf_save_CPPFLAGS"
18664 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
18665 cat >conftest.$ac_ext <<_ACEOF
18666 #line 18666 "configure"
18667 #include "confdefs.h"
18668 #include <sys/types.h>
18669 #ifdef HAVE_TERMIOS_H
18670 #include <termios.h>
18672 #ifdef HAVE_TERMIO_H
18673 #include <termio.h>
18677 /* This is a workaround for SCO: they neglected to define struct winsize in
18678 * termios.h -- it's only in termio.h and ptem.h
18680 #include <sys/stream.h>
18681 #include <sys/ptem.h>
18683 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
18684 #include <sys/ioctl.h>
18692 struct ttysize win; /* FIXME: what system is this? */
18693 int y = win.ts_lines;
18694 int x = win.ts_cols;
18697 struct winsize win;
18698 int y = win.ws_row;
18699 int x = win.ws_col;
18701 no TIOCGSIZE or TIOCGWINSZ
18702 #endif /* TIOCGWINSZ */
18703 #endif /* TIOCGSIZE */
18709 rm -f conftest.$ac_objext
18710 if { (eval echo "$as_me:18710: \"$ac_compile\"") >&5
18711 (eval $ac_compile) 2>&5
18713 echo "$as_me:18713: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -s conftest.$ac_objext'
18716 { (eval echo "$as_me:18716: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:18719: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 cf_cv_sizechange=yes
18723 echo "$as_me: failed program was:" >&5
18724 cat conftest.$ac_ext >&5
18725 cf_cv_sizechange=no
18727 rm -f conftest.$ac_objext conftest.$ac_ext
18729 CPPFLAGS="$cf_save_CPPFLAGS"
18730 if test "$cf_cv_sizechange" = yes ; then
18731 echo "size-change succeeded ($cf_opts)" >&5
18732 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
18738 echo "$as_me:18738: result: $cf_cv_sizechange" >&5
18739 echo "${ECHO_T}$cf_cv_sizechange" >&6
18740 if test "$cf_cv_sizechange" != no ; then
18742 cat >>confdefs.h <<\EOF
18743 #define HAVE_SIZECHANGE 1
18746 case $cf_cv_sizechange in
18748 cat >>confdefs.h <<EOF
18749 #define $cf_cv_sizechange 1
18756 echo "$as_me:18756: checking for memmove" >&5
18757 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
18758 if test "${ac_cv_func_memmove+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 cat >conftest.$ac_ext <<_ACEOF
18762 #line 18762 "configure"
18763 #include "confdefs.h"
18764 /* System header to define __stub macros and hopefully few prototypes,
18765 which can conflict with char memmove (); below. */
18766 #include <assert.h>
18767 /* Override any gcc2 internal prototype to avoid an error. */
18771 /* We use char because int might match the return type of a gcc2
18772 builtin and then its argument prototype would still apply. */
18779 /* The GNU C library defines this for functions which it implements
18780 to always fail with ENOSYS. Some functions are actually named
18781 something starting with __ and the normal name is an alias. */
18782 #if defined (__stub_memmove) || defined (__stub___memmove)
18785 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (eval echo "$as_me:18793: \"$ac_link\"") >&5
18794 (eval $ac_link) 2>&5
18796 echo "$as_me:18796: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try='test -s conftest$ac_exeext'
18799 { (eval echo "$as_me:18799: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:18802: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_cv_func_memmove=yes
18806 echo "$as_me: failed program was:" >&5
18807 cat conftest.$ac_ext >&5
18808 ac_cv_func_memmove=no
18810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18812 echo "$as_me:18812: result: $ac_cv_func_memmove" >&5
18813 echo "${ECHO_T}$ac_cv_func_memmove" >&6
18814 if test $ac_cv_func_memmove = yes; then
18818 echo "$as_me:18818: checking for bcopy" >&5
18819 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
18820 if test "${ac_cv_func_bcopy+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 cat >conftest.$ac_ext <<_ACEOF
18824 #line 18824 "configure"
18825 #include "confdefs.h"
18826 /* System header to define __stub macros and hopefully few prototypes,
18827 which can conflict with char bcopy (); below. */
18828 #include <assert.h>
18829 /* Override any gcc2 internal prototype to avoid an error. */
18833 /* We use char because int might match the return type of a gcc2
18834 builtin and then its argument prototype would still apply. */
18841 /* The GNU C library defines this for functions which it implements
18842 to always fail with ENOSYS. Some functions are actually named
18843 something starting with __ and the normal name is an alias. */
18844 #if defined (__stub_bcopy) || defined (__stub___bcopy)
18847 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (eval echo "$as_me:18855: \"$ac_link\"") >&5
18856 (eval $ac_link) 2>&5
18858 echo "$as_me:18858: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -s conftest$ac_exeext'
18861 { (eval echo "$as_me:18861: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18864 echo "$as_me:18864: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_cv_func_bcopy=yes
18868 echo "$as_me: failed program was:" >&5
18869 cat conftest.$ac_ext >&5
18870 ac_cv_func_bcopy=no
18872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18874 echo "$as_me:18874: result: $ac_cv_func_bcopy" >&5
18875 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
18876 if test $ac_cv_func_bcopy = yes; then
18878 echo "$as_me:18878: checking if bcopy does overlapping moves" >&5
18879 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
18880 if test "${cf_cv_good_bcopy+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 if test "$cross_compiling" = yes; then
18885 cf_cv_good_bcopy=unknown
18887 cat >conftest.$ac_ext <<_ACEOF
18888 #line 18888 "configure"
18889 #include "confdefs.h"
18892 static char data[] = "abcdefghijklmnopqrstuwwxyz";
18894 bcopy(data, temp, sizeof(data));
18895 bcopy(temp+10, temp, 15);
18896 bcopy(temp+5, temp+15, 10);
18897 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
18901 rm -f conftest$ac_exeext
18902 if { (eval echo "$as_me:18902: \"$ac_link\"") >&5
18903 (eval $ac_link) 2>&5
18905 echo "$as_me:18905: \$? = $ac_status" >&5
18906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18907 { (eval echo "$as_me:18907: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18910 echo "$as_me:18910: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912 cf_cv_good_bcopy=yes
18914 echo "$as_me: program exited with status $ac_status" >&5
18915 echo "$as_me: failed program was:" >&5
18916 cat conftest.$ac_ext >&5
18917 cf_cv_good_bcopy=no
18919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18923 echo "$as_me:18923: result: $cf_cv_good_bcopy" >&5
18924 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
18927 cf_cv_good_bcopy=no
18930 if test "$cf_cv_good_bcopy" = yes ; then
18932 cat >>confdefs.h <<\EOF
18933 #define USE_OK_BCOPY 1
18938 cat >>confdefs.h <<\EOF
18939 #define USE_MY_MEMMOVE 1
18946 tty 2>&1 >/dev/null || {
18947 for ac_func in posix_openpt
18949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18950 echo "$as_me:18950: checking for $ac_func" >&5
18951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18952 if eval "test \"\${$as_ac_var+set}\" = set"; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18956 #line 18956 "configure"
18957 #include "confdefs.h"
18958 /* System header to define __stub macros and hopefully few prototypes,
18959 which can conflict with char $ac_func (); below. */
18960 #include <assert.h>
18961 /* Override any gcc2 internal prototype to avoid an error. */
18965 /* We use char because int might match the return type of a gcc2
18966 builtin and then its argument prototype would still apply. */
18973 /* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18979 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (eval echo "$as_me:18987: \"$ac_link\"") >&5
18988 (eval $ac_link) 2>&5
18990 echo "$as_me:18990: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -s conftest$ac_exeext'
18993 { (eval echo "$as_me:18993: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:18996: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 eval "$as_ac_var=yes"
19000 echo "$as_me: failed program was:" >&5
19001 cat conftest.$ac_ext >&5
19002 eval "$as_ac_var=no"
19004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19006 echo "$as_me:19006: result: `eval echo '${'$as_ac_var'}'`" >&5
19007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19008 if test `eval echo '${'$as_ac_var'}'` = yes; then
19009 cat >>confdefs.h <<EOF
19010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19016 echo "$as_me:19016: checking if poll really works" >&5
19017 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
19018 if test "${cf_cv_working_poll+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 if test "$cross_compiling" = yes; then
19023 cf_cv_working_poll=unknown
19025 cat >conftest.$ac_ext <<_ACEOF
19026 #line 19026 "configure"
19027 #include "confdefs.h"
19029 #include <stdlib.h>
19031 #include <unistd.h>
19036 #include <sys/poll.h>
19039 struct pollfd myfds;
19042 /* check for Darwin bug with respect to "devices" */
19043 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
19046 myfds.events = POLLIN;
19049 ret = poll(&myfds, 1, 100);
19051 if (ret < 0 || (myfds.revents & POLLNVAL)) {
19056 fd = open("/dev/tty", 2); /* O_RDWR */
19058 #ifdef HAVE_POSIX_OPENPT
19060 fd = posix_openpt(O_RDWR);
19065 /* also check with standard input */
19067 myfds.events = POLLIN;
19069 ret = poll(&myfds, 1, 100);
19074 ${cf_cv_main_return:-return}(ret < 0);
19077 rm -f conftest$ac_exeext
19078 if { (eval echo "$as_me:19078: \"$ac_link\"") >&5
19079 (eval $ac_link) 2>&5
19081 echo "$as_me:19081: \$? = $ac_status" >&5
19082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19083 { (eval echo "$as_me:19083: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19086 echo "$as_me:19086: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 cf_cv_working_poll=yes
19090 echo "$as_me: program exited with status $ac_status" >&5
19091 echo "$as_me: failed program was:" >&5
19092 cat conftest.$ac_ext >&5
19093 cf_cv_working_poll=no
19095 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19098 echo "$as_me:19098: result: $cf_cv_working_poll" >&5
19099 echo "${ECHO_T}$cf_cv_working_poll" >&6
19100 test "$cf_cv_working_poll" = "yes" &&
19101 cat >>confdefs.h <<\EOF
19102 #define HAVE_WORKING_POLL 1
19105 echo "$as_me:19105: checking for va_copy" >&5
19106 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19107 if test "${cf_cv_have_va_copy+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19112 #line 19112 "configure"
19113 #include "confdefs.h"
19115 #include <stdarg.h>
19121 static va_list dst;
19122 static va_list src;
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (eval echo "$as_me:19129: \"$ac_link\"") >&5
19130 (eval $ac_link) 2>&5
19132 echo "$as_me:19132: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -s conftest$ac_exeext'
19135 { (eval echo "$as_me:19135: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:19138: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 cf_cv_have_va_copy=yes
19142 echo "$as_me: failed program was:" >&5
19143 cat conftest.$ac_ext >&5
19144 cf_cv_have_va_copy=no
19146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19148 echo "$as_me:19148: result: $cf_cv_have_va_copy" >&5
19149 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
19151 test "$cf_cv_have_va_copy" = yes &&
19152 cat >>confdefs.h <<\EOF
19153 #define HAVE_VA_COPY 1
19156 echo "$as_me:19156: checking for __va_copy" >&5
19157 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
19158 if test "${cf_cv_have___va_copy+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 cat >conftest.$ac_ext <<_ACEOF
19163 #line 19163 "configure"
19164 #include "confdefs.h"
19166 #include <stdarg.h>
19172 static va_list dst;
19173 static va_list src;
19174 __va_copy(dst, src)
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:19180: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19183 echo "$as_me:19183: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (eval echo "$as_me:19186: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:19189: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 cf_cv_have___va_copy=yes
19193 echo "$as_me: failed program was:" >&5
19194 cat conftest.$ac_ext >&5
19195 cf_cv_have___va_copy=no
19197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199 echo "$as_me:19199: result: $cf_cv_have___va_copy" >&5
19200 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
19202 test "$cf_cv_have___va_copy" = yes &&
19203 cat >>confdefs.h <<\EOF
19204 #define HAVE___VA_COPY 1
19207 echo "$as_me:19207: checking for pid_t" >&5
19208 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19209 if test "${ac_cv_type_pid_t+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
19213 #line 19213 "configure"
19214 #include "confdefs.h"
19215 $ac_includes_default
19221 if (sizeof (pid_t))
19227 rm -f conftest.$ac_objext
19228 if { (eval echo "$as_me:19228: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>&5
19231 echo "$as_me:19231: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:19234: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:19237: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_type_pid_t=yes
19241 echo "$as_me: failed program was:" >&5
19242 cat conftest.$ac_ext >&5
19243 ac_cv_type_pid_t=no
19245 rm -f conftest.$ac_objext conftest.$ac_ext
19247 echo "$as_me:19247: result: $ac_cv_type_pid_t" >&5
19248 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19249 if test $ac_cv_type_pid_t = yes; then
19253 cat >>confdefs.h <<EOF
19259 for ac_header in unistd.h vfork.h
19261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19262 echo "$as_me:19262: checking for $ac_header" >&5
19263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 cat >conftest.$ac_ext <<_ACEOF
19268 #line 19268 "configure"
19269 #include "confdefs.h"
19270 #include <$ac_header>
19272 if { (eval echo "$as_me:19272: \"$ac_cpp conftest.$ac_ext\"") >&5
19273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19275 egrep -v '^ *\+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:19278: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev/null; then
19280 if test -s conftest.err; then
19281 ac_cpp_err=$ac_c_preproc_warn_flag
19288 if test -z "$ac_cpp_err"; then
19289 eval "$as_ac_Header=yes"
19291 echo "$as_me: failed program was:" >&5
19292 cat conftest.$ac_ext >&5
19293 eval "$as_ac_Header=no"
19295 rm -f conftest.err conftest.$ac_ext
19297 echo "$as_me:19297: result: `eval echo '${'$as_ac_Header'}'`" >&5
19298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19300 cat >>confdefs.h <<EOF
19301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19307 for ac_func in fork vfork
19309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19310 echo "$as_me:19310: checking for $ac_func" >&5
19311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19312 if eval "test \"\${$as_ac_var+set}\" = set"; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 cat >conftest.$ac_ext <<_ACEOF
19316 #line 19316 "configure"
19317 #include "confdefs.h"
19318 /* System header to define __stub macros and hopefully few prototypes,
19319 which can conflict with char $ac_func (); below. */
19320 #include <assert.h>
19321 /* Override any gcc2 internal prototype to avoid an error. */
19325 /* We use char because int might match the return type of a gcc2
19326 builtin and then its argument prototype would still apply. */
19333 /* The GNU C library defines this for functions which it implements
19334 to always fail with ENOSYS. Some functions are actually named
19335 something starting with __ and the normal name is an alias. */
19336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19339 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:19347: \"$ac_link\"") >&5
19348 (eval $ac_link) 2>&5
19350 echo "$as_me:19350: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -s conftest$ac_exeext'
19353 { (eval echo "$as_me:19353: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19356 echo "$as_me:19356: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 eval "$as_ac_var=yes"
19360 echo "$as_me: failed program was:" >&5
19361 cat conftest.$ac_ext >&5
19362 eval "$as_ac_var=no"
19364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19366 echo "$as_me:19366: result: `eval echo '${'$as_ac_var'}'`" >&5
19367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19368 if test `eval echo '${'$as_ac_var'}'` = yes; then
19369 cat >>confdefs.h <<EOF
19370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19376 ac_cv_func_fork_works=$ac_cv_func_fork
19377 if test "x$ac_cv_func_fork" = xyes; then
19378 echo "$as_me:19378: checking for working fork" >&5
19379 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19380 if test "${ac_cv_func_fork_works+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 if test "$cross_compiling" = yes; then
19384 ac_cv_func_fork_works=cross
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* By Rüdiger Kuhlmann. */
19388 #include <sys/types.h>
19390 # include <unistd.h>
19392 /* Some systems only have a dummy stub for fork() */
19396 $ac_main_return (1);
19397 $ac_main_return (0);
19400 rm -f conftest$ac_exeext
19401 if { (eval echo "$as_me:19401: \"$ac_link\"") >&5
19402 (eval $ac_link) 2>&5
19404 echo "$as_me:19404: \$? = $ac_status" >&5
19405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19406 { (eval echo "$as_me:19406: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 echo "$as_me:19409: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 ac_cv_func_fork_works=yes
19413 echo "$as_me: program exited with status $ac_status" >&5
19414 echo "$as_me: failed program was:" >&5
19415 cat conftest.$ac_ext >&5
19416 ac_cv_func_fork_works=no
19418 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19421 echo "$as_me:19421: result: $ac_cv_func_fork_works" >&5
19422 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19425 if test "x$ac_cv_func_fork_works" = xcross; then
19427 *-*-amigaos* | *-*-msdosdjgpp*)
19428 # Override, as these systems have only a dummy fork() stub
19429 ac_cv_func_fork_works=no
19432 ac_cv_func_fork_works=yes
19435 { echo "$as_me:19435: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
19436 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
19438 ac_cv_func_vfork_works=$ac_cv_func_vfork
19439 if test "x$ac_cv_func_vfork" = xyes; then
19440 echo "$as_me:19440: checking for working vfork" >&5
19441 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19442 if test "${ac_cv_func_vfork_works+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 if test "$cross_compiling" = yes; then
19446 ac_cv_func_vfork_works=cross
19448 cat >conftest.$ac_ext <<_ACEOF
19449 #line 19449 "configure"
19450 #include "confdefs.h"
19451 /* Thanks to Paul Eggert for this test. */
19453 #include <sys/types.h>
19454 #include <sys/stat.h>
19456 # include <unistd.h>
19459 # include <vfork.h>
19461 /* On some sparc systems, changes by the child to local and incoming
19462 argument registers are propagated back to the parent. The compiler
19463 is told about this with #include <vfork.h>, but some compilers
19464 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19465 static variable whose address is put into a register that is
19466 clobbered by the vfork. */
19469 sparc_address_test (int arg)
19471 sparc_address_test (arg) int arg;
19474 static pid_t child;
19492 pid_t parent = getpid ();
19495 sparc_address_test ();
19500 /* Here is another test for sparc vfork register problems. This
19501 test uses lots of local variables, at least as many local
19502 variables as main has allocated so far including compiler
19503 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19504 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19505 reuse the register of parent for one of the local variables,
19506 since it will think that parent can't possibly be used any more
19507 in this routine. Assigning to the local variable will thus
19508 munge parent in the parent process. */
19510 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19511 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19512 /* Convince the compiler that p..p7 are live; otherwise, it might
19513 use the same hardware register for all 8 local variables. */
19514 if (p != p1 || p != p2 || p != p3 || p != p4
19515 || p != p5 || p != p6 || p != p7)
19518 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19519 from child file descriptors. If the child closes a descriptor
19520 before it execs or exits, this munges the parent's descriptor
19521 as well. Test for this by closing stdout in the child. */
19522 _exit(close(fileno(stdout)) != 0);
19527 while (wait(&status) != child)
19530 /* Was there some problem with vforking? */
19533 /* Did the child fail? (This shouldn't happen.) */
19536 /* Did the vfork/compiler bug occur? */
19537 || parent != getpid()
19539 /* Did the file descriptor bug occur? */
19540 || fstat(fileno(stdout), &st) != 0
19545 rm -f conftest$ac_exeext
19546 if { (eval echo "$as_me:19546: \"$ac_link\"") >&5
19547 (eval $ac_link) 2>&5
19549 echo "$as_me:19549: \$? = $ac_status" >&5
19550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19551 { (eval echo "$as_me:19551: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19554 echo "$as_me:19554: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 ac_cv_func_vfork_works=yes
19558 echo "$as_me: program exited with status $ac_status" >&5
19559 echo "$as_me: failed program was:" >&5
19560 cat conftest.$ac_ext >&5
19561 ac_cv_func_vfork_works=no
19563 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19566 echo "$as_me:19566: result: $ac_cv_func_vfork_works" >&5
19567 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19570 if test "x$ac_cv_func_fork_works" = xcross; then
19571 ac_cv_func_vfork_works=ac_cv_func_vfork
19572 { echo "$as_me:19572: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
19573 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
19576 if test "x$ac_cv_func_vfork_works" = xyes; then
19578 cat >>confdefs.h <<\EOF
19579 #define HAVE_WORKING_VFORK 1
19584 cat >>confdefs.h <<\EOF
19589 if test "x$ac_cv_func_fork_works" = xyes; then
19591 cat >>confdefs.h <<\EOF
19592 #define HAVE_WORKING_FORK 1
19597 # special check for test/ditto.c
19599 echo "$as_me:19599: checking for openpty in -lutil" >&5
19600 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
19601 if test "${ac_cv_lib_util_openpty+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 ac_check_lib_save_LIBS=$LIBS
19605 LIBS="-lutil $LIBS"
19606 cat >conftest.$ac_ext <<_ACEOF
19607 #line 19607 "configure"
19608 #include "confdefs.h"
19610 /* Override any gcc2 internal prototype to avoid an error. */
19614 /* We use char because int might match the return type of a gcc2
19615 builtin and then its argument prototype would still apply. */
19625 rm -f conftest.$ac_objext conftest$ac_exeext
19626 if { (eval echo "$as_me:19626: \"$ac_link\"") >&5
19627 (eval $ac_link) 2>&5
19629 echo "$as_me:19629: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -s conftest$ac_exeext'
19632 { (eval echo "$as_me:19632: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19635 echo "$as_me:19635: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_cv_lib_util_openpty=yes
19639 echo "$as_me: failed program was:" >&5
19640 cat conftest.$ac_ext >&5
19641 ac_cv_lib_util_openpty=no
19643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19644 LIBS=$ac_check_lib_save_LIBS
19646 echo "$as_me:19646: result: $ac_cv_lib_util_openpty" >&5
19647 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
19648 if test $ac_cv_lib_util_openpty = yes; then
19654 echo "$as_me:19654: checking for openpty header" >&5
19655 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
19656 if test "${cf_cv_func_openpty+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 cf_save_LIBS="$LIBS"
19661 test $cf_cv_lib_util = yes && {
19662 cf_add_libs="-lutil"
19663 # Filter out duplicates - this happens with badly-designed ".pc" files...
19664 for cf_add_1lib in $LIBS
19666 for cf_add_2lib in $cf_add_libs
19668 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19674 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19676 LIBS="$cf_add_libs"
19678 for cf_header in pty.h libutil.h util.h
19680 cat >conftest.$ac_ext <<_ACEOF
19681 #line 19681 "configure"
19682 #include "confdefs.h"
19684 #include <$cf_header>
19690 int x = openpty((int *)0, (int *)0, (char *)0,
19691 (struct termios *)0, (struct winsize *)0);
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:19698: \"$ac_link\"") >&5
19699 (eval $ac_link) 2>&5
19701 echo "$as_me:19701: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -s conftest$ac_exeext'
19704 { (eval echo "$as_me:19704: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 echo "$as_me:19707: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19710 cf_cv_func_openpty=$cf_header
19714 echo "$as_me: failed program was:" >&5
19715 cat conftest.$ac_ext >&5
19717 cf_cv_func_openpty=no
19720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19722 LIBS="$cf_save_LIBS"
19725 echo "$as_me:19725: result: $cf_cv_func_openpty" >&5
19726 echo "${ECHO_T}$cf_cv_func_openpty" >&6
19728 if test "$cf_cv_func_openpty" != no ; then
19730 cat >>confdefs.h <<EOF
19731 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
19734 cat >>confdefs.h <<\EOF
19735 #define USE_XTERM_PTY 1
19738 if test "x$cf_cv_lib_util" = xyes ; then
19740 cf_add_libs="-lutil"
19741 # Filter out duplicates - this happens with badly-designed ".pc" files...
19742 for cf_add_1lib in $TEST_LIBS
19744 for cf_add_2lib in $cf_add_libs
19746 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19752 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19754 TEST_LIBS="$cf_add_libs"
19759 if test "$with_hashed_db" != no ; then
19761 cat >>confdefs.h <<\EOF
19762 #define USE_HASHED_DB 1
19765 case $with_hashed_db in
19769 if test -d "$with_hashed_db" ; then
19771 if test -n "$with_hashed_db/include" ; then
19772 for cf_add_incdir in $with_hashed_db/include
19774 while test $cf_add_incdir != /usr/include
19776 if test -d $cf_add_incdir
19779 if test -n "$CFLAGS$CPPFLAGS" ; then
19780 # a loop is needed to ensure we can add subdirs of existing dirs
19781 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19782 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19783 cf_have_incdir=yes; break
19788 if test "$cf_have_incdir" = no ; then
19789 if test "$cf_add_incdir" = /usr/local/include ; then
19790 if test "$GCC" = yes
19792 cf_save_CPPFLAGS=$CPPFLAGS
19793 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19794 cat >conftest.$ac_ext <<_ACEOF
19795 #line 19795 "configure"
19796 #include "confdefs.h"
19806 rm -f conftest.$ac_objext
19807 if { (eval echo "$as_me:19807: \"$ac_compile\"") >&5
19808 (eval $ac_compile) 2>&5
19810 echo "$as_me:19810: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (eval echo "$as_me:19813: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19816 echo "$as_me:19816: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19820 echo "$as_me: failed program was:" >&5
19821 cat conftest.$ac_ext >&5
19824 rm -f conftest.$ac_objext conftest.$ac_ext
19825 CPPFLAGS=$cf_save_CPPFLAGS
19830 if test "$cf_have_incdir" = no ; then
19831 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19833 echo "${as_me:-configure}:19833: testing adding $cf_add_incdir to include-path ..." 1>&5
19835 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19837 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19838 test "$cf_top_incdir" = "$cf_add_incdir" && break
19839 cf_add_incdir="$cf_top_incdir"
19850 if test -n "$with_hashed_db/lib" ; then
19851 for cf_add_libdir in $with_hashed_db/lib
19853 if test $cf_add_libdir = /usr/lib ; then
19855 elif test -d $cf_add_libdir
19858 if test -n "$LDFLAGS$LIBS" ; then
19859 # a loop is needed to ensure we can add subdirs of existing dirs
19860 for cf_test_libdir in $LDFLAGS $LIBS ; do
19861 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19862 cf_have_libdir=yes; break
19866 if test "$cf_have_libdir" = no ; then
19867 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19869 echo "${as_me:-configure}:19869: testing adding $cf_add_libdir to library-path ..." 1>&5
19871 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19878 case "$with_hashed_db" in
19880 { echo "$as_me:19880: WARNING: no such directory $with_hashed_db" >&5
19881 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
19887 test "x$prefix" != "xNONE" && \
19888 test -d "$prefix" && \
19890 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
19891 test -d $prefix/include && cf_search="$cf_search $prefix/include"
19892 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
19893 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
19894 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
19895 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
19898 for cf_subdir_prefix in \
19907 test "x$cf_subdir_prefix" != "x$prefix" && \
19908 test -d "$cf_subdir_prefix" && \
19909 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19910 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
19911 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
19912 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
19913 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
19914 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
19915 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"
19920 for cf_item in $cf_search
19923 (*/$with_hashed_db)
19925 if test -n "$cf_item" ; then
19926 for cf_add_incdir in $cf_item
19928 while test $cf_add_incdir != /usr/include
19930 if test -d $cf_add_incdir
19933 if test -n "$CFLAGS$CPPFLAGS" ; then
19934 # a loop is needed to ensure we can add subdirs of existing dirs
19935 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19936 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19937 cf_have_incdir=yes; break
19942 if test "$cf_have_incdir" = no ; then
19943 if test "$cf_add_incdir" = /usr/local/include ; then
19944 if test "$GCC" = yes
19946 cf_save_CPPFLAGS=$CPPFLAGS
19947 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19948 cat >conftest.$ac_ext <<_ACEOF
19949 #line 19949 "configure"
19950 #include "confdefs.h"
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:19961: \"$ac_compile\"") >&5
19962 (eval $ac_compile) 2>&5
19964 echo "$as_me:19964: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:19967: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:19970: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19974 echo "$as_me: failed program was:" >&5
19975 cat conftest.$ac_ext >&5
19978 rm -f conftest.$ac_objext conftest.$ac_ext
19979 CPPFLAGS=$cf_save_CPPFLAGS
19984 if test "$cf_have_incdir" = no ; then
19985 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19987 echo "${as_me:-configure}:19987: testing adding $cf_add_incdir to include-path ..." 1>&5
19989 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19991 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19992 test "$cf_top_incdir" = "$cf_add_incdir" && break
19993 cf_add_incdir="$cf_top_incdir"
20010 test "x$prefix" != "xNONE" && \
20011 test -d "$prefix" && \
20013 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
20014 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
20015 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
20016 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
20017 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
20018 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
20021 for cf_subdir_prefix in \
20030 test "x$cf_subdir_prefix" != "x$prefix" && \
20031 test -d "$cf_subdir_prefix" && \
20032 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
20033 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
20034 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
20035 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
20036 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
20037 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
20038 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"
20043 for cf_item in $cf_search
20046 (*/$with_hashed_db)
20048 if test -n "$cf_item" ; then
20049 for cf_add_libdir in $cf_item
20051 if test $cf_add_libdir = /usr/lib ; then
20053 elif test -d $cf_add_libdir
20056 if test -n "$LDFLAGS$LIBS" ; then
20057 # a loop is needed to ensure we can add subdirs of existing dirs
20058 for cf_test_libdir in $LDFLAGS $LIBS ; do
20059 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
20060 cf_have_libdir=yes; break
20064 if test "$cf_have_libdir" = no ; then
20065 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
20067 echo "${as_me:-configure}:20067: testing adding $cf_add_libdir to library-path ..." 1>&5
20069 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
20084 echo "$as_me:20084: checking for db.h" >&5
20085 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
20086 if test "${ac_cv_header_db_h+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 cat >conftest.$ac_ext <<_ACEOF
20090 #line 20090 "configure"
20091 #include "confdefs.h"
20094 if { (eval echo "$as_me:20094: \"$ac_cpp conftest.$ac_ext\"") >&5
20095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20097 egrep -v '^ *\+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:20100: \$? = $ac_status" >&5
20101 (exit $ac_status); } >/dev/null; then
20102 if test -s conftest.err; then
20103 ac_cpp_err=$ac_c_preproc_warn_flag
20110 if test -z "$ac_cpp_err"; then
20111 ac_cv_header_db_h=yes
20113 echo "$as_me: failed program was:" >&5
20114 cat conftest.$ac_ext >&5
20115 ac_cv_header_db_h=no
20117 rm -f conftest.err conftest.$ac_ext
20119 echo "$as_me:20119: result: $ac_cv_header_db_h" >&5
20120 echo "${ECHO_T}$ac_cv_header_db_h" >&6
20121 if test $ac_cv_header_db_h = yes; then
20123 echo "$as_me:20123: checking for version of db" >&5
20124 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
20125 if test "${cf_cv_hashed_db_version+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 cf_cv_hashed_db_version=unknown
20131 for cf_db_version in 1 2 3 4 5 6
20134 echo "${as_me:-configure}:20134: testing checking for db version $cf_db_version ..." 1>&5
20136 cat >conftest.$ac_ext <<_ACEOF
20137 #line 20137 "configure"
20138 #include "confdefs.h"
20140 $ac_includes_default
20143 #ifdef DB_VERSION_MAJOR
20144 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
20145 #if $cf_db_version == DB_VERSION_MAJOR
20151 #if $cf_db_version == 1
20152 /* ok: assuming this is DB 1.8.5 */
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:20167: \"$ac_compile\"") >&5
20168 (eval $ac_compile) 2>&5
20170 echo "$as_me:20170: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:20173: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:20176: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20179 cf_cv_hashed_db_version=$cf_db_version
20183 echo "$as_me: failed program was:" >&5
20184 cat conftest.$ac_ext >&5
20186 rm -f conftest.$ac_objext conftest.$ac_ext
20190 echo "$as_me:20190: result: $cf_cv_hashed_db_version" >&5
20191 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
20193 if test "$cf_cv_hashed_db_version" = unknown ; then
20194 { { echo "$as_me:20194: error: Cannot determine version of db" >&5
20195 echo "$as_me: error: Cannot determine version of db" >&2;}
20196 { (exit 1); exit 1; }; }
20199 echo "$as_me:20199: checking for db libraries" >&5
20200 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
20201 if test "${cf_cv_hashed_db_libs+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 cf_cv_hashed_db_libs=unknown
20206 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
20208 cf_save_libs="$LIBS"
20209 if test -n "$cf_db_libs"; then
20211 cf_add_libs="-l$cf_db_libs"
20212 # Filter out duplicates - this happens with badly-designed ".pc" files...
20213 for cf_add_1lib in $LIBS
20215 for cf_add_2lib in $cf_add_libs
20217 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20223 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20225 LIBS="$cf_add_libs"
20229 echo "${as_me:-configure}:20229: testing checking for library "$cf_db_libs" ..." 1>&5
20231 cat >conftest.$ac_ext <<_ACEOF
20232 #line 20232 "configure"
20233 #include "confdefs.h"
20235 $ac_includes_default
20242 char *path = "/tmp/foo";
20243 #ifdef DB_VERSION_MAJOR
20244 #if DB_VERSION_MAJOR >= 4
20246 db_create(&result, NULL, 0);
20247 result->open(result,
20254 #elif DB_VERSION_MAJOR >= 3
20256 db_create(&result, NULL, 0);
20257 result->open(result,
20263 #elif DB_VERSION_MAJOR >= 2
20272 #endif /* DB_VERSION_MAJOR */
20274 DB *result = dbopen(path,
20280 ${cf_cv_main_return:-return}(result != 0)
20286 rm -f conftest.$ac_objext conftest$ac_exeext
20287 if { (eval echo "$as_me:20287: \"$ac_link\"") >&5
20288 (eval $ac_link) 2>&5
20290 echo "$as_me:20290: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -s conftest$ac_exeext'
20293 { (eval echo "$as_me:20293: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:20296: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20299 if test -n "$cf_db_libs" ; then
20300 cf_cv_hashed_db_libs=$cf_db_libs
20302 cf_cv_hashed_db_libs=default
20304 LIBS="$cf_save_libs"
20308 echo "$as_me: failed program was:" >&5
20309 cat conftest.$ac_ext >&5
20311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20312 LIBS="$cf_save_libs"
20316 echo "$as_me:20316: result: $cf_cv_hashed_db_libs" >&5
20317 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
20319 if test "$cf_cv_hashed_db_libs" = unknown ; then
20320 { { echo "$as_me:20320: error: Cannot determine library for db" >&5
20321 echo "$as_me: error: Cannot determine library for db" >&2;}
20322 { (exit 1); exit 1; }; }
20323 elif test "$cf_cv_hashed_db_libs" != default ; then
20325 cf_add_libs="-l$cf_cv_hashed_db_libs"
20326 # Filter out duplicates - this happens with badly-designed ".pc" files...
20327 for cf_add_1lib in $LIBS
20329 for cf_add_2lib in $cf_add_libs
20331 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20337 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20339 LIBS="$cf_add_libs"
20346 { { echo "$as_me:20346: error: Cannot find db.h" >&5
20347 echo "$as_me: error: Cannot find db.h" >&2;}
20348 { (exit 1); exit 1; }; }
20354 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
20355 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
20356 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
20359 # Just in case, check if the C compiler has a bool type.
20361 echo "$as_me:20361: checking if we should include stdbool.h" >&5
20362 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20364 if test "${cf_cv_header_stdbool_h+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 cat >conftest.$ac_ext <<_ACEOF
20369 #line 20369 "configure"
20370 #include "confdefs.h"
20380 rm -f conftest.$ac_objext
20381 if { (eval echo "$as_me:20381: \"$ac_compile\"") >&5
20382 (eval $ac_compile) 2>&5
20384 echo "$as_me:20384: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
20386 { ac_try='test -s conftest.$ac_objext'
20387 { (eval echo "$as_me:20387: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20390 echo "$as_me:20390: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 cf_cv_header_stdbool_h=0
20394 echo "$as_me: failed program was:" >&5
20395 cat conftest.$ac_ext >&5
20396 cat >conftest.$ac_ext <<_ACEOF
20397 #line 20397 "configure"
20398 #include "confdefs.h"
20401 #include <stdbool.h>
20412 rm -f conftest.$ac_objext
20413 if { (eval echo "$as_me:20413: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>&5
20416 echo "$as_me:20416: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:20419: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:20422: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 cf_cv_header_stdbool_h=1
20426 echo "$as_me: failed program was:" >&5
20427 cat conftest.$ac_ext >&5
20428 cf_cv_header_stdbool_h=0
20430 rm -f conftest.$ac_objext conftest.$ac_ext
20432 rm -f conftest.$ac_objext conftest.$ac_ext
20435 if test "$cf_cv_header_stdbool_h" = 1
20436 then echo "$as_me:20436: result: yes" >&5
20437 echo "${ECHO_T}yes" >&6
20438 else echo "$as_me:20438: result: no" >&5
20439 echo "${ECHO_T}no" >&6
20442 echo "$as_me:20442: checking for builtin bool type" >&5
20443 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20445 if test "${cf_cv_cc_bool_type+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 cat >conftest.$ac_ext <<_ACEOF
20450 #line 20450 "configure"
20451 #include "confdefs.h"
20454 #include <sys/types.h>
20464 rm -f conftest.$ac_objext
20465 if { (eval echo "$as_me:20465: \"$ac_compile\"") >&5
20466 (eval $ac_compile) 2>&5
20468 echo "$as_me:20468: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -s conftest.$ac_objext'
20471 { (eval echo "$as_me:20471: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20474 echo "$as_me:20474: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 cf_cv_cc_bool_type=1
20478 echo "$as_me: failed program was:" >&5
20479 cat conftest.$ac_ext >&5
20480 cf_cv_cc_bool_type=0
20482 rm -f conftest.$ac_objext conftest.$ac_ext
20486 if test "$cf_cv_cc_bool_type" = 1
20487 then echo "$as_me:20487: result: yes" >&5
20488 echo "${ECHO_T}yes" >&6
20489 else echo "$as_me:20489: result: no" >&5
20490 echo "${ECHO_T}no" >&6
20493 # Check for C++ compiler characteristics (and ensure that it's there!)
20494 if test -n "$CXX" ; then
20496 ac_cpp='$CXXCPP $CPPFLAGS'
20497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20500 ac_main_return=return
20502 if test -n "$GXX" ; then
20505 LIBS="$LIBS $CXXLIBS"
20506 echo "$as_me:20506: checking if we already have C++ library" >&5
20507 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20509 #line 20509 "configure"
20510 #include "confdefs.h"
20512 #include <iostream>
20517 std::cout << "Hello World!" << std::endl;
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (eval echo "$as_me:20523: \"$ac_link\"") >&5
20524 (eval $ac_link) 2>&5
20526 echo "$as_me:20526: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -s conftest$ac_exeext'
20529 { (eval echo "$as_me:20529: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20532 echo "$as_me:20532: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 cf_have_libstdcpp=yes
20536 echo "$as_me: failed program was:" >&5
20537 cat conftest.$ac_ext >&5
20538 cf_have_libstdcpp=no
20540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20541 echo "$as_me:20541: result: $cf_have_libstdcpp" >&5
20542 echo "${ECHO_T}$cf_have_libstdcpp" >&6
20545 if test $cf_have_libstdcpp != yes
20547 case $cf_cv_system_name in
20549 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
20550 cf_stdcpp_libname=stdcpp
20552 cf_stdcpp_libname=stdc++
20556 cf_stdcpp_libname=stdc++
20560 echo "$as_me:20560: checking for library $cf_stdcpp_libname" >&5
20561 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
20562 if test "${cf_cv_libstdcpp+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 LIBS="$LIBS $CXXLIBS"
20569 cf_add_libs="-l$cf_stdcpp_libname"
20570 # Filter out duplicates - this happens with badly-designed ".pc" files...
20571 for cf_add_1lib in $LIBS
20573 for cf_add_2lib in $cf_add_libs
20575 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20581 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20583 LIBS="$cf_add_libs"
20585 cat >conftest.$ac_ext <<_ACEOF
20586 #line 20586 "configure"
20587 #include "confdefs.h"
20589 #include <iostream>
20594 std::cout << "Hello World!" << std::endl;
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (eval echo "$as_me:20600: \"$ac_link\"") >&5
20601 (eval $ac_link) 2>&5
20603 echo "$as_me:20603: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -s conftest$ac_exeext'
20606 { (eval echo "$as_me:20606: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20609 echo "$as_me:20609: \$? = $ac_status" >&5
20610 (exit $ac_status); }; }; then
20611 cf_cv_libstdcpp=yes
20613 echo "$as_me: failed program was:" >&5
20614 cat conftest.$ac_ext >&5
20617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20621 echo "$as_me:20621: result: $cf_cv_libstdcpp" >&5
20622 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
20623 test "$cf_cv_libstdcpp" = yes && {
20624 cf_add_libs="-l$cf_stdcpp_libname"
20625 # Filter out duplicates - this happens with badly-designed ".pc" files...
20626 for cf_add_1lib in $CXXLIBS
20628 for cf_add_2lib in $cf_add_libs
20630 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20636 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20638 CXXLIBS="$cf_add_libs"
20643 echo "$as_me:20643: checking whether $CXX understands -c and -o together" >&5
20644 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
20645 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 cat > conftest.$ac_ext <<CF_EOF
20652 ${cf_cv_main_return:-return}(0);
20655 # We do the test twice because some compilers refuse to overwrite an
20656 # existing .o file with -o, though they will create one.
20657 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20658 if { (eval echo "$as_me:20658: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:20661: \$? = $ac_status" >&5
20662 (exit $ac_status); } &&
20663 test -f conftest2.$ac_objext && { (eval echo "$as_me:20663: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20666 echo "$as_me:20666: \$? = $ac_status" >&5
20667 (exit $ac_status); };
20669 eval cf_cv_prog_CXX_c_o=yes
20671 eval cf_cv_prog_CXX_c_o=no
20676 if test $cf_cv_prog_CXX_c_o = yes; then
20677 echo "$as_me:20677: result: yes" >&5
20678 echo "${ECHO_T}yes" >&6
20680 echo "$as_me:20680: result: no" >&5
20681 echo "${ECHO_T}no" >&6
20684 case $GXX_VERSION in
20690 cf_cxx_library=unknown
20691 case $cf_cv_system_name in
20699 if test "$GXX" = yes; then
20700 echo "$as_me:20700: checking for lib$cf_gpp_libname" >&5
20701 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
20704 cf_add_libs="-l$cf_gpp_libname"
20705 # Filter out duplicates - this happens with badly-designed ".pc" files...
20706 for cf_add_1lib in $LIBS
20708 for cf_add_2lib in $cf_add_libs
20710 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20716 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20718 LIBS="$cf_add_libs"
20720 cat >conftest.$ac_ext <<_ACEOF
20721 #line 20721 "configure"
20722 #include "confdefs.h"
20724 #include <$cf_gpp_libname/builtin.h>
20729 two_arg_error_handler_t foo2 = lib_error_handler
20734 rm -f conftest.$ac_objext conftest$ac_exeext
20735 if { (eval echo "$as_me:20735: \"$ac_link\"") >&5
20736 (eval $ac_link) 2>&5
20738 echo "$as_me:20738: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -s conftest$ac_exeext'
20741 { (eval echo "$as_me:20741: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:20744: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20748 cf_add_libs="-l$cf_gpp_libname"
20749 # Filter out duplicates - this happens with badly-designed ".pc" files...
20750 for cf_add_1lib in $CXXLIBS
20752 for cf_add_2lib in $cf_add_libs
20754 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20760 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20762 CXXLIBS="$cf_add_libs"
20764 if test "$cf_gpp_libname" = cpp ; then
20766 cat >>confdefs.h <<\EOF
20767 #define HAVE_GPP_BUILTIN_H 1
20772 cat >>confdefs.h <<\EOF
20773 #define HAVE_GXX_BUILTIN_H 1
20778 echo "$as_me: failed program was:" >&5
20779 cat conftest.$ac_ext >&5
20780 cat >conftest.$ac_ext <<_ACEOF
20781 #line 20781 "configure"
20782 #include "confdefs.h"
20784 #include <builtin.h>
20789 two_arg_error_handler_t foo2 = lib_error_handler
20794 rm -f conftest.$ac_objext conftest$ac_exeext
20795 if { (eval echo "$as_me:20795: \"$ac_link\"") >&5
20796 (eval $ac_link) 2>&5
20798 echo "$as_me:20798: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -s conftest$ac_exeext'
20801 { (eval echo "$as_me:20801: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:20804: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20808 cf_add_libs="-l$cf_gpp_libname"
20809 # Filter out duplicates - this happens with badly-designed ".pc" files...
20810 for cf_add_1lib in $CXXLIBS
20812 for cf_add_2lib in $cf_add_libs
20814 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20820 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20822 CXXLIBS="$cf_add_libs"
20824 cat >>confdefs.h <<\EOF
20825 #define HAVE_BUILTIN_H 1
20829 echo "$as_me: failed program was:" >&5
20830 cat conftest.$ac_ext >&5
20833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20837 echo "$as_me:20837: result: $cf_cxx_library" >&5
20838 echo "${ECHO_T}$cf_cxx_library" >&6
20848 ac_cpp='$CXXCPP $CPPFLAGS'
20849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20852 ac_main_return=return
20853 echo "$as_me:20853: checking how to run the C++ preprocessor" >&5
20854 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20855 if test -z "$CXXCPP"; then
20856 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 # Double quotes because CXXCPP needs to be expanded
20860 for CXXCPP in "$CXX -E" "/lib/cpp"
20862 ac_preproc_ok=false
20863 for ac_cxx_preproc_warn_flag in '' yes
20865 # Use a header file that comes with gcc, so configuring glibc
20866 # with a fresh cross-compiler works.
20867 # On the NeXT, cc -E runs the code through the compiler's parser,
20868 # not just through cpp. "Syntax error" is here to catch this case.
20869 cat >conftest.$ac_ext <<_ACEOF
20870 #line 20870 "configure"
20871 #include "confdefs.h"
20872 #include <assert.h>
20875 if { (eval echo "$as_me:20875: \"$ac_cpp conftest.$ac_ext\"") >&5
20876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20878 egrep -v '^ *\+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:20881: \$? = $ac_status" >&5
20882 (exit $ac_status); } >/dev/null; then
20883 if test -s conftest.err; then
20884 ac_cpp_err=$ac_cxx_preproc_warn_flag
20891 if test -z "$ac_cpp_err"; then
20894 echo "$as_me: failed program was:" >&5
20895 cat conftest.$ac_ext >&5
20896 # Broken: fails on valid input.
20899 rm -f conftest.err conftest.$ac_ext
20901 # OK, works on sane cases. Now check whether non-existent headers
20902 # can be detected and how.
20903 cat >conftest.$ac_ext <<_ACEOF
20904 #line 20904 "configure"
20905 #include "confdefs.h"
20906 #include <ac_nonexistent.h>
20908 if { (eval echo "$as_me:20908: \"$ac_cpp conftest.$ac_ext\"") >&5
20909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20911 egrep -v '^ *\+' conftest.er1 >conftest.err
20913 cat conftest.err >&5
20914 echo "$as_me:20914: \$? = $ac_status" >&5
20915 (exit $ac_status); } >/dev/null; then
20916 if test -s conftest.err; then
20917 ac_cpp_err=$ac_cxx_preproc_warn_flag
20924 if test -z "$ac_cpp_err"; then
20925 # Broken: success on invalid input.
20928 echo "$as_me: failed program was:" >&5
20929 cat conftest.$ac_ext >&5
20930 # Passes both tests.
20934 rm -f conftest.err conftest.$ac_ext
20937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20938 rm -f conftest.err conftest.$ac_ext
20939 if $ac_preproc_ok; then
20944 ac_cv_prog_CXXCPP=$CXXCPP
20947 CXXCPP=$ac_cv_prog_CXXCPP
20949 ac_cv_prog_CXXCPP=$CXXCPP
20951 echo "$as_me:20951: result: $CXXCPP" >&5
20952 echo "${ECHO_T}$CXXCPP" >&6
20953 ac_preproc_ok=false
20954 for ac_cxx_preproc_warn_flag in '' yes
20956 # Use a header file that comes with gcc, so configuring glibc
20957 # with a fresh cross-compiler works.
20958 # On the NeXT, cc -E runs the code through the compiler's parser,
20959 # not just through cpp. "Syntax error" is here to catch this case.
20960 cat >conftest.$ac_ext <<_ACEOF
20961 #line 20961 "configure"
20962 #include "confdefs.h"
20963 #include <assert.h>
20966 if { (eval echo "$as_me:20966: \"$ac_cpp conftest.$ac_ext\"") >&5
20967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20969 egrep -v '^ *\+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 echo "$as_me:20972: \$? = $ac_status" >&5
20973 (exit $ac_status); } >/dev/null; then
20974 if test -s conftest.err; then
20975 ac_cpp_err=$ac_cxx_preproc_warn_flag
20982 if test -z "$ac_cpp_err"; then
20985 echo "$as_me: failed program was:" >&5
20986 cat conftest.$ac_ext >&5
20987 # Broken: fails on valid input.
20990 rm -f conftest.err conftest.$ac_ext
20992 # OK, works on sane cases. Now check whether non-existent headers
20993 # can be detected and how.
20994 cat >conftest.$ac_ext <<_ACEOF
20995 #line 20995 "configure"
20996 #include "confdefs.h"
20997 #include <ac_nonexistent.h>
20999 if { (eval echo "$as_me:20999: \"$ac_cpp conftest.$ac_ext\"") >&5
21000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21002 egrep -v '^ *\+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:21005: \$? = $ac_status" >&5
21006 (exit $ac_status); } >/dev/null; then
21007 if test -s conftest.err; then
21008 ac_cpp_err=$ac_cxx_preproc_warn_flag
21015 if test -z "$ac_cpp_err"; then
21016 # Broken: success on invalid input.
21019 echo "$as_me: failed program was:" >&5
21020 cat conftest.$ac_ext >&5
21021 # Passes both tests.
21025 rm -f conftest.err conftest.$ac_ext
21028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21029 rm -f conftest.err conftest.$ac_ext
21030 if $ac_preproc_ok; then
21033 { { echo "$as_me:21033: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
21034 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
21035 { (exit 1); exit 1; }; }
21039 ac_cpp='$CXXCPP $CPPFLAGS'
21040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21043 ac_main_return=return
21045 for ac_header in typeinfo
21047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21048 echo "$as_me:21048: checking for $ac_header" >&5
21049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21054 #line 21054 "configure"
21055 #include "confdefs.h"
21056 #include <$ac_header>
21058 if { (eval echo "$as_me:21058: \"$ac_cpp conftest.$ac_ext\"") >&5
21059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21061 egrep -v '^ *\+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:21064: \$? = $ac_status" >&5
21065 (exit $ac_status); } >/dev/null; then
21066 if test -s conftest.err; then
21067 ac_cpp_err=$ac_cxx_preproc_warn_flag
21074 if test -z "$ac_cpp_err"; then
21075 eval "$as_ac_Header=yes"
21077 echo "$as_me: failed program was:" >&5
21078 cat conftest.$ac_ext >&5
21079 eval "$as_ac_Header=no"
21081 rm -f conftest.err conftest.$ac_ext
21083 echo "$as_me:21083: result: `eval echo '${'$as_ac_Header'}'`" >&5
21084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21086 cat >>confdefs.h <<EOF
21087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21093 for ac_header in iostream
21095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21096 echo "$as_me:21096: checking for $ac_header" >&5
21097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 cat >conftest.$ac_ext <<_ACEOF
21102 #line 21102 "configure"
21103 #include "confdefs.h"
21104 #include <$ac_header>
21106 if { (eval echo "$as_me:21106: \"$ac_cpp conftest.$ac_ext\"") >&5
21107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21109 egrep -v '^ *\+' conftest.er1 >conftest.err
21111 cat conftest.err >&5
21112 echo "$as_me:21112: \$? = $ac_status" >&5
21113 (exit $ac_status); } >/dev/null; then
21114 if test -s conftest.err; then
21115 ac_cpp_err=$ac_cxx_preproc_warn_flag
21122 if test -z "$ac_cpp_err"; then
21123 eval "$as_ac_Header=yes"
21125 echo "$as_me: failed program was:" >&5
21126 cat conftest.$ac_ext >&5
21127 eval "$as_ac_Header=no"
21129 rm -f conftest.err conftest.$ac_ext
21131 echo "$as_me:21131: result: `eval echo '${'$as_ac_Header'}'`" >&5
21132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21134 cat >>confdefs.h <<EOF
21135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21141 if test x"$ac_cv_header_iostream" = xyes ; then
21142 echo "$as_me:21142: checking if iostream uses std-namespace" >&5
21143 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
21144 cat >conftest.$ac_ext <<_ACEOF
21145 #line 21145 "configure"
21146 #include "confdefs.h"
21148 #include <iostream>
21155 cerr << "testing" << endl;
21161 rm -f conftest.$ac_objext
21162 if { (eval echo "$as_me:21162: \"$ac_compile\"") >&5
21163 (eval $ac_compile) 2>&5
21165 echo "$as_me:21165: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -s conftest.$ac_objext'
21168 { (eval echo "$as_me:21168: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21171 echo "$as_me:21171: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
21173 cf_iostream_namespace=yes
21175 echo "$as_me: failed program was:" >&5
21176 cat conftest.$ac_ext >&5
21177 cf_iostream_namespace=no
21179 rm -f conftest.$ac_objext conftest.$ac_ext
21180 echo "$as_me:21180: result: $cf_iostream_namespace" >&5
21181 echo "${ECHO_T}$cf_iostream_namespace" >&6
21182 if test "$cf_iostream_namespace" = yes ; then
21184 cat >>confdefs.h <<\EOF
21185 #define IOSTREAM_NAMESPACE 1
21191 echo "$as_me:21191: checking if we should include stdbool.h" >&5
21192 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
21194 if test "${cf_cv_header_stdbool_h+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 cat >conftest.$ac_ext <<_ACEOF
21199 #line 21199 "configure"
21200 #include "confdefs.h"
21210 rm -f conftest.$ac_objext
21211 if { (eval echo "$as_me:21211: \"$ac_compile\"") >&5
21212 (eval $ac_compile) 2>&5
21214 echo "$as_me:21214: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -s conftest.$ac_objext'
21217 { (eval echo "$as_me:21217: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21220 echo "$as_me:21220: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
21222 cf_cv_header_stdbool_h=0
21224 echo "$as_me: failed program was:" >&5
21225 cat conftest.$ac_ext >&5
21226 cat >conftest.$ac_ext <<_ACEOF
21227 #line 21227 "configure"
21228 #include "confdefs.h"
21231 #include <stdbool.h>
21242 rm -f conftest.$ac_objext
21243 if { (eval echo "$as_me:21243: \"$ac_compile\"") >&5
21244 (eval $ac_compile) 2>&5
21246 echo "$as_me:21246: \$? = $ac_status" >&5
21247 (exit $ac_status); } &&
21248 { ac_try='test -s conftest.$ac_objext'
21249 { (eval echo "$as_me:21249: \"$ac_try\"") >&5
21250 (eval $ac_try) 2>&5
21252 echo "$as_me:21252: \$? = $ac_status" >&5
21253 (exit $ac_status); }; }; then
21254 cf_cv_header_stdbool_h=1
21256 echo "$as_me: failed program was:" >&5
21257 cat conftest.$ac_ext >&5
21258 cf_cv_header_stdbool_h=0
21260 rm -f conftest.$ac_objext conftest.$ac_ext
21262 rm -f conftest.$ac_objext conftest.$ac_ext
21265 if test "$cf_cv_header_stdbool_h" = 1
21266 then echo "$as_me:21266: result: yes" >&5
21267 echo "${ECHO_T}yes" >&6
21268 else echo "$as_me:21268: result: no" >&5
21269 echo "${ECHO_T}no" >&6
21272 echo "$as_me:21272: checking for builtin bool type" >&5
21273 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
21275 if test "${cf_cv_builtin_bool+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 cat >conftest.$ac_ext <<_ACEOF
21280 #line 21280 "configure"
21281 #include "confdefs.h"
21284 #include <sys/types.h>
21294 rm -f conftest.$ac_objext
21295 if { (eval echo "$as_me:21295: \"$ac_compile\"") >&5
21296 (eval $ac_compile) 2>&5
21298 echo "$as_me:21298: \$? = $ac_status" >&5
21299 (exit $ac_status); } &&
21300 { ac_try='test -s conftest.$ac_objext'
21301 { (eval echo "$as_me:21301: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21304 echo "$as_me:21304: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 cf_cv_builtin_bool=1
21308 echo "$as_me: failed program was:" >&5
21309 cat conftest.$ac_ext >&5
21310 cf_cv_builtin_bool=0
21312 rm -f conftest.$ac_objext conftest.$ac_ext
21316 if test "$cf_cv_builtin_bool" = 1
21317 then echo "$as_me:21317: result: yes" >&5
21318 echo "${ECHO_T}yes" >&6
21319 else echo "$as_me:21319: result: no" >&5
21320 echo "${ECHO_T}no" >&6
21323 echo "$as_me:21323: checking for size of bool" >&5
21324 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
21325 if test "${cf_cv_type_of_bool+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 if test "$cross_compiling" = yes; then
21331 cf_cv_type_of_bool=unknown
21333 cat >conftest.$ac_ext <<_ACEOF
21334 #line 21334 "configure"
21335 #include "confdefs.h"
21337 #include <stdlib.h>
21340 #if defined(__cplusplus)
21342 #ifdef HAVE_GXX_BUILTIN_H
21343 #include <g++/builtin.h>
21344 #elif HAVE_GPP_BUILTIN_H
21345 #include <gpp/builtin.h>
21346 #elif HAVE_BUILTIN_H
21347 #include <builtin.h>
21352 #if $cf_cv_header_stdbool_h
21353 #include <stdbool.h>
21360 FILE *fp = fopen("cf_test.out", "w");
21363 if ((bool)(-x) >= 0)
21364 fputs("unsigned ", fp);
21365 if (sizeof(x) == sizeof(int)) fputs("int", fp);
21366 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
21367 else if (sizeof(x) == sizeof(short))fputs("short",fp);
21368 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
21371 ${cf_cv_main_return:-return}(0);
21375 rm -f conftest$ac_exeext
21376 if { (eval echo "$as_me:21376: \"$ac_link\"") >&5
21377 (eval $ac_link) 2>&5
21379 echo "$as_me:21379: \$? = $ac_status" >&5
21380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21381 { (eval echo "$as_me:21381: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21384 echo "$as_me:21384: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 cf_cv_type_of_bool=`cat cf_test.out`
21387 if test -z "$cf_cv_type_of_bool"; then
21388 cf_cv_type_of_bool=unknown
21391 echo "$as_me: program exited with status $ac_status" >&5
21392 echo "$as_me: failed program was:" >&5
21393 cat conftest.$ac_ext >&5
21394 cf_cv_type_of_bool=unknown
21396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21402 echo "$as_me:21402: result: $cf_cv_type_of_bool" >&5
21403 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21404 if test "$cf_cv_type_of_bool" = unknown ; then
21405 case .$NCURSES_BOOL in
21406 (.auto|.) NCURSES_BOOL=unsigned;;
21408 { echo "$as_me:21408: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
21409 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
21410 cf_cv_type_of_bool=$NCURSES_BOOL
21413 echo "$as_me:21413: checking for special defines needed for etip.h" >&5
21414 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
21415 cf_save_CXXFLAGS="$CXXFLAGS"
21418 # etip.h includes ncurses.h which includes ncurses_dll.h
21419 # But ncurses_dll.h is generated - fix here.
21420 test -d include || mkdir include
21421 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
21423 for cf_math in "" MATH_H
21425 for cf_excp in "" MATH_EXCEPTION
21427 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
21428 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
21429 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
21430 cat >conftest.$ac_ext <<_ACEOF
21431 #line 21431 "configure"
21432 #include "confdefs.h"
21434 #include <etip.h.in>
21444 rm -f conftest.$ac_objext
21445 if { (eval echo "$as_me:21445: \"$ac_compile\"") >&5
21446 (eval $ac_compile) 2>&5
21448 echo "$as_me:21448: \$? = $ac_status" >&5
21449 (exit $ac_status); } &&
21450 { ac_try='test -s conftest.$ac_objext'
21451 { (eval echo "$as_me:21451: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21454 echo "$as_me:21454: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21457 test -n "$cf_math" && cat >>confdefs.h <<EOF
21458 #define ETIP_NEEDS_${cf_math} 1
21461 test -n "$cf_excp" && cat >>confdefs.h <<EOF
21462 #define ETIP_NEEDS_${cf_excp} 1
21465 cf_result="$cf_math $cf_excp"
21469 echo "$as_me: failed program was:" >&5
21470 cat conftest.$ac_ext >&5
21472 rm -f conftest.$ac_objext conftest.$ac_ext
21475 echo "$as_me:21475: result: $cf_result" >&5
21476 echo "${ECHO_T}$cf_result" >&6
21477 CXXFLAGS="$cf_save_CXXFLAGS"
21479 if test -n "$CXX"; then
21480 echo "$as_me:21480: checking if $CXX accepts parameter initialization" >&5
21481 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
21482 if test "${cf_cv_cpp_param_init+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 ac_cpp='$CXXCPP $CPPFLAGS'
21488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21491 ac_main_return=return
21493 if test "$cross_compiling" = yes; then
21494 cf_cv_cpp_param_init=unknown
21496 cat >conftest.$ac_ext <<_ACEOF
21497 #line 21497 "configure"
21498 #include "confdefs.h"
21508 TEST::TEST(int x = 1) // some compilers do not like second initializer
21515 rm -f conftest$ac_exeext
21516 if { (eval echo "$as_me:21516: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>&5
21519 echo "$as_me:21519: \$? = $ac_status" >&5
21520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21521 { (eval echo "$as_me:21521: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21524 echo "$as_me:21524: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 cf_cv_cpp_param_init=yes
21528 echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 cat conftest.$ac_ext >&5
21531 cf_cv_cpp_param_init=no
21533 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21536 ac_cpp='$CXXCPP $CPPFLAGS'
21537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21540 ac_main_return=return
21543 echo "$as_me:21543: result: $cf_cv_cpp_param_init" >&5
21544 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
21546 test "$cf_cv_cpp_param_init" = yes &&
21547 cat >>confdefs.h <<\EOF
21548 #define CPP_HAS_PARAM_INIT 1
21551 if test -n "$CXX"; then
21553 echo "$as_me:21553: checking if $CXX accepts static_cast" >&5
21554 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
21555 if test "${cf_cv_cpp_static_cast+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 ac_cpp='$CXXCPP $CPPFLAGS'
21561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21564 ac_main_return=return
21566 cat >conftest.$ac_ext <<_ACEOF
21567 #line 21567 "configure"
21568 #include "confdefs.h"
21573 NCursesPanel(int nlines,
21583 template<class T> class NCursesUserPanel : public NCursesPanel
21586 NCursesUserPanel (int nlines,
21590 const T* p_UserData = static_cast<T*>(0))
21591 : NCursesPanel (nlines, ncols, begin_y, begin_x)
21594 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
21598 virtual ~NCursesUserPanel() {};
21605 const char* p_UserData = static_cast<char*>(0)
21610 rm -f conftest.$ac_objext
21611 if { (eval echo "$as_me:21611: \"$ac_compile\"") >&5
21612 (eval $ac_compile) 2>&5
21614 echo "$as_me:21614: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -s conftest.$ac_objext'
21617 { (eval echo "$as_me:21617: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:21620: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 cf_cv_cpp_static_cast=yes
21624 echo "$as_me: failed program was:" >&5
21625 cat conftest.$ac_ext >&5
21626 cf_cv_cpp_static_cast=no
21628 rm -f conftest.$ac_objext conftest.$ac_ext
21631 ac_cpp='$CXXCPP $CPPFLAGS'
21632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21635 ac_main_return=return
21638 echo "$as_me:21638: result: $cf_cv_cpp_static_cast" >&5
21639 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
21643 test "$cf_cv_cpp_static_cast" = yes &&
21644 cat >>confdefs.h <<\EOF
21645 #define CPP_HAS_STATIC_CAST 1
21649 CXX_ARFLAGS='$(ARFLAGS)'
21650 case $cf_cv_system_name in
21652 if test "$GXX" != yes ; then
21654 CXX_ARFLAGS='-ar -o'
21658 CXXLDFLAGS="-u main"
21661 if test "$GXX" != yes ; then
21663 CXX_ARFLAGS='-xar -o'
21670 cf_cv_builtin_bool=1
21672 # Just because we are not configuring against C++ right now does not
21673 # mean that a user will not want to use C++. Some distributors disable
21674 # the C++ portion of this configuration as a shortcut (or just to avoid
21675 # compiling the demo in the c++ directory). So we need a reasonable
21676 # default for the 'bool' type.
21678 # Caveat: since the storage of the bool type is not standardized, it
21681 if test "$NCURSES_BOOL" != auto ; then
21682 cf_cv_type_of_bool=$NCURSES_BOOL
21683 cf_cv_header_stdbool_h=0
21685 if test "$cf_cv_header_stdbool_h" = 1 ; then
21687 echo "$as_me:21687: checking for size of bool" >&5
21688 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
21689 if test "${cf_cv_type_of_bool+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21694 if test "$cross_compiling" = yes; then
21695 cf_cv_type_of_bool=unknown
21697 cat >conftest.$ac_ext <<_ACEOF
21698 #line 21698 "configure"
21699 #include "confdefs.h"
21701 #include <stdlib.h>
21704 #if defined(__cplusplus)
21706 #ifdef HAVE_GXX_BUILTIN_H
21707 #include <g++/builtin.h>
21708 #elif HAVE_GPP_BUILTIN_H
21709 #include <gpp/builtin.h>
21710 #elif HAVE_BUILTIN_H
21711 #include <builtin.h>
21716 #if $cf_cv_header_stdbool_h
21717 #include <stdbool.h>
21724 FILE *fp = fopen("cf_test.out", "w");
21727 if ((bool)(-x) >= 0)
21728 fputs("unsigned ", fp);
21729 if (sizeof(x) == sizeof(int)) fputs("int", fp);
21730 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
21731 else if (sizeof(x) == sizeof(short))fputs("short",fp);
21732 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
21735 ${cf_cv_main_return:-return}(0);
21739 rm -f conftest$ac_exeext
21740 if { (eval echo "$as_me:21740: \"$ac_link\"") >&5
21741 (eval $ac_link) 2>&5
21743 echo "$as_me:21743: \$? = $ac_status" >&5
21744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21745 { (eval echo "$as_me:21745: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21748 echo "$as_me:21748: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 cf_cv_type_of_bool=`cat cf_test.out`
21751 if test -z "$cf_cv_type_of_bool"; then
21752 cf_cv_type_of_bool=unknown
21755 echo "$as_me: program exited with status $ac_status" >&5
21756 echo "$as_me: failed program was:" >&5
21757 cat conftest.$ac_ext >&5
21758 cf_cv_type_of_bool=unknown
21760 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21766 echo "$as_me:21766: result: $cf_cv_type_of_bool" >&5
21767 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21768 if test "$cf_cv_type_of_bool" = unknown ; then
21769 case .$NCURSES_BOOL in
21770 (.auto|.) NCURSES_BOOL=unsigned;;
21772 { echo "$as_me:21772: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
21773 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
21774 cf_cv_type_of_bool=$NCURSES_BOOL
21778 echo "$as_me:21778: checking for fallback type of bool" >&5
21779 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
21780 case "$host_cpu" in
21781 (i?86) cf_cv_type_of_bool=char ;;
21782 (*) cf_cv_type_of_bool=int ;;
21784 echo "$as_me:21784: result: $cf_cv_type_of_bool" >&5
21785 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21790 # If the C compiler did not declare bool, and we did not determine that the C++
21791 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
21792 # ncurses library use the same type as C++ bool. Note that this allows one to
21793 # specify the type of bool in a configure-script option and postpone
21794 # integration with the C++ compiler provided that the types are compatible.
21796 if test $cf_cv_cc_bool_type = 1
21798 # oops: C has a bool. Unlikely, but C++ could differ.
21800 elif test $cf_cv_builtin_bool = 0
21805 # this is the normal case
21806 USE_CXX_BOOL='defined(__cplusplus)'
21809 if test -f "${srcdir}/Ada95/Makefile.in" ; then
21811 if test "$cf_with_ada" != "no" ; then
21812 if test "$with_libtool" != "no"; then
21813 { echo "$as_me:21813: WARNING: libtool does not support Ada - disabling feature" >&5
21814 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
21819 if test "$cf_with_ada" != "no" ; then
21821 cf_ada_make=gnatmake
21822 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
21823 set dummy $cf_ada_make; ac_word=$2
21824 echo "$as_me:21824: checking for $ac_word" >&5
21825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21826 if test "${ac_cv_prog_gnat_exists+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 if test -n "$gnat_exists"; then
21830 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
21832 ac_save_IFS=$IFS; IFS=$ac_path_separator
21834 for ac_dir in $ac_dummy; do
21836 test -z "$ac_dir" && ac_dir=.
21837 $as_executable_p "$ac_dir/$ac_word" || continue
21838 ac_cv_prog_gnat_exists="yes"
21839 echo "$as_me:21839: found $ac_dir/$ac_word" >&5
21843 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
21846 gnat_exists=$ac_cv_prog_gnat_exists
21847 if test -n "$gnat_exists"; then
21848 echo "$as_me:21848: result: $gnat_exists" >&5
21849 echo "${ECHO_T}$gnat_exists" >&6
21851 echo "$as_me:21851: result: no" >&5
21852 echo "${ECHO_T}no" >&6
21855 if test "$ac_cv_prog_gnat_exists" = no; then
21857 cf_cv_prog_gnat_correct=no
21860 echo "$as_me:21860: checking for gnat version" >&5
21861 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
21862 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
21863 grep '[0-9].[0-9][0-9]*' |\
21864 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
21865 echo "$as_me:21865: result: $cf_gnat_version" >&5
21866 echo "${ECHO_T}$cf_gnat_version" >&6
21868 case $cf_gnat_version in
21869 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
21870 cf_cv_prog_gnat_correct=yes
21873 { echo "$as_me:21873: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
21874 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
21875 cf_cv_prog_gnat_correct=no
21879 # Extract the first word of "m4", so it can be a program name with args.
21880 set dummy m4; ac_word=$2
21881 echo "$as_me:21881: checking for $ac_word" >&5
21882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21883 if test "${ac_cv_prog_M4_exists+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 if test -n "$M4_exists"; then
21887 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
21889 ac_save_IFS=$IFS; IFS=$ac_path_separator
21891 for ac_dir in $ac_dummy; do
21893 test -z "$ac_dir" && ac_dir=.
21894 $as_executable_p "$ac_dir/$ac_word" || continue
21895 ac_cv_prog_M4_exists="yes"
21896 echo "$as_me:21896: found $ac_dir/$ac_word" >&5
21900 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
21903 M4_exists=$ac_cv_prog_M4_exists
21904 if test -n "$M4_exists"; then
21905 echo "$as_me:21905: result: $M4_exists" >&5
21906 echo "${ECHO_T}$M4_exists" >&6
21908 echo "$as_me:21908: result: no" >&5
21909 echo "${ECHO_T}no" >&6
21912 if test "$ac_cv_prog_M4_exists" = no; then
21913 cf_cv_prog_gnat_correct=no
21914 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
21916 if test "$cf_cv_prog_gnat_correct" = yes; then
21917 echo "$as_me:21917: checking if GNAT works" >&5
21918 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
21920 rm -rf conftest* *~conftest*
21921 cat >>conftest.ads <<CF_EOF
21922 procedure conftest;
21924 cat >>conftest.adb <<CF_EOF
21927 procedure conftest is
21929 Text_IO.Put ("Hello World");
21931 GNAT.OS_Lib.OS_Exit (0);
21934 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21935 if ( ./conftest 1>&5 2>&1 ) ; then
21936 cf_cv_prog_gnat_correct=yes
21938 cf_cv_prog_gnat_correct=no
21941 cf_cv_prog_gnat_correct=no
21943 rm -rf conftest* *~conftest*
21945 echo "$as_me:21945: result: $cf_cv_prog_gnat_correct" >&5
21946 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
21950 if test "x$cf_cv_prog_gnat_correct" = xyes; then
21952 ADAFLAGS="$ADAFLAGS -gnatpn"
21954 echo "$as_me:21954: checking optimization options for ADAFLAGS" >&5
21955 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
21959 ADAFLAGS="$ADAFLAGS -g"
21965 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
21967 ADAFLAGS="$ADAFLAGS $cf_O_flag"
21971 echo "$as_me:21971: result: $ADAFLAGS" >&5
21972 echo "${ECHO_T}$ADAFLAGS" >&6
21974 echo "$as_me:21974: checking if GNATPREP supports -T option" >&5
21975 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
21976 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 cf_cv_gnatprep_opt_t=no
21981 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
21984 echo "$as_me:21984: result: $cf_cv_gnatprep_opt_t" >&5
21985 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
21986 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
21988 echo "$as_me:21988: checking if GNAT supports generics" >&5
21989 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
21990 case $cf_gnat_version in
21992 cf_gnat_generics=yes
21995 cf_gnat_generics=no
21998 echo "$as_me:21998: result: $cf_gnat_generics" >&5
21999 echo "${ECHO_T}$cf_gnat_generics" >&6
22001 if test "$cf_gnat_generics" = yes
22003 cf_compile_generics=generics
22004 cf_generic_objects="\${GENOBJS}"
22006 cf_compile_generics=
22007 cf_generic_objects=
22010 echo "$as_me:22010: checking if GNAT supports SIGINT" >&5
22011 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
22012 if test "${cf_cv_gnat_sigint+set}" = set; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 rm -rf conftest* *~conftest*
22017 cat >>conftest.ads <<CF_EOF
22018 with Ada.Interrupts.Names;
22020 package ConfTest is
22022 pragma Warnings (Off); -- the next pragma exists since 3.11p
22023 pragma Unreserve_All_Interrupts;
22024 pragma Warnings (On);
22026 protected Process is
22028 function Continue return Boolean;
22029 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
22031 Done : Boolean := False;
22036 cat >>conftest.adb <<CF_EOF
22037 package body ConfTest is
22038 protected body Process is
22043 function Continue return Boolean is
22050 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
22051 cf_cv_gnat_sigint=yes
22053 cf_cv_gnat_sigint=no
22055 rm -rf conftest* *~conftest*
22058 echo "$as_me:22058: result: $cf_cv_gnat_sigint" >&5
22059 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
22061 if test $cf_cv_gnat_sigint = yes ; then
22064 USE_GNAT_SIGINT="#"
22067 cf_gnat_libraries=no
22068 cf_gnat_projects=no
22070 if test "$enable_gnat_projects" != no ; then
22071 echo "$as_me:22071: checking if GNAT supports project files" >&5
22072 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
22073 case $cf_gnat_version in
22077 case $cf_cv_system_name in
22081 mkdir conftest.src conftest.bin conftest.lib
22083 rm -rf conftest* *~conftest*
22084 cat >>library.gpr <<CF_EOF
22086 Kind := External ("LIB_KIND");
22087 for Library_Name use "ConfTest";
22088 for Object_Dir use ".";
22089 for Library_ALI_Dir use External("LIBRARY_DIR");
22090 for Library_Version use External ("SONAME");
22091 for Library_Kind use Kind;
22092 for Library_Dir use External("BUILD_DIR");
22093 Source_Dir := External ("SOURCE_DIR");
22094 for Source_Dirs use (Source_Dir);
22097 cat >>confpackage.ads <<CF_EOF
22098 package ConfPackage is
22099 procedure conftest;
22102 cat >>confpackage.adb <<CF_EOF
22104 package body ConfPackage is
22105 procedure conftest is
22107 Text_IO.Put ("Hello World");
22112 if ( $cf_ada_make $ADAFLAGS \
22114 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
22115 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
22116 -XSOURCE_DIR=`pwd` \
22117 -XSONAME=libConfTest.so.1 \
22118 -XLIB_KIND=static 1>&5 2>&1 ) ; then
22119 cf_gnat_projects=yes
22122 if test -f conftest.lib/confpackage.ali
22124 cf_gnat_libraries=yes
22126 rm -rf conftest* *~conftest*
22131 echo "$as_me:22131: result: $cf_gnat_projects" >&5
22132 echo "${ECHO_T}$cf_gnat_projects" >&6
22133 fi # enable_gnat_projects
22135 if test $cf_gnat_projects = yes
22137 echo "$as_me:22137: checking if GNAT supports libraries" >&5
22138 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
22139 echo "$as_me:22139: result: $cf_gnat_libraries" >&5
22140 echo "${ECHO_T}$cf_gnat_libraries" >&6
22143 if test "$cf_gnat_projects" = yes
22145 USE_OLD_MAKERULES="#"
22146 USE_GNAT_PROJECTS=""
22148 USE_OLD_MAKERULES=""
22149 USE_GNAT_PROJECTS="#"
22152 if test "$cf_gnat_libraries" = yes
22154 USE_GNAT_LIBRARIES=""
22156 USE_GNAT_LIBRARIES="#"
22159 echo "$as_me:22159: checking for ada-compiler" >&5
22160 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
22162 # Check whether --with-ada-compiler or --without-ada-compiler was given.
22163 if test "${with_ada_compiler+set}" = set; then
22164 withval="$with_ada_compiler"
22165 cf_ada_compiler=$withval
22167 cf_ada_compiler=gnatmake
22170 echo "$as_me:22170: result: $cf_ada_compiler" >&5
22171 echo "${ECHO_T}$cf_ada_compiler" >&6
22173 cf_ada_package=terminal_interface
22175 echo "$as_me:22175: checking for ada-include" >&5
22176 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
22178 # Check whether --with-ada-include or --without-ada-include was given.
22179 if test "${with_ada_include+set}" = set; then
22180 withval="$with_ada_include"
22183 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
22184 fi; if test -n "$prefix/share/ada/adainclude" ; then
22186 if test "x$prefix" != xNONE; then
22187 cf_path_syntax="$prefix"
22189 cf_path_syntax="$ac_default_prefix"
22192 case ".$withval" in
22193 (.\$\(*\)*|.\'*\'*)
22197 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22199 (.\${*prefix}*|.\${*dir}*)
22200 eval withval="$withval"
22201 case ".$withval" in
22203 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22208 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22211 { { echo "$as_me:22211: error: expected a pathname, not \"$withval\"" >&5
22212 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
22213 { (exit 1); exit 1; }; }
22218 eval ADA_INCLUDE="$withval"
22220 echo "$as_me:22220: result: $ADA_INCLUDE" >&5
22221 echo "${ECHO_T}$ADA_INCLUDE" >&6
22223 echo "$as_me:22223: checking for ada-objects" >&5
22224 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
22226 # Check whether --with-ada-objects or --without-ada-objects was given.
22227 if test "${with_ada_objects+set}" = set; then
22228 withval="$with_ada_objects"
22231 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
22232 fi; if test -n "$prefix/lib/ada/adalib" ; then
22234 if test "x$prefix" != xNONE; then
22235 cf_path_syntax="$prefix"
22237 cf_path_syntax="$ac_default_prefix"
22240 case ".$withval" in
22241 (.\$\(*\)*|.\'*\'*)
22245 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22247 (.\${*prefix}*|.\${*dir}*)
22248 eval withval="$withval"
22249 case ".$withval" in
22251 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22256 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22259 { { echo "$as_me:22259: error: expected a pathname, not \"$withval\"" >&5
22260 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
22261 { (exit 1); exit 1; }; }
22266 eval ADA_OBJECTS="$withval"
22268 echo "$as_me:22268: result: $ADA_OBJECTS" >&5
22269 echo "${ECHO_T}$ADA_OBJECTS" >&6
22271 echo "$as_me:22271: checking if an Ada95 shared-library should be built" >&5
22272 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
22274 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
22275 if test "${with_ada_sharedlib+set}" = set; then
22276 withval="$with_ada_sharedlib"
22277 with_ada_sharedlib=$withval
22279 with_ada_sharedlib=no
22281 echo "$as_me:22281: result: $with_ada_sharedlib" >&5
22282 echo "${ECHO_T}$with_ada_sharedlib" >&6
22284 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
22285 MAKE_ADA_SHAREDLIB="#"
22287 if test "x$with_ada_sharedlib" != xno
22289 MAKE_ADA_SHAREDLIB=
22290 if test "x$with_ada_sharedlib" != xyes
22292 ADA_SHAREDLIB="$with_ada_sharedlib"
22302 # do this "late" to avoid conflict with header-checks
22303 if test "x$with_widec" = xyes ; then
22304 echo "$as_me:22304: checking for wchar_t" >&5
22305 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
22306 if test "${ac_cv_type_wchar_t+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 cat >conftest.$ac_ext <<_ACEOF
22310 #line 22310 "configure"
22311 #include "confdefs.h"
22312 $ac_includes_default
22318 if (sizeof (wchar_t))
22324 rm -f conftest.$ac_objext
22325 if { (eval echo "$as_me:22325: \"$ac_compile\"") >&5
22326 (eval $ac_compile) 2>&5
22328 echo "$as_me:22328: \$? = $ac_status" >&5
22329 (exit $ac_status); } &&
22330 { ac_try='test -s conftest.$ac_objext'
22331 { (eval echo "$as_me:22331: \"$ac_try\"") >&5
22332 (eval $ac_try) 2>&5
22334 echo "$as_me:22334: \$? = $ac_status" >&5
22335 (exit $ac_status); }; }; then
22336 ac_cv_type_wchar_t=yes
22338 echo "$as_me: failed program was:" >&5
22339 cat conftest.$ac_ext >&5
22340 ac_cv_type_wchar_t=no
22342 rm -f conftest.$ac_objext conftest.$ac_ext
22344 echo "$as_me:22344: result: $ac_cv_type_wchar_t" >&5
22345 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
22347 echo "$as_me:22347: checking size of wchar_t" >&5
22348 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
22349 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 if test "$ac_cv_type_wchar_t" = yes; then
22353 if test "$cross_compiling" = yes; then
22354 # Depending upon the size, compute the lo and hi bounds.
22355 cat >conftest.$ac_ext <<_ACEOF
22356 #line 22356 "configure"
22357 #include "confdefs.h"
22358 $ac_includes_default
22362 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
22367 rm -f conftest.$ac_objext
22368 if { (eval echo "$as_me:22368: \"$ac_compile\"") >&5
22369 (eval $ac_compile) 2>&5
22371 echo "$as_me:22371: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try='test -s conftest.$ac_objext'
22374 { (eval echo "$as_me:22374: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22377 echo "$as_me:22377: \$? = $ac_status" >&5
22378 (exit $ac_status); }; }; then
22381 cat >conftest.$ac_ext <<_ACEOF
22382 #line 22382 "configure"
22383 #include "confdefs.h"
22384 $ac_includes_default
22388 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
22393 rm -f conftest.$ac_objext
22394 if { (eval echo "$as_me:22394: \"$ac_compile\"") >&5
22395 (eval $ac_compile) 2>&5
22397 echo "$as_me:22397: \$? = $ac_status" >&5
22398 (exit $ac_status); } &&
22399 { ac_try='test -s conftest.$ac_objext'
22400 { (eval echo "$as_me:22400: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22403 echo "$as_me:22403: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_hi=$ac_mid; break
22407 echo "$as_me: failed program was:" >&5
22408 cat conftest.$ac_ext >&5
22409 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
22411 rm -f conftest.$ac_objext conftest.$ac_ext
22414 echo "$as_me: failed program was:" >&5
22415 cat conftest.$ac_ext >&5
22418 cat >conftest.$ac_ext <<_ACEOF
22419 #line 22419 "configure"
22420 #include "confdefs.h"
22421 $ac_includes_default
22425 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
22430 rm -f conftest.$ac_objext
22431 if { (eval echo "$as_me:22431: \"$ac_compile\"") >&5
22432 (eval $ac_compile) 2>&5
22434 echo "$as_me:22434: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -s conftest.$ac_objext'
22437 { (eval echo "$as_me:22437: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22440 echo "$as_me:22440: \$? = $ac_status" >&5
22441 (exit $ac_status); }; }; then
22442 ac_lo=$ac_mid; break
22444 echo "$as_me: failed program was:" >&5
22445 cat conftest.$ac_ext >&5
22446 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
22448 rm -f conftest.$ac_objext conftest.$ac_ext
22451 rm -f conftest.$ac_objext conftest.$ac_ext
22452 # Binary search between lo and hi bounds.
22453 while test "x$ac_lo" != "x$ac_hi"; do
22454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22455 cat >conftest.$ac_ext <<_ACEOF
22456 #line 22456 "configure"
22457 #include "confdefs.h"
22458 $ac_includes_default
22462 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
22467 rm -f conftest.$ac_objext
22468 if { (eval echo "$as_me:22468: \"$ac_compile\"") >&5
22469 (eval $ac_compile) 2>&5
22471 echo "$as_me:22471: \$? = $ac_status" >&5
22472 (exit $ac_status); } &&
22473 { ac_try='test -s conftest.$ac_objext'
22474 { (eval echo "$as_me:22474: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:22477: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22481 echo "$as_me: failed program was:" >&5
22482 cat conftest.$ac_ext >&5
22483 ac_lo=`expr $ac_mid + 1`
22485 rm -f conftest.$ac_objext conftest.$ac_ext
22487 ac_cv_sizeof_wchar_t=$ac_lo
22489 if test "$cross_compiling" = yes; then
22490 { { echo "$as_me:22490: error: cannot run test program while cross compiling" >&5
22491 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22492 { (exit 1); exit 1; }; }
22494 cat >conftest.$ac_ext <<_ACEOF
22495 #line 22495 "configure"
22496 #include "confdefs.h"
22497 $ac_includes_default
22501 FILE *f = fopen ("conftest.val", "w");
22503 $ac_main_return (1);
22504 fprintf (f, "%d", (sizeof (wchar_t)));
22510 rm -f conftest$ac_exeext
22511 if { (eval echo "$as_me:22511: \"$ac_link\"") >&5
22512 (eval $ac_link) 2>&5
22514 echo "$as_me:22514: \$? = $ac_status" >&5
22515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22516 { (eval echo "$as_me:22516: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22519 echo "$as_me:22519: \$? = $ac_status" >&5
22520 (exit $ac_status); }; }; then
22521 ac_cv_sizeof_wchar_t=`cat conftest.val`
22523 echo "$as_me: program exited with status $ac_status" >&5
22524 echo "$as_me: failed program was:" >&5
22525 cat conftest.$ac_ext >&5
22527 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22532 ac_cv_sizeof_wchar_t=0
22535 echo "$as_me:22535: result: $ac_cv_sizeof_wchar_t" >&5
22536 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
22537 cat >>confdefs.h <<EOF
22538 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22543 ### Construct the ncurses library-subsets, if any, from this set of keywords:
22544 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
22546 ### ticlib modules may be a separate library, otherwise contained in termlib.
22547 ### termlib modules may be a separate library, otherwise contained in ncurses.
22549 ### The of "+" or " " between the tokens controls the way the script
22550 ### chooses to split module lists into libraries.
22552 ### (see CF_LIB_RULES).
22553 echo "$as_me:22553: checking for library subsets" >&5
22554 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
22557 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
22558 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
22559 if test "$with_ticlib" != no ; then
22560 LIB_SUBSETS="${LIB_SUBSETS} "
22562 LIB_SUBSETS="${LIB_SUBSETS}+"
22566 LIB_SUBSETS="${LIB_SUBSETS}termlib"
22567 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
22569 if test "$with_termlib" != no ; then
22570 LIB_SUBSETS="${LIB_SUBSETS} "
22572 LIB_SUBSETS="${LIB_SUBSETS}+"
22575 LIB_SUBSETS="${LIB_SUBSETS}base"
22577 # Most term-driver calls are to tinfo, but some like init_pair are to the
22578 # base library (so it resides in base).
22579 if test "$with_term_driver" != no ; then
22580 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
22581 case $cf_cv_system_name in
22582 (*mingw32*|*mingw64*)
22583 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
22584 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
22587 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
22592 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
22593 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
22595 echo "$as_me:22595: result: $LIB_SUBSETS" >&5
22596 echo "${ECHO_T}$LIB_SUBSETS" >&6
22598 ### Construct the list of include-directories to be generated
22600 if test "$srcdir" != "."; then
22601 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
22603 CPPFLAGS="-I../include $CPPFLAGS"
22604 if test "$srcdir" != "."; then
22605 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
22607 CPPFLAGS="-I. $CPPFLAGS"
22609 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
22610 if test "$srcdir" != "."; then
22611 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
22613 if test "$GCC" != yes; then
22614 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22615 elif test "$includedir" != "/usr/include"; then
22616 if test "$includedir" = '${prefix}/include' ; then
22617 if test x$prefix != x/usr ; then
22618 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22621 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22625 ### Build up pieces for makefile rules
22626 echo "$as_me:22626: checking default library suffix" >&5
22627 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
22629 case $DFT_LWR_MODEL in
22630 (libtool) DFT_ARG_SUFFIX='' ;;
22631 (normal) DFT_ARG_SUFFIX='' ;;
22632 (debug) DFT_ARG_SUFFIX='_g' ;;
22633 (profile) DFT_ARG_SUFFIX='_p' ;;
22634 (shared) DFT_ARG_SUFFIX='' ;;
22636 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
22637 echo "$as_me:22637: result: $DFT_ARG_SUFFIX" >&5
22638 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
22640 echo "$as_me:22640: checking default library-dependency suffix" >&5
22641 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
22643 case X$DFT_LWR_MODEL in
22645 DFT_LIB_SUFFIX='.la'
22646 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22649 DFT_LIB_SUFFIX='_g.a'
22650 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22653 DFT_LIB_SUFFIX='_p.a'
22654 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22657 case $cf_cv_system_name in
22659 DFT_LIB_SUFFIX='.so'
22660 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22662 (cygwin*|msys*|mingw*)
22663 DFT_LIB_SUFFIX='.dll'
22664 DFT_DEP_SUFFIX='.dll.a'
22667 DFT_LIB_SUFFIX='.dylib'
22668 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22673 DFT_LIB_SUFFIX='.so'
22674 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22677 DFT_LIB_SUFFIX='.sl'
22678 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22683 DFT_LIB_SUFFIX='.so'
22684 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22689 DFT_LIB_SUFFIX='.a'
22690 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22693 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22695 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
22696 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
22698 echo "$as_me:22698: result: $DFT_DEP_SUFFIX" >&5
22699 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
22701 echo "$as_me:22701: checking default object directory" >&5
22702 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
22704 case $DFT_LWR_MODEL in
22705 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
22706 (normal) DFT_OBJ_SUBDIR='objects' ;;
22707 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
22708 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
22710 case $cf_cv_system_name in
22712 DFT_OBJ_SUBDIR='objects' ;;
22714 DFT_OBJ_SUBDIR='obj_s' ;;
22717 echo "$as_me:22717: result: $DFT_OBJ_SUBDIR" >&5
22718 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
22720 if test "x$cf_with_cxx" = xyes ; then
22721 echo "$as_me:22721: checking c++ library-dependency suffix" >&5
22722 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
22723 if test "$with_libtool" != "no"; then
22724 # libtool thinks it can make c++ shared libraries (perhaps only g++)
22725 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22726 elif test "$with_shared_cxx" != "no"; then
22727 # also for g++ users...
22728 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22730 # we normally make a static library because C/C++ library rules differ
22734 CXX_LIB_SUFFIX='.la'
22735 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22738 CXX_LIB_SUFFIX='_g.a'
22739 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22742 CXX_LIB_SUFFIX='_p.a'
22743 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22746 case $cf_cv_system_name in
22748 CXX_LIB_SUFFIX='.so'
22749 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22751 (cygwin*|msys*|mingw*)
22752 CXX_LIB_SUFFIX='.dll'
22753 CXX_DEP_SUFFIX='.dll.a'
22756 CXX_LIB_SUFFIX='.dylib'
22757 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22762 CXX_LIB_SUFFIX='.so'
22763 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22766 CXX_LIB_SUFFIX='.sl'
22767 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22772 CXX_LIB_SUFFIX='.so'
22773 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22778 CXX_LIB_SUFFIX='.a'
22779 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22782 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22784 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
22785 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
22789 echo "$as_me:22789: result: $CXX_LIB_SUFFIX" >&5
22790 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
22794 # do not want -ldl in build except as needed for -lncurses dependency
22795 if test "x$with_dlsym" = xyes ; then
22796 if test $DFT_LWR_MODEL = shared || \
22797 test $DFT_LWR_MODEL = libtool ; then
22799 # remove dl library from $LIBS
22800 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22804 ### Set up low-level terminfo dependencies for makefiles.
22806 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
22807 # do not need libdl
22809 if test "x$with_dlsym" = xyes ; then
22811 # remove dl library from $SHLIB_LIST
22812 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22816 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
22817 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
22818 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
22819 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
22821 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
22824 if test "$with_ticlib" != no ; then
22826 if test "x$with_ticlib" != xyes ; then
22827 TICS_NAME=$with_ticlib
22828 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22829 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22830 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22831 TICS_LIB_SUFFIX="${with_ticlib}"
22833 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22834 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
22835 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
22836 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
22838 TICS_LDFLAGS="-L${LIB_DIR}"
22839 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
22841 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22842 TICS_LDFLAGS="-L${LIB_DIR}"
22843 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22846 if test "$with_termlib" != no ; then
22848 if test "x$with_termlib" != xyes ; then
22849 TINFO_NAME=$with_termlib
22850 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22851 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22852 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22853 TINFO_LIB_SUFFIX="${with_termlib}"
22855 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22856 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
22857 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
22858 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
22861 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22862 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22863 if test "$DFT_LWR_MODEL" = "libtool"; then
22864 TEST_ARGS="${TEST_DEPS}"
22865 TEST_ARG2="${TEST_DEP2}"
22866 TINFO_LDFLAGS="-L${LIB_DIR}"
22867 TINFO_LIBS="$TEST_ARGS"
22868 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
22869 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
22871 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
22872 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
22873 if test "x$with_term_driver" != xno ; then
22874 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22875 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
22876 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22878 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22879 TINFO_LIBS="$TEST_ARGS"
22881 TINFO_LDFLAGS="-L${LIB_DIR}"
22882 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22885 # the next lines are needed for linking libtic over libncurses
22886 TINFO_NAME=${LIB_NAME}
22887 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22888 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
22889 if test "x$with_tic_depends" = xyes ; then
22890 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22892 TICS_LIST="$SHLIB_LIST"
22895 TINFO_LDFLAGS="-L${LIB_DIR}"
22896 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22899 if test "$DFT_LWR_MODEL" = shared ; then
22900 case $cf_cv_system_name in
22902 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
22908 if test "x$with_dlsym" = xyes ; then
22910 # remove dl library from $TICS_LIST
22911 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22915 if test "$DFT_LWR_MODEL" = "libtool"; then
22920 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
22922 case $DFT_LWR_MODEL in
22923 (normal|debug|profile)
22925 if test "$GCC" = yes ; then
22926 case $cf_cv_system_name in
22927 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
22931 (*) # normally, except when broken
22932 LDFLAGS_STATIC=-static
22933 LDFLAGS_SHARED=-dynamic
22937 case $cf_cv_system_name in
22938 (aix[4-7]*) # from ld manpage
22939 LDFLAGS_STATIC=-bstatic
22940 LDFLAGS_SHARED=-bdynamic
22942 (hpux*) # from ld manpage for hpux10.20, hpux11.11
22943 # We could also use just "archive" and "shared".
22944 LDFLAGS_STATIC=-Wl,-a,archive_shared
22945 LDFLAGS_SHARED=-Wl,-a,shared_archive
22947 (irix*) # from ld manpage IRIX64
22948 LDFLAGS_STATIC=-Bstatic
22949 LDFLAGS_SHARED=-Bdynamic
22951 (osf[45]*) # from ld manpage osf4.0d, osf5.1
22952 # alternative "-oldstyle_liblookup" (not in cc manpage)
22953 LDFLAGS_STATIC=-noso
22954 LDFLAGS_SHARED=-so_archive
22957 LDFLAGS_STATIC=-Bstatic
22958 LDFLAGS_SHARED=-Bdynamic
22963 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
22965 echo "$as_me:22965: checking if linker supports switching between static/dynamic" >&5
22966 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
22968 rm -f libconftest.a
22969 cat >conftest.$ac_ext <<EOF
22970 #line 22970 "configure"
22972 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
22974 if { (eval echo "$as_me:22974: \"$ac_compile\"") >&5
22975 (eval $ac_compile) 2>&5
22977 echo "$as_me:22977: \$? = $ac_status" >&5
22978 (exit $ac_status); } ; then
22979 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
22980 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
22984 cf_save_LIBS="$LIBS"
22986 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
22987 cat >conftest.$ac_ext <<_ACEOF
22988 #line 22988 "configure"
22989 #include "confdefs.h"
22991 #line 22991 "configure"
22993 int cf_ldflags_static(FILE *fp);
22999 return cf_ldflags_static(stdin);
23005 rm -f conftest.$ac_objext conftest$ac_exeext
23006 if { (eval echo "$as_me:23006: \"$ac_link\"") >&5
23007 (eval $ac_link) 2>&5
23009 echo "$as_me:23009: \$? = $ac_status" >&5
23010 (exit $ac_status); } &&
23011 { ac_try='test -s conftest$ac_exeext'
23012 { (eval echo "$as_me:23012: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23015 echo "$as_me:23015: \$? = $ac_status" >&5
23016 (exit $ac_status); }; }; then
23018 # some linkers simply ignore the -dynamic
23019 case x`file conftest$ac_exeext 2>/dev/null` in
23021 cf_ldflags_static=no
23024 cf_ldflags_static=yes
23029 echo "$as_me: failed program was:" >&5
23030 cat conftest.$ac_ext >&5
23031 cf_ldflags_static=no
23033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23035 rm -f libconftest.*
23036 LIBS="$cf_save_LIBS"
23038 echo "$as_me:23038: result: $cf_ldflags_static" >&5
23039 echo "${ECHO_T}$cf_ldflags_static" >&6
23041 if test $cf_ldflags_static != yes
23054 echo "$as_me:23054: checking where we will install curses.h" >&5
23055 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
23058 if test "$with_overwrite" = no && \
23059 ( test "x$includedir" = 'x${prefix}/include' || \
23060 test "x$includedir" = "x${prefix}/include" )
23062 includesubdir="/ncurses${USE_LIB_SUFFIX}"
23064 echo "$as_me:23064: result: ${includedir}${includesubdir}" >&5
23065 echo "${ECHO_T}${includedir}${includesubdir}" >&6
23067 ### Resolve a conflict between normal and wide-curses by forcing applications
23068 ### that will need libutf8 to add it to their configure script.
23069 if test "$with_overwrite" != no ; then
23070 if test "$NCURSES_LIBUTF8" = 1 ; then
23071 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
23072 { echo "$as_me:23072: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
23073 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
23076 WITH_OVERWRITE=$with_overwrite
23078 # used to separate tack out of the tree
23081 ### predefined stuff for the test programs
23083 cat >>confdefs.h <<\EOF
23084 #define HAVE_SLK_COLOR 1
23087 ### Construct the list of subdirectories for which we'll customize makefiles
23088 ### with the appropriate compile-rules.
23090 echo "$as_me:23090: checking for src modules" >&5
23091 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
23093 # dependencies and linker-arguments for test-programs
23094 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
23095 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
23096 if test "$DFT_LWR_MODEL" = "libtool"; then
23097 TEST_ARGS="${TEST_DEPS}"
23098 TEST_ARG2="${TEST_DEP2}"
23100 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
23101 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
23104 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
23106 for cf_dir in $modules_to_build
23108 if test -f $srcdir/$cf_dir/modules; then
23110 # We may/may not have tack in the distribution, though the
23112 if test $cf_dir = tack ; then
23113 if test "x$cf_with_tack" != "xyes"; then
23118 if test -z "$cf_cv_src_modules"; then
23119 cf_cv_src_modules=$cf_dir
23121 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
23124 # Make the ncurses_cfg.h file record the library interface files as
23125 # well. These are header files that are the same name as their
23126 # directory. Ncurses is the only library that does not follow
23128 if test $cf_dir = tack ; then
23130 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
23132 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23134 cat >>confdefs.h <<EOF
23135 #define HAVE_${cf_have_include}_H 1
23138 cat >>confdefs.h <<EOF
23139 #define HAVE_LIB${cf_have_include} 1
23142 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
23143 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
23144 if test "$DFT_LWR_MODEL" = "libtool"; then
23145 TEST_ARGS="${TEST_DEPS}"
23146 TEST_ARG2="${TEST_DEP2}"
23148 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
23149 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
23151 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
23155 echo "$as_me:23155: result: $cf_cv_src_modules" >&5
23156 echo "${ECHO_T}$cf_cv_src_modules" >&6
23158 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
23159 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
23162 if test "x$cf_with_manpages" != xno ; then
23163 SRC_SUBDIRS="$SRC_SUBDIRS man"
23165 SRC_SUBDIRS="$SRC_SUBDIRS include"
23166 for cf_dir in $cf_cv_src_modules
23168 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
23170 if test "x$cf_with_tests" != "xno" ; then
23171 SRC_SUBDIRS="$SRC_SUBDIRS test"
23173 # always make this, to install the ncurses-config script
23174 SRC_SUBDIRS="$SRC_SUBDIRS misc"
23175 if test "$cf_with_cxx_binding" != no; then
23176 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
23177 SRC_SUBDIRS="$SRC_SUBDIRS c++"
23180 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
23181 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
23184 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
23185 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
23186 ADA_SUBDIRS="gen src"
23187 if test "x$cf_with_tests" != "xno" ; then
23188 ADA_SUBDIRS="$ADA_SUBDIRS samples"
23193 for cf_dir in $SRC_SUBDIRS
23195 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
23198 if test -n "$ADA_SUBDIRS"; then
23199 for cf_dir in $ADA_SUBDIRS
23201 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
23206 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
23207 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
23208 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
23212 for cf_item in $cf_list_models
23216 (libtool) cf_subdir='obj_lo' ;;
23217 (normal) cf_subdir='objects' ;;
23218 (debug) cf_subdir='obj_g' ;;
23219 (profile) cf_subdir='obj_p' ;;
23221 case $cf_cv_system_name in
23223 cf_subdir='objects' ;;
23225 cf_subdir='obj_s' ;;
23229 for cf_item2 in $DIRS_TO_MAKE
23231 test $cf_item2 = $cf_subdir && break
23233 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
23235 for cf_dir in $DIRS_TO_MAKE
23237 test ! -d $cf_dir && mkdir $cf_dir
23240 # symbols that differ when compiling Ada95 by itself.
23241 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
23243 # values to use as strings
23245 cat >>confdefs.h <<EOF
23246 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
23249 cat >>confdefs.h <<EOF
23250 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
23253 ### Now that we're done running tests, add the compiler-warnings, if any
23258 cf_new_extra_cppflags=
23260 for cf_add_cflags in $EXTRA_CFLAGS
23262 case $cf_fix_cppflags in
23264 case $cf_add_cflags in
23265 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23266 case $cf_add_cflags in
23268 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23270 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23271 && test -z "${cf_tst_cflags}" \
23272 && cf_fix_cppflags=yes
23274 if test $cf_fix_cppflags = yes ; then
23276 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23277 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23280 elif test "${cf_tst_cflags}" = "\"'" ; then
23282 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23283 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23289 case "$CPPFLAGS" in
23293 case $cf_add_cflags in
23295 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23297 CPPFLAGS=`echo "$CPPFLAGS" | \
23298 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23299 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23304 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23305 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
23312 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23313 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
23320 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23321 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23323 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
23325 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23326 && test -z "${cf_tst_cflags}" \
23327 && cf_fix_cppflags=no
23332 if test -n "$cf_new_cflags" ; then
23334 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23335 CFLAGS="${CFLAGS}$cf_new_cflags"
23339 if test -n "$cf_new_cppflags" ; then
23341 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23342 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
23346 if test -n "$cf_new_extra_cppflags" ; then
23348 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23349 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23353 ### Define substitutions for header files to avoid name-pollution
23355 if test "x$cf_cv_have_tcgetattr" = xyes ; then
23361 if test "x$ac_cv_header_stdint_h" = xyes ; then
23367 if test "x$ac_cv_header_termio_h" = xyes ; then
23373 if test "x$ac_cv_header_termios_h" = xyes ; then
23379 ################################################################################
23380 test "x$use_database" = xyes && \
23381 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
23383 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
23384 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
23386 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
23387 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
23390 # Extract the first word of "tic", so it can be a program name with args.
23391 set dummy tic; ac_word=$2
23392 echo "$as_me:23392: checking for $ac_word" >&5
23393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23394 if test "${ac_cv_path_TIC_PATH+set}" = set; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23399 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
23402 ac_save_IFS=$IFS; IFS=$ac_path_separator
23403 ac_dummy="$PATH:/usr/local/ncurses/bin"
23404 for ac_dir in $ac_dummy; do
23406 test -z "$ac_dir" && ac_dir=.
23407 if $as_executable_p "$ac_dir/$ac_word"; then
23408 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
23409 echo "$as_me:23409: found $ac_dir/$ac_word" >&5
23414 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
23418 TIC_PATH=$ac_cv_path_TIC_PATH
23420 if test -n "$TIC_PATH"; then
23421 echo "$as_me:23421: result: $TIC_PATH" >&5
23422 echo "${ECHO_T}$TIC_PATH" >&6
23424 echo "$as_me:23424: result: no" >&5
23425 echo "${ECHO_T}no" >&6
23428 if test -n "$FALLBACK_LIST"
23430 if test "$TIC_PATH" = unknown
23432 { echo "$as_me:23432: WARNING: no tic program found for fallbacks" >&5
23433 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
23437 if test "x$cf_with_tests" != xno ; then
23443 ADAHTML_DIR=../../doc/html/ada
23445 # these could be configurable, but are not currently
23451 # workaround for OS/2 (20151017)
23452 case $cf_cv_system_name in
23454 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
23461 # workaround for g++ versus Solaris (20131116)
23462 case $cf_cv_system_name in
23464 case "x$CPPFLAGS" in
23465 (*-D_XOPEN_SOURCE_EXTENDED*)
23466 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
23468 echo "${as_me:-configure}:23468: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
23470 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
23471 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
23477 # Help to automatically enable the extended curses features when using either
23478 # the *-config or the ".pc" files by adding defines.
23479 echo "$as_me:23479: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
23480 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
23482 for cf_loop1 in $CPPFLAGS_after_XOPEN
23485 for cf_loop2 in $CPPFLAGS_before_XOPEN
23487 if test "x$cf_loop1" = "x$cf_loop2"
23493 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
23495 echo "$as_me:23495: result: $PKG_CFLAGS" >&5
23496 echo "${ECHO_T}$PKG_CFLAGS" >&6
23498 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
23499 case "x$NCURSES_OSPEED" in
23508 cat >>confdefs.h <<EOF
23509 #define NCURSES_OSPEED_COMPAT $cf_compatible
23512 case "x$cf_cv_typeof_chtype" in
23513 (xshort|xint|xlong)
23514 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
23518 case "x$cf_cv_typeof_mmask_t" in
23519 (xshort|xint|xlong)
23520 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
23524 # substitute into misc/Makefile to suppress
23525 # (un)install.data from the
23526 # (un)install rules.
23527 if test "x$cf_with_db_install" = "xno"; then
23529 MISC_UNINSTALL_DATA=
23531 MISC_INSTALL_DATA=install.data
23532 MISC_UNINSTALL_DATA=uninstall.data
23537 if test -n "$PACKAGE"
23539 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
23541 echo "package: $PACKAGE"
23547 if test -n "$RESULTING_SYMS"
23549 cf_filter_syms=$cf_dft_filter_syms
23550 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
23552 echo "${as_me:-configure}:23552: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
23556 if test "x$WILDCARD_SYMS" = xno
23561 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
23563 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
23564 if test $cf_filter_syms = yes
23566 RESULTING_SYMS=resulting.map
23569 if test "x$cross_compiling" = xyes ; then
23570 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
23573 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
23577 cat >>confdefs.h <<\EOF
23578 #define HAVE_CURSES_DATA_BOOLNAMES 1
23581 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"
23582 ac_config_commands="$ac_config_commands default"
23583 cat >confcache <<\_ACEOF
23584 # This file is a shell script that caches the results of configure
23585 # tests run on this system so they can be shared between configure
23586 # scripts and configure runs, see configure's option --config-cache.
23587 # It is not useful on other systems. If it contains results you don't
23588 # want to keep, you may remove or edit it.
23590 # config.status only pays attention to the cache file if you give it
23591 # the --recheck option to rerun configure.
23593 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23595 # following values.
23599 # The following way of writing the cache mishandles newlines in values,
23600 # but we know of no workaround that is simple, portable, and efficient.
23601 # So, don't put newlines in cache variables' values.
23602 # Ultrix sh set writes to stderr and can't be redirected directly,
23603 # and sets the high bit in the cache file unless we assign to the vars.
23606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23608 # `set' does not quote correctly, so add quotes (double-quote
23609 # substitution turns \\\\ into \\, and sed turns \\ into \).
23612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23615 # `set' quotes correctly as required by POSIX, so do not add quotes.
23617 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23626 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23628 if cmp -s $cache_file confcache; then :; else
23629 if test -w $cache_file; then
23630 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23631 cat confcache >$cache_file
23633 echo "not updating unwritable cache $cache_file"
23638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23639 # Let make expand exec_prefix.
23640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23644 # trailing colons and then remove the whole line if VPATH becomes empty
23645 # (actually we leave an empty line to preserve line numbers).
23646 if test "x$srcdir" = x.; then
23647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23648 s/:*\$(srcdir):*/:/;
23649 s/:*\${srcdir}:*/:/;
23651 s/^\([^=]*=[ ]*\):*/\1/;
23657 DEFS=-DHAVE_CONFIG_H
23659 : ${CONFIG_STATUS=./config.status}
23660 ac_clean_files_save=$ac_clean_files
23661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23662 { echo "$as_me:23662: creating $CONFIG_STATUS" >&5
23663 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23664 cat >$CONFIG_STATUS <<_ACEOF
23666 # Generated automatically by configure.
23667 # Run this file to recreate the current configuration.
23668 # Compiler output produced by configure, useful for debugging
23669 # configure, is in config.log if it exists.
23672 SHELL=\${CONFIG_SHELL-$SHELL}
23673 ac_cs_invocation="\$0 \$@"
23677 cat >>$CONFIG_STATUS <<\_ACEOF
23678 # Be Bourne compatible
23679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23682 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23686 # Name of the executable.
23687 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23689 if expr a : '\(a\)' >/dev/null 2>&1; then
23695 rm -f conf$$ conf$$.exe conf$$.file
23697 if ln -s conf$$.file conf$$ 2>/dev/null; then
23698 # We could just check for DJGPP; but this test a) works b) is more generic
23699 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23700 if test -f conf$$.exe; then
23701 # Don't use ln at all; we don't have any links
23706 elif ln conf$$.file conf$$ 2>/dev/null; then
23711 rm -f conf$$ conf$$.exe conf$$.file
23713 as_executable_p="test -f"
23715 # Support unset when possible.
23716 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23723 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
23724 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
23725 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
23726 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
23727 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
23728 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
23729 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
23730 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
23733 # We need space, tab and new line, in precisely that order.
23739 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
23745 # Files that config.status was made for.
23746 if test -n "$ac_config_files"; then
23747 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23750 if test -n "$ac_config_headers"; then
23751 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23754 if test -n "$ac_config_links"; then
23755 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23758 if test -n "$ac_config_commands"; then
23759 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23762 cat >>$CONFIG_STATUS <<\EOF
23765 \`$as_me' instantiates files from templates according to the
23766 current configuration.
23768 Usage: $0 [OPTIONS] [FILE]...
23770 -h, --help print this help, then exit
23771 -V, --version print version number, then exit
23772 -d, --debug don't remove temporary files
23773 --recheck update $as_me by reconfiguring in the same conditions
23774 --file=FILE[:TEMPLATE]
23775 instantiate the configuration file FILE
23776 --header=FILE[:TEMPLATE]
23777 instantiate the configuration header FILE
23779 Configuration files:
23782 Configuration headers:
23785 Configuration commands:
23788 Report bugs to <dickey@invisible-island.net>."
23791 cat >>$CONFIG_STATUS <<EOF
23794 configured by $0, generated by GNU Autoconf 2.52.20170501,
23795 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23797 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23798 Free Software Foundation, Inc.
23799 This config.status script is free software; the Free Software Foundation
23800 gives unlimited permission to copy, distribute and modify it."
23805 cat >>$CONFIG_STATUS <<\EOF
23806 # If no file are specified by the user, then we need to provide default
23807 # value. By we need to know if files were specified by the user.
23813 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23814 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23816 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23820 *) # This is not an option, so the user has probably given explicit
23822 ac_need_defaults=false;;
23826 # Handling of the options.
23828 cat >>$CONFIG_STATUS <<EOF
23829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23830 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23831 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23833 cat >>$CONFIG_STATUS <<\EOF
23834 --version | --vers* | -V )
23835 echo "$ac_cs_version"; exit 0 ;;
23837 # Conflict between --help and --header
23838 { { echo "$as_me:23838: error: ambiguous option: $1
23839 Try \`$0 --help' for more information." >&5
23840 echo "$as_me: error: ambiguous option: $1
23841 Try \`$0 --help' for more information." >&2;}
23842 { (exit 1); exit 1; }; };;
23843 --help | --hel | -h )
23844 echo "$ac_cs_usage"; exit 0 ;;
23845 --debug | --d* | -d )
23847 --file | --fil | --fi | --f )
23849 CONFIG_FILES="$CONFIG_FILES $1"
23850 ac_need_defaults=false;;
23851 --header | --heade | --head | --hea )
23853 CONFIG_HEADERS="$CONFIG_HEADERS $1"
23854 ac_need_defaults=false;;
23856 # This is an error.
23857 -*) { { echo "$as_me:23857: error: unrecognized option: $1
23858 Try \`$0 --help' for more information." >&5
23859 echo "$as_me: error: unrecognized option: $1
23860 Try \`$0 --help' for more information." >&2;}
23861 { (exit 1); exit 1; }; } ;;
23863 *) ac_config_targets="$ac_config_targets $1" ;;
23872 ## ----------------------- ##
23873 ## Running config.status. ##
23874 ## ----------------------- ##
23876 This file was extended by $as_me 2.52.20170501, executed with
23877 CONFIG_FILES = $CONFIG_FILES
23878 CONFIG_HEADERS = $CONFIG_HEADERS
23879 CONFIG_LINKS = $CONFIG_LINKS
23880 CONFIG_COMMANDS = $CONFIG_COMMANDS
23881 > $ac_cs_invocation
23882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23887 cat >>$CONFIG_STATUS <<EOF
23889 # INIT-COMMANDS section.
23892 ### Special initialization commands, used to pass information from the
23893 ### configuration-run into config.status
23896 ALTERNATE_SYMS="$ALTERNATE_SYMS"
23897 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
23898 DFT_LWR_MODEL="$DFT_LWR_MODEL"
23900 EXTRA_SUFFIX="$EXTRA_SUFFIX"
23901 LDCONFIG="$LDCONFIG"
23902 LIBTOOL_VERSION="$LIBTOOL_VERSION"
23903 LIB_NAME="$LIB_NAME"
23904 LIB_PREFIX="$LIB_PREFIX"
23905 LIB_SUBSETS="$LIB_SUBSETS"
23906 LIB_SUFFIX="$LIB_SUFFIX"
23907 LIB_TRACING="$LIB_TRACING"
23909 MAKE_TERMINFO="$MAKE_TERMINFO"
23910 NCURSES_MAJOR="$NCURSES_MAJOR"
23911 NCURSES_MINOR="$NCURSES_MINOR"
23912 NCURSES_OSPEED="$NCURSES_OSPEED"
23913 NCURSES_PATCH="$NCURSES_PATCH"
23914 SRC_SUBDIRS="$SRC_SUBDIRS"
23915 TERMINFO="$TERMINFO"
23916 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
23917 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
23918 TICS_NAME="$TICS_NAME"
23919 TICS_SUFFIX="$TICS_SUFFIX"
23920 TIC_PATH="$TIC_PATH"
23921 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
23922 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
23923 TINFO_NAME="$TINFO_NAME"
23924 TINFO_SUFFIX="$TINFO_SUFFIX"
23925 UNALTERED_SYMS="$UNALTERED_SYMS"
23926 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
23927 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
23928 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
23929 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
23930 WILDCARD_SYMS="$WILDCARD_SYMS"
23931 WITH_CURSES_H="$with_curses_h"
23932 WITH_ECHO="${enable_echo:=yes}"
23933 WITH_OVERWRITE="$with_overwrite"
23934 cf_LIST_MODELS="$cf_list_models"
23935 cf_cv_abi_version="$cf_cv_abi_version"
23936 cf_cv_do_relink="$cf_cv_do_relink"
23937 cf_cv_do_symlinks="$cf_cv_do_symlinks"
23938 cf_cv_enable_lp64="$cf_cv_enable_lp64"
23939 cf_cv_enable_opaque="$cf_cv_enable_opaque"
23940 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
23941 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
23942 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
23943 cf_cv_rel_version="$cf_cv_rel_version"
23944 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
23945 cf_cv_shared_soname='$cf_cv_shared_soname'
23946 cf_cv_shlib_version="$cf_cv_shlib_version"
23947 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
23948 cf_cv_system_name="$cf_cv_system_name"
23949 cf_cv_term_driver="$with_term_driver"
23950 cf_with_ada="$cf_with_ada"
23951 cf_with_cxx_binding="$cf_with_cxx_binding"
23952 cf_with_db_install="$cf_with_db_install"
23953 cf_with_manpages="$cf_with_manpages"
23954 cf_with_tests="$cf_with_tests"
23957 with_shared_cxx="$with_shared_cxx"
23961 cat >>$CONFIG_STATUS <<\EOF
23962 for ac_config_target in $ac_config_targets
23964 case "$ac_config_target" in
23965 # Handling of arguments.
23966 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
23967 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
23968 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
23969 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
23970 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
23971 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
23972 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
23973 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23974 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23975 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
23976 *) { { echo "$as_me:23976: error: invalid argument: $ac_config_target" >&5
23977 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23978 { (exit 1); exit 1; }; };;
23982 # If the user did not use the arguments to specify the items to instantiate,
23983 # then the envvar interface is used. Set only those that are not.
23984 # We use the long form for the default assignment because of an extremely
23985 # bizarre bug on SunOS 4.1.3.
23986 if $ac_need_defaults; then
23987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23992 # Create a temporary directory, and hook for its removal unless debugging.
23995 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23996 trap '{ (exit 1); exit 1; }' 1 2 13 15
23999 # Create a (secure) tmp directory for tmp files.
24002 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
24003 test -n "$tmp" && test -d "$tmp"
24006 tmp=$TMPDIR/cs$$-$RANDOM
24007 (umask 077 && mkdir $tmp)
24010 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
24011 { (exit 1); exit 1; }
24016 cat >>$CONFIG_STATUS <<EOF
24019 # CONFIG_FILES section.
24022 # No need to generate the scripts if there are no CONFIG_FILES.
24023 # This happens for instance when ./config.status config.h
24024 if test -n "\$CONFIG_FILES"; then
24025 # Protect against being on the right side of a sed subst in config.status.
24026 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24027 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24028 s,@SHELL@,$SHELL,;t t
24029 s,@exec_prefix@,$exec_prefix,;t t
24030 s,@prefix@,$prefix,;t t
24031 s,@program_transform_name@,$program_transform_name,;t t
24032 s,@bindir@,$bindir,;t t
24033 s,@sbindir@,$sbindir,;t t
24034 s,@libexecdir@,$libexecdir,;t t
24035 s,@datarootdir@,$datarootdir,;t t
24036 s,@datadir@,$datadir,;t t
24037 s,@sysconfdir@,$sysconfdir,;t t
24038 s,@sharedstatedir@,$sharedstatedir,;t t
24039 s,@localstatedir@,$localstatedir,;t t
24040 s,@libdir@,$libdir,;t t
24041 s,@includedir@,$includedir,;t t
24042 s,@oldincludedir@,$oldincludedir,;t t
24043 s,@infodir@,$infodir,;t t
24044 s,@mandir@,$mandir,;t t
24045 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24046 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24047 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24048 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24049 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24050 s,@build_alias@,$build_alias,;t t
24051 s,@host_alias@,$host_alias,;t t
24052 s,@target_alias@,$target_alias,;t t
24053 s,@ECHO_C@,$ECHO_C,;t t
24054 s,@ECHO_N@,$ECHO_N,;t t
24055 s,@ECHO_T@,$ECHO_T,;t t
24056 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24057 s,@DEFS@,$DEFS,;t t
24058 s,@LIBS@,$LIBS,;t t
24059 s,@top_builddir@,$top_builddir,;t t
24060 s,@EGREP@,$EGREP,;t t
24061 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
24062 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
24063 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
24064 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
24065 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
24066 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
24067 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
24068 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
24069 s,@VERSION@,$VERSION,;t t
24070 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
24071 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
24072 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
24073 s,@PACKAGE@,$PACKAGE,;t t
24074 s,@build@,$build,;t t
24075 s,@build_cpu@,$build_cpu,;t t
24076 s,@build_vendor@,$build_vendor,;t t
24077 s,@build_os@,$build_os,;t t
24078 s,@host@,$host,;t t
24079 s,@host_cpu@,$host_cpu,;t t
24080 s,@host_vendor@,$host_vendor,;t t
24081 s,@host_os@,$host_os,;t t
24082 s,@target@,$target,;t t
24083 s,@target_cpu@,$target_cpu,;t t
24084 s,@target_vendor@,$target_vendor,;t t
24085 s,@target_os@,$target_os,;t t
24087 s,@CFLAGS@,$CFLAGS,;t t
24088 s,@LDFLAGS@,$LDFLAGS,;t t
24089 s,@CPPFLAGS@,$CPPFLAGS,;t t
24090 s,@ac_ct_CC@,$ac_ct_CC,;t t
24091 s,@EXEEXT@,$EXEEXT,;t t
24092 s,@OBJEXT@,$OBJEXT,;t t
24093 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
24095 s,@LDCONFIG@,$LDCONFIG,;t t
24097 s,@CXXFLAGS@,$CXXFLAGS,;t t
24098 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24100 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24101 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24102 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24103 s,@LINT@,$LINT,;t t
24104 s,@LINT_OPTS@,$LINT_OPTS,;t t
24105 s,@LN_S@,$LN_S,;t t
24106 s,@cf_config_suffix@,$cf_config_suffix,;t t
24107 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24108 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
24109 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
24110 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
24111 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
24112 s,@SET_MAKE@,$SET_MAKE,;t t
24113 s,@CTAGS@,$CTAGS,;t t
24114 s,@ETAGS@,$ETAGS,;t t
24115 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
24116 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
24117 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
24118 s,@RANLIB@,$RANLIB,;t t
24119 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24121 s,@ac_ct_LD@,$ac_ct_LD,;t t
24123 s,@ac_ct_AR@,$ac_ct_AR,;t t
24125 s,@ac_ct_NM@,$ac_ct_NM,;t t
24126 s,@ARFLAGS@,$ARFLAGS,;t t
24127 s,@DESTDIR@,$DESTDIR,;t t
24128 s,@BUILD_CC@,$BUILD_CC,;t t
24129 s,@BUILD_CPP@,$BUILD_CPP,;t t
24130 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24131 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
24132 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24133 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
24134 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
24135 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
24136 s,@cf_list_models@,$cf_list_models,;t t
24137 s,@ABI_VERSION@,$ABI_VERSION,;t t
24138 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
24139 s,@LIBTOOL@,$LIBTOOL,;t t
24140 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
24141 s,@LT_UNDEF@,$LT_UNDEF,;t t
24142 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
24143 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
24144 s,@LIB_CREATE@,$LIB_CREATE,;t t
24145 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
24146 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
24147 s,@LIB_PREP@,$LIB_PREP,;t t
24148 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
24149 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
24150 s,@LIB_LINK@,$LIB_LINK,;t t
24151 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
24152 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
24153 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
24154 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
24155 s,@TICS_NAME@,$TICS_NAME,;t t
24156 s,@TINFO_NAME@,$TINFO_NAME,;t t
24157 s,@LIB_NAME@,$LIB_NAME,;t t
24158 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
24159 s,@CC_G_OPT@,$CC_G_OPT,;t t
24160 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
24161 s,@LD_MODEL@,$LD_MODEL,;t t
24162 s,@shlibdir@,$shlibdir,;t t
24163 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
24164 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
24165 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
24166 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
24167 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
24168 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
24169 s,@LINK_PROGS@,$LINK_PROGS,;t t
24170 s,@LINK_TESTS@,$LINK_TESTS,;t t
24171 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
24172 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24173 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
24174 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
24175 s,@RPATH_LIST@,$RPATH_LIST,;t t
24176 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
24177 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
24178 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
24179 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
24180 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
24181 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
24182 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
24183 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
24184 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
24185 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
24186 s,@XTERM_KBS@,$XTERM_KBS,;t t
24187 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
24188 s,@TERMINFO@,$TERMINFO,;t t
24189 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
24190 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
24191 s,@TERMPATH@,$TERMPATH,;t t
24192 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
24193 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
24194 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
24195 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
24196 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
24197 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
24198 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
24199 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
24200 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
24201 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
24202 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
24203 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
24204 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
24205 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
24206 s,@RGB_PATH@,$RGB_PATH,;t t
24207 s,@no_x11_rgb@,$no_x11_rgb,;t t
24208 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
24209 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
24210 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
24211 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
24212 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
24213 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
24214 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
24215 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
24216 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
24217 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
24218 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
24219 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
24220 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
24221 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
24222 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
24223 s,@PTHREAD@,$PTHREAD,;t t
24224 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
24225 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
24226 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
24227 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
24228 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
24229 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
24230 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
24231 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
24232 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
24233 s,@ECHO_LT@,$ECHO_LT,;t t
24234 s,@ECHO_LD@,$ECHO_LD,;t t
24235 s,@RULE_CC@,$RULE_CC,;t t
24236 s,@SHOW_CC@,$SHOW_CC,;t t
24237 s,@ECHO_CC@,$ECHO_CC,;t t
24238 s,@ECHO_LINK@,$ECHO_LINK,;t t
24239 s,@ADAFLAGS@,$ADAFLAGS,;t t
24240 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
24241 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
24242 s,@ADA_TRACE@,$ADA_TRACE,;t t
24243 s,@MATH_LIB@,$MATH_LIB,;t t
24244 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
24245 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
24246 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
24247 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
24248 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
24249 s,@TEST_LIBS@,$TEST_LIBS,;t t
24250 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
24251 s,@CXXCPP@,$CXXCPP,;t t
24252 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
24253 s,@CXX_AR@,$CXX_AR,;t t
24254 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
24255 s,@CXXLIBS@,$CXXLIBS,;t t
24256 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
24257 s,@gnat_exists@,$gnat_exists,;t t
24258 s,@M4_exists@,$M4_exists,;t t
24259 s,@cf_ada_make@,$cf_ada_make,;t t
24260 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
24261 s,@cf_compile_generics@,$cf_compile_generics,;t t
24262 s,@cf_generic_objects@,$cf_generic_objects,;t t
24263 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
24264 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
24265 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
24266 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
24267 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
24268 s,@cf_ada_package@,$cf_ada_package,;t t
24269 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
24270 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
24271 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
24272 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
24273 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
24274 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
24275 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
24276 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
24277 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
24278 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
24279 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
24280 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
24281 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
24282 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
24283 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
24284 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
24285 s,@TICS_LIBS@,$TICS_LIBS,;t t
24286 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
24287 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
24288 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
24289 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
24290 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
24291 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
24292 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
24293 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
24294 s,@includesubdir@,$includesubdir,;t t
24295 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
24296 s,@TICS_LIST@,$TICS_LIST,;t t
24297 s,@TINFO_LIST@,$TINFO_LIST,;t t
24298 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
24299 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
24300 s,@TEST_ARGS@,$TEST_ARGS,;t t
24301 s,@TEST_DEPS@,$TEST_DEPS,;t t
24302 s,@TEST_ARG2@,$TEST_ARG2,;t t
24303 s,@TEST_DEP2@,$TEST_DEP2,;t t
24304 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
24305 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
24306 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
24307 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
24308 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
24309 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
24310 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
24311 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
24312 s,@cross_compiling@,$cross_compiling,;t t
24313 s,@TIC_PATH@,$TIC_PATH,;t t
24314 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
24315 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
24316 s,@PANEL_NAME@,$PANEL_NAME,;t t
24317 s,@MENU_NAME@,$MENU_NAME,;t t
24318 s,@FORM_NAME@,$FORM_NAME,;t t
24319 s,@CXX_NAME@,$CXX_NAME,;t t
24320 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
24321 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
24322 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
24323 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
24324 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
24325 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
24326 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
24331 cat >>$CONFIG_STATUS <<\EOF
24332 # Split the substitutions into bite-sized pieces for seds with
24333 # small command number limits, like on Digital OSF/1 and HP-UX.
24334 ac_max_sed_lines=48
24335 ac_sed_frag=1 # Number of current file.
24336 ac_beg=1 # First line for current file.
24337 ac_end=$ac_max_sed_lines # Line after last line for current file.
24340 while $ac_more_lines; do
24341 if test $ac_beg -gt 1; then
24342 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24344 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24346 if test ! -s $tmp/subs.frag; then
24347 ac_more_lines=false
24349 # The purpose of the label and of the branching condition is to
24350 # speed up the sed processing (if there are no `@' at all, there
24351 # is no need to browse any of the substitutions).
24352 # These are the two extra sed commands mentioned above.
24354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24355 # It is possible to make a multiline substitution using escaped newlines.
24356 # Ensure that we do not split the substitution between script fragments.
24358 ac_END=`expr $ac_end + $ac_max_sed_lines`
24359 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
24360 if test -s $tmp/subs.next; then
24361 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
24362 if test ! -s $tmp/subs.edit; then
24363 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
24364 if test ! -s $tmp/subs.edit; then
24365 if test $ac_beg -gt 1; then
24366 ac_end=`expr $ac_end - 1`
24373 if test -z "$ac_sed_cmds"; then
24374 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24376 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24378 ac_sed_frag=`expr $ac_sed_frag + 1`
24380 ac_end=`expr $ac_end + $ac_max_sed_lines`
24383 if test -z "$ac_sed_cmds"; then
24386 fi # test -n "$CONFIG_FILES"
24389 cat >>$CONFIG_STATUS <<\EOF
24390 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24393 - | *:- | *:-:* ) # input from stdin
24395 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24397 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24399 * ) ac_file_in=$ac_file.in ;;
24402 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24403 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24404 X"$ac_file" : 'X\(//\)[^/]' \| \
24405 X"$ac_file" : 'X\(//\)$' \| \
24406 X"$ac_file" : 'X\(/\)' \| \
24407 . : '\(.\)' 2>/dev/null ||
24409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24411 /^X\(\/\/\)$/{ s//\1/; q; }
24412 /^X\(\/\).*/{ s//\1/; q; }
24414 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24415 { case "$ac_dir" in
24416 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24420 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24421 case $as_mkdir_dir in
24422 # Skip DOS drivespec
24423 ?:) as_incr_dir=$as_mkdir_dir ;;
24425 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24426 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24431 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
24432 # A "../" for each directory in $ac_dir_suffix.
24433 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
24435 ac_dir_suffix= ac_dots=
24440 if test -z "$ac_dots"; then
24443 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
24445 [\\/]* | ?:[\\/]* )
24446 ac_srcdir=$srcdir$ac_dir_suffix;
24447 ac_top_srcdir=$srcdir ;;
24448 *) # Relative path.
24449 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
24450 ac_top_srcdir=$ac_dots$srcdir ;;
24454 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24455 *) ac_INSTALL=$ac_dots$INSTALL ;;
24458 if test x"$ac_file" != x-; then
24459 { echo "$as_me:24459: creating $ac_file" >&5
24460 echo "$as_me: creating $ac_file" >&6;}
24463 # Let's still pretend it is `configure' which instantiates (i.e., don't
24464 # use $as_me), people would be surprised to read:
24465 # /* config.h. Generated automatically by config.status. */
24466 configure_input="Generated automatically from `echo $ac_file_in |
24467 sed 's,.*/,,'` by configure."
24469 # First look for the input files in the build tree, otherwise in the
24471 ac_file_inputs=`IFS=:
24472 for f in $ac_file_in; do
24474 -) echo $tmp/stdin ;;
24476 # Absolute (can't be DOS-style, as IFS=:)
24477 test -f "$f" || { { echo "$as_me:24477: error: cannot find input file: $f" >&5
24478 echo "$as_me: error: cannot find input file: $f" >&2;}
24479 { (exit 1); exit 1; }; }
24482 if test -f "$f"; then
24485 elif test -f "$srcdir/$f"; then
24490 { { echo "$as_me:24490: error: cannot find input file: $f" >&5
24491 echo "$as_me: error: cannot find input file: $f" >&2;}
24492 { (exit 1); exit 1; }; }
24495 done` || { (exit 1); exit 1; }
24497 cat >>$CONFIG_STATUS <<\EOF
24498 ac_warn_datarootdir=no
24499 if test x"$ac_file" != x-; then
24500 for ac_item in $ac_file_inputs
24502 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
24503 if test -n "$ac_seen"; then
24504 ac_used=`grep '@datarootdir@' $ac_item`
24505 if test -z "$ac_used"; then
24506 { echo "$as_me:24506: WARNING: datarootdir was used implicitly but not set:
24508 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
24510 ac_warn_datarootdir=yes
24513 ac_seen=`grep '${datarootdir}' $ac_item`
24514 if test -n "$ac_seen"; then
24515 { echo "$as_me:24515: WARNING: datarootdir was used explicitly but not set:
24517 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
24519 ac_warn_datarootdir=yes
24524 if test "x$ac_warn_datarootdir" = xyes; then
24525 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
24529 cat >>$CONFIG_STATUS <<EOF
24533 cat >>$CONFIG_STATUS <<\EOF
24535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24536 s,@configure_input@,$configure_input,;t t
24537 s,@srcdir@,$ac_srcdir,;t t
24538 s,@top_srcdir@,$ac_top_srcdir,;t t
24539 s,@INSTALL@,$ac_INSTALL,;t t
24540 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24542 if test x"$ac_file" != x-; then
24543 cp $tmp/out $ac_file
24545 for ac_name in prefix exec_prefix datarootdir
24547 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
24548 if test -n "$ac_seen"; then
24549 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
24550 if test -z "$ac_init"; then
24551 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
24552 { echo "$as_me:24552: WARNING: Variable $ac_name is used but was not set:
24554 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
24559 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
24560 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
24561 if test -s $tmp/out; then
24562 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
24563 { echo "$as_me:24563: WARNING: Some variables may not be substituted:
24565 echo "$as_me: WARNING: Some variables may not be substituted:
24575 cat >>$CONFIG_STATUS <<\EOF
24578 # CONFIG_HEADER section.
24581 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24582 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24584 # ac_d sets the value in "#define NAME VALUE" lines.
24585 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24586 ac_dB='[ ].*$,\1#\2'
24589 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24590 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24591 ac_iB='\([ ]\),\1#\2define\3'
24594 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24595 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24596 ac_uB='$,\1#\2define\3'
24600 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24603 - | *:- | *:-:* ) # input from stdin
24605 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24607 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24609 * ) ac_file_in=$ac_file.in ;;
24612 test x"$ac_file" != x- && { echo "$as_me:24612: creating $ac_file" >&5
24613 echo "$as_me: creating $ac_file" >&6;}
24615 # First look for the input files in the build tree, otherwise in the
24617 ac_file_inputs=`IFS=:
24618 for f in $ac_file_in; do
24620 -) echo $tmp/stdin ;;
24622 # Absolute (can't be DOS-style, as IFS=:)
24623 test -f "$f" || { { echo "$as_me:24623: error: cannot find input file: $f" >&5
24624 echo "$as_me: error: cannot find input file: $f" >&2;}
24625 { (exit 1); exit 1; }; }
24628 if test -f "$f"; then
24631 elif test -f "$srcdir/$f"; then
24636 { { echo "$as_me:24636: error: cannot find input file: $f" >&5
24637 echo "$as_me: error: cannot find input file: $f" >&2;}
24638 { (exit 1); exit 1; }; }
24641 done` || { (exit 1); exit 1; }
24642 # Remove the trailing spaces.
24643 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24647 # Transform confdefs.h into a list of #define's. We won't use it as a sed
24648 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
24649 # be either 'cat' or 'sort'.
24650 cat confdefs.h | uniq >conftest.vals
24652 # Break up conftest.vals because some shells have a limit on
24653 # the size of here documents, and old seds have small limits too.
24655 rm -f conftest.tail
24656 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
24657 while grep . conftest.vals >/dev/null
24659 # Write chunks of a limited-size here document to conftest.frag.
24660 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
24661 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
24662 echo 'CEOF' >> $CONFIG_STATUS
24663 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24664 rm -f conftest.vals
24665 mv conftest.tail conftest.vals
24667 rm -f conftest.vals
24669 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
24671 echo ' cat >> conftest.edit <<CEOF
24672 /@DEFS@/r conftest.frag
24675 sed -f conftest.edit $tmp/in > $tmp/out
24677 mv $tmp/out $tmp/in
24678 rm -f conftest.edit conftest.frag
24679 ' >> $CONFIG_STATUS
24681 cat >>$CONFIG_STATUS <<\EOF
24682 # Let's still pretend it is `configure' which instantiates (i.e., don't
24683 # use $as_me), people would be surprised to read:
24684 # /* config.h. Generated automatically by config.status. */
24685 if test x"$ac_file" = x-; then
24686 echo "/* Generated automatically by configure. */" >$tmp/config.h
24688 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
24690 cat $tmp/in >>$tmp/config.h
24692 if test x"$ac_file" != x-; then
24693 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24694 { echo "$as_me:24694: $ac_file is unchanged" >&5
24695 echo "$as_me: $ac_file is unchanged" >&6;}
24697 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24698 X"$ac_file" : 'X\(//\)[^/]' \| \
24699 X"$ac_file" : 'X\(//\)$' \| \
24700 X"$ac_file" : 'X\(/\)' \| \
24701 . : '\(.\)' 2>/dev/null ||
24703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24705 /^X\(\/\/\)$/{ s//\1/; q; }
24706 /^X\(\/\).*/{ s//\1/; q; }
24708 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24709 { case "$ac_dir" in
24710 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24714 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24715 case $as_mkdir_dir in
24716 # Skip DOS drivespec
24717 ?:) as_incr_dir=$as_mkdir_dir ;;
24719 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24720 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24727 mv $tmp/config.h $ac_file
24731 rm -f $tmp/config.h
24735 cat >>$CONFIG_STATUS <<\EOF
24737 # CONFIG_COMMANDS section.
24739 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24740 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24741 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24745 if test "x$cf_with_tests" != xno ; then
24749 if test ! -d $srcdir/$cf_dir; then
24751 elif test -f $srcdir/$cf_dir/programs; then
24752 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
24758 cf_prefix=$LIB_PREFIX
24760 case $cf_cv_shlib_version in
24761 (cygdll|msysdll|mingw)
24762 TINFO_NAME=$TINFO_ARG_SUFFIX
24767 if test -n "$TINFO_SUFFIX" ; then
24768 case $TINFO_SUFFIX in
24770 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
24771 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
24774 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
24775 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
24778 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
24779 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
24784 for cf_dir in $SRC_SUBDIRS
24786 if test ! -d $srcdir/$cf_dir ; then
24788 elif test -f $srcdir/$cf_dir/modules; then
24793 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
24795 cf_awk_program="$cf_awk_program\
24796 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
24797 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
24801 if test "x$WILDCARD_SYMS" = xno
24803 cf_awk_program="$cf_awk_program\
24804 /[ ]_\\*;/ { skip=1; next; }\
24808 if test "x$cf_awk_program" != "x"
24810 cat >>$cf_dir/Makefile <<CF_EOF
24812 # Generated by CF_LIB_RULES
24813 resulting.map: $UNALTERED_SYMS
24814 $AWK 'BEGIN { skip = 1; last=""; } \
24816 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
24817 skip = 0; last = \$\$0; } \
24818 END { print last; }' < $UNALTERED_SYMS >\$@
24821 rm -f resulting.map
24825 for cf_item in $cf_LIST_MODELS
24831 cf_depsuf=$cf_suffix
24835 cf_depsuf=$cf_suffix
24839 cf_depsuf=$cf_suffix
24842 case $cf_cv_system_name in
24845 cf_depsuf=$cf_suffix
24847 (cygwin*|msys*|mingw*)
24853 cf_depsuf=$cf_suffix
24859 cf_depsuf=$cf_suffix
24863 cf_depsuf=$cf_suffix
24869 cf_depsuf=$cf_suffix
24875 cf_depsuf=$cf_suffix
24878 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24880 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24881 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24885 test "$cf_dir" = c++ && cf_libname=ncurses++
24886 if test $cf_item = shared ; then
24887 if test -n "${LIB_SUFFIX}"
24889 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24891 cf_shared_suffix="$cf_suffix"
24893 if test "$cf_cv_do_symlinks" = yes ; then
24896 case "$cf_cv_shlib_version" in
24898 cf_version_name=REL_VERSION
24901 cf_version_name=ABI_VERSION
24905 if test -n "$cf_version_name"
24907 case "$cf_cv_system_name" in
24910 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
24913 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
24917 if test -n "${USE_LIB_SUFFIX}"
24919 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24921 cf_shared_suffix="$cf_suffix"
24924 # cygwin needs import library, and has unique naming convention
24925 # use autodetected ${cf_prefix} for import lib and static lib, but
24926 # use 'cyg' prefix for shared lib.
24927 case $cf_cv_shlib_version in
24929 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24930 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
24933 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24934 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
24937 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24938 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
24944 if test -n "$cf_add_lib"
24946 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24950 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
24951 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24954 if test $cf_dir = ncurses ; then
24955 cf_subsets="$LIB_SUBSETS"
24956 cf_r_parts="$cf_subsets"
24957 cf_liblist="$Libs_To_Make"
24959 while test -n "$cf_r_parts"
24961 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
24962 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
24963 if test "$cf_l_parts" != "$cf_r_parts" ; then
24965 case $cf_l_parts in
24967 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
24970 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
24976 if test -n "$cf_add_lib"; then
24977 Libs_To_Make="$cf_add_lib $Libs_To_Make"
24984 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
24987 if test $cf_dir = c++; then
24988 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
24990 for cf_item in $Libs_To_Make
24996 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
24999 for cf_test in $cf_list
25001 if test "$cf_test" = "$cf_item"
25003 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
25008 test -n "$cf_item" && cf_list="$cf_list $cf_item"
25010 Libs_To_Make="$cf_list"
25014 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
25015 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
25016 $cf_dir/Makefile >$cf_dir/Makefile.out
25017 mv $cf_dir/Makefile.out $cf_dir/Makefile
25019 $AWK -f $srcdir/mk-0th.awk \
25020 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
25021 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
25023 for cf_subset in $cf_subsets
25026 for cf_item in $cf_LIST_MODELS
25029 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
25031 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
25034 if test "$CXX_MODEL" = SHARED; then
25035 case $cf_cv_shlib_version in
25036 (cygdll|msysdll|mingw)
25037 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
25039 echo "${as_me:-configure}:25039: testing overriding CXX_MODEL to SHARED ..." 1>&5
25041 with_shared_cxx=yes
25044 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
25052 cf_depsuf=$cf_suffix
25056 cf_depsuf=$cf_suffix
25060 cf_depsuf=$cf_suffix
25063 case $cf_cv_system_name in
25066 cf_depsuf=$cf_suffix
25068 (cygwin*|msys*|mingw*)
25074 cf_depsuf=$cf_suffix
25080 cf_depsuf=$cf_suffix
25084 cf_depsuf=$cf_suffix
25090 cf_depsuf=$cf_suffix
25096 cf_depsuf=$cf_suffix
25099 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25101 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
25102 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
25106 (libtool) cf_subdir='obj_lo' ;;
25107 (normal) cf_subdir='objects' ;;
25108 (debug) cf_subdir='obj_g' ;;
25109 (profile) cf_subdir='obj_p' ;;
25111 case $cf_cv_system_name in
25113 cf_subdir='objects' ;;
25115 cf_subdir='obj_s' ;;
25119 # Test for case where we build libtinfo with a different name.
25121 if test $cf_dir = ncurses ; then
25124 cf_libname=${cf_libname}$USE_LIB_SUFFIX
25127 cf_libname=$TINFO_LIB_SUFFIX
25130 cf_libname=$TICS_LIB_SUFFIX
25133 elif test $cf_dir = c++ ; then
25134 cf_libname=ncurses++$USE_LIB_SUFFIX
25136 cf_libname=${cf_libname}$USE_LIB_SUFFIX
25138 if test -n "${USE_ARG_SUFFIX}" ; then
25139 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
25140 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
25143 # These dependencies really are for development, not
25144 # builds, but they are useful in porting, too.
25145 cf_depend="../include/ncurses_cfg.h"
25146 if test "$srcdir" = "."; then
25149 cf_reldir="\${srcdir}"
25152 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
25153 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
25154 elif test -f $srcdir/$cf_dir/curses.priv.h; then
25155 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
25159 old_cf_suffix="$cf_suffix"
25160 if test "$cf_cv_shlib_version_infix" = yes ; then
25161 if test -n "$USE_LIB_SUFFIX" ; then
25162 case $USE_LIB_SUFFIX in
25164 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
25165 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
25166 cf_dir_suffix=tw$EXTRA_SUFFIX
25169 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
25170 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
25171 cf_dir_suffix=t$EXTRA_SUFFIX
25174 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
25175 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
25176 cf_dir_suffix=w$EXTRA_SUFFIX
25179 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
25180 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
25181 cf_dir_suffix=$EXTRA_SUFFIX
25187 $AWK -f $srcdir/mk-1st.awk \
25188 name=${cf_libname}${cf_dir_suffix} \
25189 traces=$LIB_TRACING \
25191 CXX_MODEL=$CXX_MODEL \
25193 prefix=$cf_prefix \
25194 suffix=$cf_suffix \
25195 subset=$cf_subset \
25196 driver=$cf_cv_term_driver \
25198 TermlibRoot=$TINFO_NAME \
25199 TermlibSuffix=$TINFO_SUFFIX \
25200 ShlibVer=$cf_cv_shlib_version \
25201 ShlibVerInfix=$cf_cv_shlib_version_infix \
25202 ReLink=${cf_cv_do_relink:-no} \
25203 DoLinks=$cf_cv_do_symlinks \
25204 rmSoLocs=$cf_cv_rm_so_locs \
25205 ldconfig="$LDCONFIG" \
25206 overwrite=$WITH_OVERWRITE \
25207 depend="$cf_depend" \
25209 libtool_version="$LIBTOOL_VERSION" \
25210 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
25212 cf_suffix="$old_cf_suffix"
25214 for cf_subdir2 in $cf_subdirs lib
25216 test $cf_subdir = $cf_subdir2 && break
25218 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
25219 $AWK -f $srcdir/mk-2nd.awk \
25221 traces=$LIB_TRACING \
25224 subset=$cf_subset \
25227 crenames=$cf_cv_prog_CC_c_o \
25228 cxxrenames=$cf_cv_prog_CXX_c_o \
25229 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
25230 cf_subdirs="$cf_subdirs $cf_subdir"
25235 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
25238 for cf_dir in $SRC_SUBDIRS
25240 if test ! -d $srcdir/$cf_dir ; then
25244 if test -f $cf_dir/Makefile ; then
25247 echo 'libs \' >> Makefile
25248 echo 'install.libs \' >> Makefile
25249 echo 'uninstall.libs ::' >> Makefile
25250 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
25255 if test -f $srcdir/$cf_dir/modules; then
25257 if test -f $srcdir/$cf_dir/headers; then
25258 cat >> Makefile <<CF_EOF
25259 install.includes \\
25260 uninstall.includes \\
25263 if test "$cf_dir" != "c++" ; then
25264 echo 'lint \' >> Makefile
25266 cat >> Makefile <<CF_EOF
25272 uninstall.$cf_dir ::
25273 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
25275 elif test -f $srcdir/$cf_dir/headers; then
25276 cat >> Makefile <<CF_EOF
25281 install.includes \\
25282 uninstall.includes ::
25283 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
25288 if test "x$cf_with_db_install" = xyes; then
25289 cat >> Makefile <<CF_EOF
25291 install.libs uninstall.libs \\
25292 install.data uninstall.data ::
25293 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
25296 cat >> Makefile <<CF_EOF
25298 install.libs uninstall.libs ::
25299 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
25303 if test "x$cf_with_manpages" = xyes; then
25304 cat >> Makefile <<CF_EOF
25308 cd man && \${MAKE} \${TOP_MFLAGS} \$@
25312 cat >> Makefile <<CF_EOF
25315 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
25316 rm -f headers.sh headers.sed mk_shared_lib.sh
25317 rm -f edit_man.* man_alias.*
25318 rm -rf \${DIRS_TO_MAKE}
25321 # Special case: tack's manpage lives in its own directory.
25322 if test "x$cf_with_manpages" = xyes; then
25323 if test "x$cf_with_tack" = "xyes"; then
25324 cat >> Makefile <<CF_EOF
25328 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
25333 rm -f headers.sed headers.sh
25335 echo creating headers.sh
25336 cat >headers.sh <<CF_EOF
25338 # This shell script is generated by the 'configure' script. It is invoked in a
25339 # subdirectory of the build tree. It generates a sed-script in the parent
25340 # directory that is used to adjust includes for header files that reside in a
25341 # subdirectory of /usr/include, etc.
25343 while test \$# != 3
25345 PRG="\$PRG \$1"; shift
25350 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
25351 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
25352 echo installing \$SRC in \$DST
25355 if test $WITH_CURSES_H = yes; then
25356 cat >>headers.sh <<CF_EOF
25359 END=\`basename \$DST\`
25360 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
25362 NAME=\`basename \$i\`
25363 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
25367 echo "" >> \$TMPSED
25373 cat >>headers.sh <<CF_EOF
25376 END=\`basename \$DST\`
25377 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
25379 NAME=\`basename \$i\`
25380 if test "\$NAME" = "curses.h"
25382 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
25385 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
25389 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
25394 cat >>headers.sh <<CF_EOF
25396 sed -f \$TMPSED \$SRC > \$TMPSRC
25397 NAME=\`basename \$SRC\`
25399 if test $WITH_CURSES_H != yes; then
25400 cat >>headers.sh <<CF_EOF
25401 test "\$NAME" = "curses.h" && NAME=ncurses.h
25404 cat >>headers.sh <<CF_EOF
25405 # Just in case someone gzip'd manpages, remove the conflicting copy.
25406 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
25408 eval \$PRG \$TMPSRC \$DST/\$NAME
25409 rm -f \$TMPSRC \$TMPSED
25412 chmod 0755 headers.sh
25414 for cf_dir in $SRC_SUBDIRS
25416 if test ! -d $srcdir/$cf_dir ; then
25420 if test -f $srcdir/$cf_dir/headers; then
25421 $AWK -f $srcdir/mk-hdr.awk \
25422 subset="$LIB_SUBSETS" \
25423 compat="$WITH_CURSES_H" \
25424 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
25427 if test -f $srcdir/$cf_dir/modules; then
25428 if test "$cf_dir" != "c++" ; then
25429 cat >>$cf_dir/Makefile <<"CF_EOF"
25430 depend : ${AUTO_SRC}
25431 makedepend -- ${CPPFLAGS} -- ${C_SRC}
25433 # DO NOT DELETE THIS LINE -- make depend depends on it.
25439 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
25440 if test -z "$USE_OLD_MAKERULES" ; then
25441 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
25449 cat >>$CONFIG_STATUS <<\EOF
25451 { (exit 0); exit 0; }
25453 chmod +x $CONFIG_STATUS
25454 ac_clean_files=$ac_clean_files_save
25456 # configure is writing to config.log, and then calls config.status.
25457 # config.status does its own redirection, appending to config.log.
25458 # Unfortunately, on DOS this fails, as config.log is still kept open
25459 # by configure, so config.status won't be able to write to it; its
25460 # output is simply discarded. So we exec the FD to /dev/null,
25461 # effectively closing config.log, so it can be properly (re)opened and
25462 # appended to by config.status. When coming back to configure, we
25463 # need to make the FD available again.
25464 if test "$no_create" != yes; then
25467 $SHELL $CONFIG_STATUS || ac_cs_success=false
25469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25470 # would make configure fail if this is the last instruction.
25471 $ac_cs_success || { (exit 1); exit 1; }
25473 ${MAKE:-make} preinstall