2 # From configure.in Revision: 1.597 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20141204.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --disable-overwrite leave out the link to -lcurses
751 --disable-database do not use terminfo, only fallbacks/termcap
752 --with-database=XXX specify terminfo source to install
753 --with-hashed-db specify hashed-database library
754 --with-fallbacks=XXX specify list of fallback terminal descriptions
755 --without-xterm-new specify if xterm terminfo should be old version
756 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
757 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
758 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
759 --disable-big-core assume machine has little memory
760 --disable-big-strings assume compiler has only standard-size strings
761 --enable-termcap compile in termcap fallback support
762 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
763 --enable-getcap fast termcap load, no xrefs to terminfo
764 --enable-getcap-cache cache translated termcaps in ~/.terminfo
765 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
766 --disable-root-environ restrict environment when running as root
767 --enable-symlinks make tic use symbolic links not hard links
768 --enable-broken_linker compile with broken-linker support code
769 --enable-bsdpad recognize BSD-style prefix padding
770 --enable-widec compile with wide-char/UTF-8 code
771 --disable-lp64 allow chtype to be long (ignore _LP64)
772 --disable-largefile omit support for large files
773 --disable-tparm-varargs compile tparm() without varargs interface
774 --disable-tic-depends link tic library without explicit dependency on ncurses library
775 --with-bool=TYPE override fallback type of bool variable
776 --with-caps=alt compile with alternate Caps file
777 --with-chtype=TYPE override type of chtype
778 --with-ospeed=TYPE override type of ospeed variable
779 --with-mmask-t=TYPE override type of mmask_t
780 --with-ccharw-max=XXX override size CCHARW_MAX
781 --with-tparm-arg=TYPE override parameter type of tparm
782 --with-rcs-ids compile-in RCS identifiers
783 Options to Specify How Manpages are Installed:
784 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
785 optionally formatted/catonly, e.g., gzip,formatted
786 --with-manpage-renames specify manpage-renaming
787 --with-manpage-aliases specify manpage-aliases using .so
788 --with-manpage-symlinks specify manpage-aliases using symlinks
789 --with-manpage-tbl specify manpage processing with tbl
791 --disable-ext-funcs disable function-extensions
792 --enable-sp-funcs enable experimental SCREEN-extensions
793 --enable-term-driver enable experimental terminal-driver
794 --enable-const compile with extra/non-standard const
795 --enable-ext-colors compile for 256-color support
796 --enable-ext-mouse compile for extended mouse-encoding
797 --enable-no-padding compile with $NCURSES_NO_PADDING code
798 --enable-signed-char compile using signed Boolean's in term.h
799 --enable-sigwinch compile with SIGWINCH handler
800 --enable-tcap-names compile with user-definable terminal capabilities
802 --without-develop disable development options
803 --enable-hard-tabs compile with hard-tabs code
804 --enable-xmc-glitch compile with support for xmc (magic-cookie)
806 --disable-assumed-color do not assume anything about default-colors
807 --disable-hashmap compile without hashmap scrolling-optimization
808 --enable-colorfgbg compile-in experimental $COLORFGBG code
809 --enable-interop compile-in experimental interop bindings
810 --with-pthread use POSIX thread library
811 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
812 --enable-weak-symbols enable weak-symbols for pthreads
813 --enable-reentrant compile with experimental reentrant code
814 --with-wrap-prefix=XXX override prefix used for public variables
815 --enable-safe-sprintf compile with experimental safe-sprintf code
816 --disable-scroll-hints compile without scroll-hints code
817 --enable-wgetch-events compile with experimental wgetch-events code
818 Testing/development Options:
819 --disable-echo do not display "compiling" commands
820 --enable-warnings build: turn on GCC compiler warnings
821 --enable-string-hacks work around bogus compiler/loader warnings
822 --enable-assertions test: turn on generation of assertion code
823 --with-dmalloc test: use Gray Watson's dmalloc library
824 --with-dbmalloc test: use Conor Cahill's dbmalloc library
825 --with-valgrind test: use valgrind
826 --disable-leaks test: free permanent memory, analyze leaks
827 --enable-expanded test: generate functions for certain macros
828 --disable-macros test: use functions rather than macros
829 --with-trace test: add trace() function to all models of ncurses
830 --disable-gnat-projects test: disable GNAT projects even if usable
831 Ada95 Binding Options:
832 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
833 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
834 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
835 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
837 Some influential environment variables:
838 CC C compiler command
839 CFLAGS C compiler flags
840 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
841 nonstandard directory <lib dir>
842 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
843 headers in a nonstandard directory <include dir>
845 CXX C++ compiler command
846 CXXFLAGS C++ compiler flags
847 CXXCPP C++ preprocessor
849 Use these variables to override the choices made by `configure' or to help
850 it to find libraries and programs with nonstandard names/locations.
855 if test "$ac_init_help" = "recursive"; then
856 # If there are subdirs, report their specific --help.
858 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
860 # A "../" for each directory in /$ac_subdir.
861 ac_dots=`echo $ac_subdir |
862 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
865 .) # No --srcdir option. We are building in place.
866 ac_sub_srcdir=$srcdir ;;
867 [\\/]* | ?:[\\/]* ) # Absolute path.
868 ac_sub_srcdir=$srcdir/$ac_subdir ;;
870 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
873 # Check for guested configure; otherwise get Cygnus style configure.
874 if test -f $ac_sub_srcdir/configure.gnu; then
876 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
877 elif test -f $ac_sub_srcdir/configure; then
879 $SHELL $ac_sub_srcdir/configure --help=recursive
880 elif test -f $ac_sub_srcdir/configure.ac ||
881 test -f $ac_sub_srcdir/configure.in; then
885 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
891 test -n "$ac_init_help" && exit 0
892 if $ac_init_version; then
895 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
896 Free Software Foundation, Inc.
897 This configure script is free software; the Free Software Foundation
898 gives unlimited permission to copy, distribute and modify it.
904 This file contains any messages produced by compilers while
905 running configure, to aid debugging if configure makes a mistake.
907 It was created by $as_me, which was
908 generated by GNU Autoconf 2.52.20141204. Invocation command line was
919 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
920 uname -m = `(uname -m) 2>/dev/null || echo unknown`
921 uname -r = `(uname -r) 2>/dev/null || echo unknown`
922 uname -s = `(uname -s) 2>/dev/null || echo unknown`
923 uname -v = `(uname -v) 2>/dev/null || echo unknown`
925 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
926 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
928 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
929 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
930 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
931 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
932 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
933 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
934 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
948 # Keep a trace of the command line.
949 # Strip out --no-create and --no-recursion so they do not pile up.
950 # Also quote any args containing shell meta-characters.
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c) ;;
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
960 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
961 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
962 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
964 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
967 # Get rid of the leading space.
970 # When interrupted or exit'd, cleanup temporary files, and complete
971 # config.log. We remove comments because anyway the quotes in there
972 # would cause problems or look ugly.
974 # Save into config.log some information that might help in debugging.
976 echo "## ----------------- ##" >&5
977 echo "## Cache variables. ##" >&5
978 echo "## ----------------- ##" >&5
980 # The following way of writing the cache mishandles newlines in values,
983 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
986 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
991 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
995 sed "/^$/d" confdefs.h >conftest.log
996 if test -s conftest.log; then
998 echo "## ------------ ##" >&5
999 echo "## confdefs.h. ##" >&5
1000 echo "## ------------ ##" >&5
1002 cat conftest.log >&5
1005 test "$ac_signal" != 0 &&
1006 echo "$as_me: caught signal $ac_signal" >&5
1007 echo "$as_me: exit $exit_status" >&5
1008 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1011 for ac_signal in 1 2 13 15; do
1012 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1016 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1017 rm -rf conftest* confdefs.h
1018 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1021 # Let the site file select an alternate cache file if it wants to.
1022 # Prefer explicitly selected file to automatically selected ones.
1023 if test -z "$CONFIG_SITE"; then
1024 if test "x$prefix" != xNONE; then
1025 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1027 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1030 for ac_site_file in $CONFIG_SITE; do
1031 if test -r "$ac_site_file"; then
1032 { echo "$as_me:1032: loading site script $ac_site_file" >&5
1033 echo "$as_me: loading site script $ac_site_file" >&6;}
1034 cat "$ac_site_file" >&5
1039 if test -r "$cache_file"; then
1040 # Some versions of bash will fail to source /dev/null (special
1041 # files actually), so we avoid doing that.
1042 if test -f "$cache_file"; then
1043 { echo "$as_me:1043: loading cache $cache_file" >&5
1044 echo "$as_me: loading cache $cache_file" >&6;}
1046 [\\/]* | ?:[\\/]* ) . $cache_file;;
1047 *) . ./$cache_file;;
1051 { echo "$as_me:1051: creating cache $cache_file" >&5
1052 echo "$as_me: creating cache $cache_file" >&6;}
1056 # Check that the precious variables saved in the cache have kept the same
1058 ac_cache_corrupted=false
1059 for ac_var in `(set) 2>&1 |
1060 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1061 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1062 eval ac_new_set=\$ac_env_${ac_var}_set
1063 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1064 eval ac_new_val="\$ac_env_${ac_var}_value"
1065 case $ac_old_set,$ac_new_set in
1067 { echo "$as_me:1067: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1068 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1069 ac_cache_corrupted=: ;;
1071 { echo "$as_me:1071: error: \`$ac_var' was not set in the previous run" >&5
1072 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1073 ac_cache_corrupted=: ;;
1076 if test "x$ac_old_val" != "x$ac_new_val"; then
1077 { echo "$as_me:1077: error: \`$ac_var' has changed since the previous run:" >&5
1078 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1079 { echo "$as_me:1079: former value: $ac_old_val" >&5
1080 echo "$as_me: former value: $ac_old_val" >&2;}
1081 { echo "$as_me:1081: current value: $ac_new_val" >&5
1082 echo "$as_me: current value: $ac_new_val" >&2;}
1083 ac_cache_corrupted=:
1086 # Pass precious variables to config.status. It doesn't matter if
1087 # we pass some twice (in addition to the command line arguments).
1088 if test "$ac_new_set" = set; then
1090 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1091 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1092 ac_configure_args="$ac_configure_args '$ac_arg'"
1094 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1099 if $ac_cache_corrupted; then
1100 { echo "$as_me:1100: error: changes in the environment can compromise the build" >&5
1101 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1102 { { echo "$as_me:1102: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1103 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1104 { (exit 1); exit 1; }; }
1108 ac_cpp='$CPP $CPPFLAGS'
1109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1112 ac_main_return=return
1114 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1115 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1117 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1118 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1120 echo "#! $SHELL" >conftest.sh
1121 echo "exit 0" >>conftest.sh
1122 chmod +x conftest.sh
1123 if { (echo "$as_me:1123: PATH=\".;.\"; conftest.sh") >&5
1124 (PATH=".;."; conftest.sh) 2>&5
1126 echo "$as_me:1126: \$? = $ac_status" >&5
1127 (exit $ac_status); }; then
1128 ac_path_separator=';'
1132 PATH_SEPARATOR="$ac_path_separator"
1135 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1139 echo "$as_me:1139: checking for egrep" >&5
1140 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1141 if test "${ac_cv_prog_egrep+set}" = set; then
1142 echo $ECHO_N "(cached) $ECHO_C" >&6
1144 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1145 then ac_cv_prog_egrep='grep -E'
1146 else ac_cv_prog_egrep='egrep'
1149 echo "$as_me:1149: result: $ac_cv_prog_egrep" >&5
1150 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1151 EGREP=$ac_cv_prog_egrep
1153 test -z "$EGREP" && { { echo "$as_me:1153: error: No egrep program found" >&5
1154 echo "$as_me: error: No egrep program found" >&2;}
1155 { (exit 1); exit 1; }; }
1157 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1158 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1159 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 cf_cv_abi_version=${NCURSES_MAJOR}
1161 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1162 cf_cv_timestamp=`date`
1163 echo "$as_me:1163: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1164 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1166 if test -f $srcdir/VERSION ; then
1167 echo "$as_me:1167: checking for package version" >&5
1168 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1170 # if there are not enough fields, cut returns the last one...
1171 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1172 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1173 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1175 # this is how CF_BUNDLED_INTL uses $VERSION:
1176 VERSION="$cf_field1"
1178 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1179 test -z "$VERSION_MAJOR" && { { echo "$as_me:1179: error: missing major-version" >&5
1180 echo "$as_me: error: missing major-version" >&2;}
1181 { (exit 1); exit 1; }; }
1183 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1184 test -z "$VERSION_MINOR" && { { echo "$as_me:1184: error: missing minor-version" >&5
1185 echo "$as_me: error: missing minor-version" >&2;}
1186 { (exit 1); exit 1; }; }
1188 echo "$as_me:1188: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1189 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1191 echo "$as_me:1191: checking for package patch date" >&5
1192 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1193 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1194 case .$VERSION_PATCH in
1196 { { echo "$as_me:1196: error: missing patch-date $VERSION_PATCH" >&5
1197 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1198 { (exit 1); exit 1; }; }
1200 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1203 { { echo "$as_me:1203: error: illegal patch-date $VERSION_PATCH" >&5
1204 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1205 { (exit 1); exit 1; }; }
1208 echo "$as_me:1208: result: $VERSION_PATCH" >&5
1209 echo "${ECHO_T}$VERSION_PATCH" >&6
1211 { { echo "$as_me:1211: error: did not find $srcdir/VERSION" >&5
1212 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1213 { (exit 1); exit 1; }; }
1216 # show the actual data that we have for versions:
1217 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1219 echo "${as_me:-configure}:1219: testing ABI VERSION $VERSION ..." 1>&5
1221 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1223 echo "${as_me:-configure}:1223: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1225 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1227 echo "${as_me:-configure}:1227: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1229 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1231 echo "${as_me:-configure}:1231: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1236 cat >>confdefs.h <<EOF
1237 #define PACKAGE "$PACKAGE"
1240 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1242 cat >>confdefs.h <<EOF
1243 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1246 cat >>confdefs.h <<EOF
1247 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1250 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1252 # Check whether --with-rel-version or --without-rel-version was given.
1253 if test "${with_rel_version+set}" = set; then
1254 withval="$with_rel_version"
1255 { echo "$as_me:1255: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1256 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1257 cf_cv_rel_version=$withval
1260 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1261 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1263 if test -n "$NCURSES_MAJOR" ; then
1264 case $NCURSES_MAJOR in #(vi
1268 { { echo "$as_me:1268: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1269 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1270 { (exit 1); exit 1; }; }
1274 { { echo "$as_me:1274: error: Release major-version value is empty" >&5
1275 echo "$as_me: error: Release major-version value is empty" >&2;}
1276 { (exit 1); exit 1; }; }
1279 if test -n "$NCURSES_MINOR" ; then
1280 case $NCURSES_MINOR in #(vi
1284 { { echo "$as_me:1284: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1285 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1286 { (exit 1); exit 1; }; }
1290 { { echo "$as_me:1290: error: Release minor-version value is empty" >&5
1291 echo "$as_me: error: Release minor-version value is empty" >&2;}
1292 { (exit 1); exit 1; }; }
1295 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1297 # Check whether --with-abi-version or --without-abi-version was given.
1298 if test "${with_abi_version+set}" = set; then
1299 withval="$with_abi_version"
1300 { echo "$as_me:1300: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1301 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1302 cf_cv_abi_version=$withval
1305 if test -n "$cf_cv_abi_version" ; then
1306 case $cf_cv_abi_version in #(vi
1310 { { echo "$as_me:1310: error: ABI version is not a number: $cf_cv_abi_version" >&5
1311 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1312 { (exit 1); exit 1; }; }
1316 { { echo "$as_me:1316: error: ABI version value is empty" >&5
1317 echo "$as_me: error: ABI version value is empty" >&2;}
1318 { (exit 1); exit 1; }; }
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 elif test -f $ac_dir/install.sh; then
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 elif test -f $ac_dir/shtool; then
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:1338: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346 # Make sure we can run config.sub.
1347 $ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:1348: error: cannot run $ac_config_sub" >&5
1349 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1352 echo "$as_me:1352: checking build system type" >&5
1353 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354 if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 ac_cv_build_alias=$build_alias
1358 test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360 test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:1361: error: cannot guess build type; you must specify one" >&5
1362 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:1365: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:1370: result: $ac_cv_build" >&5
1371 echo "${ECHO_T}$ac_cv_build" >&6
1373 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377 echo "$as_me:1377: checking host system type" >&5
1378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1379 if test "${ac_cv_host+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 ac_cv_host_alias=$host_alias
1383 test -z "$ac_cv_host_alias" &&
1384 ac_cv_host_alias=$ac_cv_build_alias
1385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1386 { { echo "$as_me:1386: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1388 { (exit 1); exit 1; }; }
1391 echo "$as_me:1391: result: $ac_cv_host" >&5
1392 echo "${ECHO_T}$ac_cv_host" >&6
1394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1399 echo "$as_me:1399: checking target system type" >&5
1400 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1401 if test "${ac_cv_target+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 ac_cv_target_alias=$target_alias
1405 test "x$ac_cv_target_alias" = "x" &&
1406 ac_cv_target_alias=$ac_cv_host_alias
1407 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1408 { { echo "$as_me:1408: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1413 echo "$as_me:1413: result: $ac_cv_target" >&5
1414 echo "${ECHO_T}$ac_cv_target" >&6
1415 target=$ac_cv_target
1416 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 # The aliases save the names the user supplied, while $host etc.
1421 # will get canonicalized.
1422 test -n "$target_alias" &&
1423 test "$program_prefix$program_suffix$program_transform_name" = \
1425 program_prefix=${target_alias}-
1426 system_name="$host_os"
1428 system_name="`(uname -s -r) 2>/dev/null`"
1429 if test -z "$system_name" ; then
1430 system_name="`(hostname) 2>/dev/null`"
1433 test -n "$system_name" &&
1434 cat >>confdefs.h <<EOF
1435 #define SYSTEM_NAME "$system_name"
1438 if test "${cf_cv_system_name+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 cf_cv_system_name="$system_name"
1444 test -z "$system_name" && system_name="$cf_cv_system_name"
1445 test -n "$cf_cv_system_name" && echo "$as_me:1445: result: Configuring for $cf_cv_system_name" >&5
1446 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1448 if test ".$system_name" != ".$cf_cv_system_name" ; then
1449 echo "$as_me:1449: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1450 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1451 { { echo "$as_me:1451: error: \"Please remove config.cache and try again.\"" >&5
1452 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1453 { (exit 1); exit 1; }; }
1456 # Check whether --with-system-type or --without-system-type was given.
1457 if test "${with_system_type+set}" = set; then
1458 withval="$with_system_type"
1459 { echo "$as_me:1459: WARNING: overriding system type to $withval" >&5
1460 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1461 cf_cv_system_name=$withval
1466 ### Save the given $CFLAGS to allow user-override.
1467 cf_user_CFLAGS="$CFLAGS"
1469 ### Default install-location
1471 echo "$as_me:1471: checking for prefix" >&5
1472 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1473 if test "x$prefix" = "xNONE" ; then
1474 case "$cf_cv_system_name" in
1475 # non-vendor systems don't have a conflict
1476 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1479 *) prefix=$ac_default_prefix
1483 echo "$as_me:1483: result: $prefix" >&5
1484 echo "${ECHO_T}$prefix" >&6
1486 if test "x$prefix" = "xNONE" ; then
1487 echo "$as_me:1487: checking for default include-directory" >&5
1488 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1489 test -n "$verbose" && echo 1>&6
1492 $includedir/ncurses \
1494 $prefix/include/ncurses \
1495 /usr/local/include \
1496 /usr/local/include/ncurses \
1498 /usr/include/ncurses
1500 cf_dir=`eval echo $cf_symbol`
1501 if test -f $cf_dir/curses.h ; then
1502 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1503 includedir="$cf_symbol"
1504 test -n "$verbose" && echo $ac_n " found " 1>&6
1508 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1510 echo "$as_me:1510: result: $includedir" >&5
1511 echo "${ECHO_T}$includedir" >&6
1514 ### Checks for programs.
1516 # Check whether --with-ada or --without-ada was given.
1517 if test "${with_ada+set}" = set; then
1519 cf_with_ada=$withval
1523 if test "x$cf_with_ada" = xyes
1525 cf_PROG_CC="gnatgcc gcc cc"
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 ac_main_return=return
1536 if test -n "$ac_tool_prefix"; then
1537 for ac_prog in $cf_PROG_CC
1539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1541 echo "$as_me:1541: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 ac_save_IFS=$IFS; IFS=$ac_path_separator
1551 for ac_dir in $ac_dummy; do
1553 test -z "$ac_dir" && ac_dir=.
1554 $as_executable_p "$ac_dir/$ac_word" || continue
1555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1556 echo "$as_me:1556: found $ac_dir/$ac_word" >&5
1563 if test -n "$CC"; then
1564 echo "$as_me:1564: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1567 echo "$as_me:1567: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1571 test -n "$CC" && break
1574 if test -z "$CC"; then
1576 for ac_prog in $cf_PROG_CC
1578 # Extract the first word of "$ac_prog", so it can be a program name with args.
1579 set dummy $ac_prog; ac_word=$2
1580 echo "$as_me:1580: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 ac_save_IFS=$IFS; IFS=$ac_path_separator
1590 for ac_dir in $ac_dummy; do
1592 test -z "$ac_dir" && ac_dir=.
1593 $as_executable_p "$ac_dir/$ac_word" || continue
1594 ac_cv_prog_ac_ct_CC="$ac_prog"
1595 echo "$as_me:1595: found $ac_dir/$ac_word" >&5
1601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1602 if test -n "$ac_ct_CC"; then
1603 echo "$as_me:1603: result: $ac_ct_CC" >&5
1604 echo "${ECHO_T}$ac_ct_CC" >&6
1606 echo "$as_me:1606: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1610 test -n "$ac_ct_CC" && break
1616 test -z "$CC" && { { echo "$as_me:1616: error: no acceptable cc found in \$PATH" >&5
1617 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1618 { (exit 1); exit 1; }; }
1620 # Provide some information about the compiler.
1621 echo "$as_me:1621:" \
1622 "checking for C compiler version" >&5
1623 ac_compiler=`set X $ac_compile; echo $2`
1624 { (eval echo "$as_me:1624: \"$ac_compiler --version </dev/null >&5\"") >&5
1625 (eval $ac_compiler --version </dev/null >&5) 2>&5
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629 { (eval echo "$as_me:1629: \"$ac_compiler -v </dev/null >&5\"") >&5
1630 (eval $ac_compiler -v </dev/null >&5) 2>&5
1632 echo "$as_me:1632: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1634 { (eval echo "$as_me:1634: \"$ac_compiler -V </dev/null >&5\"") >&5
1635 (eval $ac_compiler -V </dev/null >&5) 2>&5
1637 echo "$as_me:1637: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1640 cat >conftest.$ac_ext <<_ACEOF
1641 #line 1641 "configure"
1642 #include "confdefs.h"
1652 ac_clean_files_save=$ac_clean_files
1653 ac_clean_files="$ac_clean_files a.out a.exe"
1654 # Try to create an executable without -o first, disregard a.out.
1655 # It will help us diagnose broken compilers, and finding out an intuition
1657 echo "$as_me:1657: checking for C compiler default output" >&5
1658 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1659 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1660 if { (eval echo "$as_me:1660: \"$ac_link_default\"") >&5
1661 (eval $ac_link_default) 2>&5
1663 echo "$as_me:1663: \$? = $ac_status" >&5
1664 (exit $ac_status); }; then
1665 # Find the output, starting from the most likely. This scheme is
1666 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1668 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1669 ls a.out conftest 2>/dev/null;
1670 ls a.* conftest.* 2>/dev/null`; do
1672 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1673 a.out ) # We found the default executable, but exeext='' is most
1676 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1677 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1684 echo "$as_me: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1686 { { echo "$as_me:1686: error: C compiler cannot create executables" >&5
1687 echo "$as_me: error: C compiler cannot create executables" >&2;}
1688 { (exit 77); exit 77; }; }
1691 ac_exeext=$ac_cv_exeext
1692 echo "$as_me:1692: result: $ac_file" >&5
1693 echo "${ECHO_T}$ac_file" >&6
1695 # Check the compiler produces executables we can run. If not, either
1696 # the compiler is broken, or we cross compile.
1697 echo "$as_me:1697: checking whether the C compiler works" >&5
1698 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1699 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1700 # If not cross compiling, check that we can run a simple program.
1701 if test "$cross_compiling" != yes; then
1702 if { ac_try='./$ac_file'
1703 { (eval echo "$as_me:1703: \"$ac_try\"") >&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }; }; then
1710 if test "$cross_compiling" = maybe; then
1713 { { echo "$as_me:1713: error: cannot run C compiled programs.
1714 If you meant to cross compile, use \`--host'." >&5
1715 echo "$as_me: error: cannot run C compiled programs.
1716 If you meant to cross compile, use \`--host'." >&2;}
1717 { (exit 1); exit 1; }; }
1721 echo "$as_me:1721: result: yes" >&5
1722 echo "${ECHO_T}yes" >&6
1724 rm -f a.out a.exe conftest$ac_cv_exeext
1725 ac_clean_files=$ac_clean_files_save
1726 # Check the compiler produces executables we can run. If not, either
1727 # the compiler is broken, or we cross compile.
1728 echo "$as_me:1728: checking whether we are cross compiling" >&5
1729 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1730 echo "$as_me:1730: result: $cross_compiling" >&5
1731 echo "${ECHO_T}$cross_compiling" >&6
1733 echo "$as_me:1733: checking for executable suffix" >&5
1734 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1735 if { (eval echo "$as_me:1735: \"$ac_link\"") >&5
1736 (eval $ac_link) 2>&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1741 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1742 # work properly (i.e., refer to `conftest.exe'), while it won't with
1744 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1746 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 { { echo "$as_me:1754: error: cannot compute EXEEXT: cannot compile and link" >&5
1755 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1756 { (exit 1); exit 1; }; }
1759 rm -f conftest$ac_cv_exeext
1760 echo "$as_me:1760: result: $ac_cv_exeext" >&5
1761 echo "${ECHO_T}$ac_cv_exeext" >&6
1763 rm -f conftest.$ac_ext
1764 EXEEXT=$ac_cv_exeext
1766 echo "$as_me:1766: checking for object suffix" >&5
1767 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1768 if test "${ac_cv_objext+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 cat >conftest.$ac_ext <<_ACEOF
1772 #line 1772 "configure"
1773 #include "confdefs.h"
1783 rm -f conftest.o conftest.obj
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1791 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 { { echo "$as_me:1799: error: cannot compute OBJEXT: cannot compile" >&5
1800 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1801 { (exit 1); exit 1; }; }
1804 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1806 echo "$as_me:1806: result: $ac_cv_objext" >&5
1807 echo "${ECHO_T}$ac_cv_objext" >&6
1808 OBJEXT=$ac_cv_objext
1810 echo "$as_me:1810: checking whether we are using the GNU C compiler" >&5
1811 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1812 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 cat >conftest.$ac_ext <<_ACEOF
1816 #line 1816 "configure"
1817 #include "confdefs.h"
1830 rm -f conftest.$ac_objext
1831 if { (eval echo "$as_me:1831: \"$ac_compile\"") >&5
1832 (eval $ac_compile) 2>&5
1834 echo "$as_me:1834: \$? = $ac_status" >&5
1835 (exit $ac_status); } &&
1836 { ac_try='test -s conftest.$ac_objext'
1837 { (eval echo "$as_me:1837: \"$ac_try\"") >&5
1840 echo "$as_me:1840: \$? = $ac_status" >&5
1841 (exit $ac_status); }; }; then
1844 echo "$as_me: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1848 rm -f conftest.$ac_objext conftest.$ac_ext
1849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1852 echo "$as_me:1852: result: $ac_cv_c_compiler_gnu" >&5
1853 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1854 GCC=`test $ac_compiler_gnu = yes && echo yes`
1855 ac_test_CFLAGS=${CFLAGS+set}
1856 ac_save_CFLAGS=$CFLAGS
1858 echo "$as_me:1858: checking whether $CC accepts -g" >&5
1859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1860 if test "${ac_cv_prog_cc_g+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 cat >conftest.$ac_ext <<_ACEOF
1864 #line 1864 "configure"
1865 #include "confdefs.h"
1875 rm -f conftest.$ac_objext
1876 if { (eval echo "$as_me:1876: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1879 echo "$as_me:1879: \$? = $ac_status" >&5
1880 (exit $ac_status); } &&
1881 { ac_try='test -s conftest.$ac_objext'
1882 { (eval echo "$as_me:1882: \"$ac_try\"") >&5
1885 echo "$as_me:1885: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1889 echo "$as_me: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1893 rm -f conftest.$ac_objext conftest.$ac_ext
1895 echo "$as_me:1895: result: $ac_cv_prog_cc_g" >&5
1896 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1897 if test "$ac_test_CFLAGS" = set; then
1898 CFLAGS=$ac_save_CFLAGS
1899 elif test $ac_cv_prog_cc_g = yes; then
1900 if test "$GCC" = yes; then
1906 if test "$GCC" = yes; then
1912 # Some people use a C++ compiler to compile C. Since we use `exit',
1913 # in C++ we need to declare it. In case someone uses the same compiler
1914 # for both compiling C and C++ we need to have the C++ compiler decide
1915 # the declaration of exit, since it's the most demanding environment.
1916 cat >conftest.$ac_ext <<_ACEOF
1921 rm -f conftest.$ac_objext
1922 if { (eval echo "$as_me:1922: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>&5
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit $ac_status); } &&
1927 { ac_try='test -s conftest.$ac_objext'
1928 { (eval echo "$as_me:1928: \"$ac_try\"") >&5
1931 echo "$as_me:1931: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 for ac_declaration in \
1935 '#include <stdlib.h>' \
1936 'extern "C" void std::exit (int) throw (); using std::exit;' \
1937 'extern "C" void std::exit (int); using std::exit;' \
1938 'extern "C" void exit (int) throw ();' \
1939 'extern "C" void exit (int);' \
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1955 rm -f conftest.$ac_objext
1956 if { (eval echo "$as_me:1956: \"$ac_compile\"") >&5
1957 (eval $ac_compile) 2>&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); } &&
1961 { ac_try='test -s conftest.$ac_objext'
1962 { (eval echo "$as_me:1962: \"$ac_try\"") >&5
1965 echo "$as_me:1965: \$? = $ac_status" >&5
1966 (exit $ac_status); }; }; then
1969 echo "$as_me: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1973 rm -f conftest.$ac_objext conftest.$ac_ext
1974 cat >conftest.$ac_ext <<_ACEOF
1975 #line 1975 "configure"
1976 #include "confdefs.h"
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:1993: \"$ac_try\"") >&5
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
2000 echo "$as_me: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 rm -f conftest.$ac_objext conftest.$ac_ext
2006 if test -n "$ac_declaration"; then
2007 echo '#ifdef __cplusplus' >>confdefs.h
2008 echo $ac_declaration >>confdefs.h
2009 echo '#endif' >>confdefs.h
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2016 rm -f conftest.$ac_objext conftest.$ac_ext
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022 ac_main_return=return
2025 if test "$GCC" = yes ; then
2026 echo "$as_me:2026: checking version of $CC" >&5
2027 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2028 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.].*//'`"
2029 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2030 echo "$as_me:2030: result: $GCC_VERSION" >&5
2031 echo "${ECHO_T}$GCC_VERSION" >&6
2034 echo "$as_me:2034: checking for $CC option to accept ANSI C" >&5
2035 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 ac_cv_prog_cc_stdc=no
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line 2042 "configure"
2043 #include "confdefs.h"
2046 #include <sys/types.h>
2047 #include <sys/stat.h>
2048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2049 struct buf { int x; };
2050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2051 static char *e (p, i)
2057 static char *f (char * (*g) (char **, int), char **p, ...)
2062 s = g (p, va_arg (v,int));
2066 int test (int i, double x);
2067 struct s1 {int (*f) (int a);};
2068 struct s2 {int (*f) (double a);};
2069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2080 # Don't try gcc -ansi; that turns off useful extensions and
2081 # breaks some systems' header files.
2082 # AIX -qlanglvl=ansi
2083 # Ultrix and OSF/1 -std1
2084 # HP-UX 10.20 and later -Ae
2085 # HP-UX older versions -Aa -D_HPUX_SOURCE
2086 # SVR4 -Xc -D__EXTENSIONS__
2087 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2089 CC="$ac_save_CC $ac_arg"
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:2091: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2094 echo "$as_me:2094: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:2097: \"$ac_try\"") >&5
2100 echo "$as_me:2100: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2102 ac_cv_prog_cc_stdc=$ac_arg
2105 echo "$as_me: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2108 rm -f conftest.$ac_objext
2110 rm -f conftest.$ac_ext conftest.$ac_objext
2115 case "x$ac_cv_prog_cc_stdc" in
2117 echo "$as_me:2117: result: none needed" >&5
2118 echo "${ECHO_T}none needed" >&6 ;;
2120 echo "$as_me:2120: result: $ac_cv_prog_cc_stdc" >&5
2121 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2122 CC="$CC $ac_cv_prog_cc_stdc" ;;
2125 # This should have been defined by AC_PROG_CC
2128 echo "$as_me:2128: checking \$CC variable" >&5
2129 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2132 echo "$as_me:2132: result: broken" >&5
2133 echo "${ECHO_T}broken" >&6
2134 { echo "$as_me:2134: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2135 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2137 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2138 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2143 cf_new_extra_cppflags=
2145 for cf_add_cflags in $cf_flags
2147 case $cf_fix_cppflags in
2149 case $cf_add_cflags in #(vi
2150 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2151 case $cf_add_cflags in
2153 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2155 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2156 && test -z "${cf_tst_cflags}" \
2157 && cf_fix_cppflags=yes
2159 if test $cf_fix_cppflags = yes ; then
2160 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2162 elif test "${cf_tst_cflags}" = "\"'" ; then
2163 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2169 *$cf_add_cflags) #(vi
2172 case $cf_add_cflags in #(vi
2174 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2176 CPPFLAGS=`echo "$CPPFLAGS" | \
2177 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2178 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2182 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2187 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2192 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2194 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2196 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2197 && test -z "${cf_tst_cflags}" \
2198 && cf_fix_cppflags=no
2203 if test -n "$cf_new_cflags" ; then
2205 CFLAGS="$CFLAGS $cf_new_cflags"
2208 if test -n "$cf_new_cppflags" ; then
2210 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2213 if test -n "$cf_new_extra_cppflags" ; then
2215 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2220 echo "$as_me:2220: result: ok" >&5
2221 echo "${ECHO_T}ok" >&6
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230 ac_main_return=return
2231 echo "$as_me:2231: checking how to run the C preprocessor" >&5
2232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2233 # On Suns, sometimes $CPP names a directory.
2234 if test -n "$CPP" && test -d "$CPP"; then
2237 if test -z "$CPP"; then
2238 if test "${ac_cv_prog_CPP+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 # Double quotes because CPP needs to be expanded
2242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2245 for ac_c_preproc_warn_flag in '' yes
2247 # Use a header file that comes with gcc, so configuring glibc
2248 # with a fresh cross-compiler works.
2249 # On the NeXT, cc -E runs the code through the compiler's parser,
2250 # not just through cpp. "Syntax error" is here to catch this case.
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line 2252 "configure"
2253 #include "confdefs.h"
2257 if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
2258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260 egrep -v '^ *\+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } >/dev/null; then
2265 if test -s conftest.err; then
2266 ac_cpp_err=$ac_c_preproc_warn_flag
2273 if test -z "$ac_cpp_err"; then
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Broken: fails on valid input.
2281 rm -f conftest.err conftest.$ac_ext
2283 # OK, works on sane cases. Now check whether non-existent headers
2284 # can be detected and how.
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line 2286 "configure"
2287 #include "confdefs.h"
2288 #include <ac_nonexistent.h>
2290 if { (eval echo "$as_me:2290: \"$ac_cpp conftest.$ac_ext\"") >&5
2291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293 egrep -v '^ *\+' conftest.er1 >conftest.err
2295 cat conftest.err >&5
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); } >/dev/null; then
2298 if test -s conftest.err; then
2299 ac_cpp_err=$ac_c_preproc_warn_flag
2306 if test -z "$ac_cpp_err"; then
2307 # Broken: success on invalid input.
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 # Passes both tests.
2316 rm -f conftest.err conftest.$ac_ext
2319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320 rm -f conftest.err conftest.$ac_ext
2321 if $ac_preproc_ok; then
2333 echo "$as_me:2333: result: $CPP" >&5
2334 echo "${ECHO_T}$CPP" >&6
2336 for ac_c_preproc_warn_flag in '' yes
2338 # Use a header file that comes with gcc, so configuring glibc
2339 # with a fresh cross-compiler works.
2340 # On the NeXT, cc -E runs the code through the compiler's parser,
2341 # not just through cpp. "Syntax error" is here to catch this case.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2348 if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351 egrep -v '^ *\+' conftest.er1 >conftest.err
2353 cat conftest.err >&5
2354 echo "$as_me:2354: \$? = $ac_status" >&5
2355 (exit $ac_status); } >/dev/null; then
2356 if test -s conftest.err; then
2357 ac_cpp_err=$ac_c_preproc_warn_flag
2364 if test -z "$ac_cpp_err"; then
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 # Broken: fails on valid input.
2372 rm -f conftest.err conftest.$ac_ext
2374 # OK, works on sane cases. Now check whether non-existent headers
2375 # can be detected and how.
2376 cat >conftest.$ac_ext <<_ACEOF
2377 #line 2377 "configure"
2378 #include "confdefs.h"
2379 #include <ac_nonexistent.h>
2381 if { (eval echo "$as_me:2381: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384 egrep -v '^ *\+' conftest.er1 >conftest.err
2386 cat conftest.err >&5
2387 echo "$as_me:2387: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2397 if test -z "$ac_cpp_err"; then
2398 # Broken: success on invalid input.
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 # Passes both tests.
2407 rm -f conftest.err conftest.$ac_ext
2410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2411 rm -f conftest.err conftest.$ac_ext
2412 if $ac_preproc_ok; then
2415 { { echo "$as_me:2415: error: C preprocessor \"$CPP\" fails sanity check" >&5
2416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2417 { (exit 1); exit 1; }; }
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425 ac_main_return=return
2427 if test $ac_cv_c_compiler_gnu = yes; then
2428 echo "$as_me:2428: checking whether $CC needs -traditional" >&5
2429 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2430 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 ac_pattern="Autoconf.*'x'"
2434 cat >conftest.$ac_ext <<_ACEOF
2435 #line 2435 "configure"
2436 #include "confdefs.h"
2438 int Autoconf = TIOCGETP;
2440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2441 egrep "$ac_pattern" >/dev/null 2>&1; then
2442 ac_cv_prog_gcc_traditional=yes
2444 ac_cv_prog_gcc_traditional=no
2448 if test $ac_cv_prog_gcc_traditional = no; then
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line 2450 "configure"
2451 #include "confdefs.h"
2453 int Autoconf = TCGETA;
2455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2456 egrep "$ac_pattern" >/dev/null 2>&1; then
2457 ac_cv_prog_gcc_traditional=yes
2463 echo "$as_me:2463: result: $ac_cv_prog_gcc_traditional" >&5
2464 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2465 if test $ac_cv_prog_gcc_traditional = yes; then
2466 CC="$CC -traditional"
2470 echo "$as_me:2470: checking whether $CC understands -c and -o together" >&5
2471 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2472 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 cat > conftest.$ac_ext <<CF_EOF
2480 ${cf_cv_main_return:-return}(0);
2483 # We do the test twice because some compilers refuse to overwrite an
2484 # existing .o file with -o, though they will create one.
2485 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2486 if { (eval echo "$as_me:2486: \"$ac_try\"") >&5
2489 echo "$as_me:2489: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 test -f conftest2.$ac_objext && { (eval echo "$as_me:2491: \"$ac_try\"") >&5
2494 echo "$as_me:2494: \$? = $ac_status" >&5
2495 (exit $ac_status); };
2497 eval cf_cv_prog_CC_c_o=yes
2499 eval cf_cv_prog_CC_c_o=no
2504 if test $cf_cv_prog_CC_c_o = yes; then
2505 echo "$as_me:2505: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6
2508 echo "$as_me:2508: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2512 if test "$cross_compiling" = yes ; then
2515 case "$cf_cv_system_name" in #(vi
2516 dragonfly*|mirbsd*|freebsd*) #(vi
2517 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2519 *) LDPATH=$PATH:/sbin:/usr/sbin
2520 # Extract the first word of "ldconfig", so it can be a program name with args.
2521 set dummy ldconfig; ac_word=$2
2522 echo "$as_me:2522: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2532 ac_save_IFS=$IFS; IFS=$ac_path_separator
2534 for ac_dir in $ac_dummy; do
2536 test -z "$ac_dir" && ac_dir=.
2537 if $as_executable_p "$ac_dir/$ac_word"; then
2538 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2539 echo "$as_me:2539: found $ac_dir/$ac_word" >&5
2547 LDCONFIG=$ac_cv_path_LDCONFIG
2549 if test -n "$LDCONFIG"; then
2550 echo "$as_me:2550: result: $LDCONFIG" >&5
2551 echo "${ECHO_T}$LDCONFIG" >&6
2553 echo "$as_me:2553: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2561 echo "$as_me:2561: checking if you want to ensure bool is consistent with C++" >&5
2562 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2564 # Check whether --with-cxx or --without-cxx was given.
2565 if test "${with_cxx+set}" = set; then
2567 cf_with_cxx=$withval
2571 echo "$as_me:2571: result: $cf_with_cxx" >&5
2572 echo "${ECHO_T}$cf_with_cxx" >&6
2573 if test "X$cf_with_cxx" = Xno ; then
2577 # with autoconf 2.13, we can change the error to a warning:
2579 ac_cpp='$CXXCPP $CPPFLAGS'
2580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2583 ac_main_return=return
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 echo "$as_me:2589: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2591 if test "${ac_cv_prog_CXX+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CXX"; then
2595 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2597 ac_save_IFS=$IFS; IFS=$ac_path_separator
2599 for ac_dir in $ac_dummy; do
2601 test -z "$ac_dir" && ac_dir=.
2602 $as_executable_p "$ac_dir/$ac_word" || continue
2603 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2604 echo "$as_me:2604: found $ac_dir/$ac_word" >&5
2611 if test -n "$CXX"; then
2612 echo "$as_me:2612: result: $CXX" >&5
2613 echo "${ECHO_T}$CXX" >&6
2615 echo "$as_me:2615: result: no" >&5
2616 echo "${ECHO_T}no" >&6
2619 test -n "$CXX" && break
2622 if test -z "$CXX"; then
2624 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 echo "$as_me:2628: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2630 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$ac_ct_CXX"; then
2634 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
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 $as_executable_p "$ac_dir/$ac_word" || continue
2642 ac_cv_prog_ac_ct_CXX="$ac_prog"
2643 echo "$as_me:2643: found $ac_dir/$ac_word" >&5
2649 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2650 if test -n "$ac_ct_CXX"; then
2651 echo "$as_me:2651: result: $ac_ct_CXX" >&5
2652 echo "${ECHO_T}$ac_ct_CXX" >&6
2654 echo "$as_me:2654: result: no" >&5
2655 echo "${ECHO_T}no" >&6
2658 test -n "$ac_ct_CXX" && break
2660 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2665 # Provide some information about the compiler.
2666 echo "$as_me:2666:" \
2667 "checking for C++ compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (eval echo "$as_me:2669: \"$ac_compiler --version </dev/null >&5\"") >&5
2670 (eval $ac_compiler --version </dev/null >&5) 2>&5
2672 echo "$as_me:2672: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (eval echo "$as_me:2674: \"$ac_compiler -v </dev/null >&5\"") >&5
2675 (eval $ac_compiler -v </dev/null >&5) 2>&5
2677 echo "$as_me:2677: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679 { (eval echo "$as_me:2679: \"$ac_compiler -V </dev/null >&5\"") >&5
2680 (eval $ac_compiler -V </dev/null >&5) 2>&5
2682 echo "$as_me:2682: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2685 echo "$as_me:2685: checking whether we are using the GNU C++ compiler" >&5
2686 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:2706: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>&5
2709 echo "$as_me:2709: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:2712: \"$ac_try\"") >&5
2715 echo "$as_me:2715: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2723 rm -f conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2727 echo "$as_me:2727: result: $ac_cv_cxx_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2729 GXX=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CXXFLAGS=${CXXFLAGS+set}
2731 ac_save_CXXFLAGS=$CXXFLAGS
2733 echo "$as_me:2733: checking whether $CXX accepts -g" >&5
2734 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2735 if test "${ac_cv_prog_cxx_g+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 cat >conftest.$ac_ext <<_ACEOF
2739 #line 2739 "configure"
2740 #include "confdefs.h"
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:2751: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>&5
2754 echo "$as_me:2754: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:2757: \"$ac_try\"") >&5
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_prog_cxx_g=yes
2764 echo "$as_me: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2768 rm -f conftest.$ac_objext conftest.$ac_ext
2770 echo "$as_me:2770: result: $ac_cv_prog_cxx_g" >&5
2771 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2772 if test "$ac_test_CXXFLAGS" = set; then
2773 CXXFLAGS=$ac_save_CXXFLAGS
2774 elif test $ac_cv_prog_cxx_g = yes; then
2775 if test "$GXX" = yes; then
2781 if test "$GXX" = yes; then
2787 for ac_declaration in \
2789 '#include <stdlib.h>' \
2790 'extern "C" void std::exit (int) throw (); using std::exit;' \
2791 'extern "C" void std::exit (int); using std::exit;' \
2792 'extern "C" void exit (int) throw ();' \
2793 'extern "C" void exit (int);' \
2796 cat >conftest.$ac_ext <<_ACEOF
2797 #line 2797 "configure"
2798 #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 cat >conftest.$ac_ext <<_ACEOF
2829 #line 2829 "configure"
2830 #include "confdefs.h"
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:2841: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>&5
2844 echo "$as_me:2844: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:2847: \"$ac_try\"") >&5
2850 echo "$as_me:2850: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2854 echo "$as_me: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 rm -f conftest.$ac_objext conftest.$ac_ext
2860 if test -n "$ac_declaration"; then
2861 echo '#ifdef __cplusplus' >>confdefs.h
2862 echo $ac_declaration >>confdefs.h
2863 echo '#endif' >>confdefs.h
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 ac_main_return=return
2874 ac_cpp='$CXXCPP $CPPFLAGS'
2875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2878 ac_main_return=return
2880 if test "x$cf_with_cxx" != xno
2882 # Several of the C++ configurations do not work, particularly when
2883 # cross-compiling (20140913 -TD)
2884 echo "$as_me:2884: checking if $CXX works" >&5
2885 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2887 save_CPPFLAGS="$CPPFLAGS"
2888 eval cf_includedir=${includedir}
2889 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #line 2892 "configure"
2893 #include "confdefs.h"
2902 printf("Hello world!\n")
2908 rm -f conftest.$ac_objext
2909 if { (eval echo "$as_me:2909: \"$ac_compile\"") >&5
2910 (eval $ac_compile) 2>&5
2912 echo "$as_me:2912: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:2915: \"$ac_try\"") >&5
2918 echo "$as_me:2918: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 echo "$as_me: failed program was:" >&5
2923 cat conftest.$ac_ext >&5
2926 rm -f conftest.$ac_objext conftest.$ac_ext
2927 CPPFLAGS="$save_CPPFLAGS"
2929 echo "$as_me:2929: result: $cf_cxx_works" >&5
2930 echo "${ECHO_T}$cf_cxx_works" >&6
2931 if test "x$cf_cxx_works" = xno
2933 { echo "$as_me:2933: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2934 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2935 cf_with_cxx=no; CXX=""; GXX="";
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 ac_main_return=return
2945 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2946 if test "$CXX" = "g++" ; then
2947 # Extract the first word of "g++", so it can be a program name with args.
2948 set dummy g++; ac_word=$2
2949 echo "$as_me:2949: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2951 if test "${ac_cv_path_CXX+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2959 ac_save_IFS=$IFS; IFS=$ac_path_separator
2961 for ac_dir in $ac_dummy; do
2963 test -z "$ac_dir" && ac_dir=.
2964 if $as_executable_p "$ac_dir/$ac_word"; then
2965 ac_cv_path_CXX="$ac_dir/$ac_word"
2966 echo "$as_me:2966: found $ac_dir/$ac_word" >&5
2976 if test -n "$CXX"; then
2977 echo "$as_me:2977: result: $CXX" >&5
2978 echo "${ECHO_T}$CXX" >&6
2980 echo "$as_me:2980: result: no" >&5
2981 echo "${ECHO_T}no" >&6
2985 case "x$CXX" in #(vi
2987 { echo "$as_me:2987: WARNING: You don't have any C++ compiler, too bad" >&5
2988 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2989 cf_with_cxx=no; CXX=""; GXX="";
2995 if test "$GXX" = yes; then
2996 echo "$as_me:2996: checking version of ${CXX:-g++}" >&5
2997 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2998 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2999 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3000 echo "$as_me:3000: result: $GXX_VERSION" >&5
3001 echo "${ECHO_T}$GXX_VERSION" >&6
3004 case $GXX_VERSION in
3006 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3008 { echo "$as_me:3008: WARNING: templates do not work" >&5
3009 echo "$as_me: WARNING: templates do not work" >&2;}
3013 echo "$as_me:3013: checking if you want to build C++ binding and demo" >&5
3014 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3016 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3017 if test "${with_cxx_binding+set}" = set; then
3018 withval="$with_cxx_binding"
3019 cf_with_cxx_binding=$withval
3021 cf_with_cxx_binding=$cf_with_cxx
3023 echo "$as_me:3023: result: $cf_with_cxx_binding" >&5
3024 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3026 echo "$as_me:3026: checking if you want to build with Ada95" >&5
3027 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3028 echo "$as_me:3028: result: $cf_with_ada" >&5
3029 echo "${ECHO_T}$cf_with_ada" >&6
3031 echo "$as_me:3031: checking if you want to install terminal database" >&5
3032 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3034 # Check whether --enable-db-install or --disable-db-install was given.
3035 if test "${enable_db_install+set}" = set; then
3036 enableval="$enable_db_install"
3037 cf_with_db_install=$enableval
3039 cf_with_db_install=yes
3041 echo "$as_me:3041: result: $cf_with_db_install" >&5
3042 echo "${ECHO_T}$cf_with_db_install" >&6
3044 echo "$as_me:3044: checking if you want to install manpages" >&5
3045 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3047 # Check whether --with-manpages or --without-manpages was given.
3048 if test "${with_manpages+set}" = set; then
3049 withval="$with_manpages"
3050 cf_with_manpages=$withval
3052 cf_with_manpages=yes
3054 echo "$as_me:3054: result: $cf_with_manpages" >&5
3055 echo "${ECHO_T}$cf_with_manpages" >&6
3057 echo "$as_me:3057: checking if you want to build programs such as tic" >&5
3058 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3060 # Check whether --with-progs or --without-progs was given.
3061 if test "${with_progs+set}" = set; then
3062 withval="$with_progs"
3063 cf_with_progs=$withval
3067 echo "$as_me:3067: result: $cf_with_progs" >&5
3068 echo "${ECHO_T}$cf_with_progs" >&6
3070 echo "$as_me:3070: checking if you want to build test-programs" >&5
3071 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3073 # Check whether --with-tests or --without-tests was given.
3074 if test "${with_tests+set}" = set; then
3075 withval="$with_tests"
3076 cf_with_tests=$withval
3080 echo "$as_me:3080: result: $cf_with_tests" >&5
3081 echo "${ECHO_T}$cf_with_tests" >&6
3083 echo "$as_me:3083: checking if you wish to install curses.h" >&5
3084 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3086 # Check whether --with-curses-h or --without-curses-h was given.
3087 if test "${with_curses_h+set}" = set; then
3088 withval="$with_curses_h"
3089 with_curses_h=$withval
3093 echo "$as_me:3093: result: $with_curses_h" >&5
3094 echo "${ECHO_T}$with_curses_h" >&6
3096 modules_to_build="ncurses"
3097 if test "X$cf_with_progs" != Xno ; then
3098 modules_to_build="$modules_to_build progs tack"
3100 modules_to_build="$modules_to_build panel menu form"
3102 test "$program_prefix" != NONE &&
3103 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3104 # Use a double $ so make ignores it.
3105 test "$program_suffix" != NONE &&
3106 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3107 # Double any \ or $. echo might interpret backslashes.
3108 # By default was `s,x,x', remove it if useless.
3109 cat <<\_ACEOF >conftest.sed
3110 s/[\\$]/&&/g;s/;s,x,x,$//
3112 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3115 for ac_prog in mawk gawk nawk awk
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 echo "$as_me:3119: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_AWK+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$AWK"; then
3125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3127 ac_save_IFS=$IFS; IFS=$ac_path_separator
3129 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 $as_executable_p "$ac_dir/$ac_word" || continue
3133 ac_cv_prog_AWK="$ac_prog"
3134 echo "$as_me:3134: found $ac_dir/$ac_word" >&5
3141 if test -n "$AWK"; then
3142 echo "$as_me:3142: result: $AWK" >&5
3143 echo "${ECHO_T}$AWK" >&6
3145 echo "$as_me:3145: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3149 test -n "$AWK" && break
3152 test -z "$AWK" && { { echo "$as_me:3152: error: No awk program found" >&5
3153 echo "$as_me: error: No awk program found" >&2;}
3154 { (exit 1); exit 1; }; }
3156 echo "$as_me:3156: checking for egrep" >&5
3157 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3158 if test "${ac_cv_prog_egrep+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3162 then ac_cv_prog_egrep='grep -E'
3163 else ac_cv_prog_egrep='egrep'
3166 echo "$as_me:3166: result: $ac_cv_prog_egrep" >&5
3167 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3168 EGREP=$ac_cv_prog_egrep
3170 test -z "$EGREP" && { { echo "$as_me:3170: error: No egrep program found" >&5
3171 echo "$as_me: error: No egrep program found" >&2;}
3172 { (exit 1); exit 1; }; }
3174 # Find a good install program. We prefer a C program (faster),
3175 # so one script is as good as another. But avoid the broken or
3176 # incompatible versions:
3177 # SysV /etc/install, /usr/sbin/install
3178 # SunOS /usr/etc/install
3179 # IRIX /sbin/install
3181 # AmigaOS /C/install, which installs bootblocks on floppy discs
3182 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3183 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3184 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3185 # ./install, which can be erroneously created by make from ./install.sh.
3186 echo "$as_me:3186: checking for a BSD compatible install" >&5
3187 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3188 if test -z "$INSTALL"; then
3189 if test "${ac_cv_path_install+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 ac_save_IFS=$IFS; IFS=$ac_path_separator
3193 for ac_dir in $PATH; do
3195 # Account for people who put trailing slashes in PATH elements.
3197 / | ./ | .// | /cC/* \
3198 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3201 # OSF1 and SCO ODT 3.0 have their own names for install.
3202 # Don't use installbsd from OSF since it installs stuff as root
3204 for ac_prog in ginstall scoinst install; do
3205 if $as_executable_p "$ac_dir/$ac_prog"; then
3206 if test $ac_prog = install &&
3207 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3208 # AIX install. It has an incompatible calling convention.
3210 elif test $ac_prog = install &&
3211 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3212 # program-specific install script used by HP pwplus--don't use.
3215 ac_cv_path_install="$ac_dir/$ac_prog -c"
3225 if test "${ac_cv_path_install+set}" = set; then
3226 INSTALL=$ac_cv_path_install
3228 # As a last resort, use the slow shell script. We don't cache a
3229 # path for INSTALL within a source directory, because that will
3230 # break other packages using the cache if that directory is
3231 # removed, or if the path is relative.
3232 INSTALL=$ac_install_sh
3235 echo "$as_me:3235: result: $INSTALL" >&5
3236 echo "${ECHO_T}$INSTALL" >&6
3238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3239 # It thinks the first close brace ends the variable substitution.
3240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3250 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3251 test -z "$cf_dir" && cf_dir=.
3252 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3256 for ac_prog in tdlint lint alint splint lclint
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 echo "$as_me:3260: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_prog_LINT+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 if test -n "$LINT"; then
3266 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3268 ac_save_IFS=$IFS; IFS=$ac_path_separator
3270 for ac_dir in $ac_dummy; do
3272 test -z "$ac_dir" && ac_dir=.
3273 $as_executable_p "$ac_dir/$ac_word" || continue
3274 ac_cv_prog_LINT="$ac_prog"
3275 echo "$as_me:3275: found $ac_dir/$ac_word" >&5
3281 LINT=$ac_cv_prog_LINT
3282 if test -n "$LINT"; then
3283 echo "$as_me:3283: result: $LINT" >&5
3284 echo "${ECHO_T}$LINT" >&6
3286 echo "$as_me:3286: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3290 test -n "$LINT" && break
3293 echo "$as_me:3293: checking whether ln -s works" >&5
3294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3296 if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:3297: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3300 echo "$as_me:3300: result: no, using $LN_S" >&5
3301 echo "${ECHO_T}no, using $LN_S" >&6
3304 echo "$as_me:3304: checking if $LN_S -f options work" >&5
3305 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3307 rm -f conf$$.src conf$$dst
3309 echo first >conf$$.src
3310 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3315 rm -f conf$$.dst conf$$src
3316 echo "$as_me:3316: result: $cf_prog_ln_sf" >&5
3317 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3319 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3321 echo "$as_me:3321: checking for long file names" >&5
3322 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3323 if test "${ac_cv_sys_long_file_names+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 ac_cv_sys_long_file_names=yes
3327 # Test for long file names in all the places we know might matter:
3328 # . the current directory, where building will happen
3329 # $prefix/lib where we will be installing things
3330 # $exec_prefix/lib likewise
3331 # eval it to expand exec_prefix.
3332 # $TMPDIR if set, where it might want to write temporary files
3333 # if $TMPDIR is not set:
3334 # /tmp where it might want to write temporary files
3337 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3340 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3342 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3343 test -d $ac_dir || continue
3344 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3345 ac_xdir=$ac_dir/cf$$
3346 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3347 ac_tf1=$ac_xdir/conftest9012345
3348 ac_tf2=$ac_xdir/conftest9012346
3349 (echo 1 >$ac_tf1) 2>/dev/null
3350 (echo 2 >$ac_tf2) 2>/dev/null
3351 ac_val=`cat $ac_tf1 2>/dev/null`
3352 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3353 ac_cv_sys_long_file_names=no
3354 rm -rf $ac_xdir 2>/dev/null
3357 rm -rf $ac_xdir 2>/dev/null
3360 echo "$as_me:3360: result: $ac_cv_sys_long_file_names" >&5
3361 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3362 if test $ac_cv_sys_long_file_names = yes; then
3364 cat >>confdefs.h <<\EOF
3365 #define HAVE_LONG_FILE_NAMES 1
3370 # if we find pkg-config, check if we should install the ".pc" files.
3372 echo "$as_me:3372: checking if you want to use pkg-config" >&5
3373 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3375 # Check whether --with-pkg-config or --without-pkg-config was given.
3376 if test "${with_pkg_config+set}" = set; then
3377 withval="$with_pkg_config"
3378 cf_pkg_config=$withval
3382 echo "$as_me:3382: result: $cf_pkg_config" >&5
3383 echo "${ECHO_T}$cf_pkg_config" >&6
3385 case $cf_pkg_config in #(vi
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3394 echo "$as_me:3394: checking for $ac_word" >&5
3395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3396 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3404 ac_save_IFS=$IFS; IFS=$ac_path_separator
3406 for ac_dir in $ac_dummy; do
3408 test -z "$ac_dir" && ac_dir=.
3409 if $as_executable_p "$ac_dir/$ac_word"; then
3410 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3411 echo "$as_me:3411: found $ac_dir/$ac_word" >&5
3419 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3421 if test -n "$PKG_CONFIG"; then
3422 echo "$as_me:3422: result: $PKG_CONFIG" >&5
3423 echo "${ECHO_T}$PKG_CONFIG" >&6
3425 echo "$as_me:3425: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3430 if test -z "$ac_cv_path_PKG_CONFIG"; then
3431 ac_pt_PKG_CONFIG=$PKG_CONFIG
3432 # Extract the first word of "pkg-config", so it can be a program name with args.
3433 set dummy pkg-config; ac_word=$2
3434 echo "$as_me:3434: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 case $ac_pt_PKG_CONFIG in
3441 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3444 ac_save_IFS=$IFS; IFS=$ac_path_separator
3446 for ac_dir in $ac_dummy; do
3448 test -z "$ac_dir" && ac_dir=.
3449 if $as_executable_p "$ac_dir/$ac_word"; then
3450 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3451 echo "$as_me:3451: found $ac_dir/$ac_word" >&5
3456 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3460 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3462 if test -n "$ac_pt_PKG_CONFIG"; then
3463 echo "$as_me:3463: result: $ac_pt_PKG_CONFIG" >&5
3464 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3466 echo "$as_me:3466: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3470 PKG_CONFIG=$ac_pt_PKG_CONFIG
3472 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3481 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3482 if test "$PKG_CONFIG" != none ; then
3484 if test "x$prefix" != xNONE; then
3485 cf_path_syntax="$prefix"
3487 cf_path_syntax="$ac_default_prefix"
3490 case ".$PKG_CONFIG" in #(vi
3491 .\$\(*\)*|.\'*\'*) #(vi
3495 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3497 .\${*prefix}*|.\${*dir}*) #(vi
3498 eval PKG_CONFIG="$PKG_CONFIG"
3499 case ".$PKG_CONFIG" in #(vi
3501 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3506 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3509 { { echo "$as_me:3509: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3510 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3511 { (exit 1); exit 1; }; }
3516 { echo "$as_me:3516: WARNING: pkg-config is not installed" >&5
3517 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3520 echo "$as_me:3520: checking for $PKG_CONFIG library directory" >&5
3521 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3523 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3524 if test "${with_pkg_config_libdir+set}" = set; then
3525 withval="$with_pkg_config_libdir"
3526 PKG_CONFIG_LIBDIR=$withval
3528 PKG_CONFIG_LIBDIR=yes
3531 case x$PKG_CONFIG_LIBDIR in #(vi
3535 # Look for the library directory using the same prefix as the executable
3536 if test "x$PKG_CONFIG" = xnone
3540 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3543 # If you don't like using the default architecture, you have to specify the
3544 # intended library directory and corresponding compiler/linker options.
3546 # This case allows for Debian's 2014-flavor of multiarch, along with the
3547 # most common variations before that point. Some other variants spell the
3548 # directory differently, e.g., "pkg-config", and put it in unusual places.
3549 # pkg-config has always been poorly standardized, which is ironic...
3550 case x`(arch) 2>/dev/null` in #(vi
3553 $cf_path/lib/*64-linux-gnu \
3561 $cf_path/lib/*-linux-gnu \
3569 test -n "$verbose" && echo " list..." 1>&6
3571 echo "${as_me:-configure}:3571: testing list... ..." 1>&5
3573 for cf_config in $cf_search_path
3575 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3577 echo "${as_me:-configure}:3577: testing checking $cf_config/pkgconfig ..." 1>&5
3579 if test -d $cf_config/pkgconfig
3581 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3582 echo "$as_me:3582: checking done" >&5
3583 echo $ECHO_N "checking done... $ECHO_C" >&6
3592 echo "$as_me:3592: result: $PKG_CONFIG_LIBDIR" >&5
3593 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3595 if test "x$PKG_CONFIG" != xnone
3597 echo "$as_me:3597: checking if we should install .pc files for $PKG_CONFIG" >&5
3598 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3600 echo "$as_me:3600: checking if we should install .pc files" >&5
3601 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3604 # Check whether --enable-pc-files or --disable-pc-files was given.
3605 if test "${enable_pc_files+set}" = set; then
3606 enableval="$enable_pc_files"
3607 enable_pc_files=$enableval
3611 echo "$as_me:3611: result: $enable_pc_files" >&5
3612 echo "${ECHO_T}$enable_pc_files" >&6
3614 if test "x$enable_pc_files" != xno
3616 case "x$PKG_CONFIG_LIBDIR" in #(vi
3618 { echo "$as_me:3618: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3619 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3624 if test "x$prefix" != xNONE; then
3625 cf_path_syntax="$prefix"
3627 cf_path_syntax="$ac_default_prefix"
3630 case ".$PKG_CONFIG_LIBDIR" in #(vi
3631 .\$\(*\)*|.\'*\'*) #(vi
3635 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3637 .\${*prefix}*|.\${*dir}*) #(vi
3638 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3639 case ".$PKG_CONFIG_LIBDIR" in #(vi
3641 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3646 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3649 { { echo "$as_me:3649: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3650 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3651 { (exit 1); exit 1; }; }
3662 if test -z "$MAKE_PC_FILES"
3664 echo "$as_me:3664: checking for suffix to add to pc-files" >&5
3665 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3667 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3668 if test "${with_pc_suffix+set}" = set; then
3669 withval="$with_pc_suffix"
3670 case "x$withval" in #(vi
3674 *) PC_MODULE_SUFFIX="$withval"
3678 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3679 echo "$as_me:3679: result: $PC_MODULE_SUFFIX" >&5
3680 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3681 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3685 echo "$as_me:3685: checking if we should assume mixed-case filenames" >&5
3686 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3688 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3689 if test "${enable_mixed_case+set}" = set; then
3690 enableval="$enable_mixed_case"
3691 enable_mixedcase=$enableval
3693 enable_mixedcase=auto
3695 echo "$as_me:3695: result: $enable_mixedcase" >&5
3696 echo "${ECHO_T}$enable_mixedcase" >&6
3697 if test "$enable_mixedcase" = "auto" ; then
3699 echo "$as_me:3699: checking if filesystem supports mixed-case filenames" >&5
3700 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3701 if test "${cf_cv_mixedcase+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if test "$cross_compiling" = yes ; then
3706 case $target_alias in #(vi
3707 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
3715 rm -f conftest CONFTEST
3717 if test -f CONFTEST ; then
3722 rm -f conftest CONFTEST
3726 echo "$as_me:3726: result: $cf_cv_mixedcase" >&5
3727 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3728 test "$cf_cv_mixedcase" = yes &&
3729 cat >>confdefs.h <<\EOF
3730 #define MIXEDCASE_FILENAMES 1
3734 cf_cv_mixedcase=$enable_mixedcase
3735 if test "x$enable_mixedcase" = "xyes" ; then
3737 cat >>confdefs.h <<\EOF
3738 #define MIXEDCASE_FILENAMES 1
3744 # do this after mixed-case option (tags/TAGS is not as important as tic).
3745 echo "$as_me:3745: checking whether ${MAKE-make} sets \${MAKE}" >&5
3746 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3747 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3748 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 cat >conftest.make <<\EOF
3753 @echo 'ac_maketemp="${MAKE}"'
3755 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3756 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3757 if test -n "$ac_maketemp"; then
3758 eval ac_cv_prog_make_${ac_make}_set=yes
3760 eval ac_cv_prog_make_${ac_make}_set=no
3764 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3765 echo "$as_me:3765: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6
3769 echo "$as_me:3769: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3771 SET_MAKE="MAKE=${MAKE-make}"
3774 for ac_prog in exctags ctags
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 echo "$as_me:3778: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_CTAGS+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if test -n "$CTAGS"; then
3784 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3786 ac_save_IFS=$IFS; IFS=$ac_path_separator
3788 for ac_dir in $ac_dummy; do
3790 test -z "$ac_dir" && ac_dir=.
3791 $as_executable_p "$ac_dir/$ac_word" || continue
3792 ac_cv_prog_CTAGS="$ac_prog"
3793 echo "$as_me:3793: found $ac_dir/$ac_word" >&5
3799 CTAGS=$ac_cv_prog_CTAGS
3800 if test -n "$CTAGS"; then
3801 echo "$as_me:3801: result: $CTAGS" >&5
3802 echo "${ECHO_T}$CTAGS" >&6
3804 echo "$as_me:3804: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3808 test -n "$CTAGS" && break
3811 for ac_prog in exetags etags
3813 # Extract the first word of "$ac_prog", so it can be a program name with args.
3814 set dummy $ac_prog; ac_word=$2
3815 echo "$as_me:3815: checking for $ac_word" >&5
3816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3817 if test "${ac_cv_prog_ETAGS+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 if test -n "$ETAGS"; then
3821 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3823 ac_save_IFS=$IFS; IFS=$ac_path_separator
3825 for ac_dir in $ac_dummy; do
3827 test -z "$ac_dir" && ac_dir=.
3828 $as_executable_p "$ac_dir/$ac_word" || continue
3829 ac_cv_prog_ETAGS="$ac_prog"
3830 echo "$as_me:3830: found $ac_dir/$ac_word" >&5
3836 ETAGS=$ac_cv_prog_ETAGS
3837 if test -n "$ETAGS"; then
3838 echo "$as_me:3838: result: $ETAGS" >&5
3839 echo "${ECHO_T}$ETAGS" >&6
3841 echo "$as_me:3841: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3845 test -n "$ETAGS" && break
3848 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3849 set dummy ${CTAGS:-ctags}; ac_word=$2
3850 echo "$as_me:3850: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 if test -n "$MAKE_LOWER_TAGS"; then
3856 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3858 ac_save_IFS=$IFS; IFS=$ac_path_separator
3860 for ac_dir in $ac_dummy; do
3862 test -z "$ac_dir" && ac_dir=.
3863 $as_executable_p "$ac_dir/$ac_word" || continue
3864 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3865 echo "$as_me:3865: found $ac_dir/$ac_word" >&5
3869 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3872 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3873 if test -n "$MAKE_LOWER_TAGS"; then
3874 echo "$as_me:3874: result: $MAKE_LOWER_TAGS" >&5
3875 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3877 echo "$as_me:3877: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 if test "$cf_cv_mixedcase" = yes ; then
3882 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3883 set dummy ${ETAGS:-etags}; ac_word=$2
3884 echo "$as_me:3884: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$MAKE_UPPER_TAGS"; then
3890 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3892 ac_save_IFS=$IFS; IFS=$ac_path_separator
3894 for ac_dir in $ac_dummy; do
3896 test -z "$ac_dir" && ac_dir=.
3897 $as_executable_p "$ac_dir/$ac_word" || continue
3898 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3899 echo "$as_me:3899: found $ac_dir/$ac_word" >&5
3903 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3906 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3907 if test -n "$MAKE_UPPER_TAGS"; then
3908 echo "$as_me:3908: result: $MAKE_UPPER_TAGS" >&5
3909 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3911 echo "$as_me:3911: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3919 if test "$MAKE_UPPER_TAGS" = yes ; then
3925 if test "$MAKE_LOWER_TAGS" = yes ; then
3931 echo "$as_me:3931: checking for makeflags variable" >&5
3932 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3933 if test "${cf_cv_makeflags+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3940 cat >cf_makeflags.tmp <<CF_EOF
3943 @ echo '.$cf_option'
3945 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3946 case "$cf_result" in
3948 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3949 case "$cf_result" in
3950 .*CC=*) cf_cv_makeflags=
3952 *) cf_cv_makeflags=$cf_option
3958 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3962 rm -f cf_makeflags.tmp
3965 echo "$as_me:3965: result: $cf_cv_makeflags" >&5
3966 echo "${ECHO_T}$cf_cv_makeflags" >&6
3968 if test -n "$ac_tool_prefix"; then
3969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3971 echo "$as_me:3971: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_RANLIB+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$RANLIB"; then
3977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979 ac_save_IFS=$IFS; IFS=$ac_path_separator
3981 for ac_dir in $ac_dummy; do
3983 test -z "$ac_dir" && ac_dir=.
3984 $as_executable_p "$ac_dir/$ac_word" || continue
3985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3986 echo "$as_me:3986: found $ac_dir/$ac_word" >&5
3992 RANLIB=$ac_cv_prog_RANLIB
3993 if test -n "$RANLIB"; then
3994 echo "$as_me:3994: result: $RANLIB" >&5
3995 echo "${ECHO_T}$RANLIB" >&6
3997 echo "$as_me:3997: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4002 if test -z "$ac_cv_prog_RANLIB"; then
4003 ac_ct_RANLIB=$RANLIB
4004 # Extract the first word of "ranlib", so it can be a program name with args.
4005 set dummy ranlib; ac_word=$2
4006 echo "$as_me:4006: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if test -n "$ac_ct_RANLIB"; then
4012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4014 ac_save_IFS=$IFS; IFS=$ac_path_separator
4016 for ac_dir in $ac_dummy; do
4018 test -z "$ac_dir" && ac_dir=.
4019 $as_executable_p "$ac_dir/$ac_word" || continue
4020 ac_cv_prog_ac_ct_RANLIB="ranlib"
4021 echo "$as_me:4021: found $ac_dir/$ac_word" >&5
4025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4029 if test -n "$ac_ct_RANLIB"; then
4030 echo "$as_me:4030: result: $ac_ct_RANLIB" >&5
4031 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4033 echo "$as_me:4033: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4037 RANLIB=$ac_ct_RANLIB
4039 RANLIB="$ac_cv_prog_RANLIB"
4042 if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}ld; ac_word=$2
4045 echo "$as_me:4045: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_LD+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test -n "$LD"; then
4051 ac_cv_prog_LD="$LD" # Let the user override the test.
4053 ac_save_IFS=$IFS; IFS=$ac_path_separator
4055 for ac_dir in $ac_dummy; do
4057 test -z "$ac_dir" && ac_dir=.
4058 $as_executable_p "$ac_dir/$ac_word" || continue
4059 ac_cv_prog_LD="${ac_tool_prefix}ld"
4060 echo "$as_me:4060: found $ac_dir/$ac_word" >&5
4067 if test -n "$LD"; then
4068 echo "$as_me:4068: result: $LD" >&5
4069 echo "${ECHO_T}$LD" >&6
4071 echo "$as_me:4071: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4076 if test -z "$ac_cv_prog_LD"; then
4078 # Extract the first word of "ld", so it can be a program name with args.
4079 set dummy ld; ac_word=$2
4080 echo "$as_me:4080: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 if test -n "$ac_ct_LD"; then
4086 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4088 ac_save_IFS=$IFS; IFS=$ac_path_separator
4090 for ac_dir in $ac_dummy; do
4092 test -z "$ac_dir" && ac_dir=.
4093 $as_executable_p "$ac_dir/$ac_word" || continue
4094 ac_cv_prog_ac_ct_LD="ld"
4095 echo "$as_me:4095: found $ac_dir/$ac_word" >&5
4099 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4102 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4103 if test -n "$ac_ct_LD"; then
4104 echo "$as_me:4104: result: $ac_ct_LD" >&5
4105 echo "${ECHO_T}$ac_ct_LD" >&6
4107 echo "$as_me:4107: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}ar; ac_word=$2
4119 echo "$as_me:4119: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_AR+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$AR"; then
4125 ac_cv_prog_AR="$AR" # Let the user override the test.
4127 ac_save_IFS=$IFS; IFS=$ac_path_separator
4129 for ac_dir in $ac_dummy; do
4131 test -z "$ac_dir" && ac_dir=.
4132 $as_executable_p "$ac_dir/$ac_word" || continue
4133 ac_cv_prog_AR="${ac_tool_prefix}ar"
4134 echo "$as_me:4134: found $ac_dir/$ac_word" >&5
4141 if test -n "$AR"; then
4142 echo "$as_me:4142: result: $AR" >&5
4143 echo "${ECHO_T}$AR" >&6
4145 echo "$as_me:4145: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4150 if test -z "$ac_cv_prog_AR"; then
4152 # Extract the first word of "ar", so it can be a program name with args.
4153 set dummy ar; ac_word=$2
4154 echo "$as_me:4154: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$ac_ct_AR"; then
4160 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4162 ac_save_IFS=$IFS; IFS=$ac_path_separator
4164 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 $as_executable_p "$ac_dir/$ac_word" || continue
4168 ac_cv_prog_ac_ct_AR="ar"
4169 echo "$as_me:4169: found $ac_dir/$ac_word" >&5
4173 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4177 if test -n "$ac_ct_AR"; then
4178 echo "$as_me:4178: result: $ac_ct_AR" >&5
4179 echo "${ECHO_T}$ac_ct_AR" >&6
4181 echo "$as_me:4181: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4190 if test -n "$ac_tool_prefix"; then
4191 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4192 set dummy ${ac_tool_prefix}nm; ac_word=$2
4193 echo "$as_me:4193: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_prog_NM+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 if test -n "$NM"; then
4199 ac_cv_prog_NM="$NM" # Let the user override the test.
4201 ac_save_IFS=$IFS; IFS=$ac_path_separator
4203 for ac_dir in $ac_dummy; do
4205 test -z "$ac_dir" && ac_dir=.
4206 $as_executable_p "$ac_dir/$ac_word" || continue
4207 ac_cv_prog_NM="${ac_tool_prefix}nm"
4208 echo "$as_me:4208: found $ac_dir/$ac_word" >&5
4215 if test -n "$NM"; then
4216 echo "$as_me:4216: result: $NM" >&5
4217 echo "${ECHO_T}$NM" >&6
4219 echo "$as_me:4219: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4224 if test -z "$ac_cv_prog_NM"; then
4226 # Extract the first word of "nm", so it can be a program name with args.
4227 set dummy nm; ac_word=$2
4228 echo "$as_me:4228: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$ac_ct_NM"; then
4234 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4236 ac_save_IFS=$IFS; IFS=$ac_path_separator
4238 for ac_dir in $ac_dummy; do
4240 test -z "$ac_dir" && ac_dir=.
4241 $as_executable_p "$ac_dir/$ac_word" || continue
4242 ac_cv_prog_ac_ct_NM="nm"
4243 echo "$as_me:4243: found $ac_dir/$ac_word" >&5
4247 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4250 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4251 if test -n "$ac_ct_NM"; then
4252 echo "$as_me:4252: result: $ac_ct_NM" >&5
4253 echo "${ECHO_T}$ac_ct_NM" >&6
4255 echo "$as_me:4255: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}ar; ac_word=$2
4267 echo "$as_me:4267: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_prog_AR+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$AR"; then
4273 ac_cv_prog_AR="$AR" # Let the user override the test.
4275 ac_save_IFS=$IFS; IFS=$ac_path_separator
4277 for ac_dir in $ac_dummy; do
4279 test -z "$ac_dir" && ac_dir=.
4280 $as_executable_p "$ac_dir/$ac_word" || continue
4281 ac_cv_prog_AR="${ac_tool_prefix}ar"
4282 echo "$as_me:4282: found $ac_dir/$ac_word" >&5
4289 if test -n "$AR"; then
4290 echo "$as_me:4290: result: $AR" >&5
4291 echo "${ECHO_T}$AR" >&6
4293 echo "$as_me:4293: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4298 if test -z "$ac_cv_prog_AR"; then
4300 # Extract the first word of "ar", so it can be a program name with args.
4301 set dummy ar; ac_word=$2
4302 echo "$as_me:4302: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$ac_ct_AR"; then
4308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4310 ac_save_IFS=$IFS; IFS=$ac_path_separator
4312 for ac_dir in $ac_dummy; do
4314 test -z "$ac_dir" && ac_dir=.
4315 $as_executable_p "$ac_dir/$ac_word" || continue
4316 ac_cv_prog_ac_ct_AR="ar"
4317 echo "$as_me:4317: found $ac_dir/$ac_word" >&5
4321 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4324 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4325 if test -n "$ac_ct_AR"; then
4326 echo "$as_me:4326: result: $ac_ct_AR" >&5
4327 echo "${ECHO_T}$ac_ct_AR" >&6
4329 echo "$as_me:4329: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4338 echo "$as_me:4338: checking for options to update archives" >&5
4339 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4340 if test "${cf_cv_ar_flags+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 cf_cv_ar_flags=unknown
4345 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4348 # check if $ARFLAGS already contains this choice
4349 if test "x$ARFLAGS" != "x" ; then
4350 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4351 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4357 rm -f conftest.$ac_cv_objext
4360 cat >conftest.$ac_ext <<EOF
4361 #line 4361 "configure"
4362 int testdata[3] = { 123, 456, 789 };
4364 if { (eval echo "$as_me:4364: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4367 echo "$as_me:4367: \$? = $ac_status" >&5
4368 (exit $ac_status); } ; then
4369 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4370 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4371 if test -f conftest.a ; then
4372 cf_cv_ar_flags=$cf_ar_flags
4376 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4378 echo "${as_me:-configure}:4378: testing cannot compile test-program ..." 1>&5
4383 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4386 echo "$as_me:4386: result: $cf_cv_ar_flags" >&5
4387 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4389 if test -n "$ARFLAGS" ; then
4390 if test -n "$cf_cv_ar_flags" ; then
4391 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4394 ARFLAGS=$cf_cv_ar_flags
4397 echo "$as_me:4397: checking if you have specified an install-prefix" >&5
4398 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4400 # Check whether --with-install-prefix or --without-install-prefix was given.
4401 if test "${with_install_prefix+set}" = set; then
4402 withval="$with_install_prefix"
4403 case "x$withval" in #(vi
4406 *) DESTDIR="$withval"
4410 echo "$as_me:4410: result: $DESTDIR" >&5
4411 echo "${ECHO_T}$DESTDIR" >&6
4413 ###############################################################################
4415 # If we're cross-compiling, allow the user to override the tools and their
4416 # options. The configure script is oriented toward identifying the host
4417 # compiler, etc., but we need a build compiler to generate parts of the source.
4419 if test "$cross_compiling" = yes ; then
4421 # defaults that we might want to override
4422 : ${BUILD_CFLAGS:=''}
4423 : ${BUILD_CPPFLAGS:=''}
4424 : ${BUILD_LDFLAGS:=''}
4426 : ${BUILD_EXEEXT:='$x'}
4427 : ${BUILD_OBJEXT:='o'}
4429 # Check whether --with-build-cc or --without-build-cc was given.
4430 if test "${with_build_cc+set}" = set; then
4431 withval="$with_build_cc"
4434 for ac_prog in gcc cc cl
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 echo "$as_me:4438: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$BUILD_CC"; then
4444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4446 ac_save_IFS=$IFS; IFS=$ac_path_separator
4448 for ac_dir in $ac_dummy; do
4450 test -z "$ac_dir" && ac_dir=.
4451 $as_executable_p "$ac_dir/$ac_word" || continue
4452 ac_cv_prog_BUILD_CC="$ac_prog"
4453 echo "$as_me:4453: found $ac_dir/$ac_word" >&5
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461 echo "$as_me:4461: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6
4464 echo "$as_me:4464: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4468 test -n "$BUILD_CC" && break
4472 echo "$as_me:4472: checking for native build C compiler" >&5
4473 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4474 echo "$as_me:4474: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6
4477 echo "$as_me:4477: checking for native build C preprocessor" >&5
4478 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4480 # Check whether --with-build-cpp or --without-build-cpp was given.
4481 if test "${with_build_cpp+set}" = set; then
4482 withval="$with_build_cpp"
4483 BUILD_CPP="$withval"
4485 BUILD_CPP='${BUILD_CC} -E'
4487 echo "$as_me:4487: result: $BUILD_CPP" >&5
4488 echo "${ECHO_T}$BUILD_CPP" >&6
4490 echo "$as_me:4490: checking for native build C flags" >&5
4491 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4493 # Check whether --with-build-cflags or --without-build-cflags was given.
4494 if test "${with_build_cflags+set}" = set; then
4495 withval="$with_build_cflags"
4496 BUILD_CFLAGS="$withval"
4498 echo "$as_me:4498: result: $BUILD_CFLAGS" >&5
4499 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4501 echo "$as_me:4501: checking for native build C preprocessor-flags" >&5
4502 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4504 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4505 if test "${with_build_cppflags+set}" = set; then
4506 withval="$with_build_cppflags"
4507 BUILD_CPPFLAGS="$withval"
4509 echo "$as_me:4509: result: $BUILD_CPPFLAGS" >&5
4510 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4512 echo "$as_me:4512: checking for native build linker-flags" >&5
4513 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4515 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4516 if test "${with_build_ldflags+set}" = set; then
4517 withval="$with_build_ldflags"
4518 BUILD_LDFLAGS="$withval"
4520 echo "$as_me:4520: result: $BUILD_LDFLAGS" >&5
4521 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4523 echo "$as_me:4523: checking for native build linker-libraries" >&5
4524 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4526 # Check whether --with-build-libs or --without-build-libs was given.
4527 if test "${with_build_libs+set}" = set; then
4528 withval="$with_build_libs"
4529 BUILD_LIBS="$withval"
4531 echo "$as_me:4531: result: $BUILD_LIBS" >&5
4532 echo "${ECHO_T}$BUILD_LIBS" >&6
4534 # this assumes we're on Unix.
4538 : ${BUILD_CC:='${CC}'}
4540 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4541 { { echo "$as_me:4541: error: Cross-build requires two compilers.
4542 Use --with-build-cc to specify the native compiler." >&5
4543 echo "$as_me: error: Cross-build requires two compilers.
4544 Use --with-build-cc to specify the native compiler." >&2;}
4545 { (exit 1); exit 1; }; }
4549 : ${BUILD_CC:='${CC}'}
4550 : ${BUILD_CPP:='${CPP}'}
4551 : ${BUILD_CFLAGS:='${CFLAGS}'}
4552 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4553 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4554 : ${BUILD_LIBS:='${LIBS}'}
4555 : ${BUILD_EXEEXT:='$x'}
4556 : ${BUILD_OBJEXT:='o'}
4559 ###############################################################################
4561 ### Options to allow the user to specify the set of libraries which are used.
4562 ### Use "--without-normal --with-shared" to allow the default model to be
4563 ### shared, for example.
4566 echo "$as_me:4566: checking if libtool -version-number should be used" >&5
4567 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4569 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4570 if test "${enable_libtool_version+set}" = set; then
4571 enableval="$enable_libtool_version"
4572 test "$enableval" != no && enableval=yes
4573 if test "$enableval" != "yes" ; then
4574 cf_libtool_version=no
4576 cf_libtool_version=yes
4580 cf_libtool_version=yes
4583 echo "$as_me:4583: result: $cf_libtool_version" >&5
4584 echo "${ECHO_T}$cf_libtool_version" >&6
4586 if test "$cf_libtool_version" = yes ; then
4587 LIBTOOL_VERSION="-version-number"
4589 LIBTOOL_VERSION="-version-info"
4590 case "x$VERSION" in #(vi
4592 { echo "$as_me:4592: WARNING: VERSION was not set" >&5
4593 echo "$as_me: WARNING: VERSION was not set" >&2;}
4596 ABI_VERSION="$VERSION"
4597 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4599 echo "${as_me:-configure}:4599: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4603 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4604 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4606 echo "${as_me:-configure}:4606: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4610 { echo "$as_me:4610: WARNING: unexpected VERSION value: $VERSION" >&5
4611 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4618 # common library maintenance symbols that are convenient for libtool scripts:
4619 LIB_CREATE='${AR} -cr'
4620 LIB_OBJECT='${OBJECTS}'
4624 # symbols used to prop libtool up to enable it to determine what it should be
4632 echo "$as_me:4632: checking if you want to build libraries with libtool" >&5
4633 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4635 # Check whether --with-libtool or --without-libtool was given.
4636 if test "${with_libtool+set}" = set; then
4637 withval="$with_libtool"
4638 with_libtool=$withval
4642 echo "$as_me:4642: result: $with_libtool" >&5
4643 echo "${ECHO_T}$with_libtool" >&6
4644 if test "$with_libtool" != "no"; then
4646 if test "$with_libtool" != "yes" ; then
4648 if test "x$prefix" != xNONE; then
4649 cf_path_syntax="$prefix"
4651 cf_path_syntax="$ac_default_prefix"
4654 case ".$with_libtool" in #(vi
4655 .\$\(*\)*|.\'*\'*) #(vi
4659 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4661 .\${*prefix}*|.\${*dir}*) #(vi
4662 eval with_libtool="$with_libtool"
4663 case ".$with_libtool" in #(vi
4665 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4670 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4673 { { echo "$as_me:4673: error: expected a pathname, not \"$with_libtool\"" >&5
4674 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4675 { (exit 1); exit 1; }; }
4679 LIBTOOL=$with_libtool
4681 if test -n "$ac_tool_prefix"; then
4682 for ac_prog in libtool glibtool
4684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4686 echo "$as_me:4686: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$LIBTOOL"; then
4692 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4694 ac_save_IFS=$IFS; IFS=$ac_path_separator
4696 for ac_dir in $ac_dummy; do
4698 test -z "$ac_dir" && ac_dir=.
4699 $as_executable_p "$ac_dir/$ac_word" || continue
4700 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4701 echo "$as_me:4701: found $ac_dir/$ac_word" >&5
4707 LIBTOOL=$ac_cv_prog_LIBTOOL
4708 if test -n "$LIBTOOL"; then
4709 echo "$as_me:4709: result: $LIBTOOL" >&5
4710 echo "${ECHO_T}$LIBTOOL" >&6
4712 echo "$as_me:4712: result: no" >&5
4713 echo "${ECHO_T}no" >&6
4716 test -n "$LIBTOOL" && break
4719 if test -z "$LIBTOOL"; then
4720 ac_ct_LIBTOOL=$LIBTOOL
4721 for ac_prog in libtool glibtool
4723 # Extract the first word of "$ac_prog", so it can be a program name with args.
4724 set dummy $ac_prog; ac_word=$2
4725 echo "$as_me:4725: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4727 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 if test -n "$ac_ct_LIBTOOL"; then
4731 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4733 ac_save_IFS=$IFS; IFS=$ac_path_separator
4735 for ac_dir in $ac_dummy; do
4737 test -z "$ac_dir" && ac_dir=.
4738 $as_executable_p "$ac_dir/$ac_word" || continue
4739 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4740 echo "$as_me:4740: found $ac_dir/$ac_word" >&5
4746 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4747 if test -n "$ac_ct_LIBTOOL"; then
4748 echo "$as_me:4748: result: $ac_ct_LIBTOOL" >&5
4749 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4751 echo "$as_me:4751: result: no" >&5
4752 echo "${ECHO_T}no" >&6
4755 test -n "$ac_ct_LIBTOOL" && break
4757 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4759 LIBTOOL=$ac_ct_LIBTOOL
4762 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4764 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.].*//'`
4766 cf_cv_libtool_version=
4768 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4770 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4773 unset ac_cv_prog_ac_ct_LIBTOOL
4777 if test -n "$ac_tool_prefix"; then
4778 for ac_prog in glibtool
4780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4782 echo "$as_me:4782: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 if test -n "$LIBTOOL"; then
4788 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4790 ac_save_IFS=$IFS; IFS=$ac_path_separator
4792 for ac_dir in $ac_dummy; do
4794 test -z "$ac_dir" && ac_dir=.
4795 $as_executable_p "$ac_dir/$ac_word" || continue
4796 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4797 echo "$as_me:4797: found $ac_dir/$ac_word" >&5
4803 LIBTOOL=$ac_cv_prog_LIBTOOL
4804 if test -n "$LIBTOOL"; then
4805 echo "$as_me:4805: result: $LIBTOOL" >&5
4806 echo "${ECHO_T}$LIBTOOL" >&6
4808 echo "$as_me:4808: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 test -n "$LIBTOOL" && break
4815 if test -z "$LIBTOOL"; then
4816 ac_ct_LIBTOOL=$LIBTOOL
4817 for ac_prog in glibtool
4819 # Extract the first word of "$ac_prog", so it can be a program name with args.
4820 set dummy $ac_prog; ac_word=$2
4821 echo "$as_me:4821: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4823 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 if test -n "$ac_ct_LIBTOOL"; then
4827 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4829 ac_save_IFS=$IFS; IFS=$ac_path_separator
4831 for ac_dir in $ac_dummy; do
4833 test -z "$ac_dir" && ac_dir=.
4834 $as_executable_p "$ac_dir/$ac_word" || continue
4835 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4836 echo "$as_me:4836: found $ac_dir/$ac_word" >&5
4842 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4843 if test -n "$ac_ct_LIBTOOL"; then
4844 echo "$as_me:4844: result: $ac_ct_LIBTOOL" >&5
4845 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4847 echo "$as_me:4847: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4851 test -n "$ac_ct_LIBTOOL" && break
4853 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4855 LIBTOOL=$ac_ct_LIBTOOL
4858 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4860 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.].*//'`
4862 cf_cv_libtool_version=
4864 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4868 if test -z "$LIBTOOL" ; then
4869 { { echo "$as_me:4869: error: Cannot find libtool" >&5
4870 echo "$as_me: error: Cannot find libtool" >&2;}
4871 { (exit 1); exit 1; }; }
4873 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4874 LIB_OBJECT='${OBJECTS:.o=.lo}'
4876 LIB_CLEAN='${LIBTOOL} --mode=clean'
4877 LIB_COMPILE='${LIBTOOL} --mode=compile'
4878 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4879 LIB_INSTALL='${LIBTOOL} --mode=install'
4880 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4883 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4885 echo "$as_me:4885: checking version of $LIBTOOL" >&5
4886 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4888 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4890 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.].*//'`
4892 cf_cv_libtool_version=
4894 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4896 echo "$as_me:4896: result: $cf_cv_libtool_version" >&5
4897 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4898 if test -z "$cf_cv_libtool_version" ; then
4899 { { echo "$as_me:4899: error: This is not GNU libtool" >&5
4900 echo "$as_me: error: This is not GNU libtool" >&2;}
4901 { (exit 1); exit 1; }; }
4904 { { echo "$as_me:4904: error: GNU libtool has not been found" >&5
4905 echo "$as_me: error: GNU libtool has not been found" >&2;}
4906 { (exit 1); exit 1; }; }
4909 # special hack to add -no-undefined (which libtool should do for itself)
4911 case "$cf_cv_system_name" in #(vi
4912 cygwin*|msys*|mingw32*|uwin*|aix[4-7]) #(vi
4913 LT_UNDEF=-no-undefined
4917 # special hack to add --tag option for C++ compiler
4918 case $cf_cv_libtool_version in #(vi
4919 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4920 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4921 LIBTOOL="$LIBTOOL --tag=CC"
4924 LIBTOOL_CXX="$LIBTOOL"
4932 test -z "$LIBTOOL" && ECHO_LT=
4934 if test "$with_libtool" != "no" ; then
4936 cf_list_models="$cf_list_models libtool"
4940 echo "$as_me:4940: checking if you want to build shared libraries" >&5
4941 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4943 # Check whether --with-shared or --without-shared was given.
4944 if test "${with_shared+set}" = set; then
4945 withval="$with_shared"
4946 with_shared=$withval
4950 echo "$as_me:4950: result: $with_shared" >&5
4951 echo "${ECHO_T}$with_shared" >&6
4952 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
4954 echo "$as_me:4954: checking if you want to build static libraries" >&5
4955 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4957 # Check whether --with-normal or --without-normal was given.
4958 if test "${with_normal+set}" = set; then
4959 withval="$with_normal"
4960 with_normal=$withval
4964 echo "$as_me:4964: result: $with_normal" >&5
4965 echo "${ECHO_T}$with_normal" >&6
4966 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
4968 echo "$as_me:4968: checking if you want to build debug libraries" >&5
4969 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4971 # Check whether --with-debug or --without-debug was given.
4972 if test "${with_debug+set}" = set; then
4973 withval="$with_debug"
4978 echo "$as_me:4978: result: $with_debug" >&5
4979 echo "${ECHO_T}$with_debug" >&6
4980 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
4982 echo "$as_me:4982: checking if you want to build profiling libraries" >&5
4983 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4985 # Check whether --with-profile or --without-profile was given.
4986 if test "${with_profile+set}" = set; then
4987 withval="$with_profile"
4988 with_profile=$withval
4992 echo "$as_me:4992: result: $with_profile" >&5
4993 echo "${ECHO_T}$with_profile" >&6
4994 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
4998 if test "X$cf_with_cxx_binding" != Xno; then
4999 if test "x$with_shared" = "xyes"; then
5000 echo "$as_me:5000: checking if you want to build C++ shared libraries" >&5
5001 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5003 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5004 if test "${with_cxx_shared+set}" = set; then
5005 withval="$with_cxx_shared"
5006 with_shared_cxx=$withval
5010 echo "$as_me:5010: result: $with_shared_cxx" >&5
5011 echo "${ECHO_T}$with_shared_cxx" >&6
5015 ###############################################################################
5017 echo "$as_me:5017: checking for specified models" >&5
5018 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5019 test -z "$cf_list_models" && cf_list_models=normal
5020 test "$with_libtool" != "no" && cf_list_models=libtool
5021 echo "$as_me:5021: result: $cf_list_models" >&5
5022 echo "${ECHO_T}$cf_list_models" >&6
5024 ### Use the first model as the default, and save its suffix for use in building
5025 ### up test-applications.
5026 echo "$as_me:5026: checking for default model" >&5
5027 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5028 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5029 echo "$as_me:5029: result: $DFT_LWR_MODEL" >&5
5030 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5032 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5043 echo "$as_me:5043: checking if you want to have a library-prefix" >&5
5044 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5046 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5047 if test "${with_lib_prefix+set}" = set; then
5048 withval="$with_lib_prefix"
5049 with_lib_prefix=$withval
5051 with_lib_prefix=auto
5053 echo "$as_me:5053: result: $with_lib_prefix" >&5
5054 echo "${ECHO_T}$with_lib_prefix" >&6
5056 if test $with_lib_prefix = auto
5059 case $cf_cv_system_name in #(vi
5066 cf_prefix=$LIB_PREFIX
5068 elif test $with_lib_prefix = no
5072 LIB_PREFIX=$with_lib_prefix
5077 echo "$as_me:5077: checking for PATH separator" >&5
5078 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5079 case $cf_cv_system_name in
5080 os2*) PATH_SEPARATOR=';' ;;
5081 *) ${PATH_SEPARATOR:=':'} ;;
5084 echo "$as_me:5084: result: $PATH_SEPARATOR" >&5
5085 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5087 ###############################################################################
5089 echo "$as_me:5089: checking if you want to build a separate terminfo library" >&5
5090 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5092 # Check whether --with-termlib or --without-termlib was given.
5093 if test "${with_termlib+set}" = set; then
5094 withval="$with_termlib"
5095 with_termlib=$withval
5099 echo "$as_me:5099: result: $with_termlib" >&5
5100 echo "${ECHO_T}$with_termlib" >&6
5102 echo "$as_me:5102: checking if you want to build a separate tic library" >&5
5103 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5105 # Check whether --with-ticlib or --without-ticlib was given.
5106 if test "${with_ticlib+set}" = set; then
5107 withval="$with_ticlib"
5108 with_ticlib=$withval
5112 echo "$as_me:5112: result: $with_ticlib" >&5
5113 echo "${ECHO_T}$with_ticlib" >&6
5115 ### Checks for special libraries, must be done up-front.
5118 echo "$as_me:5118: checking if you want to link with the GPM mouse library" >&5
5119 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5121 # Check whether --with-gpm or --without-gpm was given.
5122 if test "${with_gpm+set}" = set; then
5128 echo "$as_me:5128: result: $with_gpm" >&5
5129 echo "${ECHO_T}$with_gpm" >&6
5131 if test "$with_gpm" != no ; then
5132 echo "$as_me:5132: checking for gpm.h" >&5
5133 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5134 if test "${ac_cv_header_gpm_h+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.$ac_ext <<_ACEOF
5138 #line 5138 "configure"
5139 #include "confdefs.h"
5142 if { (eval echo "$as_me:5142: \"$ac_cpp conftest.$ac_ext\"") >&5
5143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145 egrep -v '^ *\+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:5148: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null; then
5150 if test -s conftest.err; then
5151 ac_cpp_err=$ac_c_preproc_warn_flag
5158 if test -z "$ac_cpp_err"; then
5159 ac_cv_header_gpm_h=yes
5161 echo "$as_me: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5163 ac_cv_header_gpm_h=no
5165 rm -f conftest.err conftest.$ac_ext
5167 echo "$as_me:5167: result: $ac_cv_header_gpm_h" >&5
5168 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5169 if test $ac_cv_header_gpm_h = yes; then
5171 cat >>confdefs.h <<\EOF
5172 #define HAVE_GPM_H 1
5175 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5176 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5178 echo "${as_me:-configure}:5178: testing assuming we really have GPM library ..." 1>&5
5180 cat >>confdefs.h <<\EOF
5181 #define HAVE_LIBGPM 1
5185 echo "$as_me:5185: checking for Gpm_Open in -lgpm" >&5
5186 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5187 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 ac_check_lib_save_LIBS=$LIBS
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line 5193 "configure"
5194 #include "confdefs.h"
5196 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:5212: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>&5
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest$ac_exeext'
5218 { (eval echo "$as_me:5218: \"$ac_try\"") >&5
5221 echo "$as_me:5221: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_lib_gpm_Gpm_Open=yes
5225 echo "$as_me: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 ac_cv_lib_gpm_Gpm_Open=no
5229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230 LIBS=$ac_check_lib_save_LIBS
5232 echo "$as_me:5232: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5233 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5234 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5238 { { echo "$as_me:5238: error: Cannot link with GPM library" >&5
5239 echo "$as_me: error: Cannot link with GPM library" >&2;}
5240 { (exit 1); exit 1; }; }
5248 test "$with_gpm" != maybe && { echo "$as_me:5248: WARNING: Cannot find GPM header" >&5
5249 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5256 if test "$with_gpm" != no ; then
5257 echo "$as_me:5257: checking if you want to load GPM dynamically" >&5
5258 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5260 # Check whether --with-dlsym or --without-dlsym was given.
5261 if test "${with_dlsym+set}" = set; then
5262 withval="$with_dlsym"
5267 echo "$as_me:5267: result: $with_dlsym" >&5
5268 echo "${ECHO_T}$with_dlsym" >&6
5269 if test "x$with_dlsym" = xyes ; then
5272 echo "$as_me:5272: checking for dlsym" >&5
5273 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5274 if test "${ac_cv_func_dlsym+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 cat >conftest.$ac_ext <<_ACEOF
5278 #line 5278 "configure"
5279 #include "confdefs.h"
5280 /* System header to define __stub macros and hopefully few prototypes,
5281 which can conflict with char dlsym (); below. */
5283 /* Override any gcc2 internal prototype to avoid an error. */
5287 /* We use char because int might match the return type of a gcc2
5288 builtin and then its argument prototype would still apply. */
5295 /* The GNU C library defines this for functions which it implements
5296 to always fail with ENOSYS. Some functions are actually named
5297 something starting with __ and the normal name is an alias. */
5298 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5301 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:5309: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:5312: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:5315: \"$ac_try\"") >&5
5318 echo "$as_me:5318: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_func_dlsym=yes
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 echo "$as_me:5328: result: $ac_cv_func_dlsym" >&5
5329 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5330 if test $ac_cv_func_dlsym = yes; then
5335 echo "$as_me:5335: checking for dlsym in -ldl" >&5
5336 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5337 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_check_lib_save_LIBS=$LIBS
5342 cat >conftest.$ac_ext <<_ACEOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5346 /* Override any gcc2 internal prototype to avoid an error. */
5350 /* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:5362: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5365 echo "$as_me:5365: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -s conftest$ac_exeext'
5368 { (eval echo "$as_me:5368: \"$ac_try\"") >&5
5371 echo "$as_me:5371: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_cv_lib_dl_dlsym=yes
5375 echo "$as_me: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 ac_cv_lib_dl_dlsym=no
5379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_check_lib_save_LIBS
5382 echo "$as_me:5382: result: $ac_cv_lib_dl_dlsym" >&5
5383 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5384 if test $ac_cv_lib_dl_dlsym = yes; then
5392 if test "$cf_have_dlsym" = yes ; then
5393 test "$cf_have_libdl" = yes &&
5395 # Filter out duplicates - this happens with badly-designed ".pc" files...
5396 for cf_add_1lib in $LIBS
5398 for cf_add_2lib in $cf_add_libs
5400 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5406 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5410 echo "$as_me:5410: checking whether able to link to dl*() functions" >&5
5411 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5413 #line 5413 "configure"
5414 #include "confdefs.h"
5421 if ((obj = dlopen("filename", 0)) != 0) {
5422 if (dlsym(obj, "symbolname") == 0) {
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:5431: \"$ac_link\"") >&5
5432 (eval $ac_link) 2>&5
5434 echo "$as_me:5434: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:5437: \"$ac_try\"") >&5
5440 echo "$as_me:5440: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5443 cat >>confdefs.h <<\EOF
5444 #define HAVE_LIBDL 1
5448 echo "$as_me: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5451 { { echo "$as_me:5451: error: Cannot link test program for libdl" >&5
5452 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5453 { (exit 1); exit 1; }; }
5455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5456 echo "$as_me:5456: result: ok" >&5
5457 echo "${ECHO_T}ok" >&6
5459 { { echo "$as_me:5459: error: Cannot find dlsym function" >&5
5460 echo "$as_me: error: Cannot find dlsym function" >&2;}
5461 { (exit 1); exit 1; }; }
5464 if test "x$with_gpm" != xyes ; then
5465 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5467 echo "${as_me:-configure}:5467: testing assuming soname for gpm is $with_gpm ..." 1>&5
5469 cf_cv_gpm_soname="$with_gpm"
5472 echo "$as_me:5472: checking for soname of gpm library" >&5
5473 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5474 if test "${cf_cv_gpm_soname+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 cf_cv_gpm_soname=unknown
5479 if test "$cross_compiling" != yes ; then
5480 cat >conftest.$ac_ext <<CF_EOF
5484 if (Gpm_Open(0,0)) Gpm_Close();
5485 ${cf_cv_main_return:-return}(0);
5488 cf_save_LIBS="$LIBS"
5491 # Filter out duplicates - this happens with badly-designed ".pc" files...
5492 for cf_add_1lib in $LIBS
5494 for cf_add_2lib in $cf_add_libs
5496 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5502 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5506 if { (eval echo "$as_me:5506: \"$ac_compile\"") >&5
5507 (eval $ac_compile) 2>&5
5509 echo "$as_me:5509: \$? = $ac_status" >&5
5510 (exit $ac_status); } ; then
5511 if { (eval echo "$as_me:5511: \"$ac_link\"") >&5
5512 (eval $ac_link) 2>&5
5514 echo "$as_me:5514: \$? = $ac_status" >&5
5515 (exit $ac_status); } ; then
5516 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5517 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5521 LIBS="$cf_save_LIBS"
5525 echo "$as_me:5525: result: $cf_cv_gpm_soname" >&5
5526 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5529 test "$cf_cv_gpm_soname" != "unknown" &&
5530 cat >>confdefs.h <<EOF
5531 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5534 SHLIB_LIST="-ldl $SHLIB_LIST"
5536 SHLIB_LIST="-lgpm $SHLIB_LIST"
5539 # Filter out duplicates - this happens with badly-designed ".pc" files...
5540 for cf_add_1lib in $TEST_LIBS
5542 for cf_add_2lib in $cf_add_libs
5544 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5550 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5552 TEST_LIBS="$cf_add_libs"
5556 cat >>confdefs.h <<\EOF
5557 #define HAVE_LIBGPM 1
5560 echo "$as_me:5560: checking for Gpm_Wgetch in -lgpm" >&5
5561 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5562 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 ac_check_lib_save_LIBS=$LIBS
5567 cat >conftest.$ac_ext <<_ACEOF
5568 #line 5568 "configure"
5569 #include "confdefs.h"
5571 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5586 rm -f conftest.$ac_objext conftest$ac_exeext
5587 if { (eval echo "$as_me:5587: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5590 echo "$as_me:5590: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:5593: \"$ac_try\"") >&5
5596 echo "$as_me:5596: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_lib_gpm_Gpm_Wgetch=yes
5600 echo "$as_me: failed program was:" >&5
5601 cat conftest.$ac_ext >&5
5602 ac_cv_lib_gpm_Gpm_Wgetch=no
5604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5605 LIBS=$ac_check_lib_save_LIBS
5607 echo "$as_me:5607: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5608 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5609 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5611 echo "$as_me:5611: checking if GPM is weakly bound to curses library" >&5
5612 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5613 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cf_cv_check_gpm_wgetch=unknown
5618 if test "$cross_compiling" != yes ; then
5620 cat >conftest.$ac_ext <<CF_EOF
5625 ${cf_cv_main_return:-return}(0);
5629 cf_save_LIBS="$LIBS"
5630 # This only works if we can look at the symbol table. If a shared
5631 # library is stripped for install, we cannot use that. So we're forced
5632 # to rely on the static library, noting that some packagers may not
5634 LIBS="-static -lgpm -dynamic $LIBS"
5635 if { (eval echo "$as_me:5635: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>&5
5638 echo "$as_me:5638: \$? = $ac_status" >&5
5639 (exit $ac_status); } ; then
5640 if { (eval echo "$as_me:5640: \"$ac_link\"") >&5
5641 (eval $ac_link) 2>&5
5643 echo "$as_me:5643: \$? = $ac_status" >&5
5644 (exit $ac_status); } ; then
5645 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5646 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5647 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5651 LIBS="$cf_save_LIBS"
5655 echo "$as_me:5655: result: $cf_cv_check_gpm_wgetch" >&5
5656 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5658 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5659 { echo "$as_me:5659: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5660 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5667 # not everyone has "test -c"
5668 if test -c /dev/sysmouse 2>/dev/null ; then
5669 echo "$as_me:5669: checking if you want to use sysmouse" >&5
5670 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5672 # Check whether --with-sysmouse or --without-sysmouse was given.
5673 if test "${with_sysmouse+set}" = set; then
5674 withval="$with_sysmouse"
5675 cf_with_sysmouse=$withval
5677 cf_with_sysmouse=maybe
5679 if test "$cf_with_sysmouse" != no ; then
5680 cat >conftest.$ac_ext <<_ACEOF
5681 #line 5681 "configure"
5682 #include "confdefs.h"
5684 #include <osreldate.h>
5685 #if (__FreeBSD_version >= 400017)
5686 #include <sys/consio.h>
5687 #include <sys/fbio.h>
5689 #include <machine/console.h>
5696 struct mouse_info the_mouse;
5697 ioctl(0, CONS_MOUSECTL, &the_mouse);
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:5704: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>&5
5707 echo "$as_me:5707: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:5710: \"$ac_try\"") >&5
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 cf_with_sysmouse=yes
5717 echo "$as_me: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5721 rm -f conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:5723: result: $cf_with_sysmouse" >&5
5724 echo "${ECHO_T}$cf_with_sysmouse" >&6
5725 test "$cf_with_sysmouse" = yes &&
5726 cat >>confdefs.h <<\EOF
5727 #define USE_SYSMOUSE 1
5732 if test X"$CC_G_OPT" = X"" ; then
5734 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5737 if test X"$CXX_G_OPT" = X"" ; then
5739 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5742 echo "$as_me:5742: checking for default loader flags" >&5
5743 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5744 case $DFT_LWR_MODEL in
5745 libtool) LD_MODEL='' ;;
5746 normal) LD_MODEL='' ;;
5747 debug) LD_MODEL=$CC_G_OPT ;;
5748 profile) LD_MODEL='-pg';;
5749 shared) LD_MODEL='' ;;
5751 echo "$as_me:5751: result: $LD_MODEL" >&5
5752 echo "${ECHO_T}$LD_MODEL" >&6
5754 case $DFT_LWR_MODEL in
5757 echo "$as_me:5757: checking if rpath option should be used" >&5
5758 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5760 # Check whether --enable-rpath or --disable-rpath was given.
5761 if test "${enable_rpath+set}" = set; then
5762 enableval="$enable_rpath"
5763 cf_cv_enable_rpath=$enableval
5765 cf_cv_enable_rpath=no
5767 echo "$as_me:5767: result: $cf_cv_enable_rpath" >&5
5768 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5770 echo "$as_me:5770: checking if shared libraries should be relinked during install" >&5
5771 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5773 # Check whether --enable-relink or --disable-relink was given.
5774 if test "${enable_relink+set}" = set; then
5775 enableval="$enable_relink"
5776 cf_cv_do_relink=$enableval
5780 echo "$as_me:5780: result: $cf_cv_do_relink" >&5
5781 echo "${ECHO_T}$cf_cv_do_relink" >&6
5785 # we will build libraries one-level down.
5789 echo "$as_me:5789: checking for an rpath option" >&5
5790 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5791 case $cf_cv_system_name in #(vi
5793 if test "$GCC" = yes; then
5794 LD_RPATH_OPT="-Wl,-rpath,"
5796 LD_RPATH_OPT="-rpath "
5799 linux*|gnu*|k*bsd*-gnu) #(vi
5800 LD_RPATH_OPT="-Wl,-rpath,"
5802 openbsd[2-9].*|mirbsd*) #(vi
5803 LD_RPATH_OPT="-Wl,-rpath,"
5805 dragonfly*|freebsd*) #(vi
5806 LD_RPATH_OPT="-rpath "
5809 LD_RPATH_OPT="-Wl,-rpath,"
5812 LD_RPATH_OPT="-rpath "
5820 echo "$as_me:5820: result: $LD_RPATH_OPT" >&5
5821 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5823 case "x$LD_RPATH_OPT" in #(vi
5825 echo "$as_me:5825: checking if we need a space after rpath option" >&5
5826 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5827 cf_save_LIBS="$LIBS"
5829 cf_add_libs="${LD_RPATH_OPT}$libdir"
5830 # Filter out duplicates - this happens with badly-designed ".pc" files...
5831 for cf_add_1lib in $LIBS
5833 for cf_add_2lib in $cf_add_libs
5835 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5841 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5845 cat >conftest.$ac_ext <<_ACEOF
5846 #line 5846 "configure"
5847 #include "confdefs.h"
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (eval echo "$as_me:5858: \"$ac_link\"") >&5
5859 (eval $ac_link) 2>&5
5861 echo "$as_me:5861: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:5864: \"$ac_try\"") >&5
5867 echo "$as_me:5867: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5871 echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5876 LIBS="$cf_save_LIBS"
5877 echo "$as_me:5877: result: $cf_rpath_space" >&5
5878 echo "${ECHO_T}$cf_rpath_space" >&6
5879 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5887 INSTALL_LIB="-m 644"
5888 : ${rel_builddir:=.}
5894 cf_cv_do_symlinks=no
5896 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5898 echo "$as_me:5898: checking if release/abi version should be used for shared libs" >&5
5899 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5901 # Check whether --with-shlib-version or --without-shlib-version was given.
5902 if test "${with_shlib_version+set}" = set; then
5903 withval="$with_shlib_version"
5904 test -z "$withval" && withval=auto
5905 case $withval in #(vi
5907 cf_cv_shlib_version=auto
5909 rel|abi|auto|no) #(vi
5910 cf_cv_shlib_version=$withval
5913 { { echo "$as_me:5913: error: option value must be one of: rel, abi, auto or no" >&5
5914 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5915 { (exit 1); exit 1; }; }
5920 cf_cv_shlib_version=auto
5922 echo "$as_me:5922: result: $cf_cv_shlib_version" >&5
5923 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5928 # Some less-capable ports of gcc support only -fpic
5930 if test "$GCC" = yes
5932 echo "$as_me:5932: checking which $CC option to use" >&5
5933 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5934 cf_save_CFLAGS="$CFLAGS"
5935 for CC_SHARED_OPTS in -fPIC -fpic ''
5937 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line 5939 "configure"
5940 #include "confdefs.h"
5950 rm -f conftest.$ac_objext
5951 if { (eval echo "$as_me:5951: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>&5
5954 echo "$as_me:5954: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:5957: \"$ac_try\"") >&5
5960 echo "$as_me:5960: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5964 echo "$as_me: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 rm -f conftest.$ac_objext conftest.$ac_ext
5969 echo "$as_me:5969: result: $CC_SHARED_OPTS" >&5
5970 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5971 CFLAGS="$cf_save_CFLAGS"
5974 cf_cv_shlib_version_infix=no
5976 case $cf_cv_system_name in #(vi
5977 aix4.3-9*|aix[5-7]*) #(vi
5978 if test "$GCC" = yes; then
5980 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5982 # CC_SHARED_OPTS='-qpic=large -G'
5983 # perhaps "-bM:SRE -bnoentry -bexpall"
5984 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5988 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5992 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5993 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5994 cf_cv_shlib_version=cygdll
5995 cf_cv_shlib_version_infix=cygdll
5998 cat >mk_shared_lib.sh <<-CF_EOF
6001 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6004 Linking shared library
6005 ** SHARED_LIB \$SHARED_LIB
6006 ** IMPORT_LIB \$IMPORT_LIB
6008 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6010 chmod +x mk_shared_lib.sh
6014 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6015 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6016 cf_cv_shlib_version=msysdll
6017 cf_cv_shlib_version_infix=msysdll
6020 cat >mk_shared_lib.sh <<-CF_EOF
6023 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6026 Linking shared library
6027 ** SHARED_LIB \$SHARED_LIB
6028 ** IMPORT_LIB \$IMPORT_LIB
6030 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6032 chmod +x mk_shared_lib.sh
6035 cf_try_cflags="no-cpp-precomp"
6036 CC_SHARED_OPTS="-dynamic"
6037 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6038 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6039 cf_cv_shlib_version_infix=yes
6040 echo "$as_me:6040: checking if ld -search_paths_first works" >&5
6041 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6042 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cf_save_LDFLAGS=$LDFLAGS
6047 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6048 cat >conftest.$ac_ext <<_ACEOF
6049 #line 6049 "configure"
6050 #include "confdefs.h"
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:6061: \"$ac_link\"") >&5
6062 (eval $ac_link) 2>&5
6064 echo "$as_me:6064: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -s conftest$ac_exeext'
6067 { (eval echo "$as_me:6067: \"$ac_try\"") >&5
6070 echo "$as_me:6070: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 cf_cv_ldflags_search_paths_first=yes
6074 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 cf_cv_ldflags_search_paths_first=no
6078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6079 LDFLAGS=$cf_save_LDFLAGS
6081 echo "$as_me:6081: result: $cf_cv_ldflags_search_paths_first" >&5
6082 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6083 if test $cf_cv_ldflags_search_paths_first = yes; then
6084 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6088 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6089 if test "$GCC" != yes; then
6092 MK_SHARED_LIB='${LD} -b -o $@'
6093 INSTALL_LIB="-m 555"
6096 # (tested with gcc 2.7.2 -- I don't have c89)
6097 if test "$GCC" = yes; then
6098 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6101 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6103 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6104 # HP-UX shared libraries must be executable, and should be
6105 # readonly to exploit a quirk in the memory manager.
6106 INSTALL_LIB="-m 555"
6109 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6110 if test "$cf_cv_shlib_version" = rel; then
6111 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6113 cf_shared_soname='`basename `'
6116 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6119 if test "$cf_cv_enable_rpath" = yes ; then
6120 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6122 # tested with IRIX 5.2 and 'cc'.
6123 if test "$GCC" != yes; then
6124 CC_SHARED_OPTS='-KPIC'
6125 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6127 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6129 cf_cv_rm_so_locs=yes
6131 linux*|gnu*|k*bsd*-gnu) #(vi
6132 if test "$DFT_LWR_MODEL" = "shared" ; then
6133 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6134 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6136 if test "$cf_cv_enable_rpath" = yes ; then
6137 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6140 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6141 if test "$cf_cv_shlib_version" = rel; then
6142 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6144 cf_cv_shared_soname='`basename $@`'
6147 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6150 cf_cv_shlib_version=mingw
6151 cf_cv_shlib_version_infix=mingw
6154 if test "$DFT_LWR_MODEL" = "shared" ; then
6155 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6156 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6157 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6160 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6161 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6162 cat >mk_shared_lib.sh <<-CF_EOF
6165 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6168 Linking shared library
6169 ** SHARED_LIB \$SHARED_LIB
6170 ** IMPORT_LIB \$IMPORT_LIB
6172 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6174 chmod +x mk_shared_lib.sh
6176 openbsd[2-9].*|mirbsd*) #(vi
6177 if test "$DFT_LWR_MODEL" = "shared" ; then
6178 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6179 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6181 if test "$cf_cv_enable_rpath" = yes ; then
6182 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6184 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6186 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6187 if test "$cf_cv_shlib_version" = rel; then
6188 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6190 cf_cv_shared_soname='`basename $@`'
6193 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6195 nto-qnx*|openbsd*|freebsd[12].*) #(vi
6196 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6197 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6198 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6200 dragonfly*|freebsd*) #(vi
6201 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6202 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6203 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6204 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6205 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6208 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6209 if test "$cf_cv_shlib_version" = rel; then
6210 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6212 cf_cv_shared_soname='`basename $@`'
6215 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6218 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6219 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6220 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6221 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6222 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6223 if test "$cf_cv_shlib_version" = auto; then
6224 if test -f /usr/libexec/ld.elf_so; then
6225 cf_cv_shlib_version=abi
6227 cf_cv_shlib_version=rel
6231 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6232 if test "$cf_cv_shlib_version" = rel; then
6233 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6235 cf_cv_shared_soname='`basename $@`'
6238 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6240 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6244 # tested with OSF/1 V3.2 and 'cc'
6245 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6246 # link with shared libs).
6247 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6248 case $host_os in #(vi
6250 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6253 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6254 if test "$DFT_LWR_MODEL" = "shared" ; then
6255 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6256 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6258 cf_cv_rm_so_locs=yes
6260 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
6261 # tested with osr5.0.5
6262 if test "$GCC" != yes; then
6263 CC_SHARED_OPTS='-belf -KPIC'
6265 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6266 if test "$cf_cv_enable_rpath" = yes ; then
6267 # only way is to set LD_RUN_PATH but no switch for it
6270 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6271 LINK_PROGS='LD_RUN_PATH=${libdir}'
6272 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6275 # tested with SunOS 4.1.1 and gcc 2.7.0
6276 if test "$GCC" != yes; then
6277 CC_SHARED_OPTS='-KPIC'
6279 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6280 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6283 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6284 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6285 if test "$DFT_LWR_MODEL" = "shared" ; then
6286 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6287 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6289 if test "$cf_cv_enable_rpath" = yes ; then
6290 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6293 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6294 if test "$cf_cv_shlib_version" = rel; then
6295 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6297 cf_cv_shared_soname='`basename $@`'
6300 if test "$GCC" != yes; then
6301 cf_save_CFLAGS="$CFLAGS"
6302 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6304 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6305 cat >conftest.$ac_ext <<_ACEOF
6306 #line 6306 "configure"
6307 #include "confdefs.h"
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:6318: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>&5
6321 echo "$as_me:6321: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:6324: \"$ac_try\"") >&5
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6331 echo "$as_me: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 rm -f conftest.$ac_objext conftest.$ac_ext
6336 CFLAGS="$cf_save_CFLAGS"
6337 CC_SHARED_OPTS=$cf_shared_opts
6338 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6340 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6343 sysv5uw7*|unix_sv*) #(vi
6344 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6345 if test "$GCC" != yes; then
6346 CC_SHARED_OPTS='-KPIC'
6348 MK_SHARED_LIB='${LD} -d y -G -o $@'
6351 CC_SHARED_OPTS='unknown'
6352 MK_SHARED_LIB='echo unknown'
6356 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6357 case "$cf_cv_shlib_version" in #(vi
6359 case "$MK_SHARED_LIB" in #(vi
6361 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6364 { echo "$as_me:6364: WARNING: ignored --with-shlib-version" >&5
6365 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6371 if test -n "$cf_try_cflags"
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6374 "${as_me:-configure}"
6376 int main(int argc, char *argv[])
6379 return (argv[argc-1] == 0) ;
6382 cf_save_CFLAGS="$CFLAGS"
6383 for cf_opt in $cf_try_cflags
6385 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6386 echo "$as_me:6386: checking if CFLAGS option -$cf_opt works" >&5
6387 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6388 if { (eval echo "$as_me:6388: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6391 echo "$as_me:6391: \$? = $ac_status" >&5
6392 (exit $ac_status); }; then
6393 echo "$as_me:6393: result: yes" >&5
6394 echo "${ECHO_T}yes" >&6
6395 cf_save_CFLAGS="$CFLAGS"
6397 echo "$as_me:6397: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6401 CFLAGS="$cf_save_CFLAGS"
6404 # RPATH_LIST is a colon-separated list of directories
6405 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6406 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6408 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6410 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6412 echo "${as_me:-configure}:6412: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6414 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6416 echo "${as_me:-configure}:6416: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6418 for model in $cf_list_models; do
6422 echo "$as_me:6422: checking for additional libtool options" >&5
6423 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6425 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6426 if test "${with_libtool_opts+set}" = set; then
6427 withval="$with_libtool_opts"
6428 with_libtool_opts=$withval
6430 with_libtool_opts=no
6432 echo "$as_me:6432: result: $with_libtool_opts" >&5
6433 echo "${ECHO_T}$with_libtool_opts" >&6
6435 case .$with_libtool_opts in
6439 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6443 echo "$as_me:6443: checking if exported-symbols file should be used" >&5
6444 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6446 # Check whether --with-export-syms or --without-export-syms was given.
6447 if test "${with_export_syms+set}" = set; then
6448 withval="$with_export_syms"
6449 with_export_syms=$withval
6453 if test "x$with_export_syms" = xyes
6455 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6458 echo "$as_me:6458: result: $with_export_syms" >&5
6459 echo "${ECHO_T}$with_export_syms" >&6
6460 if test "x$with_export_syms" != xno
6462 EXPORT_SYMS="-export-symbols $with_export_syms"
6468 if test "$CC_SHARED_OPTS" = "unknown"; then
6469 { { echo "$as_me:6469: error: Shared libraries are not supported in this version" >&5
6470 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6471 { (exit 1); exit 1; }; }
6474 echo "$as_me:6474: checking if versioned-symbols file should be used" >&5
6475 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6477 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6478 if test "${with_versioned_syms+set}" = set; then
6479 withval="$with_versioned_syms"
6480 with_versioned_syms=$withval
6482 with_versioned_syms=no
6484 if test "x$with_versioned_syms" = xyes
6486 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6489 echo "$as_me:6489: result: $with_versioned_syms" >&5
6490 echo "${ECHO_T}$with_versioned_syms" >&6
6496 if test "x$with_versioned_syms" != xno
6498 RESULTING_SYMS=$with_versioned_syms
6499 case "x$MK_SHARED_LIB" in
6501 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6502 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6503 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6505 echo "${as_me:-configure}:6505: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6509 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6510 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6511 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6513 echo "${as_me:-configure}:6513: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6517 { echo "$as_me:6517: WARNING: this system does not support versioned-symbols" >&5
6518 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6522 # Linux ld can selectively override scope, e.g., of symbols beginning with
6523 # "_" by first declaring some as global, and then using a wildcard to
6524 # declare the others as local. Some other loaders cannot do this. Check
6525 # by constructing a (very) simple shared library and inspecting its
6527 if test "x$VERSIONED_SYMS" != "x"
6529 echo "$as_me:6529: checking if wildcards can be used to selectively omit symbols" >&5
6530 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6536 cat >conftest.ver <<EOF
6565 cat >conftest.$ac_ext <<EOF
6566 #line 6566 "configure"
6567 int _ismissing(void) { return 1; }
6568 int _localf1(void) { return 1; }
6569 int _localf2(void) { return 2; }
6570 int globalf1(void) { return 1; }
6571 int globalf2(void) { return 2; }
6572 int _sublocalf1(void) { return 1; }
6573 int _sublocalf2(void) { return 2; }
6574 int subglobalf1(void) { return 1; }
6575 int subglobalf2(void) { return 2; }
6577 cat >conftest.mk <<EOF
6580 CPPFLAGS=${CPPFLAGS}
6583 VERSIONED_SYMS=${VERSIONED_SYMS}
6584 RESULTING_SYMS=conftest.ver
6585 MK_SHARED_LIB=${MK_SHARED_LIB}
6586 conftest.so: conftest.$ac_cv_objext
6587 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6590 # compile source, make library
6591 if make -f conftest.mk 2>&5 >/dev/null
6593 # test for missing symbol
6594 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ]T[ ]'`
6595 test -n "$cf_missing" && WILDCARD_SYMS=yes
6597 echo "$as_me:6597: result: $WILDCARD_SYMS" >&5
6598 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6607 # pretend that ncurses==ncursesw==ncursest
6608 echo "$as_me:6608: checking if you want to disable library suffixes" >&5
6609 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6611 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6612 if test "${enable_lib_suffixes+set}" = set; then
6613 enableval="$enable_lib_suffixes"
6614 disable_lib_suffixes=$enableval
6616 disable_lib_suffixes=no
6618 echo "$as_me:6618: result: $disable_lib_suffixes" >&5
6619 echo "${ECHO_T}$disable_lib_suffixes" >&6
6621 ### If we're building with rpath, try to link non-standard libs that way too.
6622 if test "$DFT_LWR_MODEL" = "shared"; then
6624 echo "$as_me:6624: checking if rpath-hack should be disabled" >&5
6625 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6627 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6628 if test "${enable_rpath_hack+set}" = set; then
6629 enableval="$enable_rpath_hack"
6630 test "$enableval" != no && enableval=yes
6631 if test "$enableval" != "yes" ; then
6632 cf_disable_rpath_hack=yes
6634 cf_disable_rpath_hack=no
6638 cf_disable_rpath_hack=no
6641 echo "$as_me:6641: result: $cf_disable_rpath_hack" >&5
6642 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6643 if test "$cf_disable_rpath_hack" = no ; then
6645 echo "$as_me:6645: checking for updated LDFLAGS" >&5
6646 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6647 if test -n "$LD_RPATH_OPT" ; then
6648 echo "$as_me:6648: result: maybe" >&5
6649 echo "${ECHO_T}maybe" >&6
6653 # Extract the first word of "$ac_prog", so it can be a program name with args.
6654 set dummy $ac_prog; ac_word=$2
6655 echo "$as_me:6655: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6657 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 if test -n "$cf_ldd_prog"; then
6661 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6663 ac_save_IFS=$IFS; IFS=$ac_path_separator
6665 for ac_dir in $ac_dummy; do
6667 test -z "$ac_dir" && ac_dir=.
6668 $as_executable_p "$ac_dir/$ac_word" || continue
6669 ac_cv_prog_cf_ldd_prog="$ac_prog"
6670 echo "$as_me:6670: found $ac_dir/$ac_word" >&5
6676 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6677 if test -n "$cf_ldd_prog"; then
6678 echo "$as_me:6678: result: $cf_ldd_prog" >&5
6679 echo "${ECHO_T}$cf_ldd_prog" >&6
6681 echo "$as_me:6681: result: no" >&5
6682 echo "${ECHO_T}no" >&6
6685 test -n "$cf_ldd_prog" && break
6687 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6689 cf_rpath_list="/usr/lib /lib"
6690 if test "$cf_ldd_prog" != no
6694 cat >conftest.$ac_ext <<_ACEOF
6695 #line 6695 "configure"
6696 #include "confdefs.h"
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (eval echo "$as_me:6707: \"$ac_link\"") >&5
6708 (eval $ac_link) 2>&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -s conftest$ac_exeext'
6713 { (eval echo "$as_me:6713: \"$ac_try\"") >&5
6716 echo "$as_me:6716: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6719 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6721 echo "$as_me: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6726 # If we passed the link-test, but get a "not found" on a given library,
6727 # this could be due to inept reconfiguration of gcc to make it only
6728 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6729 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6730 # /usr/local libraries.
6731 if test -n "$cf_rpath_oops"
6733 for cf_rpath_src in $cf_rpath_oops
6735 for cf_rpath_dir in \
6740 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6742 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6744 echo "${as_me:-configure}:6744: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6746 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6754 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6756 echo "${as_me:-configure}:6756: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6758 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6760 echo "${as_me:-configure}:6760: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6763 for cf_rpath_src in $LDFLAGS
6765 case $cf_rpath_src in #(vi
6768 # check if this refers to a directory which we will ignore
6770 if test -n "$cf_rpath_list"
6772 for cf_rpath_item in $cf_rpath_list
6774 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6782 if test "$cf_rpath_skip" = no
6784 # transform the option
6785 if test "$LD_RPATH_OPT" = "-R " ; then
6786 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6788 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6791 # if we have not already added this, add it now
6792 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6793 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6795 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6797 echo "${as_me:-configure}:6797: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6799 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6804 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6806 LDFLAGS=$cf_rpath_dst
6808 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6810 echo "${as_me:-configure}:6810: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6812 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6814 echo "${as_me:-configure}:6814: testing ...checking LIBS $LIBS ..." 1>&5
6817 for cf_rpath_src in $LIBS
6819 case $cf_rpath_src in #(vi
6822 # check if this refers to a directory which we will ignore
6824 if test -n "$cf_rpath_list"
6826 for cf_rpath_item in $cf_rpath_list
6828 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6836 if test "$cf_rpath_skip" = no
6838 # transform the option
6839 if test "$LD_RPATH_OPT" = "-R " ; then
6840 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6842 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6845 # if we have not already added this, add it now
6846 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6847 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6849 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6851 echo "${as_me:-configure}:6851: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6853 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6858 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6862 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6864 echo "${as_me:-configure}:6864: testing ...checked LIBS $LIBS ..." 1>&5
6866 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6868 echo "${as_me:-configure}:6868: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6871 echo "$as_me:6871: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6879 ###############################################################################
6881 ### use option --disable-overwrite to leave out the link to -lcurses
6882 echo "$as_me:6882: checking if you wish to install ncurses overwriting curses" >&5
6883 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6885 # Check whether --enable-overwrite or --disable-overwrite was given.
6886 if test "${enable_overwrite+set}" = set; then
6887 enableval="$enable_overwrite"
6888 with_overwrite=$enableval
6890 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6892 echo "$as_me:6892: result: $with_overwrite" >&5
6893 echo "${ECHO_T}$with_overwrite" >&6
6895 echo "$as_me:6895: checking if external terminfo-database is used" >&5
6896 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6898 # Check whether --enable-database or --disable-database was given.
6899 if test "${enable_database+set}" = set; then
6900 enableval="$enable_database"
6901 use_database=$enableval
6905 echo "$as_me:6905: result: $use_database" >&5
6906 echo "${ECHO_T}$use_database" >&6
6908 case $host_os in #(vi
6910 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6913 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6917 NCURSES_USE_DATABASE=0
6918 if test "$use_database" != no ; then
6919 NCURSES_USE_DATABASE=1
6921 echo "$as_me:6921: checking which terminfo source-file will be installed" >&5
6922 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6924 # Check whether --with-database or --without-database was given.
6925 if test "${with_database+set}" = set; then
6926 withval="$with_database"
6927 TERMINFO_SRC=$withval
6929 echo "$as_me:6929: result: $TERMINFO_SRC" >&5
6930 echo "${ECHO_T}$TERMINFO_SRC" >&6
6932 echo "$as_me:6932: checking whether to use hashed database instead of directory/tree" >&5
6933 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6935 # Check whether --with-hashed-db or --without-hashed-db was given.
6936 if test "${with_hashed_db+set}" = set; then
6937 withval="$with_hashed_db"
6942 echo "$as_me:6942: result: $with_hashed_db" >&5
6943 echo "${ECHO_T}$with_hashed_db" >&6
6948 echo "$as_me:6948: checking for list of fallback descriptions" >&5
6949 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6951 # Check whether --with-fallbacks or --without-fallbacks was given.
6952 if test "${with_fallbacks+set}" = set; then
6953 withval="$with_fallbacks"
6954 with_fallback=$withval
6958 echo "$as_me:6958: result: $with_fallback" >&5
6959 echo "${ECHO_T}$with_fallback" >&6
6960 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6962 echo "$as_me:6962: checking if you want modern xterm or antique" >&5
6963 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6965 # Check whether --with-xterm-new or --without-xterm-new was given.
6966 if test "${with_xterm_new+set}" = set; then
6967 withval="$with_xterm_new"
6968 with_xterm_new=$withval
6972 case $with_xterm_new in
6973 no) with_xterm_new=xterm-old;;
6974 *) with_xterm_new=xterm-new;;
6976 echo "$as_me:6976: result: $with_xterm_new" >&5
6977 echo "${ECHO_T}$with_xterm_new" >&6
6978 WHICH_XTERM=$with_xterm_new
6980 echo "$as_me:6980: checking if xterm backspace sends BS or DEL" >&5
6981 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6983 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6984 if test "${with_xterm_kbs+set}" = set; then
6985 withval="$with_xterm_kbs"
6986 with_xterm_kbs=$withval
6990 case x$with_xterm_kbs in
6991 xyes|xno|xBS|xbs|x8)
6998 with_xterm_kbs=$withval
7001 echo "$as_me:7001: result: $with_xterm_kbs" >&5
7002 echo "${ECHO_T}$with_xterm_kbs" >&6
7003 XTERM_KBS=$with_xterm_kbs
7006 if test "$use_database" = no ; then
7007 TERMINFO="${datadir}/terminfo"
7011 echo "$as_me:7011: checking for list of terminfo directories" >&5
7012 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7014 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7015 if test "${with_terminfo_dirs+set}" = set; then
7016 withval="$with_terminfo_dirs"
7019 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7021 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7023 for cf_src_path in $withval
7026 if test "x$prefix" != xNONE; then
7027 cf_path_syntax="$prefix"
7029 cf_path_syntax="$ac_default_prefix"
7032 case ".$cf_src_path" in #(vi
7033 .\$\(*\)*|.\'*\'*) #(vi
7037 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
7039 .\${*prefix}*|.\${*dir}*) #(vi
7040 eval cf_src_path="$cf_src_path"
7041 case ".$cf_src_path" in #(vi
7043 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7048 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7051 { { echo "$as_me:7051: error: expected a pathname, not \"$cf_src_path\"" >&5
7052 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7053 { (exit 1); exit 1; }; }
7057 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7058 cf_dst_path="${cf_dst_path}${cf_src_path}"
7062 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7063 # so we have to check/work around. We do prefer the result of "eval"...
7064 eval cf_dst_eval="$cf_dst_path"
7065 case "x$cf_dst_eval" in #(vi
7067 TERMINFO_DIRS=$cf_dst_path
7070 TERMINFO_DIRS="$cf_dst_eval"
7074 echo "$as_me:7074: result: $TERMINFO_DIRS" >&5
7075 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7076 test -n "$TERMINFO_DIRS" &&
7077 cat >>confdefs.h <<EOF
7078 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7081 echo "$as_me:7081: checking for default terminfo directory" >&5
7082 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7084 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7085 if test "${with_default_terminfo_dir+set}" = set; then
7086 withval="$with_default_terminfo_dir"
7089 withval="${TERMINFO:-${datadir}/terminfo}"
7090 fi; if test -n "${datadir}/terminfo" ; then
7092 if test "x$prefix" != xNONE; then
7093 cf_path_syntax="$prefix"
7095 cf_path_syntax="$ac_default_prefix"
7098 case ".$withval" in #(vi
7099 .\$\(*\)*|.\'*\'*) #(vi
7103 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
7105 .\${*prefix}*|.\${*dir}*) #(vi
7106 eval withval="$withval"
7107 case ".$withval" in #(vi
7109 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7114 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7117 { { echo "$as_me:7117: error: expected a pathname, not \"$withval\"" >&5
7118 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7119 { (exit 1); exit 1; }; }
7124 eval TERMINFO="$withval"
7126 echo "$as_me:7126: result: $TERMINFO" >&5
7127 echo "${ECHO_T}$TERMINFO" >&6
7129 cat >>confdefs.h <<EOF
7130 #define TERMINFO "$TERMINFO"
7135 ### use option --disable-big-core to make tic run on small machines
7136 ### We need 4Mb, check if we can allocate 50% more than that.
7137 echo "$as_me:7137: checking if big-core option selected" >&5
7138 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7140 # Check whether --enable-big-core or --disable-big-core was given.
7141 if test "${enable_big_core+set}" = set; then
7142 enableval="$enable_big_core"
7143 with_big_core=$enableval
7145 if test "$cross_compiling" = yes; then
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line 7149 "configure"
7150 #include "confdefs.h"
7155 unsigned long n = 6000000L;
7156 char *s = malloc(n);
7159 ${cf_cv_main_return:-return}(s == 0);
7162 rm -f conftest$ac_exeext
7163 if { (eval echo "$as_me:7163: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>&5
7166 echo "$as_me:7166: \$? = $ac_status" >&5
7167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7168 { (eval echo "$as_me:7168: \"$ac_try\"") >&5
7171 echo "$as_me:7171: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7175 echo "$as_me: program exited with status $ac_status" >&5
7176 echo "$as_me: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7180 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:7183: result: $with_big_core" >&5
7184 echo "${ECHO_T}$with_big_core" >&6
7185 test "x$with_big_core" = "xyes" &&
7186 cat >>confdefs.h <<\EOF
7187 #define HAVE_BIG_CORE 1
7190 ### ISO C only guarantees 512-char strings, we have tables which load faster
7191 ### when constructed using "big" strings. More than the C compiler, the awk
7192 ### program is a limit on most vendor UNIX systems. Check that we can build.
7193 echo "$as_me:7193: checking if big-strings option selected" >&5
7194 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7196 # Check whether --enable-big-strings or --disable-big-strings was given.
7197 if test "${enable_big_strings+set}" = set; then
7198 enableval="$enable_big_strings"
7199 with_big_strings=$enableval
7204 eval with_big_strings=no
7207 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7208 | $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
7209 eval with_big_strings=yes
7211 eval with_big_strings=no
7217 echo "$as_me:7217: result: $with_big_strings" >&5
7218 echo "${ECHO_T}$with_big_strings" >&6
7221 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7223 ### use option --enable-termcap to compile in the termcap fallback support
7224 echo "$as_me:7224: checking if you want termcap-fallback support" >&5
7225 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7227 # Check whether --enable-termcap or --disable-termcap was given.
7228 if test "${enable_termcap+set}" = set; then
7229 enableval="$enable_termcap"
7230 with_termcap=$enableval
7234 echo "$as_me:7234: result: $with_termcap" >&5
7235 echo "${ECHO_T}$with_termcap" >&6
7237 NCURSES_USE_TERMCAP=0
7238 if test "x$with_termcap" != "xyes" ; then
7239 if test "$use_database" = no ; then
7240 if test -z "$with_fallback" ; then
7241 { { echo "$as_me:7241: error: You have disabled the database w/o specifying fallbacks" >&5
7242 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7243 { (exit 1); exit 1; }; }
7247 cat >>confdefs.h <<\EOF
7248 #define PURE_TERMINFO 1
7253 if test "$with_ticlib" != no ; then
7254 { { echo "$as_me:7254: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7255 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7256 { (exit 1); exit 1; }; }
7259 NCURSES_USE_TERMCAP=1
7260 echo "$as_me:7260: checking for list of termcap files" >&5
7261 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7263 # Check whether --with-termpath or --without-termpath was given.
7264 if test "${with_termpath+set}" = set; then
7265 withval="$with_termpath"
7268 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7270 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7272 for cf_src_path in $withval
7275 if test "x$prefix" != xNONE; then
7276 cf_path_syntax="$prefix"
7278 cf_path_syntax="$ac_default_prefix"
7281 case ".$cf_src_path" in #(vi
7282 .\$\(*\)*|.\'*\'*) #(vi
7286 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
7288 .\${*prefix}*|.\${*dir}*) #(vi
7289 eval cf_src_path="$cf_src_path"
7290 case ".$cf_src_path" in #(vi
7292 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7297 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7300 { { echo "$as_me:7300: error: expected a pathname, not \"$cf_src_path\"" >&5
7301 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7302 { (exit 1); exit 1; }; }
7306 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7307 cf_dst_path="${cf_dst_path}${cf_src_path}"
7311 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7312 # so we have to check/work around. We do prefer the result of "eval"...
7313 eval cf_dst_eval="$cf_dst_path"
7314 case "x$cf_dst_eval" in #(vi
7316 TERMPATH=$cf_dst_path
7319 TERMPATH="$cf_dst_eval"
7323 echo "$as_me:7323: result: $TERMPATH" >&5
7324 echo "${ECHO_T}$TERMPATH" >&6
7325 test -n "$TERMPATH" &&
7326 cat >>confdefs.h <<EOF
7327 #define TERMPATH "$TERMPATH"
7330 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7331 echo "$as_me:7331: checking if fast termcap-loader is needed" >&5
7332 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7334 # Check whether --enable-getcap or --disable-getcap was given.
7335 if test "${enable_getcap+set}" = set; then
7336 enableval="$enable_getcap"
7337 with_getcap=$enableval
7341 echo "$as_me:7341: result: $with_getcap" >&5
7342 echo "${ECHO_T}$with_getcap" >&6
7343 test "x$with_getcap" = "xyes" &&
7344 cat >>confdefs.h <<\EOF
7345 #define USE_GETCAP 1
7348 echo "$as_me:7348: checking if translated termcaps will be cached in ~/.terminfo" >&5
7349 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7351 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7352 if test "${enable_getcap_cache+set}" = set; then
7353 enableval="$enable_getcap_cache"
7354 with_getcap_cache=$enableval
7356 with_getcap_cache=no
7358 echo "$as_me:7358: result: $with_getcap_cache" >&5
7359 echo "${ECHO_T}$with_getcap_cache" >&6
7360 test "x$with_getcap_cache" = "xyes" &&
7361 cat >>confdefs.h <<\EOF
7362 #define USE_GETCAP_CACHE 1
7367 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7368 echo "$as_me:7368: checking if ~/.terminfo is wanted" >&5
7369 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7371 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7372 if test "${enable_home_terminfo+set}" = set; then
7373 enableval="$enable_home_terminfo"
7374 with_home_terminfo=$enableval
7376 with_home_terminfo=yes
7378 echo "$as_me:7378: result: $with_home_terminfo" >&5
7379 echo "${ECHO_T}$with_home_terminfo" >&6
7380 test "x$with_home_terminfo" = "xyes" &&
7381 cat >>confdefs.h <<\EOF
7382 #define USE_HOME_TERMINFO 1
7385 echo "$as_me:7385: checking if you want to use restricted environment when running as root" >&5
7386 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7388 # Check whether --enable-root-environ or --disable-root-environ was given.
7389 if test "${enable_root_environ+set}" = set; then
7390 enableval="$enable_root_environ"
7391 with_root_environ=$enableval
7393 with_root_environ=yes
7395 echo "$as_me:7395: result: $with_root_environ" >&5
7396 echo "${ECHO_T}$with_root_environ" >&6
7397 test "x$with_root_environ" = xyes &&
7398 cat >>confdefs.h <<\EOF
7399 #define USE_ROOT_ENVIRON 1
7402 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7403 ### to reduce storage requirements for the terminfo database.
7409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7410 echo "$as_me:7410: checking for $ac_func" >&5
7411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7412 if eval "test \"\${$as_ac_var+set}\" = set"; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line 7416 "configure"
7417 #include "confdefs.h"
7418 /* System header to define __stub macros and hopefully few prototypes,
7419 which can conflict with char $ac_func (); below. */
7421 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7433 /* The GNU C library defines this for functions which it implements
7434 to always fail with ENOSYS. Some functions are actually named
7435 something starting with __ and the normal name is an alias. */
7436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7439 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:7447: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7450 echo "$as_me:7450: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:7453: \"$ac_try\"") >&5
7456 echo "$as_me:7456: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 eval "$as_ac_var=yes"
7460 echo "$as_me: failed program was:" >&5
7461 cat conftest.$ac_ext >&5
7462 eval "$as_ac_var=no"
7464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7466 echo "$as_me:7466: result: `eval echo '${'$as_ac_var'}'`" >&5
7467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7468 if test `eval echo '${'$as_ac_var'}'` = yes; then
7469 cat >>confdefs.h <<EOF
7470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7476 if test "$cross_compiling" = yes ; then
7482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7483 echo "$as_me:7483: checking for $ac_func" >&5
7484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_var+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line 7489 "configure"
7490 #include "confdefs.h"
7491 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char $ac_func (); below. */
7494 /* Override any gcc2 internal prototype to avoid an error. */
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7512 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:7520: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>&5
7523 echo "$as_me:7523: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:7526: \"$ac_try\"") >&5
7529 echo "$as_me:7529: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 eval "$as_ac_var=yes"
7533 echo "$as_me: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7535 eval "$as_ac_var=no"
7537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7539 echo "$as_me:7539: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h <<EOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7550 echo "$as_me:7550: checking if link/symlink functions work" >&5
7551 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7552 if test "${cf_cv_link_funcs+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 for cf_func in link symlink ; do
7558 if test "$cross_compiling" = yes; then
7560 eval 'ac_cv_func_'$cf_func'=error'
7562 cat >conftest.$ac_ext <<_ACEOF
7563 #line 7563 "configure"
7564 #include "confdefs.h"
7566 #include <sys/types.h>
7567 #include <sys/stat.h>
7568 #ifdef HAVE_UNISTD_H
7574 char *src = "config.log";
7575 char *dst = "conftest.chk";
7580 fail = ($cf_func("config.log", "conftest.chk") < 0)
7581 || (stat(dst, &dst_sb) < 0)
7582 || (dst_sb.st_mtime != src_sb.st_mtime);
7588 ${cf_cv_main_return:-return} (fail);
7592 rm -f conftest$ac_exeext
7593 if { (eval echo "$as_me:7593: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7596 echo "$as_me:7596: \$? = $ac_status" >&5
7597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7598 { (eval echo "$as_me:7598: \"$ac_try\"") >&5
7601 echo "$as_me:7601: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7604 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7605 eval 'ac_cv_func_'$cf_func'=yes'
7607 echo "$as_me: program exited with status $ac_status" >&5
7608 echo "$as_me: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7611 eval 'ac_cv_func_'$cf_func'=no'
7613 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7616 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7619 echo "$as_me:7619: result: $cf_cv_link_funcs" >&5
7620 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7621 test "$ac_cv_func_link" = yes &&
7622 cat >>confdefs.h <<\EOF
7626 test "$ac_cv_func_symlink" = yes &&
7627 cat >>confdefs.h <<\EOF
7628 #define HAVE_SYMLINK 1
7636 # soft links (symbolic links) are useful for some systems where hard links do
7637 # not work, or to make it simpler to copy terminfo trees around.
7638 if test "x$ac_cv_func_symlink" = xyes ; then
7639 echo "$as_me:7639: checking if tic should use symbolic links" >&5
7640 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7642 # Check whether --enable-symlinks or --disable-symlinks was given.
7643 if test "${enable_symlinks+set}" = set; then
7644 enableval="$enable_symlinks"
7645 with_symlinks=$enableval
7649 echo "$as_me:7649: result: $with_symlinks" >&5
7650 echo "${ECHO_T}$with_symlinks" >&6
7653 # If we have hard links and did not choose to use soft links instead, there is
7654 # no reason to make this choice optional - use the hard links.
7655 if test "$with_symlinks" = no ; then
7656 echo "$as_me:7656: checking if tic should use hard links" >&5
7657 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7658 if test "x$ac_cv_func_link" = xyes ; then
7663 echo "$as_me:7663: result: $with_links" >&5
7664 echo "${ECHO_T}$with_links" >&6
7667 test "x$with_links" = xyes &&
7668 cat >>confdefs.h <<\EOF
7672 test "x$with_symlinks" = xyes &&
7673 cat >>confdefs.h <<\EOF
7674 #define USE_SYMLINKS 1
7677 ### use option --enable-broken-linker to force on use of broken-linker support
7678 echo "$as_me:7678: checking if you want broken-linker support code" >&5
7679 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7681 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7682 if test "${enable_broken_linker+set}" = set; then
7683 enableval="$enable_broken_linker"
7684 with_broken_linker=$enableval
7686 with_broken_linker=${BROKEN_LINKER:-no}
7688 echo "$as_me:7688: result: $with_broken_linker" >&5
7689 echo "${ECHO_T}$with_broken_linker" >&6
7692 if test "x$with_broken_linker" = xyes ; then
7694 cat >>confdefs.h <<\EOF
7695 #define BROKEN_LINKER 1
7699 elif test "$DFT_LWR_MODEL" = shared ; then
7700 case $cf_cv_system_name in #(vi
7703 cat >>confdefs.h <<\EOF
7704 #define BROKEN_LINKER 1
7708 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7710 echo "${as_me:-configure}:7710: testing cygwin linker is broken anyway ..." 1>&5
7716 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7717 echo "$as_me:7717: checking if tputs should process BSD-style prefix padding" >&5
7718 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7720 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7721 if test "${enable_bsdpad+set}" = set; then
7722 enableval="$enable_bsdpad"
7723 with_bsdpad=$enableval
7727 echo "$as_me:7727: result: $with_bsdpad" >&5
7728 echo "${ECHO_T}$with_bsdpad" >&6
7729 test "x$with_bsdpad" = xyes &&
7730 cat >>confdefs.h <<\EOF
7734 ### use option --enable-widec to turn on use of wide-character support
7743 # Check to define _XOPEN_SOURCE "automatically"
7746 cf_POSIX_C_SOURCE=199506L
7749 case $host_os in #(vi
7751 cf_xopen_source="-D_ALL_SOURCE"
7757 cf_xopen_source="-D_APPLE_C_SOURCE"
7760 cf_xopen_source="-D_DARWIN_C_SOURCE"
7763 freebsd*|dragonfly*) #(vi
7764 # 5.x headers associate
7765 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7766 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7767 cf_POSIX_C_SOURCE=200112L
7769 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7772 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7775 cf_xopen_source="-D_HPUX_SOURCE"
7778 cf_xopen_source="-D_SGI_SOURCE"
7781 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7783 echo "$as_me:7783: checking if we must define _GNU_SOURCE" >&5
7784 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7785 if test "${cf_cv_gnu_source+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 cat >conftest.$ac_ext <<_ACEOF
7790 #line 7790 "configure"
7791 #include "confdefs.h"
7792 #include <sys/types.h>
7797 #ifndef _XOPEN_SOURCE
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:7805: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>&5
7808 echo "$as_me:7808: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try='test -s conftest.$ac_objext'
7811 { (eval echo "$as_me:7811: \"$ac_try\"") >&5
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); }; }; then
7818 echo "$as_me: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line 7823 "configure"
7824 #include "confdefs.h"
7825 #include <sys/types.h>
7830 #ifdef _XOPEN_SOURCE
7837 rm -f conftest.$ac_objext
7838 if { (eval echo "$as_me:7838: \"$ac_compile\"") >&5
7839 (eval $ac_compile) 2>&5
7841 echo "$as_me:7841: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:7844: \"$ac_try\"") >&5
7847 echo "$as_me:7847: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7851 echo "$as_me: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7853 cf_cv_gnu_source=yes
7855 rm -f conftest.$ac_objext conftest.$ac_ext
7859 rm -f conftest.$ac_objext conftest.$ac_ext
7862 echo "$as_me:7862: result: $cf_cv_gnu_source" >&5
7863 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7864 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7868 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
7871 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7874 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7876 cf_save_CFLAGS="$CFLAGS"
7877 cf_save_CPPFLAGS="$CPPFLAGS"
7879 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7880 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7881 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7883 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7884 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7885 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7887 echo "$as_me:7887: checking if we should define _POSIX_C_SOURCE" >&5
7888 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7889 if test "${cf_cv_posix_c_source+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 echo "${as_me:-configure}:7893: testing if the symbol is already defined go no further ..." 1>&5
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line 7896 "configure"
7897 #include "confdefs.h"
7898 #include <sys/types.h>
7903 #ifndef _POSIX_C_SOURCE
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:7911: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>&5
7914 echo "$as_me:7914: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:7917: \"$ac_try\"") >&5
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 cf_cv_posix_c_source=no
7924 echo "$as_me: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 cf_want_posix_source=no
7927 case .$cf_POSIX_C_SOURCE in #(vi
7929 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7932 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7933 cf_want_posix_source=yes
7936 cf_want_posix_source=yes
7939 if test "$cf_want_posix_source" = yes ; then
7940 cat >conftest.$ac_ext <<_ACEOF
7941 #line 7941 "configure"
7942 #include "confdefs.h"
7943 #include <sys/types.h>
7948 #ifdef _POSIX_SOURCE
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:7956: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>&5
7959 echo "$as_me:7959: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:7962: \"$ac_try\"") >&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7969 echo "$as_me: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7971 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7973 rm -f conftest.$ac_objext conftest.$ac_ext
7976 echo "${as_me:-configure}:7976: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7978 CFLAGS="$cf_trim_CFLAGS"
7979 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7981 echo "${as_me:-configure}:7981: testing if the second compile does not leave our definition intact error ..." 1>&5
7983 cat >conftest.$ac_ext <<_ACEOF
7984 #line 7984 "configure"
7985 #include "confdefs.h"
7986 #include <sys/types.h>
7991 #ifndef _POSIX_C_SOURCE
7998 rm -f conftest.$ac_objext
7999 if { (eval echo "$as_me:7999: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>&5
8002 echo "$as_me:8002: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
8004 { ac_try='test -s conftest.$ac_objext'
8005 { (eval echo "$as_me:8005: \"$ac_try\"") >&5
8008 echo "$as_me:8008: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8012 echo "$as_me: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8014 cf_cv_posix_c_source=no
8016 rm -f conftest.$ac_objext conftest.$ac_ext
8017 CFLAGS="$cf_save_CFLAGS"
8018 CPPFLAGS="$cf_save_CPPFLAGS"
8021 rm -f conftest.$ac_objext conftest.$ac_ext
8024 echo "$as_me:8024: result: $cf_cv_posix_c_source" >&5
8025 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8027 if test "$cf_cv_posix_c_source" != no ; then
8028 CFLAGS="$cf_trim_CFLAGS"
8029 CPPFLAGS="$cf_trim_CPPFLAGS"
8034 cf_new_extra_cppflags=
8036 for cf_add_cflags in $cf_cv_posix_c_source
8038 case $cf_fix_cppflags in
8040 case $cf_add_cflags in #(vi
8041 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8042 case $cf_add_cflags in
8044 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8046 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8047 && test -z "${cf_tst_cflags}" \
8048 && cf_fix_cppflags=yes
8050 if test $cf_fix_cppflags = yes ; then
8051 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8053 elif test "${cf_tst_cflags}" = "\"'" ; then
8054 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8060 *$cf_add_cflags) #(vi
8063 case $cf_add_cflags in #(vi
8065 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8067 CPPFLAGS=`echo "$CPPFLAGS" | \
8068 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8069 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8073 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8078 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8085 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8087 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8088 && test -z "${cf_tst_cflags}" \
8089 && cf_fix_cppflags=no
8094 if test -n "$cf_new_cflags" ; then
8096 CFLAGS="$CFLAGS $cf_new_cflags"
8099 if test -n "$cf_new_cppflags" ; then
8101 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8104 if test -n "$cf_new_extra_cppflags" ; then
8106 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8113 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8116 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8117 cf_xopen_source="-D_BSD_SOURCE"
8121 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8124 cf_xopen_source="-D_OSF_SOURCE"
8127 cf_xopen_source="-D_QNX_SOURCE"
8130 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8133 cf_xopen_source="-D__EXTENSIONS__"
8134 cf_cv_xopen_source=broken
8136 sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8142 echo "$as_me:8142: checking if we should define _XOPEN_SOURCE" >&5
8143 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8144 if test "${cf_cv_xopen_source+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line 8149 "configure"
8150 #include "confdefs.h"
8154 #include <sys/types.h>
8160 #ifndef _XOPEN_SOURCE
8167 rm -f conftest.$ac_objext
8168 if { (eval echo "$as_me:8168: \"$ac_compile\"") >&5
8169 (eval $ac_compile) 2>&5
8171 echo "$as_me:8171: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:8174: \"$ac_try\"") >&5
8177 echo "$as_me:8177: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 cf_cv_xopen_source=no
8181 echo "$as_me: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8184 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line 8186 "configure"
8187 #include "confdefs.h"
8191 #include <sys/types.h>
8197 #ifdef _XOPEN_SOURCE
8204 rm -f conftest.$ac_objext
8205 if { (eval echo "$as_me:8205: \"$ac_compile\"") >&5
8206 (eval $ac_compile) 2>&5
8208 echo "$as_me:8208: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -s conftest.$ac_objext'
8211 { (eval echo "$as_me:8211: \"$ac_try\"") >&5
8214 echo "$as_me:8214: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 cf_cv_xopen_source=no
8218 echo "$as_me: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8220 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8222 rm -f conftest.$ac_objext conftest.$ac_ext
8226 rm -f conftest.$ac_objext conftest.$ac_ext
8229 echo "$as_me:8229: result: $cf_cv_xopen_source" >&5
8230 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8232 if test "$cf_cv_xopen_source" != no ; then
8234 CFLAGS=`echo "$CFLAGS" | \
8235 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8236 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8238 CPPFLAGS=`echo "$CPPFLAGS" | \
8239 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8240 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8242 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8247 cf_new_extra_cppflags=
8249 for cf_add_cflags in $cf_temp_xopen_source
8251 case $cf_fix_cppflags in
8253 case $cf_add_cflags in #(vi
8254 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8255 case $cf_add_cflags in
8257 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8259 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8260 && test -z "${cf_tst_cflags}" \
8261 && cf_fix_cppflags=yes
8263 if test $cf_fix_cppflags = yes ; then
8264 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8266 elif test "${cf_tst_cflags}" = "\"'" ; then
8267 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8273 *$cf_add_cflags) #(vi
8276 case $cf_add_cflags in #(vi
8278 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8280 CPPFLAGS=`echo "$CPPFLAGS" | \
8281 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8282 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8286 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8291 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8296 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8298 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8300 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8301 && test -z "${cf_tst_cflags}" \
8302 && cf_fix_cppflags=no
8307 if test -n "$cf_new_cflags" ; then
8309 CFLAGS="$CFLAGS $cf_new_cflags"
8312 if test -n "$cf_new_cppflags" ; then
8314 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8317 if test -n "$cf_new_extra_cppflags" ; then
8319 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8324 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8326 cf_save_CFLAGS="$CFLAGS"
8327 cf_save_CPPFLAGS="$CPPFLAGS"
8329 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8330 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8331 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8333 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8334 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8335 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8337 echo "$as_me:8337: checking if we should define _POSIX_C_SOURCE" >&5
8338 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8339 if test "${cf_cv_posix_c_source+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 echo "${as_me:-configure}:8343: testing if the symbol is already defined go no further ..." 1>&5
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line 8346 "configure"
8347 #include "confdefs.h"
8348 #include <sys/types.h>
8353 #ifndef _POSIX_C_SOURCE
8360 rm -f conftest.$ac_objext
8361 if { (eval echo "$as_me:8361: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>&5
8364 echo "$as_me:8364: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -s conftest.$ac_objext'
8367 { (eval echo "$as_me:8367: \"$ac_try\"") >&5
8370 echo "$as_me:8370: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 cf_cv_posix_c_source=no
8374 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 cf_want_posix_source=no
8377 case .$cf_POSIX_C_SOURCE in #(vi
8379 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8382 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8383 cf_want_posix_source=yes
8386 cf_want_posix_source=yes
8389 if test "$cf_want_posix_source" = yes ; then
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8393 #include <sys/types.h>
8398 #ifdef _POSIX_SOURCE
8405 rm -f conftest.$ac_objext
8406 if { (eval echo "$as_me:8406: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>&5
8409 echo "$as_me:8409: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -s conftest.$ac_objext'
8412 { (eval echo "$as_me:8412: \"$ac_try\"") >&5
8415 echo "$as_me:8415: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8419 echo "$as_me: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8423 rm -f conftest.$ac_objext conftest.$ac_ext
8426 echo "${as_me:-configure}:8426: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8428 CFLAGS="$cf_trim_CFLAGS"
8429 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8431 echo "${as_me:-configure}:8431: testing if the second compile does not leave our definition intact error ..." 1>&5
8433 cat >conftest.$ac_ext <<_ACEOF
8434 #line 8434 "configure"
8435 #include "confdefs.h"
8436 #include <sys/types.h>
8441 #ifndef _POSIX_C_SOURCE
8448 rm -f conftest.$ac_objext
8449 if { (eval echo "$as_me:8449: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>&5
8452 echo "$as_me:8452: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -s conftest.$ac_objext'
8455 { (eval echo "$as_me:8455: \"$ac_try\"") >&5
8458 echo "$as_me:8458: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8462 echo "$as_me: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8464 cf_cv_posix_c_source=no
8466 rm -f conftest.$ac_objext conftest.$ac_ext
8467 CFLAGS="$cf_save_CFLAGS"
8468 CPPFLAGS="$cf_save_CPPFLAGS"
8471 rm -f conftest.$ac_objext conftest.$ac_ext
8474 echo "$as_me:8474: result: $cf_cv_posix_c_source" >&5
8475 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8477 if test "$cf_cv_posix_c_source" != no ; then
8478 CFLAGS="$cf_trim_CFLAGS"
8479 CPPFLAGS="$cf_trim_CPPFLAGS"
8484 cf_new_extra_cppflags=
8486 for cf_add_cflags in $cf_cv_posix_c_source
8488 case $cf_fix_cppflags in
8490 case $cf_add_cflags in #(vi
8491 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8492 case $cf_add_cflags in
8494 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8496 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8497 && test -z "${cf_tst_cflags}" \
8498 && cf_fix_cppflags=yes
8500 if test $cf_fix_cppflags = yes ; then
8501 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8503 elif test "${cf_tst_cflags}" = "\"'" ; then
8504 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8510 *$cf_add_cflags) #(vi
8513 case $cf_add_cflags in #(vi
8515 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8517 CPPFLAGS=`echo "$CPPFLAGS" | \
8518 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8519 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8523 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8528 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8533 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8537 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8538 && test -z "${cf_tst_cflags}" \
8539 && cf_fix_cppflags=no
8544 if test -n "$cf_new_cflags" ; then
8546 CFLAGS="$CFLAGS $cf_new_cflags"
8549 if test -n "$cf_new_cppflags" ; then
8551 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8554 if test -n "$cf_new_extra_cppflags" ; then
8556 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8564 if test -n "$cf_xopen_source" ; then
8569 cf_new_extra_cppflags=
8571 for cf_add_cflags in $cf_xopen_source
8573 case $cf_fix_cppflags in
8575 case $cf_add_cflags in #(vi
8576 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8577 case $cf_add_cflags in
8579 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8582 && test -z "${cf_tst_cflags}" \
8583 && cf_fix_cppflags=yes
8585 if test $cf_fix_cppflags = yes ; then
8586 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8588 elif test "${cf_tst_cflags}" = "\"'" ; then
8589 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8595 *$cf_add_cflags) #(vi
8598 case $cf_add_cflags in #(vi
8600 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8602 CPPFLAGS=`echo "$CPPFLAGS" | \
8603 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8604 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8608 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8613 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8618 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8620 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8622 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8623 && test -z "${cf_tst_cflags}" \
8624 && cf_fix_cppflags=no
8629 if test -n "$cf_new_cflags" ; then
8630 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8632 echo "${as_me:-configure}:8632: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8634 CFLAGS="$CFLAGS $cf_new_cflags"
8637 if test -n "$cf_new_cppflags" ; then
8638 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8640 echo "${as_me:-configure}:8640: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8642 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8645 if test -n "$cf_new_extra_cppflags" ; then
8646 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8648 echo "${as_me:-configure}:8648: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8650 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8655 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8656 echo "$as_me:8656: checking if _XOPEN_SOURCE really is set" >&5
8657 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8659 #line 8659 "configure"
8660 #include "confdefs.h"
8666 #ifndef _XOPEN_SOURCE
8673 rm -f conftest.$ac_objext
8674 if { (eval echo "$as_me:8674: \"$ac_compile\"") >&5
8675 (eval $ac_compile) 2>&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -s conftest.$ac_objext'
8680 { (eval echo "$as_me:8680: \"$ac_try\"") >&5
8683 echo "$as_me:8683: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 cf_XOPEN_SOURCE_set=yes
8687 echo "$as_me: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8689 cf_XOPEN_SOURCE_set=no
8691 rm -f conftest.$ac_objext conftest.$ac_ext
8692 echo "$as_me:8692: result: $cf_XOPEN_SOURCE_set" >&5
8693 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8694 if test $cf_XOPEN_SOURCE_set = yes
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line 8697 "configure"
8698 #include "confdefs.h"
8704 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:8712: \"$ac_compile\"") >&5
8713 (eval $ac_compile) 2>&5
8715 echo "$as_me:8715: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:8718: \"$ac_try\"") >&5
8721 echo "$as_me:8721: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 cf_XOPEN_SOURCE_set_ok=yes
8725 echo "$as_me: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 cf_XOPEN_SOURCE_set_ok=no
8729 rm -f conftest.$ac_objext conftest.$ac_ext
8730 if test $cf_XOPEN_SOURCE_set_ok = no
8732 { echo "$as_me:8732: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8733 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8737 echo "$as_me:8737: checking if we should define _XOPEN_SOURCE" >&5
8738 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8739 if test "${cf_cv_xopen_source+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8744 #line 8744 "configure"
8745 #include "confdefs.h"
8749 #include <sys/types.h>
8755 #ifndef _XOPEN_SOURCE
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:8763: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8766 echo "$as_me:8766: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:8769: \"$ac_try\"") >&5
8772 echo "$as_me:8772: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 cf_cv_xopen_source=no
8776 echo "$as_me: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8779 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line 8781 "configure"
8782 #include "confdefs.h"
8786 #include <sys/types.h>
8792 #ifdef _XOPEN_SOURCE
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:8800: \"$ac_compile\"") >&5
8801 (eval $ac_compile) 2>&5
8803 echo "$as_me:8803: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:8806: \"$ac_try\"") >&5
8809 echo "$as_me:8809: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 cf_cv_xopen_source=no
8813 echo "$as_me: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8815 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8817 rm -f conftest.$ac_objext conftest.$ac_ext
8821 rm -f conftest.$ac_objext conftest.$ac_ext
8824 echo "$as_me:8824: result: $cf_cv_xopen_source" >&5
8825 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8827 if test "$cf_cv_xopen_source" != no ; then
8829 CFLAGS=`echo "$CFLAGS" | \
8830 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8831 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8833 CPPFLAGS=`echo "$CPPFLAGS" | \
8834 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8835 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8837 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8842 cf_new_extra_cppflags=
8844 for cf_add_cflags in $cf_temp_xopen_source
8846 case $cf_fix_cppflags in
8848 case $cf_add_cflags in #(vi
8849 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8850 case $cf_add_cflags in
8852 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8854 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8855 && test -z "${cf_tst_cflags}" \
8856 && cf_fix_cppflags=yes
8858 if test $cf_fix_cppflags = yes ; then
8859 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8861 elif test "${cf_tst_cflags}" = "\"'" ; then
8862 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8868 *$cf_add_cflags) #(vi
8871 case $cf_add_cflags in #(vi
8873 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8875 CPPFLAGS=`echo "$CPPFLAGS" | \
8876 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8877 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8881 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8886 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8891 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8893 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8895 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8896 && test -z "${cf_tst_cflags}" \
8897 && cf_fix_cppflags=no
8902 if test -n "$cf_new_cflags" ; then
8904 CFLAGS="$CFLAGS $cf_new_cflags"
8907 if test -n "$cf_new_cppflags" ; then
8909 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8912 if test -n "$cf_new_extra_cppflags" ; then
8914 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8922 # Work around breakage on OS X
8924 echo "$as_me:8924: checking if SIGWINCH is defined" >&5
8925 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8926 if test "${cf_cv_define_sigwinch+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 cat >conftest.$ac_ext <<_ACEOF
8931 #line 8931 "configure"
8932 #include "confdefs.h"
8934 #include <sys/types.h>
8935 #include <sys/signal.h>
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:8946: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>&5
8949 echo "$as_me:8949: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:8952: \"$ac_try\"") >&5
8955 echo "$as_me:8955: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 cf_cv_define_sigwinch=yes
8959 echo "$as_me: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 cat >conftest.$ac_ext <<_ACEOF
8962 #line 8962 "configure"
8963 #include "confdefs.h"
8965 #undef _XOPEN_SOURCE
8966 #undef _POSIX_SOURCE
8967 #undef _POSIX_C_SOURCE
8968 #include <sys/types.h>
8969 #include <sys/signal.h>
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:8980: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>&5
8983 echo "$as_me:8983: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -s conftest.$ac_objext'
8986 { (eval echo "$as_me:8986: \"$ac_try\"") >&5
8989 echo "$as_me:8989: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 cf_cv_define_sigwinch=maybe
8993 echo "$as_me: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
8995 cf_cv_define_sigwinch=no
8997 rm -f conftest.$ac_objext conftest.$ac_ext
9000 rm -f conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:9003: result: $cf_cv_define_sigwinch" >&5
9004 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9006 if test "$cf_cv_define_sigwinch" = maybe ; then
9007 echo "$as_me:9007: checking for actual SIGWINCH definition" >&5
9008 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9009 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 cf_cv_fixup_sigwinch=unknown
9015 while test $cf_sigwinch != 1
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line 9018 "configure"
9019 #include "confdefs.h"
9021 #undef _XOPEN_SOURCE
9022 #undef _POSIX_SOURCE
9023 #undef _POSIX_C_SOURCE
9024 #include <sys/types.h>
9025 #include <sys/signal.h>
9031 #if SIGWINCH != $cf_sigwinch
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:9040: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>&5
9043 echo "$as_me:9043: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:9046: \"$ac_try\"") >&5
9049 echo "$as_me:9049: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 cf_cv_fixup_sigwinch=$cf_sigwinch
9054 echo "$as_me: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9057 rm -f conftest.$ac_objext conftest.$ac_ext
9059 cf_sigwinch=`expr $cf_sigwinch - 1`
9063 echo "$as_me:9063: result: $cf_cv_fixup_sigwinch" >&5
9064 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9066 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9067 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9071 # Checks for CODESET support.
9073 echo "$as_me:9073: checking for nl_langinfo and CODESET" >&5
9074 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9075 if test "${am_cv_langinfo_codeset+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 cat >conftest.$ac_ext <<_ACEOF
9079 #line 9079 "configure"
9080 #include "confdefs.h"
9081 #include <langinfo.h>
9085 char* cs = nl_langinfo(CODESET);
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (eval echo "$as_me:9091: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>&5
9094 echo "$as_me:9094: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:9097: \"$ac_try\"") >&5
9100 echo "$as_me:9100: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 am_cv_langinfo_codeset=yes
9104 echo "$as_me: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9106 am_cv_langinfo_codeset=no
9108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9111 echo "$as_me:9111: result: $am_cv_langinfo_codeset" >&5
9112 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9113 if test $am_cv_langinfo_codeset = yes; then
9115 cat >>confdefs.h <<\EOF
9116 #define HAVE_LANGINFO_CODESET 1
9121 # use these variables to work around a defect in gcc's fixincludes.
9125 echo "$as_me:9125: checking if you want wide-character code" >&5
9126 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9128 # Check whether --enable-widec or --disable-widec was given.
9129 if test "${enable_widec+set}" = set; then
9130 enableval="$enable_widec"
9131 with_widec=$enableval
9135 echo "$as_me:9135: result: $with_widec" >&5
9136 echo "${ECHO_T}$with_widec" >&6
9137 if test "x$with_widec" = xyes ; then
9138 if test "x$disable_lib_suffixes" = xno ; then
9139 LIB_SUFFIX="w${LIB_SUFFIX}"
9142 cat >>confdefs.h <<\EOF
9143 #define USE_WIDEC_SUPPORT 1
9146 cat >>confdefs.h <<\EOF
9147 #define NCURSES_WIDECHAR 1
9150 echo "$as_me:9150: checking if wchar.h can be used as is" >&5
9151 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9152 if test "${cf_cv_wchar_h_okay+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line 9157 "configure"
9158 #include "confdefs.h"
9168 int bar = iswpunct(foo)
9173 rm -f conftest.$ac_objext
9174 if { (eval echo "$as_me:9174: \"$ac_compile\"") >&5
9175 (eval $ac_compile) 2>&5
9177 echo "$as_me:9177: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (eval echo "$as_me:9180: \"$ac_try\"") >&5
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 cf_cv_wchar_h_okay=yes
9187 echo "$as_me: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9189 cf_cv_wchar_h_okay=no
9191 rm -f conftest.$ac_objext conftest.$ac_ext
9193 echo "$as_me:9193: result: $cf_cv_wchar_h_okay" >&5
9194 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9196 if test $cf_cv_wchar_h_okay = no
9199 echo "$as_me:9199: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9200 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9201 cat >conftest.$ac_ext <<_ACEOF
9202 #line 9202 "configure"
9203 #include "confdefs.h"
9204 #include <sys/types.h>
9210 #ifndef _XOPEN_SOURCE_EXTENDED
9217 rm -f conftest.$ac_objext
9218 if { (eval echo "$as_me:9218: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>&5
9221 echo "$as_me:9221: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -s conftest.$ac_objext'
9224 { (eval echo "$as_me:9224: \"$ac_try\"") >&5
9227 echo "$as_me:9227: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9231 echo "$as_me: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9235 rm -f conftest.$ac_objext conftest.$ac_ext
9236 echo "$as_me:9236: result: $cf_result" >&5
9237 echo "${ECHO_T}$cf_result" >&6
9239 if test "$cf_result" = yes ; then
9240 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9241 elif test "x" != "x" ; then
9242 echo "$as_me:9242: checking checking for compatible value versus " >&5
9243 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9244 cat >conftest.$ac_ext <<_ACEOF
9245 #line 9245 "configure"
9246 #include "confdefs.h"
9247 #include <sys/types.h>
9253 #if _XOPEN_SOURCE_EXTENDED- < 0
9260 rm -f conftest.$ac_objext
9261 if { (eval echo "$as_me:9261: \"$ac_compile\"") >&5
9262 (eval $ac_compile) 2>&5
9264 echo "$as_me:9264: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:9267: \"$ac_try\"") >&5
9270 echo "$as_me:9270: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9274 echo "$as_me: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9278 rm -f conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:9279: result: $cf_result" >&5
9280 echo "${ECHO_T}$cf_result" >&6
9281 if test "$cf_result" = no ; then
9282 # perhaps we can override it - try...
9283 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9290 NCURSES_CH_T=cchar_t
9292 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9295 echo "$as_me:9295: checking for $ac_func" >&5
9296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9297 if eval "test \"\${$as_ac_var+set}\" = set"; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9301 #line 9301 "configure"
9302 #include "confdefs.h"
9303 /* System header to define __stub macros and hopefully few prototypes,
9304 which can conflict with char $ac_func (); below. */
9306 /* Override any gcc2 internal prototype to avoid an error. */
9310 /* We use char because int might match the return type of a gcc2
9311 builtin and then its argument prototype would still apply. */
9318 /* The GNU C library defines this for functions which it implements
9319 to always fail with ENOSYS. Some functions are actually named
9320 something starting with __ and the normal name is an alias. */
9321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9324 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (eval echo "$as_me:9332: \"$ac_link\"") >&5
9333 (eval $ac_link) 2>&5
9335 echo "$as_me:9335: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:9338: \"$ac_try\"") >&5
9341 echo "$as_me:9341: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 eval "$as_ac_var=yes"
9345 echo "$as_me: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9347 eval "$as_ac_var=no"
9349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9351 echo "$as_me:9351: result: `eval echo '${'$as_ac_var'}'`" >&5
9352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9353 if test `eval echo '${'$as_ac_var'}'` = yes; then
9354 cat >>confdefs.h <<EOF
9355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9361 if test "x$ac_cv_func_putwc" != xyes ; then
9363 echo "$as_me:9363: checking for multibyte character support" >&5
9364 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9365 if test "${cf_cv_utf8_lib+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 cf_save_LIBS="$LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 #line 9371 "configure"
9372 #include "confdefs.h"
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:9384: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9387 echo "$as_me:9387: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -s conftest$ac_exeext'
9390 { (eval echo "$as_me:9390: \"$ac_try\"") >&5
9393 echo "$as_me:9393: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9397 echo "$as_me: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9400 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9401 # will be set on completion of the AC_TRY_LINK below.
9402 cf_cv_header_path_utf8=
9403 cf_cv_library_path_utf8=
9405 echo "${as_me:-configure}:9405: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9407 cf_save_LIBS="$LIBS"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line 9410 "configure"
9411 #include "confdefs.h"
9413 #include <libutf8.h>
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (eval echo "$as_me:9423: \"$ac_link\"") >&5
9424 (eval $ac_link) 2>&5
9426 echo "$as_me:9426: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -s conftest$ac_exeext'
9429 { (eval echo "$as_me:9429: \"$ac_try\"") >&5
9432 echo "$as_me:9432: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9435 cf_cv_find_linkage_utf8=yes
9436 cf_cv_header_path_utf8=/usr/include
9437 cf_cv_library_path_utf8=/usr/lib
9440 echo "$as_me: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9443 LIBS="-lutf8 $cf_save_LIBS"
9445 cat >conftest.$ac_ext <<_ACEOF
9446 #line 9446 "configure"
9447 #include "confdefs.h"
9449 #include <libutf8.h>
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (eval echo "$as_me:9459: \"$ac_link\"") >&5
9460 (eval $ac_link) 2>&5
9462 echo "$as_me:9462: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -s conftest$ac_exeext'
9465 { (eval echo "$as_me:9465: \"$ac_try\"") >&5
9468 echo "$as_me:9468: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9471 cf_cv_find_linkage_utf8=yes
9472 cf_cv_header_path_utf8=/usr/include
9473 cf_cv_library_path_utf8=/usr/lib
9474 cf_cv_library_file_utf8="-lutf8"
9477 echo "$as_me: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9480 cf_cv_find_linkage_utf8=no
9481 LIBS="$cf_save_LIBS"
9483 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9485 echo "${as_me:-configure}:9485: testing find linkage for utf8 library ..." 1>&5
9487 echo "${as_me:-configure}:9487: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9489 cf_save_CPPFLAGS="$CPPFLAGS"
9490 cf_test_CPPFLAGS="$CPPFLAGS"
9494 # collect the current set of include-directories from compiler flags
9495 cf_header_path_list=""
9496 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9497 for cf_header_path in $CPPFLAGS $CFLAGS
9499 case $cf_header_path in #(vi
9501 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9503 test "x$cf_header_path" != "xNONE" && \
9504 test -d "$cf_header_path" && \
9506 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9507 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9508 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9509 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9510 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9511 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9514 cf_header_path_list="$cf_header_path_list $cf_search"
9520 # add the variations for the package we are looking for
9524 test "x$prefix" != "xNONE" && \
9525 test -d "$prefix" && \
9527 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9528 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9529 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9530 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9531 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9532 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9535 for cf_subdir_prefix in \
9544 test "x$cf_subdir_prefix" != "x$prefix" && \
9545 test -d "$cf_subdir_prefix" && \
9546 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9547 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9548 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9549 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
9550 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
9551 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
9552 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
9557 test "$includedir" != NONE && \
9558 test "$includedir" != "/usr/include" && \
9559 test -d "$includedir" && {
9560 test -d $includedir && cf_search="$cf_search $includedir"
9561 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9564 test "$oldincludedir" != NONE && \
9565 test "$oldincludedir" != "/usr/include" && \
9566 test -d "$oldincludedir" && {
9567 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9568 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9571 cf_search="$cf_search $cf_header_path_list"
9573 for cf_cv_header_path_utf8 in $cf_search
9575 if test -d $cf_cv_header_path_utf8 ; then
9576 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9578 echo "${as_me:-configure}:9578: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9580 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9581 cat >conftest.$ac_ext <<_ACEOF
9582 #line 9582 "configure"
9583 #include "confdefs.h"
9585 #include <libutf8.h>
9594 rm -f conftest.$ac_objext
9595 if { (eval echo "$as_me:9595: \"$ac_compile\"") >&5
9596 (eval $ac_compile) 2>&5
9598 echo "$as_me:9598: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:9601: \"$ac_try\"") >&5
9604 echo "$as_me:9604: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9607 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9609 echo "${as_me:-configure}:9609: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9611 cf_cv_find_linkage_utf8=maybe
9612 cf_test_CPPFLAGS="$CPPFLAGS"
9615 echo "$as_me: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9618 CPPFLAGS="$cf_save_CPPFLAGS"
9621 rm -f conftest.$ac_objext conftest.$ac_ext
9625 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9627 echo "${as_me:-configure}:9627: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9629 cf_save_LIBS="$LIBS"
9630 cf_save_LDFLAGS="$LDFLAGS"
9632 if test "$cf_cv_find_linkage_utf8" != yes ; then
9635 cf_library_path_list=""
9636 if test -n "${LDFLAGS}${LIBS}" ; then
9637 for cf_library_path in $LDFLAGS $LIBS
9639 case $cf_library_path in #(vi
9641 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9643 test "x$cf_library_path" != "xNONE" && \
9644 test -d "$cf_library_path" && \
9646 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9647 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9648 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9649 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9650 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9651 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9654 cf_library_path_list="$cf_library_path_list $cf_search"
9662 test "x$prefix" != "xNONE" && \
9663 test -d "$prefix" && \
9665 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9666 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9667 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9668 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9669 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9670 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9673 for cf_subdir_prefix in \
9682 test "x$cf_subdir_prefix" != "x$prefix" && \
9683 test -d "$cf_subdir_prefix" && \
9684 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9685 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9686 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9687 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
9688 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
9689 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
9690 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
9695 cf_search="$cf_library_path_list $cf_search"
9697 for cf_cv_library_path_utf8 in $cf_search
9699 if test -d $cf_cv_library_path_utf8 ; then
9700 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9702 echo "${as_me:-configure}:9702: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9704 CPPFLAGS="$cf_test_CPPFLAGS"
9705 LIBS="-lutf8 $cf_save_LIBS"
9706 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9707 cat >conftest.$ac_ext <<_ACEOF
9708 #line 9708 "configure"
9709 #include "confdefs.h"
9711 #include <libutf8.h>
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (eval echo "$as_me:9721: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>&5
9724 echo "$as_me:9724: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:9727: \"$ac_try\"") >&5
9730 echo "$as_me:9730: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9733 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9735 echo "${as_me:-configure}:9735: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9737 cf_cv_find_linkage_utf8=yes
9738 cf_cv_library_file_utf8="-lutf8"
9741 echo "$as_me: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9744 CPPFLAGS="$cf_save_CPPFLAGS"
9745 LIBS="$cf_save_LIBS"
9746 LDFLAGS="$cf_save_LDFLAGS"
9749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9752 CPPFLAGS="$cf_save_CPPFLAGS"
9753 LDFLAGS="$cf_save_LDFLAGS"
9757 cf_cv_find_linkage_utf8=no
9761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9766 LIBS="$cf_save_LIBS"
9768 if test "$cf_cv_find_linkage_utf8" = yes ; then
9769 cf_cv_utf8_lib=add-on
9775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9777 echo "$as_me:9777: result: $cf_cv_utf8_lib" >&5
9778 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9780 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9782 if test "$cf_cv_utf8_lib" = "add-on" ; then
9784 cat >>confdefs.h <<\EOF
9785 #define HAVE_LIBUTF8_H 1
9788 if test -n "$cf_cv_header_path_utf8" ; then
9789 for cf_add_incdir in $cf_cv_header_path_utf8
9791 while test $cf_add_incdir != /usr/include
9793 if test -d $cf_add_incdir
9796 if test -n "$CFLAGS$CPPFLAGS" ; then
9797 # a loop is needed to ensure we can add subdirs of existing dirs
9798 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9799 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9800 cf_have_incdir=yes; break
9805 if test "$cf_have_incdir" = no ; then
9806 if test "$cf_add_incdir" = /usr/local/include ; then
9807 if test "$GCC" = yes
9809 cf_save_CPPFLAGS=$CPPFLAGS
9810 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9811 cat >conftest.$ac_ext <<_ACEOF
9812 #line 9812 "configure"
9813 #include "confdefs.h"
9823 rm -f conftest.$ac_objext
9824 if { (eval echo "$as_me:9824: \"$ac_compile\"") >&5
9825 (eval $ac_compile) 2>&5
9827 echo "$as_me:9827: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -s conftest.$ac_objext'
9830 { (eval echo "$as_me:9830: \"$ac_try\"") >&5
9833 echo "$as_me:9833: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9837 echo "$as_me: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9841 rm -f conftest.$ac_objext conftest.$ac_ext
9842 CPPFLAGS=$cf_save_CPPFLAGS
9847 if test "$cf_have_incdir" = no ; then
9848 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9850 echo "${as_me:-configure}:9850: testing adding $cf_add_incdir to include-path ..." 1>&5
9852 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9854 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9855 test "$cf_top_incdir" = "$cf_add_incdir" && break
9856 cf_add_incdir="$cf_top_incdir"
9865 if test -n "$cf_cv_library_path_utf8" ; then
9866 for cf_add_libdir in $cf_cv_library_path_utf8
9868 if test $cf_add_libdir = /usr/lib ; then
9870 elif test -d $cf_add_libdir
9873 if test -n "$LDFLAGS$LIBS" ; then
9874 # a loop is needed to ensure we can add subdirs of existing dirs
9875 for cf_test_libdir in $LDFLAGS $LIBS ; do
9876 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9877 cf_have_libdir=yes; break
9881 if test "$cf_have_libdir" = no ; then
9882 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9884 echo "${as_me:-configure}:9884: testing adding $cf_add_libdir to library-path ..." 1>&5
9886 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9892 cf_add_libs="$cf_cv_library_file_utf8"
9893 # Filter out duplicates - this happens with badly-designed ".pc" files...
9894 for cf_add_1lib in $LIBS
9896 for cf_add_2lib in $cf_add_libs
9898 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9904 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9910 if test "$cf_cv_utf8_lib" != no ; then
9915 # This is needed on Tru64 5.0 to declare mbstate_t
9916 echo "$as_me:9916: checking if we must include wchar.h to declare mbstate_t" >&5
9917 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9918 if test "${cf_cv_mbstate_t+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 cat >conftest.$ac_ext <<_ACEOF
9923 #line 9923 "configure"
9924 #include "confdefs.h"
9929 #ifdef HAVE_LIBUTF8_H
9930 #include <libutf8.h>
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:9941: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>&5
9944 echo "$as_me:9944: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -s conftest.$ac_objext'
9947 { (eval echo "$as_me:9947: \"$ac_try\"") >&5
9950 echo "$as_me:9950: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9954 echo "$as_me: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 cat >conftest.$ac_ext <<_ACEOF
9957 #line 9957 "configure"
9958 #include "confdefs.h"
9964 #ifdef HAVE_LIBUTF8_H
9965 #include <libutf8.h>
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:9976: \"$ac_compile\"") >&5
9977 (eval $ac_compile) 2>&5
9979 echo "$as_me:9979: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -s conftest.$ac_objext'
9982 { (eval echo "$as_me:9982: \"$ac_try\"") >&5
9985 echo "$as_me:9985: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9989 echo "$as_me: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 cf_cv_mbstate_t=unknown
9993 rm -f conftest.$ac_objext conftest.$ac_ext
9995 rm -f conftest.$ac_objext conftest.$ac_ext
9997 echo "$as_me:9997: result: $cf_cv_mbstate_t" >&5
9998 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10000 if test "$cf_cv_mbstate_t" = yes ; then
10002 cat >>confdefs.h <<\EOF
10003 #define NEED_WCHAR_H 1
10009 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10010 if test "$cf_cv_mbstate_t" = unknown ; then
10011 NCURSES_MBSTATE_T=1
10014 # This is needed on Tru64 5.0 to declare wchar_t
10015 echo "$as_me:10015: checking if we must include wchar.h to declare wchar_t" >&5
10016 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10017 if test "${cf_cv_wchar_t+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line 10022 "configure"
10023 #include "confdefs.h"
10025 #include <stdlib.h>
10026 #include <stdarg.h>
10028 #ifdef HAVE_LIBUTF8_H
10029 #include <libutf8.h>
10039 rm -f conftest.$ac_objext
10040 if { (eval echo "$as_me:10040: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10043 echo "$as_me:10043: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:10046: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10053 echo "$as_me: failed program was:" >&5
10054 cat conftest.$ac_ext >&5
10055 cat >conftest.$ac_ext <<_ACEOF
10056 #line 10056 "configure"
10057 #include "confdefs.h"
10059 #include <stdlib.h>
10060 #include <stdarg.h>
10063 #ifdef HAVE_LIBUTF8_H
10064 #include <libutf8.h>
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:10075: \"$ac_compile\"") >&5
10076 (eval $ac_compile) 2>&5
10078 echo "$as_me:10078: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -s conftest.$ac_objext'
10081 { (eval echo "$as_me:10081: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:10084: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10088 echo "$as_me: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 cf_cv_wchar_t=unknown
10092 rm -f conftest.$ac_objext conftest.$ac_ext
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10096 echo "$as_me:10096: result: $cf_cv_wchar_t" >&5
10097 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10099 if test "$cf_cv_wchar_t" = yes ; then
10101 cat >>confdefs.h <<\EOF
10102 #define NEED_WCHAR_H 1
10108 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10109 if test "$cf_cv_wchar_t" = unknown ; then
10113 # if we find wchar_t in either place, use substitution to provide a fallback.
10114 if test "$cf_cv_wchar_t" != unknown ; then
10115 NCURSES_OK_WCHAR_T=1
10118 # This is needed on Tru64 5.0 to declare wint_t
10119 echo "$as_me:10119: checking if we must include wchar.h to declare wint_t" >&5
10120 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10121 if test "${cf_cv_wint_t+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 cat >conftest.$ac_ext <<_ACEOF
10126 #line 10126 "configure"
10127 #include "confdefs.h"
10129 #include <stdlib.h>
10130 #include <stdarg.h>
10132 #ifdef HAVE_LIBUTF8_H
10133 #include <libutf8.h>
10143 rm -f conftest.$ac_objext
10144 if { (eval echo "$as_me:10144: \"$ac_compile\"") >&5
10145 (eval $ac_compile) 2>&5
10147 echo "$as_me:10147: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -s conftest.$ac_objext'
10150 { (eval echo "$as_me:10150: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:10153: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10157 echo "$as_me: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line 10160 "configure"
10161 #include "confdefs.h"
10163 #include <stdlib.h>
10164 #include <stdarg.h>
10167 #ifdef HAVE_LIBUTF8_H
10168 #include <libutf8.h>
10178 rm -f conftest.$ac_objext
10179 if { (eval echo "$as_me:10179: \"$ac_compile\"") >&5
10180 (eval $ac_compile) 2>&5
10182 echo "$as_me:10182: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -s conftest.$ac_objext'
10185 { (eval echo "$as_me:10185: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:10188: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10192 echo "$as_me: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10194 cf_cv_wint_t=unknown
10196 rm -f conftest.$ac_objext conftest.$ac_ext
10198 rm -f conftest.$ac_objext conftest.$ac_ext
10200 echo "$as_me:10200: result: $cf_cv_wint_t" >&5
10201 echo "${ECHO_T}$cf_cv_wint_t" >&6
10203 if test "$cf_cv_wint_t" = yes ; then
10205 cat >>confdefs.h <<\EOF
10206 #define NEED_WCHAR_H 1
10212 # if we do not find wint_t in either place, use substitution to provide a fallback.
10213 if test "$cf_cv_wint_t" = unknown ; then
10217 # if we find wint_t in either place, use substitution to provide a fallback.
10218 if test "$cf_cv_wint_t" != unknown ; then
10219 NCURSES_OK_WINT_T=1
10222 if test "$NCURSES_MBSTATE_T" != 0; then
10224 cat >>confdefs.h <<\EOF
10225 #define NEED_MBSTATE_T_DEF 1
10231 ### use option --disable-lp64 to allow long chtype
10232 case $cf_cv_abi_version in
10234 default_with_lp64=no
10237 default_with_lp64=yes
10241 echo "$as_me:10241: checking whether to enable _LP64 definition in curses.h" >&5
10242 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10244 # Check whether --enable-lp64 or --disable-lp64 was given.
10245 if test "${enable_lp64+set}" = set; then
10246 enableval="$enable_lp64"
10247 with_lp64=$enableval
10249 with_lp64=$default_with_lp64
10251 echo "$as_me:10251: result: $with_lp64" >&5
10252 echo "${ECHO_T}$with_lp64" >&6
10254 if test "x$with_lp64" = xyes ; then
10255 cf_cv_enable_lp64=1
10257 cf_cv_enable_lp64=0
10260 # Check whether --enable-largefile or --disable-largefile was given.
10261 if test "${enable_largefile+set}" = set; then
10262 enableval="$enable_largefile"
10265 if test "$enable_largefile" != no; then
10267 echo "$as_me:10267: checking for special C compiler options needed for large files" >&5
10268 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10269 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 ac_cv_sys_largefile_CC=no
10273 if test "$GCC" != yes; then
10276 # IRIX 6.2 and later do not support large files by default,
10277 # so use the C compiler's -n32 option if that helps.
10278 cat >conftest.$ac_ext <<_ACEOF
10279 #line 10279 "configure"
10280 #include "confdefs.h"
10281 #include <sys/types.h>
10282 /* Check that off_t can represent 2**63 - 1 correctly.
10283 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10284 since some C++ compilers masquerading as C compilers
10285 incorrectly reject 9223372036854775807. */
10286 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10288 && LARGE_OFF_T % 2147483647 == 1)
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:10299: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>&5
10302 echo "$as_me:10302: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -s conftest.$ac_objext'
10305 { (eval echo "$as_me:10305: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:10308: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10312 echo "$as_me: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10315 rm -f conftest.$ac_objext
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:10318: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>&5
10321 echo "$as_me:10321: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:10324: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:10327: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_sys_largefile_CC=' -n32'; break
10331 echo "$as_me: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10334 rm -f conftest.$ac_objext
10338 rm -f conftest.$ac_ext
10341 echo "$as_me:10341: result: $ac_cv_sys_largefile_CC" >&5
10342 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10343 if test "$ac_cv_sys_largefile_CC" != no; then
10344 CC=$CC$ac_cv_sys_largefile_CC
10347 echo "$as_me:10347: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10348 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10349 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 ac_cv_sys_file_offset_bits=no
10354 cat >conftest.$ac_ext <<_ACEOF
10355 #line 10355 "configure"
10356 #include "confdefs.h"
10357 #include <sys/types.h>
10358 /* Check that off_t can represent 2**63 - 1 correctly.
10359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10360 since some C++ compilers masquerading as C compilers
10361 incorrectly reject 9223372036854775807. */
10362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10364 && LARGE_OFF_T % 2147483647 == 1)
10374 rm -f conftest.$ac_objext
10375 if { (eval echo "$as_me:10375: \"$ac_compile\"") >&5
10376 (eval $ac_compile) 2>&5
10378 echo "$as_me:10378: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest.$ac_objext'
10381 { (eval echo "$as_me:10381: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:10384: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10388 echo "$as_me: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10391 rm -f conftest.$ac_objext conftest.$ac_ext
10392 cat >conftest.$ac_ext <<_ACEOF
10393 #line 10393 "configure"
10394 #include "confdefs.h"
10395 #define _FILE_OFFSET_BITS 64
10396 #include <sys/types.h>
10397 /* Check that off_t can represent 2**63 - 1 correctly.
10398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10399 since some C++ compilers masquerading as C compilers
10400 incorrectly reject 9223372036854775807. */
10401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10403 && LARGE_OFF_T % 2147483647 == 1)
10413 rm -f conftest.$ac_objext
10414 if { (eval echo "$as_me:10414: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>&5
10417 echo "$as_me:10417: \$? = $ac_status" >&5
10418 (exit $ac_status); } &&
10419 { ac_try='test -s conftest.$ac_objext'
10420 { (eval echo "$as_me:10420: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:10423: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_sys_file_offset_bits=64; break
10427 echo "$as_me: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10430 rm -f conftest.$ac_objext conftest.$ac_ext
10434 echo "$as_me:10434: result: $ac_cv_sys_file_offset_bits" >&5
10435 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10436 if test "$ac_cv_sys_file_offset_bits" != no; then
10438 cat >>confdefs.h <<EOF
10439 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10444 echo "$as_me:10444: checking for _LARGE_FILES value needed for large files" >&5
10445 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10446 if test "${ac_cv_sys_large_files+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 ac_cv_sys_large_files=no
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line 10452 "configure"
10453 #include "confdefs.h"
10454 #include <sys/types.h>
10455 /* Check that off_t can represent 2**63 - 1 correctly.
10456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10457 since some C++ compilers masquerading as C compilers
10458 incorrectly reject 9223372036854775807. */
10459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10461 && LARGE_OFF_T % 2147483647 == 1)
10471 rm -f conftest.$ac_objext
10472 if { (eval echo "$as_me:10472: \"$ac_compile\"") >&5
10473 (eval $ac_compile) 2>&5
10475 echo "$as_me:10475: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:10478: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:10481: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10485 echo "$as_me: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 rm -f conftest.$ac_objext conftest.$ac_ext
10489 cat >conftest.$ac_ext <<_ACEOF
10490 #line 10490 "configure"
10491 #include "confdefs.h"
10492 #define _LARGE_FILES 1
10493 #include <sys/types.h>
10494 /* Check that off_t can represent 2**63 - 1 correctly.
10495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10496 since some C++ compilers masquerading as C compilers
10497 incorrectly reject 9223372036854775807. */
10498 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10500 && LARGE_OFF_T % 2147483647 == 1)
10510 rm -f conftest.$ac_objext
10511 if { (eval echo "$as_me:10511: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>&5
10514 echo "$as_me:10514: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:10517: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:10520: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_sys_large_files=1; break
10524 echo "$as_me: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10527 rm -f conftest.$ac_objext conftest.$ac_ext
10531 echo "$as_me:10531: result: $ac_cv_sys_large_files" >&5
10532 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10533 if test "$ac_cv_sys_large_files" != no; then
10535 cat >>confdefs.h <<EOF
10536 #define _LARGE_FILES $ac_cv_sys_large_files
10543 if test "$enable_largefile" != no ; then
10544 echo "$as_me:10544: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10545 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10546 if test "${ac_cv_sys_largefile_source+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 ac_cv_sys_largefile_source=no
10551 cat >conftest.$ac_ext <<_ACEOF
10552 #line 10552 "configure"
10553 #include "confdefs.h"
10563 rm -f conftest.$ac_objext
10564 if { (eval echo "$as_me:10564: \"$ac_compile\"") >&5
10565 (eval $ac_compile) 2>&5
10567 echo "$as_me:10567: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:10570: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:10573: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10577 echo "$as_me: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10580 rm -f conftest.$ac_objext conftest.$ac_ext
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line 10582 "configure"
10583 #include "confdefs.h"
10584 #define _LARGEFILE_SOURCE 1
10594 rm -f conftest.$ac_objext
10595 if { (eval echo "$as_me:10595: \"$ac_compile\"") >&5
10596 (eval $ac_compile) 2>&5
10598 echo "$as_me:10598: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -s conftest.$ac_objext'
10601 { (eval echo "$as_me:10601: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:10604: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_cv_sys_largefile_source=1; break
10608 echo "$as_me: failed program was:" >&5
10609 cat conftest.$ac_ext >&5
10611 rm -f conftest.$ac_objext conftest.$ac_ext
10615 echo "$as_me:10615: result: $ac_cv_sys_largefile_source" >&5
10616 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10617 if test "$ac_cv_sys_largefile_source" != no; then
10619 cat >>confdefs.h <<EOF
10620 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10626 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10627 # in glibc 2.1.3, but that breaks too many other things.
10628 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10629 echo "$as_me:10629: checking for fseeko" >&5
10630 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10631 if test "${ac_cv_func_fseeko+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #line 10635 "configure"
10636 #include "confdefs.h"
10641 return fseeko && fseeko (stdin, 0, 0);
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:10647: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>&5
10650 echo "$as_me:10650: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (eval echo "$as_me:10653: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:10656: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_func_fseeko=yes
10660 echo "$as_me: failed program was:" >&5
10661 cat conftest.$ac_ext >&5
10662 ac_cv_func_fseeko=no
10664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666 echo "$as_me:10666: result: $ac_cv_func_fseeko" >&5
10667 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10668 if test $ac_cv_func_fseeko = yes; then
10670 cat >>confdefs.h <<\EOF
10671 #define HAVE_FSEEKO 1
10676 # Normally we would collect these definitions in the config.h,
10677 # but (like _XOPEN_SOURCE), some environments rely on having these
10678 # defined before any of the system headers are included. Another
10679 # case comes up with C++, e.g., on AIX the compiler compiles the
10680 # header files by themselves before looking at the body files it is
10681 # told to compile. For ncurses, those header files do not include
10683 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10684 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10685 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10687 echo "$as_me:10687: checking whether to use struct dirent64" >&5
10688 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10689 if test "${cf_cv_struct_dirent64+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10694 #line 10694 "configure"
10695 #include "confdefs.h"
10697 #include <sys/types.h>
10698 #include <dirent.h>
10704 /* if transitional largefile support is setup, this is true */
10705 extern struct dirent64 * readdir(DIR *);
10706 struct dirent64 *x = readdir((DIR *)0);
10707 struct dirent *y = readdir((DIR *)0);
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:10715: \"$ac_compile\"") >&5
10716 (eval $ac_compile) 2>&5
10718 echo "$as_me:10718: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -s conftest.$ac_objext'
10721 { (eval echo "$as_me:10721: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:10724: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 cf_cv_struct_dirent64=yes
10728 echo "$as_me: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10730 cf_cv_struct_dirent64=no
10732 rm -f conftest.$ac_objext conftest.$ac_ext
10735 echo "$as_me:10735: result: $cf_cv_struct_dirent64" >&5
10736 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10737 test "$cf_cv_struct_dirent64" = yes &&
10738 cat >>confdefs.h <<\EOF
10739 #define HAVE_STRUCT_DIRENT64 1
10744 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10745 echo "$as_me:10745: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10746 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10748 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10749 if test "${enable_tparm_varargs+set}" = set; then
10750 enableval="$enable_tparm_varargs"
10751 with_tparm_varargs=$enableval
10753 with_tparm_varargs=yes
10755 echo "$as_me:10755: result: $with_tparm_varargs" >&5
10756 echo "${ECHO_T}$with_tparm_varargs" >&6
10757 NCURSES_TPARM_VARARGS=0
10758 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
10760 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10761 if test "$with_ticlib" != no ; then
10762 echo "$as_me:10762: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10763 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10765 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10766 if test "${enable_tic_depends+set}" = set; then
10767 enableval="$enable_tic_depends"
10768 with_tic_depends=$enableval
10770 with_tic_depends=yes
10772 echo "$as_me:10772: result: $with_tic_depends" >&5
10773 echo "${ECHO_T}$with_tic_depends" >&6
10775 with_tic_depends=no
10778 ### use option --with-bool to override bool's type
10779 echo "$as_me:10779: checking for type of bool" >&5
10780 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10782 # Check whether --with-bool or --without-bool was given.
10783 if test "${with_bool+set}" = set; then
10784 withval="$with_bool"
10785 NCURSES_BOOL="$withval"
10789 echo "$as_me:10789: result: $NCURSES_BOOL" >&5
10790 echo "${ECHO_T}$NCURSES_BOOL" >&6
10792 echo "$as_me:10792: checking for alternate terminal capabilities file" >&5
10793 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10795 # Check whether --with-caps or --without-caps was given.
10796 if test "${with_caps+set}" = set; then
10797 withval="$with_caps"
10798 TERMINFO_CAPS=Caps.$withval
10802 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10803 echo "$as_me:10803: result: $TERMINFO_CAPS" >&5
10804 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10806 ### use option --with-chtype to override chtype's type
10807 echo "$as_me:10807: checking for type of chtype" >&5
10808 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10810 # Check whether --with-chtype or --without-chtype was given.
10811 if test "${with_chtype+set}" = set; then
10812 withval="$with_chtype"
10813 NCURSES_CHTYPE="$withval"
10815 NCURSES_CHTYPE=auto
10817 echo "$as_me:10817: result: $NCURSES_CHTYPE" >&5
10818 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10820 ### use option --with-ospeed to override ospeed's type
10821 echo "$as_me:10821: checking for type of ospeed" >&5
10822 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10824 # Check whether --with-ospeed or --without-ospeed was given.
10825 if test "${with_ospeed+set}" = set; then
10826 withval="$with_ospeed"
10827 NCURSES_OSPEED="$withval"
10829 NCURSES_OSPEED=short
10831 echo "$as_me:10831: result: $NCURSES_OSPEED" >&5
10832 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10834 ### use option --with-mmask-t to override mmask_t's type
10835 echo "$as_me:10835: checking for type of mmask_t" >&5
10836 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10838 # Check whether --with-mmask-t or --without-mmask-t was given.
10839 if test "${with_mmask_t+set}" = set; then
10840 withval="$with_mmask_t"
10841 NCURSES_MMASK_T="$withval"
10843 NCURSES_MMASK_T=auto
10845 echo "$as_me:10845: result: $NCURSES_MMASK_T" >&5
10846 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10848 ### use option --with-ccharw-max to override CCHARW_MAX size
10849 echo "$as_me:10849: checking for size CCHARW_MAX" >&5
10850 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10852 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10853 if test "${with_ccharw_max+set}" = set; then
10854 withval="$with_ccharw_max"
10855 NCURSES_CCHARW_MAX="$withval"
10857 NCURSES_CCHARW_MAX=5
10859 echo "$as_me:10859: result: $NCURSES_CCHARW_MAX" >&5
10860 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10862 ### use option --with-tparm-arg to override tparm's argument type
10863 echo "$as_me:10863: checking for type of tparm args" >&5
10864 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10866 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10867 if test "${with_tparm_arg+set}" = set; then
10868 withval="$with_tparm_arg"
10869 NCURSES_TPARM_ARG="$withval"
10871 NCURSES_TPARM_ARG=long
10873 echo "$as_me:10873: result: $NCURSES_TPARM_ARG" >&5
10874 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10876 ### Enable compiling-in rcs id's
10877 echo "$as_me:10877: checking if RCS identifiers should be compiled-in" >&5
10878 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10880 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10881 if test "${with_rcs_ids+set}" = set; then
10882 withval="$with_rcs_ids"
10883 with_rcs_ids=$withval
10887 echo "$as_me:10887: result: $with_rcs_ids" >&5
10888 echo "${ECHO_T}$with_rcs_ids" >&6
10889 test "x$with_rcs_ids" = xyes &&
10890 cat >>confdefs.h <<\EOF
10891 #define USE_RCS_IDS 1
10894 ###############################################################################
10896 echo "$as_me:10896: checking format of man-pages" >&5
10897 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10899 # Check whether --with-manpage-format or --without-manpage-format was given.
10900 if test "${with_manpage_format+set}" = set; then
10901 withval="$with_manpage_format"
10902 MANPAGE_FORMAT=$withval
10904 MANPAGE_FORMAT=unknown
10907 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10908 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10912 case $MANPAGE_FORMAT in
10914 if test -z "$MANPATH" ; then
10915 MANPATH="/usr/man:/usr/share/man"
10918 # look for the 'date' man-page (it's most likely to be installed!)
10924 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10925 for cf_dir in $MANPATH; do
10926 test -z "$cf_dir" && cf_dir=/usr/man
10927 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
10929 cf_test=`echo $cf_name | sed -e 's/*//'`
10930 if test "x$cf_test" = "x$cf_name" ; then
10933 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10934 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10935 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10936 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10950 # if we found a match in either man* or cat*, stop looking
10951 if test -n "$MANPAGE_FORMAT" ; then
10953 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10954 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10960 test $cf_found=yes && break
10963 # only check the first directory in $MANPATH where we find manpages
10964 if test -n "$MANPAGE_FORMAT" ; then
10968 # if we did not find the example, just assume it is normal
10969 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10973 for cf_option in $MANPAGE_FORMAT; do
10974 case $cf_option in #(vi
10975 gzip|compress|BSDI|normal|formatted|catonly)
10978 cf_unknown="$cf_unknown $cf_option"
10985 echo "$as_me:10985: result: $MANPAGE_FORMAT" >&5
10986 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10987 if test -n "$cf_unknown" ; then
10988 { echo "$as_me:10988: WARNING: Unexpected manpage-format $cf_unknown" >&5
10989 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10992 echo "$as_me:10992: checking for manpage renaming" >&5
10993 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10995 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10996 if test "${with_manpage_renames+set}" = set; then
10997 withval="$with_manpage_renames"
10998 MANPAGE_RENAMES=$withval
11000 MANPAGE_RENAMES=yes
11003 case ".$MANPAGE_RENAMES" in #(vi
11007 # Debian 'man' program?
11008 if test -f /etc/debian_version ; then
11009 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11016 if test "$MANPAGE_RENAMES" != no ; then
11017 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11018 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11019 elif test ! -f $MANPAGE_RENAMES ; then
11020 { { echo "$as_me:11020: error: not a filename: $MANPAGE_RENAMES" >&5
11021 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11022 { (exit 1); exit 1; }; }
11025 test ! -d man && mkdir man
11027 # Construct a sed-script to perform renaming within man-pages
11028 if test -n "$MANPAGE_RENAMES" ; then
11029 test ! -d man && mkdir man
11030 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11034 echo "$as_me:11034: result: $MANPAGE_RENAMES" >&5
11035 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11037 echo "$as_me:11037: checking if manpage aliases will be installed" >&5
11038 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11040 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11041 if test "${with_manpage_aliases+set}" = set; then
11042 withval="$with_manpage_aliases"
11043 MANPAGE_ALIASES=$withval
11045 MANPAGE_ALIASES=yes
11048 echo "$as_me:11048: result: $MANPAGE_ALIASES" >&5
11049 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11051 case "x$LN_S" in #(vi
11053 cf_use_symlinks=yes
11060 MANPAGE_SYMLINKS=no
11061 if test "$MANPAGE_ALIASES" = yes ; then
11062 echo "$as_me:11062: checking if manpage symlinks should be used" >&5
11063 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11065 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11066 if test "${with_manpage_symlinks+set}" = set; then
11067 withval="$with_manpage_symlinks"
11068 MANPAGE_SYMLINKS=$withval
11070 MANPAGE_SYMLINKS=$cf_use_symlinks
11073 if test "$$cf_use_symlinks" = no; then
11074 if test "$MANPAGE_SYMLINKS" = yes ; then
11075 { echo "$as_me:11075: WARNING: cannot make symlinks" >&5
11076 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11077 MANPAGE_SYMLINKS=no
11081 echo "$as_me:11081: result: $MANPAGE_SYMLINKS" >&5
11082 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11085 echo "$as_me:11085: checking for manpage tbl" >&5
11086 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11088 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11089 if test "${with_manpage_tbl+set}" = set; then
11090 withval="$with_manpage_tbl"
11091 MANPAGE_TBL=$withval
11096 echo "$as_me:11096: result: $MANPAGE_TBL" >&5
11097 echo "${ECHO_T}$MANPAGE_TBL" >&6
11099 if test "$prefix" = "NONE" ; then
11100 cf_prefix="$ac_default_prefix"
11102 cf_prefix="$prefix"
11105 case "$MANPAGE_FORMAT" in # (vi
11120 test ! -d man && mkdir man
11124 case "$MANPAGE_FORMAT" in #(vi
11127 cf_compress=compress
11135 cf_edit_man=./edit_man.sh
11136 cf_man_alias=`pwd`/man_alias.sed
11138 cat >$cf_edit_man <<CF_EOF
11140 # this script is generated by the configure-script CF_MAN_PAGES macro.
11142 prefix="$cf_prefix"
11143 datarootdir="$datarootdir"
11146 NCURSES_MAJOR="$NCURSES_MAJOR"
11147 NCURSES_MINOR="$NCURSES_MINOR"
11148 NCURSES_PATCH="$NCURSES_PATCH"
11150 NCURSES_OSPEED="$NCURSES_OSPEED"
11151 TERMINFO="$TERMINFO"
11154 INSTALL_DATA="$INSTALL_DATA"
11156 transform="$program_transform_name"
11158 TMP=\${TMPDIR:=/tmp}/man\$\$
11159 trap "rm -f \$TMP" 0 1 2 5 15
11171 top_srcdir=\$srcdir/..
11174 if test "\$form" = normal ; then
11175 if test "$cf_format" = yes ; then
11176 if test "$cf_inboth" = no ; then
11177 sh \$0 format \$verb \$mandir \$srcdir \$*
11181 cf_subdir=\$mandir/man
11182 cf_tables=$MANPAGE_TBL
11184 cf_subdir=\$mandir/cat
11188 # process the list of source-files
11191 *.orig|*.rej) ;; #(vi
11193 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11194 if test \$verb = installing ; then
11195 if test ! -d \$cf_subdir\${section} ; then
11196 mkdir -p \$cf_subdir\$section
11200 # replace variables in man page
11201 if test ! -f $cf_man_alias ; then
11202 cat >>$cf_man_alias <<-CF_EOF2
11203 s,@DATADIR@,\$datadir,g
11204 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11205 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11206 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11207 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11208 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11209 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11212 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
11214 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11215 cf_name=`echo $cf_name|sed "$program_transform_name"`
11216 cat >>$cf_edit_man <<-CF_EOF
11217 s,@$cf_NAME@,$cf_name,g
11221 cat >>$cf_edit_man <<CF_EOF
11223 echo "...made $cf_man_alias"
11227 cf_source=\`basename \$i\`
11228 inalias=\$cf_source
11229 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11230 if test ! -f \$inalias ; then
11231 echo .. skipped \$cf_source
11236 if test "$MANPAGE_ALIASES" != no ; then
11237 cat >>$cf_edit_man <<CF_EOF
11239 test $with_curses_h = yes && nCurses=ncurses.3x
11240 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11244 if test "$MANPAGE_RENAMES" = no ; then
11245 cat >>$cf_edit_man <<CF_EOF
11246 # perform program transformations for section 1 man pages
11247 if test \$section = 1 ; then
11248 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11250 cf_target=\$cf_subdir\${section}/\$cf_source
11254 cat >>$cf_edit_man <<CF_EOF
11255 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11256 if test -z "\$cf_target" ; then
11257 echo '? missing rename for '\$cf_source
11258 cf_target="\$cf_source"
11260 cf_target="\$cf_subdir\${section}/\${cf_target}"
11265 cat >>$cf_edit_man <<CF_EOF
11266 sed -f $cf_man_alias \\
11269 if test -f $MANPAGE_RENAMES ; then
11270 cat >>$cf_edit_man <<CF_EOF
11271 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11274 cat >>$cf_edit_man <<CF_EOF
11279 cat >>$cf_edit_man <<CF_EOF
11280 if test \$cf_tables = yes ; then
11281 tbl \$TMP >\$TMP.out
11286 if test $with_overwrite != yes ; then
11287 cat >>$cf_edit_man <<CF_EOF
11288 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11293 if test $with_curses_h != yes ; then
11294 cat >>$cf_edit_man <<CF_EOF
11295 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11300 cat >>$cf_edit_man <<CF_EOF
11301 if test \$form = format ; then
11302 nroff -man \$TMP >\$TMP.out
11307 if test -n "$cf_compress" ; then
11308 cat >>$cf_edit_man <<CF_EOF
11309 if test \$verb = installing ; then
11310 if ( $cf_compress -f \$TMP )
11312 mv \$TMP.$cf_so_strip \$TMP
11315 cf_target="\$cf_target.$cf_so_strip"
11319 case "$MANPAGE_FORMAT" in #(vi
11321 cat >>$cf_edit_man <<CF_EOF
11322 if test \$form = format ; then
11323 # BSDI installs only .0 suffixes in the cat directories
11324 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11330 cat >>$cf_edit_man <<CF_EOF
11331 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11332 if test \$verb = installing ; then
11333 echo \$verb \$cf_target
11334 \$INSTALL_DATA \$TMP \$cf_target
11335 test -d \$cf_subdir\${section} &&
11336 test -n "\$aliases" && (
11337 cd \$cf_subdir\${section} && (
11338 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11339 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11340 cf_target=\`basename \$cf_target\`
11341 for cf_alias in \$aliases
11343 if test \$section = 1 ; then
11344 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11347 if test "$MANPAGE_SYMLINKS" = yes ; then
11348 if test -f \$cf_alias\${suffix} ; then
11349 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11354 echo .. \$verb alias \$cf_alias\${suffix}
11356 case "x$LN_S" in #(vi
11358 cat >>$cf_edit_man <<CF_EOF
11359 $LN_S \$cf_target \$cf_alias\${suffix}
11363 cat >>$cf_edit_man <<CF_EOF
11364 rm -f \$cf_alias\${suffix}
11365 $LN_S \$cf_target \$cf_alias\${suffix}
11369 cat >>$cf_edit_man <<CF_EOF
11370 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11371 echo ".so \$cf_source" >\$TMP
11373 if test -n "$cf_compress" ; then
11374 cat >>$cf_edit_man <<CF_EOF
11375 if test -n "$cf_so_strip" ; then
11376 $cf_compress -f \$TMP
11377 mv \$TMP.$cf_so_strip \$TMP
11381 cat >>$cf_edit_man <<CF_EOF
11382 echo .. \$verb alias \$cf_alias\${suffix}
11383 rm -f \$cf_alias\${suffix}
11384 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11389 elif test \$verb = removing ; then
11390 test -f \$cf_target && (
11391 echo \$verb \$cf_target
11394 test -d \$cf_subdir\${section} &&
11395 test -n "\$aliases" && (
11396 cd \$cf_subdir\${section} && (
11397 for cf_alias in \$aliases
11399 if test \$section = 1 ; then
11400 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11403 echo .. \$verb alias \$cf_alias\${suffix}
11404 rm -f \$cf_alias\${suffix}
11416 if test $cf_inboth = yes ; then
11417 if test \$form != format ; then
11418 sh \$0 format \$verb \$mandir \$srcdir \$*
11424 chmod 755 $cf_edit_man
11426 ###############################################################################
11428 ### Note that some functions (such as const) are normally disabled anyway.
11429 echo "$as_me:11429: checking if you want to build with function extensions" >&5
11430 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11432 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11433 if test "${enable_ext_funcs+set}" = set; then
11434 enableval="$enable_ext_funcs"
11435 with_ext_funcs=$enableval
11439 echo "$as_me:11439: result: $with_ext_funcs" >&5
11440 echo "${ECHO_T}$with_ext_funcs" >&6
11441 if test "x$with_ext_funcs" = xyes ; then
11442 NCURSES_EXT_FUNCS=1
11444 cat >>confdefs.h <<\EOF
11445 #define HAVE_ASSUME_DEFAULT_COLORS 1
11448 cat >>confdefs.h <<\EOF
11449 #define HAVE_CURSES_VERSION 1
11452 cat >>confdefs.h <<\EOF
11453 #define HAVE_HAS_KEY 1
11456 cat >>confdefs.h <<\EOF
11457 #define HAVE_RESIZETERM 1
11460 cat >>confdefs.h <<\EOF
11461 #define HAVE_RESIZE_TERM 1
11464 cat >>confdefs.h <<\EOF
11465 #define HAVE_TERM_ENTRY_H 1
11468 cat >>confdefs.h <<\EOF
11469 #define HAVE_USE_DEFAULT_COLORS 1
11472 cat >>confdefs.h <<\EOF
11473 #define HAVE_USE_SCREEN 1
11476 cat >>confdefs.h <<\EOF
11477 #define HAVE_USE_WINDOW 1
11480 cat >>confdefs.h <<\EOF
11481 #define HAVE_WRESIZE 1
11484 cat >>confdefs.h <<\EOF
11485 #define NCURSES_EXT_FUNCS 1
11488 GENERATED_EXT_FUNCS=generated
11490 NCURSES_EXT_FUNCS=0
11491 GENERATED_EXT_FUNCS=
11494 echo "$as_me:11494: checking if you want to build with experimental SCREEN extensions" >&5
11495 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
11497 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11498 if test "${enable_sp_funcs+set}" = set; then
11499 enableval="$enable_sp_funcs"
11500 with_sp_funcs=$enableval
11504 echo "$as_me:11504: result: $with_sp_funcs" >&5
11505 echo "${ECHO_T}$with_sp_funcs" >&6
11506 if test "x$with_sp_funcs" = xyes ; then
11509 cat >>confdefs.h <<\EOF
11510 #define NCURSES_SP_FUNCS 1
11513 GENERATED_SP_FUNCS=generated
11516 GENERATED_SP_FUNCS=
11519 echo "$as_me:11519: checking if you want to build with experimental terminal-driver" >&5
11520 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
11522 # Check whether --enable-term-driver or --disable-term-driver was given.
11523 if test "${enable_term_driver+set}" = set; then
11524 enableval="$enable_term_driver"
11525 with_term_driver=$enableval
11527 with_term_driver=no
11529 echo "$as_me:11529: result: $with_term_driver" >&5
11530 echo "${ECHO_T}$with_term_driver" >&6
11531 if test "x$with_term_driver" = xyes ; then
11533 cat >>confdefs.h <<\EOF
11534 #define USE_TERM_DRIVER 1
11537 if test "x$with_sp_funcs" != xyes ; then
11538 { { echo "$as_me:11538: error: The term-driver option relies upon sp-funcs" >&5
11539 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11540 { (exit 1); exit 1; }; }
11544 ### use option --enable-const to turn on use of const beyond that in XSI.
11545 echo "$as_me:11545: checking for extended use of const keyword" >&5
11546 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11548 # Check whether --enable-const or --disable-const was given.
11549 if test "${enable_const+set}" = set; then
11550 enableval="$enable_const"
11551 with_ext_const=$enableval
11555 echo "$as_me:11555: result: $with_ext_const" >&5
11556 echo "${ECHO_T}$with_ext_const" >&6
11557 NCURSES_CONST='/*nothing*/'
11558 if test "x$with_ext_const" = xyes ; then
11559 NCURSES_CONST=const
11562 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11563 echo "$as_me:11563: checking if you want to use extended colors" >&5
11564 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11566 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11567 if test "${enable_ext_colors+set}" = set; then
11568 enableval="$enable_ext_colors"
11569 with_ext_colors=$enableval
11573 echo "$as_me:11573: result: $with_ext_colors" >&5
11574 echo "${ECHO_T}$with_ext_colors" >&6
11575 NCURSES_EXT_COLORS=0
11576 if test "x$with_ext_colors" = xyes ; then
11577 if test "x$with_widec" != xyes ; then
11578 { { echo "$as_me:11578: error: This option applies only to wide-character library" >&5
11579 echo "$as_me: error: This option applies only to wide-character library" >&2;}
11580 { (exit 1); exit 1; }; }
11582 # cannot be ABI 5 since it changes sizeof(cchar_t)
11584 if test "${with_abi_version+set}" != set; then
11585 case $cf_cv_rel_version in
11587 cf_cv_rel_version=6.0
11588 cf_cv_abi_version=6
11589 { echo "$as_me:11589: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11590 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11596 NCURSES_EXT_COLORS=1
11598 cat >>confdefs.h <<\EOF
11599 #define NCURSES_EXT_COLORS 1
11604 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11605 echo "$as_me:11605: checking if you want to use extended mouse encoding" >&5
11606 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11608 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11609 if test "${enable_ext_mouse+set}" = set; then
11610 enableval="$enable_ext_mouse"
11611 with_ext_mouse=$enableval
11615 echo "$as_me:11615: result: $with_ext_mouse" >&5
11616 echo "${ECHO_T}$with_ext_mouse" >&6
11617 NCURSES_MOUSE_VERSION=1
11618 if test "x$with_ext_mouse" = xyes ; then
11619 NCURSES_MOUSE_VERSION=2
11621 if test "${with_abi_version+set}" != set; then
11622 case $cf_cv_rel_version in
11624 cf_cv_rel_version=6.0
11625 cf_cv_abi_version=6
11626 { echo "$as_me:11626: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11627 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11634 echo "$as_me:11634: checking if you want \$NCURSES_NO_PADDING code" >&5
11635 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11637 # Check whether --enable-no-padding or --disable-no-padding was given.
11638 if test "${enable_no_padding+set}" = set; then
11639 enableval="$enable_no_padding"
11640 with_no_padding=$enableval
11642 with_no_padding=$with_ext_funcs
11644 echo "$as_me:11644: result: $with_no_padding" >&5
11645 echo "${ECHO_T}$with_no_padding" >&6
11646 test "x$with_no_padding" = xyes &&
11647 cat >>confdefs.h <<\EOF
11648 #define NCURSES_NO_PADDING 1
11651 echo "$as_me:11651: checking for ANSI C header files" >&5
11652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11653 if test "${ac_cv_header_stdc+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 cat >conftest.$ac_ext <<_ACEOF
11657 #line 11657 "configure"
11658 #include "confdefs.h"
11659 #include <stdlib.h>
11660 #include <stdarg.h>
11661 #include <string.h>
11665 if { (eval echo "$as_me:11665: \"$ac_cpp conftest.$ac_ext\"") >&5
11666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668 egrep -v '^ *\+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:11671: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null; then
11673 if test -s conftest.err; then
11674 ac_cpp_err=$ac_c_preproc_warn_flag
11681 if test -z "$ac_cpp_err"; then
11682 ac_cv_header_stdc=yes
11684 echo "$as_me: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11686 ac_cv_header_stdc=no
11688 rm -f conftest.err conftest.$ac_ext
11690 if test $ac_cv_header_stdc = yes; then
11691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11692 cat >conftest.$ac_ext <<_ACEOF
11693 #line 11693 "configure"
11694 #include "confdefs.h"
11695 #include <string.h>
11698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11699 egrep "memchr" >/dev/null 2>&1; then
11702 ac_cv_header_stdc=no
11708 if test $ac_cv_header_stdc = yes; then
11709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11710 cat >conftest.$ac_ext <<_ACEOF
11711 #line 11711 "configure"
11712 #include "confdefs.h"
11713 #include <stdlib.h>
11716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11717 egrep "free" >/dev/null 2>&1; then
11720 ac_cv_header_stdc=no
11726 if test $ac_cv_header_stdc = yes; then
11727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11728 if test "$cross_compiling" = yes; then
11731 cat >conftest.$ac_ext <<_ACEOF
11732 #line 11732 "configure"
11733 #include "confdefs.h"
11735 #if ((' ' & 0x0FF) == 0x020)
11736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11739 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11740 || ('j' <= (c) && (c) <= 'r') \
11741 || ('s' <= (c) && (c) <= 'z'))
11742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11750 for (i = 0; i < 256; i++)
11751 if (XOR (islower (i), ISLOWER (i))
11752 || toupper (i) != TOUPPER (i))
11753 $ac_main_return(2);
11754 $ac_main_return (0);
11757 rm -f conftest$ac_exeext
11758 if { (eval echo "$as_me:11758: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11761 echo "$as_me:11761: \$? = $ac_status" >&5
11762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11763 { (eval echo "$as_me:11763: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:11766: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11770 echo "$as_me: program exited with status $ac_status" >&5
11771 echo "$as_me: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11773 ac_cv_header_stdc=no
11775 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11779 echo "$as_me:11779: result: $ac_cv_header_stdc" >&5
11780 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11781 if test $ac_cv_header_stdc = yes; then
11783 cat >>confdefs.h <<\EOF
11784 #define STDC_HEADERS 1
11789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11791 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11792 inttypes.h stdint.h unistd.h
11794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 echo "$as_me:11795: checking for $ac_header" >&5
11796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 cat >conftest.$ac_ext <<_ACEOF
11801 #line 11801 "configure"
11802 #include "confdefs.h"
11803 $ac_includes_default
11804 #include <$ac_header>
11806 rm -f conftest.$ac_objext
11807 if { (eval echo "$as_me:11807: \"$ac_compile\"") >&5
11808 (eval $ac_compile) 2>&5
11810 echo "$as_me:11810: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (eval echo "$as_me:11813: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:11816: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_Header=yes"
11820 echo "$as_me: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 eval "$as_ac_Header=no"
11824 rm -f conftest.$ac_objext conftest.$ac_ext
11826 echo "$as_me:11826: result: `eval echo '${'$as_ac_Header'}'`" >&5
11827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11829 cat >>confdefs.h <<EOF
11830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11836 echo "$as_me:11836: checking for signed char" >&5
11837 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11838 if test "${ac_cv_type_signed_char+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 cat >conftest.$ac_ext <<_ACEOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11844 $ac_includes_default
11848 if ((signed char *) 0)
11850 if (sizeof (signed char))
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:11857: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>&5
11860 echo "$as_me:11860: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:11863: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:11866: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_cv_type_signed_char=yes
11870 echo "$as_me: failed program was:" >&5
11871 cat conftest.$ac_ext >&5
11872 ac_cv_type_signed_char=no
11874 rm -f conftest.$ac_objext conftest.$ac_ext
11876 echo "$as_me:11876: result: $ac_cv_type_signed_char" >&5
11877 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11879 echo "$as_me:11879: checking size of signed char" >&5
11880 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11881 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 if test "$ac_cv_type_signed_char" = yes; then
11885 if test "$cross_compiling" = yes; then
11886 # Depending upon the size, compute the lo and hi bounds.
11887 cat >conftest.$ac_ext <<_ACEOF
11888 #line 11888 "configure"
11889 #include "confdefs.h"
11890 $ac_includes_default
11894 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:11900: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>&5
11903 echo "$as_me:11903: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:11906: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:11909: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11913 cat >conftest.$ac_ext <<_ACEOF
11914 #line 11914 "configure"
11915 #include "confdefs.h"
11916 $ac_includes_default
11920 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:11926: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>&5
11929 echo "$as_me:11929: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -s conftest.$ac_objext'
11932 { (eval echo "$as_me:11932: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:11935: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_hi=$ac_mid; break
11939 echo "$as_me: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11941 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11943 rm -f conftest.$ac_objext conftest.$ac_ext
11946 echo "$as_me: failed program was:" >&5
11947 cat conftest.$ac_ext >&5
11950 cat >conftest.$ac_ext <<_ACEOF
11951 #line 11951 "configure"
11952 #include "confdefs.h"
11953 $ac_includes_default
11957 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11962 rm -f conftest.$ac_objext
11963 if { (eval echo "$as_me:11963: \"$ac_compile\"") >&5
11964 (eval $ac_compile) 2>&5
11966 echo "$as_me:11966: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -s conftest.$ac_objext'
11969 { (eval echo "$as_me:11969: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:11972: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 ac_lo=$ac_mid; break
11976 echo "$as_me: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11980 rm -f conftest.$ac_objext conftest.$ac_ext
11983 rm -f conftest.$ac_objext conftest.$ac_ext
11984 # Binary search between lo and hi bounds.
11985 while test "x$ac_lo" != "x$ac_hi"; do
11986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line 11988 "configure"
11989 #include "confdefs.h"
11990 $ac_includes_default
11994 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:12000: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>&5
12003 echo "$as_me:12003: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:12006: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:12009: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12013 echo "$as_me: failed program was:" >&5
12014 cat conftest.$ac_ext >&5
12015 ac_lo=`expr $ac_mid + 1`
12017 rm -f conftest.$ac_objext conftest.$ac_ext
12019 ac_cv_sizeof_signed_char=$ac_lo
12021 if test "$cross_compiling" = yes; then
12022 { { echo "$as_me:12022: error: cannot run test program while cross compiling" >&5
12023 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12024 { (exit 1); exit 1; }; }
12026 cat >conftest.$ac_ext <<_ACEOF
12027 #line 12027 "configure"
12028 #include "confdefs.h"
12029 $ac_includes_default
12033 FILE *f = fopen ("conftest.val", "w");
12035 $ac_main_return (1);
12036 fprintf (f, "%d", (sizeof (signed char)));
12042 rm -f conftest$ac_exeext
12043 if { (eval echo "$as_me:12043: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>&5
12046 echo "$as_me:12046: \$? = $ac_status" >&5
12047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12048 { (eval echo "$as_me:12048: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:12051: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_sizeof_signed_char=`cat conftest.val`
12055 echo "$as_me: program exited with status $ac_status" >&5
12056 echo "$as_me: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12059 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12064 ac_cv_sizeof_signed_char=0
12067 echo "$as_me:12067: result: $ac_cv_sizeof_signed_char" >&5
12068 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12069 cat >>confdefs.h <<EOF
12070 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12073 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12074 NCURSES_SBOOL="signed char"
12076 NCURSES_SBOOL="char"
12078 echo "$as_me:12078: checking if you want to use signed Boolean array in term.h" >&5
12079 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12081 # Check whether --enable-signed-char or --disable-signed-char was given.
12082 if test "${enable_signed_char+set}" = set; then
12083 enableval="$enable_signed_char"
12084 with_signed_char=$enableval
12086 with_signed_char=no
12088 echo "$as_me:12088: result: $with_signed_char" >&5
12089 echo "${ECHO_T}$with_signed_char" >&6
12090 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12092 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12093 echo "$as_me:12093: checking if you want SIGWINCH handler" >&5
12094 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12096 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12097 if test "${enable_sigwinch+set}" = set; then
12098 enableval="$enable_sigwinch"
12099 with_sigwinch=$enableval
12101 with_sigwinch=$with_ext_funcs
12103 echo "$as_me:12103: result: $with_sigwinch" >&5
12104 echo "${ECHO_T}$with_sigwinch" >&6
12105 test "x$with_sigwinch" = xyes &&
12106 cat >>confdefs.h <<\EOF
12107 #define USE_SIGWINCH 1
12110 ### use option --enable-tcap-names to allow user to define new capabilities
12111 echo "$as_me:12111: checking if you want user-definable terminal capabilities like termcap" >&5
12112 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12114 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12115 if test "${enable_tcap_names+set}" = set; then
12116 enableval="$enable_tcap_names"
12117 with_tcap_names=$enableval
12119 with_tcap_names=$with_ext_funcs
12121 echo "$as_me:12121: result: $with_tcap_names" >&5
12122 echo "${ECHO_T}$with_tcap_names" >&6
12124 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12126 ###############################################################################
12127 # These options are relatively safe to experiment with.
12129 echo "$as_me:12129: checking if you want all development code" >&5
12130 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
12132 # Check whether --with-develop or --without-develop was given.
12133 if test "${with_develop+set}" = set; then
12134 withval="$with_develop"
12135 with_develop=$withval
12139 echo "$as_me:12139: result: $with_develop" >&5
12140 echo "${ECHO_T}$with_develop" >&6
12142 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
12143 echo "$as_me:12143: checking if you want hard-tabs code" >&5
12144 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
12146 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
12147 if test "${enable_hard_tabs+set}" = set; then
12148 enableval="$enable_hard_tabs"
12151 enable_hard_tabs=$with_develop
12153 echo "$as_me:12153: result: $enable_hard_tabs" >&5
12154 echo "${ECHO_T}$enable_hard_tabs" >&6
12155 test "x$enable_hard_tabs" = xyes &&
12156 cat >>confdefs.h <<\EOF
12157 #define USE_HARD_TABS 1
12160 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
12161 echo "$as_me:12161: checking if you want limited support for xmc" >&5
12162 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
12164 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12165 if test "${enable_xmc_glitch+set}" = set; then
12166 enableval="$enable_xmc_glitch"
12169 enable_xmc_glitch=$with_develop
12171 echo "$as_me:12171: result: $enable_xmc_glitch" >&5
12172 echo "${ECHO_T}$enable_xmc_glitch" >&6
12173 test "x$enable_xmc_glitch" = xyes &&
12174 cat >>confdefs.h <<\EOF
12175 #define USE_XMC_SUPPORT 1
12178 ###############################################################################
12179 # These are just experimental, probably should not be in a package:
12181 echo "$as_me:12181: checking if you do not want to assume colors are white-on-black" >&5
12182 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
12184 # Check whether --enable-assumed-color or --disable-assumed-color was given.
12185 if test "${enable_assumed_color+set}" = set; then
12186 enableval="$enable_assumed_color"
12187 with_assumed_color=$enableval
12189 with_assumed_color=yes
12191 echo "$as_me:12191: result: $with_assumed_color" >&5
12192 echo "${ECHO_T}$with_assumed_color" >&6
12193 test "x$with_assumed_color" = xyes &&
12194 cat >>confdefs.h <<\EOF
12195 #define USE_ASSUMED_COLOR 1
12198 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
12199 echo "$as_me:12199: checking if you want hashmap scrolling-optimization code" >&5
12200 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
12202 # Check whether --enable-hashmap or --disable-hashmap was given.
12203 if test "${enable_hashmap+set}" = set; then
12204 enableval="$enable_hashmap"
12205 with_hashmap=$enableval
12209 echo "$as_me:12209: result: $with_hashmap" >&5
12210 echo "${ECHO_T}$with_hashmap" >&6
12211 test "x$with_hashmap" = xyes &&
12212 cat >>confdefs.h <<\EOF
12213 #define USE_HASHMAP 1
12216 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
12217 echo "$as_me:12217: checking if you want colorfgbg code" >&5
12218 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
12220 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
12221 if test "${enable_colorfgbg+set}" = set; then
12222 enableval="$enable_colorfgbg"
12223 with_colorfgbg=$enableval
12227 echo "$as_me:12227: result: $with_colorfgbg" >&5
12228 echo "${ECHO_T}$with_colorfgbg" >&6
12229 test "x$with_colorfgbg" = xyes &&
12230 cat >>confdefs.h <<\EOF
12231 #define USE_COLORFGBG 1
12234 ### use option --enable-interop to turn on use of bindings used for interop
12235 echo "$as_me:12235: checking if you want interop bindings" >&5
12236 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
12238 # Check whether --enable-interop or --disable-interop was given.
12239 if test "${enable_interop+set}" = set; then
12240 enableval="$enable_interop"
12241 with_exp_interop=$enableval
12243 with_exp_interop=no
12245 echo "$as_me:12245: result: $with_exp_interop" >&5
12246 echo "${ECHO_T}$with_exp_interop" >&6
12248 NCURSES_INTEROP_FUNCS=0
12249 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
12251 # This is still experimental (20080329), but should ultimately be moved to
12252 # the script-block --with-normal, etc.
12254 echo "$as_me:12254: checking if you want to link with the pthread library" >&5
12255 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12257 # Check whether --with-pthread or --without-pthread was given.
12258 if test "${with_pthread+set}" = set; then
12259 withval="$with_pthread"
12260 with_pthread=$withval
12264 echo "$as_me:12264: result: $with_pthread" >&5
12265 echo "${ECHO_T}$with_pthread" >&6
12267 if test "$with_pthread" != no ; then
12268 echo "$as_me:12268: checking for pthread.h" >&5
12269 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12270 if test "${ac_cv_header_pthread_h+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 cat >conftest.$ac_ext <<_ACEOF
12274 #line 12274 "configure"
12275 #include "confdefs.h"
12276 #include <pthread.h>
12278 if { (eval echo "$as_me:12278: \"$ac_cpp conftest.$ac_ext\"") >&5
12279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12281 egrep -v '^ *\+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 (exit $ac_status); } >/dev/null; then
12286 if test -s conftest.err; then
12287 ac_cpp_err=$ac_c_preproc_warn_flag
12294 if test -z "$ac_cpp_err"; then
12295 ac_cv_header_pthread_h=yes
12297 echo "$as_me: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299 ac_cv_header_pthread_h=no
12301 rm -f conftest.err conftest.$ac_ext
12303 echo "$as_me:12303: result: $ac_cv_header_pthread_h" >&5
12304 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12305 if test $ac_cv_header_pthread_h = yes; then
12307 cat >>confdefs.h <<\EOF
12308 #define HAVE_PTHREADS_H 1
12311 for cf_lib_pthread in pthread c_r
12313 echo "$as_me:12313: checking if we can link with the $cf_lib_pthread library" >&5
12314 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12315 cf_save_LIBS="$LIBS"
12317 cf_add_libs="-l$cf_lib_pthread"
12318 # Filter out duplicates - this happens with badly-designed ".pc" files...
12319 for cf_add_1lib in $LIBS
12321 for cf_add_2lib in $cf_add_libs
12323 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12329 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12331 LIBS="$cf_add_libs"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line 12334 "configure"
12335 #include "confdefs.h"
12337 #include <pthread.h>
12343 int rc = pthread_create(0,0,0,0);
12344 int r2 = pthread_mutexattr_settype(0, 0);
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:12351: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>&5
12354 echo "$as_me:12354: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:12357: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:12360: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12364 echo "$as_me: failed program was:" >&5
12365 cat conftest.$ac_ext >&5
12368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12369 LIBS="$cf_save_LIBS"
12370 echo "$as_me:12370: result: $with_pthread" >&5
12371 echo "${ECHO_T}$with_pthread" >&6
12372 test "$with_pthread" = yes && break
12375 if test "$with_pthread" = yes ; then
12377 cf_add_libs="-l$cf_lib_pthread"
12378 # Filter out duplicates - this happens with badly-designed ".pc" files...
12379 for cf_add_1lib in $LIBS
12381 for cf_add_2lib in $cf_add_libs
12383 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12389 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12391 LIBS="$cf_add_libs"
12393 cat >>confdefs.h <<\EOF
12394 #define HAVE_LIBPTHREADS 1
12398 { { echo "$as_me:12398: error: Cannot link with pthread library" >&5
12399 echo "$as_me: error: Cannot link with pthread library" >&2;}
12400 { (exit 1); exit 1; }; }
12407 if test "x$with_pthread" != xno; then
12408 echo "$as_me:12408: checking for pthread_kill" >&5
12409 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12410 if test "${ac_cv_func_pthread_kill+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 cat >conftest.$ac_ext <<_ACEOF
12414 #line 12414 "configure"
12415 #include "confdefs.h"
12416 /* System header to define __stub macros and hopefully few prototypes,
12417 which can conflict with char pthread_kill (); below. */
12418 #include <assert.h>
12419 /* Override any gcc2 internal prototype to avoid an error. */
12423 /* We use char because int might match the return type of a gcc2
12424 builtin and then its argument prototype would still apply. */
12425 char pthread_kill ();
12431 /* The GNU C library defines this for functions which it implements
12432 to always fail with ENOSYS. Some functions are actually named
12433 something starting with __ and the normal name is an alias. */
12434 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12437 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12444 rm -f conftest.$ac_objext conftest$ac_exeext
12445 if { (eval echo "$as_me:12445: \"$ac_link\"") >&5
12446 (eval $ac_link) 2>&5
12448 echo "$as_me:12448: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -s conftest$ac_exeext'
12451 { (eval echo "$as_me:12451: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12454 echo "$as_me:12454: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_func_pthread_kill=yes
12458 echo "$as_me: failed program was:" >&5
12459 cat conftest.$ac_ext >&5
12460 ac_cv_func_pthread_kill=no
12462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12464 echo "$as_me:12464: result: $ac_cv_func_pthread_kill" >&5
12465 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12466 if test $ac_cv_func_pthread_kill = yes; then
12468 echo "$as_me:12468: checking if you want to allow EINTR in wgetch with pthreads" >&5
12469 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12471 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12472 if test "${enable_pthreads_eintr+set}" = set; then
12473 enableval="$enable_pthreads_eintr"
12474 use_pthreads_eintr=$enableval
12476 use_pthreads_eintr=no
12478 echo "$as_me:12478: result: $use_pthreads_eintr" >&5
12479 echo "${ECHO_T}$use_pthreads_eintr" >&6
12480 if test "x$use_pthreads_eintr" = xyes ; then
12482 cat >>confdefs.h <<\EOF
12483 #define USE_PTHREADS_EINTR 1
12489 echo "$as_me:12489: checking if you want to use weak-symbols for pthreads" >&5
12490 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12492 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12493 if test "${enable_weak_symbols+set}" = set; then
12494 enableval="$enable_weak_symbols"
12495 use_weak_symbols=$enableval
12497 use_weak_symbols=no
12499 echo "$as_me:12499: result: $use_weak_symbols" >&5
12500 echo "${ECHO_T}$use_weak_symbols" >&6
12501 if test "x$use_weak_symbols" = xyes ; then
12503 echo "$as_me:12503: checking if $CC supports weak symbols" >&5
12504 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12505 if test "${cf_cv_weak_symbols+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >conftest.$ac_ext <<_ACEOF
12510 #line 12510 "configure"
12511 #include "confdefs.h"
12518 #if defined(__GNUC__)
12519 # if defined __USE_ISOC99
12520 # define _cat_pragma(exp) _Pragma(#exp)
12521 # define _weak_pragma(exp) _cat_pragma(weak name)
12523 # define _weak_pragma(exp)
12525 # define _declare(name) __extension__ extern __typeof__(name) name
12526 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12529 weak_symbol(fopen);
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:12536: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12539 echo "$as_me:12539: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:12542: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:12545: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 cf_cv_weak_symbols=yes
12549 echo "$as_me: failed program was:" >&5
12550 cat conftest.$ac_ext >&5
12551 cf_cv_weak_symbols=no
12553 rm -f conftest.$ac_objext conftest.$ac_ext
12556 echo "$as_me:12556: result: $cf_cv_weak_symbols" >&5
12557 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12560 cf_cv_weak_symbols=no
12563 if test "x$cf_cv_weak_symbols" = xyes ; then
12565 cat >>confdefs.h <<\EOF
12566 #define USE_WEAK_SYMBOLS 1
12573 if test "x$with_pthread" = "xyes" ; then
12575 cat >>confdefs.h <<\EOF
12576 #define USE_PTHREADS 1
12579 enable_reentrant=yes
12580 if test "x$cf_cv_weak_symbols" = xyes ; then
12585 # Reentrant code has to be opaque; there's little advantage to making ncurses
12586 # opaque outside of that, so there is no --enable-opaque option. We can use
12587 # this option without --with-pthreads, but this will be always set for
12589 echo "$as_me:12589: checking if you want experimental reentrant code" >&5
12590 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
12592 # Check whether --enable-reentrant or --disable-reentrant was given.
12593 if test "${enable_reentrant+set}" = set; then
12594 enableval="$enable_reentrant"
12595 with_reentrant=$enableval
12599 echo "$as_me:12599: result: $with_reentrant" >&5
12600 echo "${ECHO_T}$with_reentrant" >&6
12601 if test "x$with_reentrant" = xyes ; then
12602 cf_cv_enable_reentrant=1
12603 cf_cv_enable_opaque="NCURSES_INTERNALS"
12606 if test "x$cf_cv_weak_symbols" = xyes ; then
12608 # remove pthread library from $LIBS
12609 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12611 cf_add_libs="-lpthread"
12612 # Filter out duplicates - this happens with badly-designed ".pc" files...
12613 for cf_add_1lib in $TEST_LIBS
12615 for cf_add_2lib in $cf_add_libs
12617 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12623 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12625 TEST_LIBS="$cf_add_libs"
12627 cf_add_libs="-lpthread"
12628 # Filter out duplicates - this happens with badly-designed ".pc" files...
12629 for cf_add_1lib in $TEST_LIBS2
12631 for cf_add_2lib in $cf_add_libs
12633 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12639 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12641 TEST_LIBS2="$cf_add_libs"
12644 # when not using weak symbols but with_reentrant,
12645 # add 't' to the library suffix on all platforms
12646 # except cygwin, where we only do that if ALSO
12647 # compiling with full thread support.
12649 *cygwin* | *msys*) #(vi
12650 if test "$with_pthread" = "yes" ; then
12651 if test "x$disable_lib_suffixes" = "xno" ; then
12652 LIB_SUFFIX="t${LIB_SUFFIX}"
12656 if test "x$disable_lib_suffixes" = "xno" ; then
12657 LIB_SUFFIX="t${LIB_SUFFIX}"
12663 cat >>confdefs.h <<\EOF
12664 #define USE_REENTRANT 1
12667 if test "${with_abi_version+set}" != set; then
12668 case $cf_cv_rel_version in
12670 cf_cv_rel_version=6.0
12671 cf_cv_abi_version=6
12672 { echo "$as_me:12672: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
12673 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
12679 cf_cv_enable_reentrant=0
12680 cf_cv_enable_opaque="NCURSES_OPAQUE"
12682 NCURSES_SIZE_T=short
12685 ### Allow using a different wrap-prefix
12686 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12687 echo "$as_me:12687: checking for prefix used to wrap public variables" >&5
12688 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12690 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12691 if test "${with_wrap_prefix+set}" = set; then
12692 withval="$with_wrap_prefix"
12693 NCURSES_WRAP_PREFIX=$withval
12695 NCURSES_WRAP_PREFIX=_nc_
12697 echo "$as_me:12697: result: $NCURSES_WRAP_PREFIX" >&5
12698 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12700 NCURSES_WRAP_PREFIX=_nc_
12703 cat >>confdefs.h <<EOF
12704 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12707 echo "$as_me:12707: checking if you want experimental safe-sprintf code" >&5
12708 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12710 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12711 if test "${enable_safe_sprintf+set}" = set; then
12712 enableval="$enable_safe_sprintf"
12713 with_safe_sprintf=$enableval
12715 with_safe_sprintf=no
12717 echo "$as_me:12717: result: $with_safe_sprintf" >&5
12718 echo "${ECHO_T}$with_safe_sprintf" >&6
12719 test "x$with_safe_sprintf" = xyes &&
12720 cat >>confdefs.h <<\EOF
12721 #define USE_SAFE_SPRINTF 1
12724 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12725 # when hashmap is used scroll hints are useless
12726 if test "$with_hashmap" = no ; then
12727 echo "$as_me:12727: checking if you want to experiment without scrolling-hints code" >&5
12728 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12730 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12731 if test "${enable_scroll_hints+set}" = set; then
12732 enableval="$enable_scroll_hints"
12733 with_scroll_hints=$enableval
12735 with_scroll_hints=yes
12737 echo "$as_me:12737: result: $with_scroll_hints" >&5
12738 echo "${ECHO_T}$with_scroll_hints" >&6
12739 test "x$with_scroll_hints" = xyes &&
12740 cat >>confdefs.h <<\EOF
12741 #define USE_SCROLL_HINTS 1
12746 echo "$as_me:12746: checking if you want experimental wgetch-events code" >&5
12747 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
12749 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12750 if test "${enable_wgetch_events+set}" = set; then
12751 enableval="$enable_wgetch_events"
12752 with_wgetch_events=$enableval
12754 with_wgetch_events=no
12756 echo "$as_me:12756: result: $with_wgetch_events" >&5
12757 echo "${ECHO_T}$with_wgetch_events" >&6
12758 test "x$with_wgetch_events" = xyes &&
12759 cat >>confdefs.h <<\EOF
12760 #define NCURSES_WGETCH_EVENTS 1
12763 ###############################################################################
12765 ### use option --disable-echo to suppress full display compiling commands
12767 echo "$as_me:12767: checking if you want to see long compiling messages" >&5
12768 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12770 # Check whether --enable-echo or --disable-echo was given.
12771 if test "${enable_echo+set}" = set; then
12772 enableval="$enable_echo"
12773 test "$enableval" != no && enableval=yes
12774 if test "$enableval" != "yes" ; then
12777 ECHO_LD='@echo linking $@;'
12778 RULE_CC='@echo compiling $<'
12779 SHOW_CC='@echo compiling $@'
12801 echo "$as_me:12801: result: $enableval" >&5
12802 echo "${ECHO_T}$enableval" >&6
12804 if test "x$enable_echo" = xyes; then
12807 ECHO_LINK='@ echo linking $@ ... ;'
12808 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12809 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12812 ### use option --enable-warnings to turn on all gcc warnings
12813 echo "$as_me:12813: checking if you want to see compiler warnings" >&5
12814 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12816 # Check whether --enable-warnings or --disable-warnings was given.
12817 if test "${enable_warnings+set}" = set; then
12818 enableval="$enable_warnings"
12819 with_warnings=$enableval
12821 echo "$as_me:12821: result: $with_warnings" >&5
12822 echo "${ECHO_T}$with_warnings" >&6
12824 if test "x$with_warnings" = "xyes"; then
12826 ADAFLAGS="$ADAFLAGS -gnatg"
12830 if test "$GCC" = yes ; then
12833 echo "$as_me:12833: checking if this is really Intel C compiler" >&5
12834 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12835 cf_save_CFLAGS="$CFLAGS"
12836 CFLAGS="$CFLAGS -no-gcc"
12837 cat >conftest.$ac_ext <<_ACEOF
12838 #line 12838 "configure"
12839 #include "confdefs.h"
12845 #ifdef __INTEL_COMPILER
12854 rm -f conftest.$ac_objext
12855 if { (eval echo "$as_me:12855: \"$ac_compile\"") >&5
12856 (eval $ac_compile) 2>&5
12858 echo "$as_me:12858: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:12861: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12864 echo "$as_me:12864: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12867 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
12870 echo "$as_me: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12873 rm -f conftest.$ac_objext conftest.$ac_ext
12874 CFLAGS="$cf_save_CFLAGS"
12875 echo "$as_me:12875: result: $INTEL_COMPILER" >&5
12876 echo "${ECHO_T}$INTEL_COMPILER" >&6
12883 if test "$GCC" = yes ; then
12884 echo "$as_me:12884: checking if this is really Clang C compiler" >&5
12885 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
12886 cf_save_CFLAGS="$CFLAGS"
12887 CFLAGS="$CFLAGS -Qunused-arguments"
12888 cat >conftest.$ac_ext <<_ACEOF
12889 #line 12889 "configure"
12890 #include "confdefs.h"
12905 rm -f conftest.$ac_objext
12906 if { (eval echo "$as_me:12906: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>&5
12909 echo "$as_me:12909: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -s conftest.$ac_objext'
12912 { (eval echo "$as_me:12912: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 echo "$as_me:12915: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12918 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12921 echo "$as_me: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12924 rm -f conftest.$ac_objext conftest.$ac_ext
12925 CFLAGS="$cf_save_CFLAGS"
12926 echo "$as_me:12926: result: $CLANG_COMPILER" >&5
12927 echo "${ECHO_T}$CLANG_COMPILER" >&6
12930 cat > conftest.$ac_ext <<EOF
12931 #line 12931 "${as_me:-configure}"
12932 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12935 if test "$INTEL_COMPILER" = yes
12937 # The "-wdXXX" options suppress warnings:
12938 # remark #1419: external declaration in primary source file
12939 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12940 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12941 # remark #193: zero used for undefined preprocessing identifier
12942 # remark #593: variable "curs_sb_left_arrow" was set but never used
12943 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12944 # remark #869: parameter "tw" was never referenced
12945 # remark #981: operands are evaluated in unspecified order
12946 # warning #279: controlling expression is constant
12948 { echo "$as_me:12948: checking for $CC warning options..." >&5
12949 echo "$as_me: checking for $CC warning options..." >&6;}
12950 cf_save_CFLAGS="$CFLAGS"
12951 EXTRA_CFLAGS="-Wall"
12963 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12964 if { (eval echo "$as_me:12964: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>&5
12967 echo "$as_me:12967: \$? = $ac_status" >&5
12968 (exit $ac_status); }; then
12969 test -n "$verbose" && echo "$as_me:12969: result: ... -$cf_opt" >&5
12970 echo "${ECHO_T}... -$cf_opt" >&6
12971 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12974 CFLAGS="$cf_save_CFLAGS"
12976 elif test "$GCC" = yes
12978 { echo "$as_me:12978: checking for $CC warning options..." >&5
12979 echo "$as_me: checking for $CC warning options..." >&6;}
12980 cf_save_CFLAGS="$CFLAGS"
12983 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12984 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
12985 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
12986 for cf_opt in W Wall \
12987 Wbad-function-cast \
12990 Wdeclaration-after-statement \
12993 Wmissing-declarations \
12994 Wmissing-prototypes \
12998 Wstrict-prototypes \
12999 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13001 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13002 if { (eval echo "$as_me:13002: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>&5
13005 echo "$as_me:13005: \$? = $ac_status" >&5
13006 (exit $ac_status); }; then
13007 test -n "$verbose" && echo "$as_me:13007: result: ... -$cf_opt" >&5
13008 echo "${ECHO_T}... -$cf_opt" >&6
13009 case $cf_opt in #(vi
13011 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13014 case $GCC_VERSION in
13016 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13018 echo "${as_me:-configure}:13018: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13023 Wpointer-arith) #(vi
13024 case $GCC_VERSION in
13026 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13028 echo "${as_me:-configure}:13028: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13034 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13037 CFLAGS="$cf_save_CFLAGS"
13041 if test "x$cf_with_cxx" = xyes ; then
13045 if test "$GCC" = yes ; then
13048 echo "$as_me:13048: checking if this is really Intel C++ compiler" >&5
13049 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13050 cf_save_CFLAGS="$CXXFLAGS"
13051 CXXFLAGS="$CXXFLAGS -no-gcc"
13052 cat >conftest.$ac_ext <<_ACEOF
13053 #line 13053 "configure"
13054 #include "confdefs.h"
13060 #ifdef __INTEL_COMPILER
13069 rm -f conftest.$ac_objext
13070 if { (eval echo "$as_me:13070: \"$ac_compile\"") >&5
13071 (eval $ac_compile) 2>&5
13073 echo "$as_me:13073: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -s conftest.$ac_objext'
13076 { (eval echo "$as_me:13076: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 echo "$as_me:13079: \$? = $ac_status" >&5
13080 (exit $ac_status); }; }; then
13081 INTEL_CPLUSPLUS=yes
13082 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13085 echo "$as_me: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13088 rm -f conftest.$ac_objext conftest.$ac_ext
13089 CXXFLAGS="$cf_save_CFLAGS"
13090 echo "$as_me:13090: result: $INTEL_CPLUSPLUS" >&5
13091 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13098 if test "$GCC" = yes ; then
13099 echo "$as_me:13099: checking if this is really Clang C++ compiler" >&5
13100 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13101 cf_save_CFLAGS="$CXXFLAGS"
13102 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13103 cat >conftest.$ac_ext <<_ACEOF
13104 #line 13104 "configure"
13105 #include "confdefs.h"
13120 rm -f conftest.$ac_objext
13121 if { (eval echo "$as_me:13121: \"$ac_compile\"") >&5
13122 (eval $ac_compile) 2>&5
13124 echo "$as_me:13124: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -s conftest.$ac_objext'
13127 { (eval echo "$as_me:13127: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:13130: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 CLANG_CPLUSPLUS=yes
13133 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13136 echo "$as_me: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13139 rm -f conftest.$ac_objext conftest.$ac_ext
13140 CXXFLAGS="$cf_save_CFLAGS"
13141 echo "$as_me:13141: result: $CLANG_CPLUSPLUS" >&5
13142 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13146 ac_cpp='$CXXCPP $CPPFLAGS'
13147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13150 ac_main_return=return
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13153 "configure"
13154 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13157 if test "$INTEL_CPLUSPLUS" = yes
13159 # The "-wdXXX" options suppress warnings:
13160 # remark #1419: external declaration in primary source file
13161 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13162 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13163 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13164 # remark #193: zero used for undefined preprocessing identifier
13165 # remark #593: variable "curs_sb_left_arrow" was set but never used
13166 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13167 # remark #869: parameter "tw" was never referenced
13168 # remark #981: operands are evaluated in unspecified order
13169 # warning #269: invalid format string conversion
13171 { echo "$as_me:13171: checking for $CC warning options..." >&5
13172 echo "$as_me: checking for $CC warning options..." >&6;}
13173 cf_save_CXXFLAGS="$CXXFLAGS"
13174 EXTRA_CXXFLAGS="-Wall"
13187 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13188 if { (eval echo "$as_me:13188: \"$ac_compile\"") >&5
13189 (eval $ac_compile) 2>&5
13191 echo "$as_me:13191: \$? = $ac_status" >&5
13192 (exit $ac_status); }; then
13193 test -n "$verbose" && echo "$as_me:13193: result: ... -$cf_opt" >&5
13194 echo "${ECHO_T}... -$cf_opt" >&6
13195 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13198 CXXFLAGS="$cf_save_CXXFLAGS"
13200 elif test "$GXX" = yes
13202 { echo "$as_me:13202: checking for $CXX warning options..." >&5
13203 echo "$as_me: checking for $CXX warning options..." >&6;}
13204 cf_save_CXXFLAGS="$CXXFLAGS"
13205 EXTRA_CXXFLAGS="-W -Wall"
13206 cf_gxx_extra_warnings=""
13207 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13208 case "$GCC_VERSION" in
13212 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13219 Wignored-qualifiers \
13221 Woverloaded-virtual \
13229 Wundef $cf_gxx_extra_warnings Wno-unused
13231 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13232 if { (eval echo "$as_me:13232: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>&5
13235 echo "$as_me:13235: \$? = $ac_status" >&5
13236 (exit $ac_status); }; then
13237 test -n "$verbose" && echo "$as_me:13237: result: ... -$cf_opt" >&5
13238 echo "${ECHO_T}... -$cf_opt" >&6
13239 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13241 test -n "$verbose" && echo "$as_me:13241: result: ... no -$cf_opt" >&5
13242 echo "${ECHO_T}... no -$cf_opt" >&6
13245 CXXFLAGS="$cf_save_CXXFLAGS"
13250 ac_cpp='$CPP $CPPFLAGS'
13251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13254 ac_main_return=return
13259 if test "$GCC" = yes
13261 cat > conftest.i <<EOF
13263 #define GCC_PRINTF 0
13266 #define GCC_SCANF 0
13268 #ifndef GCC_NORETURN
13269 #define GCC_NORETURN /* nothing */
13272 #define GCC_UNUSED /* nothing */
13275 if test "$GCC" = yes
13277 { echo "$as_me:13277: checking for $CC __attribute__ directives..." >&5
13278 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
13279 cat > conftest.$ac_ext <<EOF
13280 #line 13280 "${as_me:-configure}"
13281 #include "confdefs.h"
13282 #include "conftest.h"
13283 #include "conftest.i"
13285 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13287 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
13290 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
13292 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
13294 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
13295 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
13296 extern void foo(void) GCC_NORETURN;
13297 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
13299 cf_printf_attribute=no
13300 cf_scanf_attribute=no
13301 for cf_attribute in scanf printf unused noreturn
13304 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13306 cf_directive="__attribute__(($cf_attribute))"
13307 echo "checking for $CC $cf_directive" 1>&5
13309 case $cf_attribute in #(vi
13311 cf_printf_attribute=yes
13312 cat >conftest.h <<EOF
13313 #define GCC_$cf_ATTRIBUTE 1
13317 cf_scanf_attribute=yes
13318 cat >conftest.h <<EOF
13319 #define GCC_$cf_ATTRIBUTE 1
13323 cat >conftest.h <<EOF
13324 #define GCC_$cf_ATTRIBUTE $cf_directive
13329 if { (eval echo "$as_me:13329: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>&5
13332 echo "$as_me:13332: \$? = $ac_status" >&5
13333 (exit $ac_status); }; then
13334 test -n "$verbose" && echo "$as_me:13334: result: ... $cf_attribute" >&5
13335 echo "${ECHO_T}... $cf_attribute" >&6
13336 cat conftest.h >>confdefs.h
13337 case $cf_attribute in #(vi
13340 cat >>confdefs.h <<EOF
13341 #define GCC_NORETURN $cf_directive
13346 cf_value='/* nothing */'
13347 if test "$cf_printf_attribute" != no ; then
13348 cf_value='__attribute__((format(printf,fmt,var)))'
13350 cat >>confdefs.h <<\EOF
13351 #define GCC_PRINTF 1
13356 cat >>confdefs.h <<EOF
13357 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13362 cf_value='/* nothing */'
13363 if test "$cf_scanf_attribute" != no ; then
13364 cf_value='__attribute__((format(scanf,fmt,var)))'
13366 cat >>confdefs.h <<\EOF
13367 #define GCC_SCANF 1
13372 cat >>confdefs.h <<EOF
13373 #define GCC_SCANFLIKE(fmt,var) $cf_value
13379 cat >>confdefs.h <<EOF
13380 #define GCC_UNUSED $cf_directive
13388 fgrep define conftest.i >>confdefs.h
13393 echo "$as_me:13393: checking if you want to work around bogus compiler/loader warnings" >&5
13394 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13396 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13397 if test "${enable_string_hacks+set}" = set; then
13398 enableval="$enable_string_hacks"
13399 with_string_hacks=$enableval
13401 with_string_hacks=no
13403 echo "$as_me:13403: result: $with_string_hacks" >&5
13404 echo "${ECHO_T}$with_string_hacks" >&6
13406 if test "x$with_string_hacks" = "xyes"; then
13408 cat >>confdefs.h <<\EOF
13409 #define USE_STRING_HACKS 1
13412 { echo "$as_me:13412: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13413 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13415 for ac_func in strlcat strlcpy snprintf
13417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13418 echo "$as_me:13418: checking for $ac_func" >&5
13419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13420 if eval "test \"\${$as_ac_var+set}\" = set"; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #line 13424 "configure"
13425 #include "confdefs.h"
13426 /* System header to define __stub macros and hopefully few prototypes,
13427 which can conflict with char $ac_func (); below. */
13428 #include <assert.h>
13429 /* Override any gcc2 internal prototype to avoid an error. */
13433 /* We use char because int might match the return type of a gcc2
13434 builtin and then its argument prototype would still apply. */
13441 /* The GNU C library defines this for functions which it implements
13442 to always fail with ENOSYS. Some functions are actually named
13443 something starting with __ and the normal name is an alias. */
13444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13447 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (eval echo "$as_me:13455: \"$ac_link\"") >&5
13456 (eval $ac_link) 2>&5
13458 echo "$as_me:13458: \$? = $ac_status" >&5
13459 (exit $ac_status); } &&
13460 { ac_try='test -s conftest$ac_exeext'
13461 { (eval echo "$as_me:13461: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13464 echo "$as_me:13464: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 eval "$as_ac_var=yes"
13468 echo "$as_me: failed program was:" >&5
13469 cat conftest.$ac_ext >&5
13470 eval "$as_ac_var=no"
13472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13474 echo "$as_me:13474: result: `eval echo '${'$as_ac_var'}'`" >&5
13475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13476 if test `eval echo '${'$as_ac_var'}'` = yes; then
13477 cat >>confdefs.h <<EOF
13478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13486 ### use option --enable-assertions to turn on generation of assertion code
13487 echo "$as_me:13487: checking if you want to enable runtime assertions" >&5
13488 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
13490 # Check whether --enable-assertions or --disable-assertions was given.
13491 if test "${enable_assertions+set}" = set; then
13492 enableval="$enable_assertions"
13493 with_assertions=$enableval
13497 echo "$as_me:13497: result: $with_assertions" >&5
13498 echo "${ECHO_T}$with_assertions" >&6
13501 if test "$with_assertions" = no
13503 CPPFLAGS="$CPPFLAGS -DNDEBUG"
13506 ADAFLAGS="$ADAFLAGS -gnata"
13511 ### use option --disable-leaks to suppress "permanent" leaks, for testing
13513 echo "$as_me:13513: checking if you want to use dmalloc for testing" >&5
13514 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
13516 # Check whether --with-dmalloc or --without-dmalloc was given.
13517 if test "${with_dmalloc+set}" = set; then
13518 withval="$with_dmalloc"
13520 cat >>confdefs.h <<EOF
13521 #define USE_DMALLOC 1
13524 : ${with_cflags:=-g}
13525 : ${with_no_leaks:=yes}
13530 echo "$as_me:13530: result: ${with_dmalloc:-no}" >&5
13531 echo "${ECHO_T}${with_dmalloc:-no}" >&6
13533 case .$with_cflags in #(vi
13535 case .$CFLAGS in #(vi
13543 cf_new_extra_cppflags=
13545 for cf_add_cflags in -g
13547 case $cf_fix_cppflags in
13549 case $cf_add_cflags in #(vi
13550 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13551 case $cf_add_cflags in
13553 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13555 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13556 && test -z "${cf_tst_cflags}" \
13557 && cf_fix_cppflags=yes
13559 if test $cf_fix_cppflags = yes ; then
13560 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13562 elif test "${cf_tst_cflags}" = "\"'" ; then
13563 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13568 case "$CPPFLAGS" in
13569 *$cf_add_cflags) #(vi
13572 case $cf_add_cflags in #(vi
13574 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13576 CPPFLAGS=`echo "$CPPFLAGS" | \
13577 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13578 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13582 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13587 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13592 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13594 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13596 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13597 && test -z "${cf_tst_cflags}" \
13598 && cf_fix_cppflags=no
13603 if test -n "$cf_new_cflags" ; then
13605 CFLAGS="$CFLAGS $cf_new_cflags"
13608 if test -n "$cf_new_cppflags" ; then
13610 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13613 if test -n "$cf_new_extra_cppflags" ; then
13615 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13623 if test "$with_dmalloc" = yes ; then
13624 echo "$as_me:13624: checking for dmalloc.h" >&5
13625 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13626 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line 13630 "configure"
13631 #include "confdefs.h"
13632 #include <dmalloc.h>
13634 if { (eval echo "$as_me:13634: \"$ac_cpp conftest.$ac_ext\"") >&5
13635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13637 egrep -v '^ *\+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:13640: \$? = $ac_status" >&5
13641 (exit $ac_status); } >/dev/null; then
13642 if test -s conftest.err; then
13643 ac_cpp_err=$ac_c_preproc_warn_flag
13650 if test -z "$ac_cpp_err"; then
13651 ac_cv_header_dmalloc_h=yes
13653 echo "$as_me: failed program was:" >&5
13654 cat conftest.$ac_ext >&5
13655 ac_cv_header_dmalloc_h=no
13657 rm -f conftest.err conftest.$ac_ext
13659 echo "$as_me:13659: result: $ac_cv_header_dmalloc_h" >&5
13660 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13661 if test $ac_cv_header_dmalloc_h = yes; then
13663 echo "$as_me:13663: checking for dmalloc_debug in -ldmalloc" >&5
13664 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13665 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-ldmalloc $LIBS"
13670 cat >conftest.$ac_ext <<_ACEOF
13671 #line 13671 "configure"
13672 #include "confdefs.h"
13674 /* Override any gcc2 internal prototype to avoid an error. */
13678 /* We use char because int might match the return type of a gcc2
13679 builtin and then its argument prototype would still apply. */
13680 char dmalloc_debug ();
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:13690: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>&5
13693 echo "$as_me:13693: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -s conftest$ac_exeext'
13696 { (eval echo "$as_me:13696: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:13699: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_lib_dmalloc_dmalloc_debug=yes
13703 echo "$as_me: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
13705 ac_cv_lib_dmalloc_dmalloc_debug=no
13707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13708 LIBS=$ac_check_lib_save_LIBS
13710 echo "$as_me:13710: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
13711 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
13712 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
13713 cat >>confdefs.h <<EOF
13714 #define HAVE_LIBDMALLOC 1
13717 LIBS="-ldmalloc $LIBS"
13725 echo "$as_me:13725: checking if you want to use dbmalloc for testing" >&5
13726 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
13728 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13729 if test "${with_dbmalloc+set}" = set; then
13730 withval="$with_dbmalloc"
13732 cat >>confdefs.h <<EOF
13733 #define USE_DBMALLOC 1
13736 : ${with_cflags:=-g}
13737 : ${with_no_leaks:=yes}
13742 echo "$as_me:13742: result: ${with_dbmalloc:-no}" >&5
13743 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
13745 case .$with_cflags in #(vi
13747 case .$CFLAGS in #(vi
13755 cf_new_extra_cppflags=
13757 for cf_add_cflags in -g
13759 case $cf_fix_cppflags in
13761 case $cf_add_cflags in #(vi
13762 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13763 case $cf_add_cflags in
13765 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13767 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13768 && test -z "${cf_tst_cflags}" \
13769 && cf_fix_cppflags=yes
13771 if test $cf_fix_cppflags = yes ; then
13772 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13774 elif test "${cf_tst_cflags}" = "\"'" ; then
13775 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13780 case "$CPPFLAGS" in
13781 *$cf_add_cflags) #(vi
13784 case $cf_add_cflags in #(vi
13786 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13788 CPPFLAGS=`echo "$CPPFLAGS" | \
13789 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13790 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13794 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13799 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13804 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13806 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13808 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13809 && test -z "${cf_tst_cflags}" \
13810 && cf_fix_cppflags=no
13815 if test -n "$cf_new_cflags" ; then
13817 CFLAGS="$CFLAGS $cf_new_cflags"
13820 if test -n "$cf_new_cppflags" ; then
13822 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13825 if test -n "$cf_new_extra_cppflags" ; then
13827 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13835 if test "$with_dbmalloc" = yes ; then
13836 echo "$as_me:13836: checking for dbmalloc.h" >&5
13837 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
13838 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13842 #line 13842 "configure"
13843 #include "confdefs.h"
13844 #include <dbmalloc.h>
13846 if { (eval echo "$as_me:13846: \"$ac_cpp conftest.$ac_ext\"") >&5
13847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13849 egrep -v '^ *\+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:13852: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null; then
13854 if test -s conftest.err; then
13855 ac_cpp_err=$ac_c_preproc_warn_flag
13862 if test -z "$ac_cpp_err"; then
13863 ac_cv_header_dbmalloc_h=yes
13865 echo "$as_me: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13867 ac_cv_header_dbmalloc_h=no
13869 rm -f conftest.err conftest.$ac_ext
13871 echo "$as_me:13871: result: $ac_cv_header_dbmalloc_h" >&5
13872 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13873 if test $ac_cv_header_dbmalloc_h = yes; then
13875 echo "$as_me:13875: checking for debug_malloc in -ldbmalloc" >&5
13876 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13877 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-ldbmalloc $LIBS"
13882 cat >conftest.$ac_ext <<_ACEOF
13883 #line 13883 "configure"
13884 #include "confdefs.h"
13886 /* Override any gcc2 internal prototype to avoid an error. */
13890 /* We use char because int might match the return type of a gcc2
13891 builtin and then its argument prototype would still apply. */
13892 char debug_malloc ();
13901 rm -f conftest.$ac_objext conftest$ac_exeext
13902 if { (eval echo "$as_me:13902: \"$ac_link\"") >&5
13903 (eval $ac_link) 2>&5
13905 echo "$as_me:13905: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -s conftest$ac_exeext'
13908 { (eval echo "$as_me:13908: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:13911: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_lib_dbmalloc_debug_malloc=yes
13915 echo "$as_me: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13917 ac_cv_lib_dbmalloc_debug_malloc=no
13919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13920 LIBS=$ac_check_lib_save_LIBS
13922 echo "$as_me:13922: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
13923 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
13924 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
13925 cat >>confdefs.h <<EOF
13926 #define HAVE_LIBDBMALLOC 1
13929 LIBS="-ldbmalloc $LIBS"
13937 echo "$as_me:13937: checking if you want to use valgrind for testing" >&5
13938 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13940 # Check whether --with-valgrind or --without-valgrind was given.
13941 if test "${with_valgrind+set}" = set; then
13942 withval="$with_valgrind"
13944 cat >>confdefs.h <<EOF
13945 #define USE_VALGRIND 1
13948 : ${with_cflags:=-g}
13949 : ${with_no_leaks:=yes}
13954 echo "$as_me:13954: result: ${with_valgrind:-no}" >&5
13955 echo "${ECHO_T}${with_valgrind:-no}" >&6
13957 case .$with_cflags in #(vi
13959 case .$CFLAGS in #(vi
13967 cf_new_extra_cppflags=
13969 for cf_add_cflags in -g
13971 case $cf_fix_cppflags in
13973 case $cf_add_cflags in #(vi
13974 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13975 case $cf_add_cflags in
13977 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13979 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13980 && test -z "${cf_tst_cflags}" \
13981 && cf_fix_cppflags=yes
13983 if test $cf_fix_cppflags = yes ; then
13984 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13986 elif test "${cf_tst_cflags}" = "\"'" ; then
13987 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13992 case "$CPPFLAGS" in
13993 *$cf_add_cflags) #(vi
13996 case $cf_add_cflags in #(vi
13998 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14000 CPPFLAGS=`echo "$CPPFLAGS" | \
14001 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14002 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14006 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14011 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14016 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14018 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14020 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14021 && test -z "${cf_tst_cflags}" \
14022 && cf_fix_cppflags=no
14027 if test -n "$cf_new_cflags" ; then
14029 CFLAGS="$CFLAGS $cf_new_cflags"
14032 if test -n "$cf_new_cppflags" ; then
14034 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14037 if test -n "$cf_new_extra_cppflags" ; then
14039 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14047 echo "$as_me:14047: checking if you want to perform memory-leak testing" >&5
14048 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
14050 # Check whether --enable-leaks or --disable-leaks was given.
14051 if test "${enable_leaks+set}" = set; then
14052 enableval="$enable_leaks"
14053 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
14055 : ${with_no_leaks:=no}
14057 echo "$as_me:14057: result: $with_no_leaks" >&5
14058 echo "${ECHO_T}$with_no_leaks" >&6
14060 if test "$with_no_leaks" = yes ; then
14062 cat >>confdefs.h <<\EOF
14066 cat >>confdefs.h <<\EOF
14067 #define YY_NO_LEAKS 1
14072 cat >>confdefs.h <<\EOF
14073 #define HAVE_NC_ALLOC_H 1
14076 ### use option --enable-expanded to generate certain macros as functions
14078 # Check whether --enable-expanded or --disable-expanded was given.
14079 if test "${enable_expanded+set}" = set; then
14080 enableval="$enable_expanded"
14081 test "x$enableval" = xyes &&
14082 cat >>confdefs.h <<\EOF
14083 #define NCURSES_EXPANDED 1
14088 ### use option --disable-macros to suppress macros in favor of functions
14090 # Check whether --enable-macros or --disable-macros was given.
14091 if test "${enable_macros+set}" = set; then
14092 enableval="$enable_macros"
14093 test "$enableval" = no &&
14094 cat >>confdefs.h <<\EOF
14095 #define NCURSES_NOMACROS 1
14100 # Normally we only add trace() to the debug-library. Allow this to be
14101 # extended to all models of the ncurses library:
14103 case "$CFLAGS $CPPFLAGS" in
14109 echo "$as_me:14109: checking whether to add trace feature to all models" >&5
14110 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14112 # Check whether --with-trace or --without-trace was given.
14113 if test "${with_trace+set}" = set; then
14114 withval="$with_trace"
14115 cf_with_trace=$withval
14117 cf_with_trace=$cf_all_traces
14119 echo "$as_me:14119: result: $cf_with_trace" >&5
14120 echo "${ECHO_T}$cf_with_trace" >&6
14122 if test "x$cf_with_trace" = xyes ; then
14129 cf_new_extra_cppflags=
14131 for cf_add_cflags in -DTRACE
14133 case $cf_fix_cppflags in
14135 case $cf_add_cflags in #(vi
14136 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14137 case $cf_add_cflags in
14139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14141 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14142 && test -z "${cf_tst_cflags}" \
14143 && cf_fix_cppflags=yes
14145 if test $cf_fix_cppflags = yes ; then
14146 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14148 elif test "${cf_tst_cflags}" = "\"'" ; then
14149 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14154 case "$CPPFLAGS" in
14155 *$cf_add_cflags) #(vi
14158 case $cf_add_cflags in #(vi
14160 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14162 CPPFLAGS=`echo "$CPPFLAGS" | \
14163 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14164 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14168 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14173 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14178 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14180 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14182 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14183 && test -z "${cf_tst_cflags}" \
14184 && cf_fix_cppflags=no
14189 if test -n "$cf_new_cflags" ; then
14191 CFLAGS="$CFLAGS $cf_new_cflags"
14194 if test -n "$cf_new_cppflags" ; then
14196 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14199 if test -n "$cf_new_extra_cppflags" ; then
14201 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14209 echo "$as_me:14209: checking if we want to use GNAT projects" >&5
14210 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14212 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14213 if test "${enable_gnat_projects+set}" = set; then
14214 enableval="$enable_gnat_projects"
14215 test "$enableval" != no && enableval=yes
14216 if test "$enableval" != "yes" ; then
14217 enable_gnat_projects=no
14219 enable_gnat_projects=yes
14223 enable_gnat_projects=yes
14226 echo "$as_me:14226: result: $enable_gnat_projects" >&5
14227 echo "${ECHO_T}$enable_gnat_projects" >&6
14229 ### Checks for libraries.
14230 case $cf_cv_system_name in #(vi
14231 *mingw32*|*mingw64*) #(vi
14232 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501"
14233 LIBS=" -lpsapi $LIBS"
14236 echo "$as_me:14236: checking for gettimeofday" >&5
14237 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14238 if test "${ac_cv_func_gettimeofday+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 cat >conftest.$ac_ext <<_ACEOF
14242 #line 14242 "configure"
14243 #include "confdefs.h"
14244 /* System header to define __stub macros and hopefully few prototypes,
14245 which can conflict with char gettimeofday (); below. */
14246 #include <assert.h>
14247 /* Override any gcc2 internal prototype to avoid an error. */
14251 /* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253 char gettimeofday ();
14259 /* The GNU C library defines this for functions which it implements
14260 to always fail with ENOSYS. Some functions are actually named
14261 something starting with __ and the normal name is an alias. */
14262 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14265 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (eval echo "$as_me:14273: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>&5
14276 echo "$as_me:14276: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -s conftest$ac_exeext'
14279 { (eval echo "$as_me:14279: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:14282: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_cv_func_gettimeofday=yes
14286 echo "$as_me: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 ac_cv_func_gettimeofday=no
14290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14292 echo "$as_me:14292: result: $ac_cv_func_gettimeofday" >&5
14293 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14294 if test $ac_cv_func_gettimeofday = yes; then
14296 cat >>confdefs.h <<\EOF
14297 #define HAVE_GETTIMEOFDAY 1
14302 echo "$as_me:14302: checking for gettimeofday in -lbsd" >&5
14303 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14304 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 ac_check_lib_save_LIBS=$LIBS
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line 14310 "configure"
14311 #include "confdefs.h"
14313 /* Override any gcc2 internal prototype to avoid an error. */
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14319 char gettimeofday ();
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (eval echo "$as_me:14329: \"$ac_link\"") >&5
14330 (eval $ac_link) 2>&5
14332 echo "$as_me:14332: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try='test -s conftest$ac_exeext'
14335 { (eval echo "$as_me:14335: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14338 echo "$as_me:14338: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_lib_bsd_gettimeofday=yes
14342 echo "$as_me: failed program was:" >&5
14343 cat conftest.$ac_ext >&5
14344 ac_cv_lib_bsd_gettimeofday=no
14346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14347 LIBS=$ac_check_lib_save_LIBS
14349 echo "$as_me:14349: result: $ac_cv_lib_bsd_gettimeofday" >&5
14350 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14351 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14353 cat >>confdefs.h <<\EOF
14354 #define HAVE_GETTIMEOFDAY 1
14357 cf_add_libs="-lbsd"
14358 # Filter out duplicates - this happens with badly-designed ".pc" files...
14359 for cf_add_1lib in $LIBS
14361 for cf_add_2lib in $cf_add_libs
14363 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14369 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14371 LIBS="$cf_add_libs"
14379 echo "$as_me:14379: checking if -lm needed for math functions" >&5
14380 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14381 if test "${cf_cv_need_libm+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14386 #line 14386 "configure"
14387 #include "confdefs.h"
14395 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (eval echo "$as_me:14401: \"$ac_link\"") >&5
14402 (eval $ac_link) 2>&5
14404 echo "$as_me:14404: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -s conftest$ac_exeext'
14407 { (eval echo "$as_me:14407: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:14410: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14414 echo "$as_me: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14416 cf_cv_need_libm=yes
14418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14420 echo "$as_me:14420: result: $cf_cv_need_libm" >&5
14421 echo "${ECHO_T}$cf_cv_need_libm" >&6
14422 if test "$cf_cv_need_libm" = yes
14427 ### Checks for header files.
14428 echo "$as_me:14428: checking for ANSI C header files" >&5
14429 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14430 if test "${ac_cv_header_stdc+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 cat >conftest.$ac_ext <<_ACEOF
14434 #line 14434 "configure"
14435 #include "confdefs.h"
14436 #include <stdlib.h>
14437 #include <stdarg.h>
14438 #include <string.h>
14442 if { (eval echo "$as_me:14442: \"$ac_cpp conftest.$ac_ext\"") >&5
14443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14445 egrep -v '^ *\+' conftest.er1 >conftest.err
14447 cat conftest.err >&5
14448 echo "$as_me:14448: \$? = $ac_status" >&5
14449 (exit $ac_status); } >/dev/null; then
14450 if test -s conftest.err; then
14451 ac_cpp_err=$ac_c_preproc_warn_flag
14458 if test -z "$ac_cpp_err"; then
14459 ac_cv_header_stdc=yes
14461 echo "$as_me: failed program was:" >&5
14462 cat conftest.$ac_ext >&5
14463 ac_cv_header_stdc=no
14465 rm -f conftest.err conftest.$ac_ext
14467 if test $ac_cv_header_stdc = yes; then
14468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line 14470 "configure"
14471 #include "confdefs.h"
14472 #include <string.h>
14475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14476 egrep "memchr" >/dev/null 2>&1; then
14479 ac_cv_header_stdc=no
14485 if test $ac_cv_header_stdc = yes; then
14486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14487 cat >conftest.$ac_ext <<_ACEOF
14488 #line 14488 "configure"
14489 #include "confdefs.h"
14490 #include <stdlib.h>
14493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14494 egrep "free" >/dev/null 2>&1; then
14497 ac_cv_header_stdc=no
14503 if test $ac_cv_header_stdc = yes; then
14504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14505 if test "$cross_compiling" = yes; then
14508 cat >conftest.$ac_ext <<_ACEOF
14509 #line 14509 "configure"
14510 #include "confdefs.h"
14512 #if ((' ' & 0x0FF) == 0x020)
14513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14516 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14517 || ('j' <= (c) && (c) <= 'r') \
14518 || ('s' <= (c) && (c) <= 'z'))
14519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14527 for (i = 0; i < 256; i++)
14528 if (XOR (islower (i), ISLOWER (i))
14529 || toupper (i) != TOUPPER (i))
14530 $ac_main_return(2);
14531 $ac_main_return (0);
14534 rm -f conftest$ac_exeext
14535 if { (eval echo "$as_me:14535: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>&5
14538 echo "$as_me:14538: \$? = $ac_status" >&5
14539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14540 { (eval echo "$as_me:14540: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:14543: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14547 echo "$as_me: program exited with status $ac_status" >&5
14548 echo "$as_me: failed program was:" >&5
14549 cat conftest.$ac_ext >&5
14550 ac_cv_header_stdc=no
14552 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14556 echo "$as_me:14556: result: $ac_cv_header_stdc" >&5
14557 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14558 if test $ac_cv_header_stdc = yes; then
14560 cat >>confdefs.h <<\EOF
14561 #define STDC_HEADERS 1
14566 ac_header_dirent=no
14567 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14568 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14569 echo "$as_me:14569: checking for $ac_hdr that defines DIR" >&5
14570 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 cat >conftest.$ac_ext <<_ACEOF
14575 #line 14575 "configure"
14576 #include "confdefs.h"
14577 #include <sys/types.h>
14589 rm -f conftest.$ac_objext
14590 if { (eval echo "$as_me:14590: \"$ac_compile\"") >&5
14591 (eval $ac_compile) 2>&5
14593 echo "$as_me:14593: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -s conftest.$ac_objext'
14596 { (eval echo "$as_me:14596: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14599 echo "$as_me:14599: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
14601 eval "$as_ac_Header=yes"
14603 echo "$as_me: failed program was:" >&5
14604 cat conftest.$ac_ext >&5
14605 eval "$as_ac_Header=no"
14607 rm -f conftest.$ac_objext conftest.$ac_ext
14609 echo "$as_me:14609: result: `eval echo '${'$as_ac_Header'}'`" >&5
14610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14612 cat >>confdefs.h <<EOF
14613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14616 ac_header_dirent=$ac_hdr; break
14620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14621 if test $ac_header_dirent = dirent.h; then
14622 echo "$as_me:14622: checking for opendir in -ldir" >&5
14623 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14624 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 ac_check_lib_save_LIBS=$LIBS
14629 cat >conftest.$ac_ext <<_ACEOF
14630 #line 14630 "configure"
14631 #include "confdefs.h"
14633 /* Override any gcc2 internal prototype to avoid an error. */
14637 /* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (eval echo "$as_me:14649: \"$ac_link\"") >&5
14650 (eval $ac_link) 2>&5
14652 echo "$as_me:14652: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -s conftest$ac_exeext'
14655 { (eval echo "$as_me:14655: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:14658: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_lib_dir_opendir=yes
14662 echo "$as_me: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 ac_cv_lib_dir_opendir=no
14666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14667 LIBS=$ac_check_lib_save_LIBS
14669 echo "$as_me:14669: result: $ac_cv_lib_dir_opendir" >&5
14670 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14671 if test $ac_cv_lib_dir_opendir = yes; then
14676 echo "$as_me:14676: checking for opendir in -lx" >&5
14677 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14678 if test "${ac_cv_lib_x_opendir+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 ac_check_lib_save_LIBS=$LIBS
14683 cat >conftest.$ac_ext <<_ACEOF
14684 #line 14684 "configure"
14685 #include "confdefs.h"
14687 /* Override any gcc2 internal prototype to avoid an error. */
14691 /* We use char because int might match the return type of a gcc2
14692 builtin and then its argument prototype would still apply. */
14702 rm -f conftest.$ac_objext conftest$ac_exeext
14703 if { (eval echo "$as_me:14703: \"$ac_link\"") >&5
14704 (eval $ac_link) 2>&5
14706 echo "$as_me:14706: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -s conftest$ac_exeext'
14709 { (eval echo "$as_me:14709: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:14712: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_lib_x_opendir=yes
14716 echo "$as_me: failed program was:" >&5
14717 cat conftest.$ac_ext >&5
14718 ac_cv_lib_x_opendir=no
14720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14721 LIBS=$ac_check_lib_save_LIBS
14723 echo "$as_me:14723: result: $ac_cv_lib_x_opendir" >&5
14724 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14725 if test $ac_cv_lib_x_opendir = yes; then
14731 echo "$as_me:14731: checking whether time.h and sys/time.h may both be included" >&5
14732 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14733 if test "${ac_cv_header_time+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 cat >conftest.$ac_ext <<_ACEOF
14737 #line 14737 "configure"
14738 #include "confdefs.h"
14739 #include <sys/types.h>
14740 #include <sys/time.h>
14746 if ((struct tm *) 0)
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:14753: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>&5
14756 echo "$as_me:14756: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:14759: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:14762: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_header_time=yes
14766 echo "$as_me: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14768 ac_cv_header_time=no
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:14772: result: $ac_cv_header_time" >&5
14773 echo "${ECHO_T}$ac_cv_header_time" >&6
14774 if test $ac_cv_header_time = yes; then
14776 cat >>confdefs.h <<\EOF
14777 #define TIME_WITH_SYS_TIME 1
14784 cf_regex_libs="regex re"
14785 case $host_os in #(vi
14787 cf_regex_libs="gnurx $cf_regex_libs"
14791 echo "$as_me:14791: checking for regcomp" >&5
14792 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
14793 if test "${ac_cv_func_regcomp+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 cat >conftest.$ac_ext <<_ACEOF
14797 #line 14797 "configure"
14798 #include "confdefs.h"
14799 /* System header to define __stub macros and hopefully few prototypes,
14800 which can conflict with char regcomp (); below. */
14801 #include <assert.h>
14802 /* Override any gcc2 internal prototype to avoid an error. */
14806 /* We use char because int might match the return type of a gcc2
14807 builtin and then its argument prototype would still apply. */
14814 /* The GNU C library defines this for functions which it implements
14815 to always fail with ENOSYS. Some functions are actually named
14816 something starting with __ and the normal name is an alias. */
14817 #if defined (__stub_regcomp) || defined (__stub___regcomp)
14820 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (eval echo "$as_me:14828: \"$ac_link\"") >&5
14829 (eval $ac_link) 2>&5
14831 echo "$as_me:14831: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -s conftest$ac_exeext'
14834 { (eval echo "$as_me:14834: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:14837: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_cv_func_regcomp=yes
14841 echo "$as_me: failed program was:" >&5
14842 cat conftest.$ac_ext >&5
14843 ac_cv_func_regcomp=no
14845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14847 echo "$as_me:14847: result: $ac_cv_func_regcomp" >&5
14848 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
14849 if test $ac_cv_func_regcomp = yes; then
14850 cf_regex_func=regcomp
14853 for cf_regex_lib in $cf_regex_libs
14855 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
14856 echo "$as_me:14856: checking for regcomp in -l$cf_regex_lib" >&5
14857 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
14858 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-l$cf_regex_lib $LIBS"
14863 cat >conftest.$ac_ext <<_ACEOF
14864 #line 14864 "configure"
14865 #include "confdefs.h"
14867 /* Override any gcc2 internal prototype to avoid an error. */
14871 /* We use char because int might match the return type of a gcc2
14872 builtin and then its argument prototype would still apply. */
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (eval echo "$as_me:14883: \"$ac_link\"") >&5
14884 (eval $ac_link) 2>&5
14886 echo "$as_me:14886: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:14889: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:14892: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 eval "$as_ac_Lib=yes"
14896 echo "$as_me: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14898 eval "$as_ac_Lib=no"
14900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14901 LIBS=$ac_check_lib_save_LIBS
14903 echo "$as_me:14903: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14905 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14907 cf_add_libs="-l$cf_regex_lib"
14908 # Filter out duplicates - this happens with badly-designed ".pc" files...
14909 for cf_add_1lib in $LIBS
14911 for cf_add_2lib in $cf_add_libs
14913 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14919 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14921 LIBS="$cf_add_libs"
14923 cf_regex_func=regcomp
14931 if test "$cf_regex_func" = no ; then
14932 echo "$as_me:14932: checking for compile" >&5
14933 echo $ECHO_N "checking for compile... $ECHO_C" >&6
14934 if test "${ac_cv_func_compile+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 cat >conftest.$ac_ext <<_ACEOF
14938 #line 14938 "configure"
14939 #include "confdefs.h"
14940 /* System header to define __stub macros and hopefully few prototypes,
14941 which can conflict with char compile (); below. */
14942 #include <assert.h>
14943 /* Override any gcc2 internal prototype to avoid an error. */
14947 /* We use char because int might match the return type of a gcc2
14948 builtin and then its argument prototype would still apply. */
14955 /* The GNU C library defines this for functions which it implements
14956 to always fail with ENOSYS. Some functions are actually named
14957 something starting with __ and the normal name is an alias. */
14958 #if defined (__stub_compile) || defined (__stub___compile)
14961 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:14969: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>&5
14972 echo "$as_me:14972: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -s conftest$ac_exeext'
14975 { (eval echo "$as_me:14975: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14978 echo "$as_me:14978: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_cv_func_compile=yes
14982 echo "$as_me: failed program was:" >&5
14983 cat conftest.$ac_ext >&5
14984 ac_cv_func_compile=no
14986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14988 echo "$as_me:14988: result: $ac_cv_func_compile" >&5
14989 echo "${ECHO_T}$ac_cv_func_compile" >&6
14990 if test $ac_cv_func_compile = yes; then
14991 cf_regex_func=compile
14994 echo "$as_me:14994: checking for compile in -lgen" >&5
14995 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14996 if test "${ac_cv_lib_gen_compile+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 ac_check_lib_save_LIBS=$LIBS
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line 15002 "configure"
15003 #include "confdefs.h"
15005 /* Override any gcc2 internal prototype to avoid an error. */
15009 /* We use char because int might match the return type of a gcc2
15010 builtin and then its argument prototype would still apply. */
15020 rm -f conftest.$ac_objext conftest$ac_exeext
15021 if { (eval echo "$as_me:15021: \"$ac_link\"") >&5
15022 (eval $ac_link) 2>&5
15024 echo "$as_me:15024: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -s conftest$ac_exeext'
15027 { (eval echo "$as_me:15027: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:15030: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 ac_cv_lib_gen_compile=yes
15034 echo "$as_me: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 ac_cv_lib_gen_compile=no
15038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15039 LIBS=$ac_check_lib_save_LIBS
15041 echo "$as_me:15041: result: $ac_cv_lib_gen_compile" >&5
15042 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
15043 if test $ac_cv_lib_gen_compile = yes; then
15045 cf_add_libs="-lgen"
15046 # Filter out duplicates - this happens with badly-designed ".pc" files...
15047 for cf_add_1lib in $LIBS
15049 for cf_add_2lib in $cf_add_libs
15051 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15057 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15059 LIBS="$cf_add_libs"
15061 cf_regex_func=compile
15068 if test "$cf_regex_func" = no ; then
15069 { echo "$as_me:15069: WARNING: cannot find regular expression library" >&5
15070 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
15073 echo "$as_me:15073: checking for regular-expression headers" >&5
15074 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
15075 if test "${cf_cv_regex_hdrs+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 cf_cv_regex_hdrs=no
15080 case $cf_regex_func in #(vi
15082 for cf_regex_hdr in regexp.h regexpr.h
15084 cat >conftest.$ac_ext <<_ACEOF
15085 #line 15085 "configure"
15086 #include "confdefs.h"
15087 #include <$cf_regex_hdr>
15092 char *p = compile("", "", "", 0);
15093 int x = step("", "");
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:15100: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>&5
15103 echo "$as_me:15103: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -s conftest$ac_exeext'
15106 { (eval echo "$as_me:15106: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:15109: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15112 cf_cv_regex_hdrs=$cf_regex_hdr
15116 echo "$as_me: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15123 for cf_regex_hdr in regex.h
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line 15126 "configure"
15127 #include "confdefs.h"
15128 #include <sys/types.h>
15129 #include <$cf_regex_hdr>
15135 int x = regcomp(p, "", 0);
15136 int y = regexec(p, "", 0, 0, 0);
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (eval echo "$as_me:15144: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>&5
15147 echo "$as_me:15147: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -s conftest$ac_exeext'
15150 { (eval echo "$as_me:15150: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:15153: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15156 cf_cv_regex_hdrs=$cf_regex_hdr
15160 echo "$as_me: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15169 echo "$as_me:15169: result: $cf_cv_regex_hdrs" >&5
15170 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
15172 case $cf_cv_regex_hdrs in #(vi
15173 no) { echo "$as_me:15173: WARNING: no regular expression header found" >&5
15174 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
15176 cat >>confdefs.h <<\EOF
15177 #define HAVE_REGEX_H_FUNCS 1
15181 cat >>confdefs.h <<\EOF
15182 #define HAVE_REGEXP_H_FUNCS 1
15186 cat >>confdefs.h <<\EOF
15187 #define HAVE_REGEXPR_H_FUNCS 1
15211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15212 echo "$as_me:15212: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 cat >conftest.$ac_ext <<_ACEOF
15218 #line 15218 "configure"
15219 #include "confdefs.h"
15220 #include <$ac_header>
15222 if { (eval echo "$as_me:15222: \"$ac_cpp conftest.$ac_ext\"") >&5
15223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15225 egrep -v '^ *\+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:15228: \$? = $ac_status" >&5
15229 (exit $ac_status); } >/dev/null; then
15230 if test -s conftest.err; then
15231 ac_cpp_err=$ac_c_preproc_warn_flag
15238 if test -z "$ac_cpp_err"; then
15239 eval "$as_ac_Header=yes"
15241 echo "$as_me: failed program was:" >&5
15242 cat conftest.$ac_ext >&5
15243 eval "$as_ac_Header=no"
15245 rm -f conftest.err conftest.$ac_ext
15247 echo "$as_me:15247: result: `eval echo '${'$as_ac_Header'}'`" >&5
15248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15250 cat >>confdefs.h <<EOF
15251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15257 for ac_header in unistd.h getopt.h
15259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15260 echo "$as_me:15260: checking for $ac_header" >&5
15261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 cat >conftest.$ac_ext <<_ACEOF
15266 #line 15266 "configure"
15267 #include "confdefs.h"
15268 #include <$ac_header>
15270 if { (eval echo "$as_me:15270: \"$ac_cpp conftest.$ac_ext\"") >&5
15271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15273 egrep -v '^ *\+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:15276: \$? = $ac_status" >&5
15277 (exit $ac_status); } >/dev/null; then
15278 if test -s conftest.err; then
15279 ac_cpp_err=$ac_c_preproc_warn_flag
15286 if test -z "$ac_cpp_err"; then
15287 eval "$as_ac_Header=yes"
15289 echo "$as_me: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 eval "$as_ac_Header=no"
15293 rm -f conftest.err conftest.$ac_ext
15295 echo "$as_me:15295: result: `eval echo '${'$as_ac_Header'}'`" >&5
15296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15298 cat >>confdefs.h <<EOF
15299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15305 echo "$as_me:15305: checking for header declaring getopt variables" >&5
15306 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15307 if test "${cf_cv_getopt_header+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 cf_cv_getopt_header=none
15312 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15314 cat >conftest.$ac_ext <<_ACEOF
15315 #line 15315 "configure"
15316 #include "confdefs.h"
15318 #include <$cf_header>
15322 int x = optind; char *y = optarg
15327 rm -f conftest.$ac_objext
15328 if { (eval echo "$as_me:15328: \"$ac_compile\"") >&5
15329 (eval $ac_compile) 2>&5
15331 echo "$as_me:15331: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -s conftest.$ac_objext'
15334 { (eval echo "$as_me:15334: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:15337: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 cf_cv_getopt_header=$cf_header
15342 echo "$as_me: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15345 rm -f conftest.$ac_objext conftest.$ac_ext
15349 echo "$as_me:15349: result: $cf_cv_getopt_header" >&5
15350 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15351 if test $cf_cv_getopt_header != none ; then
15353 cat >>confdefs.h <<\EOF
15354 #define HAVE_GETOPT_HEADER 1
15358 if test $cf_cv_getopt_header = getopt.h ; then
15360 cat >>confdefs.h <<\EOF
15361 #define NEED_GETOPT_H 1
15366 # check for ISC (this may also define _POSIX_SOURCE)
15367 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15368 if test "x$ISC" = xyes ; then
15370 echo "$as_me:15370: checking for main in -lcposix" >&5
15371 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15372 if test "${ac_cv_lib_cposix_main+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lcposix $LIBS"
15377 cat >conftest.$ac_ext <<_ACEOF
15378 #line 15378 "configure"
15379 #include "confdefs.h"
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (eval echo "$as_me:15390: \"$ac_link\"") >&5
15391 (eval $ac_link) 2>&5
15393 echo "$as_me:15393: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -s conftest$ac_exeext'
15396 { (eval echo "$as_me:15396: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 echo "$as_me:15399: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_cv_lib_cposix_main=yes
15403 echo "$as_me: failed program was:" >&5
15404 cat conftest.$ac_ext >&5
15405 ac_cv_lib_cposix_main=no
15407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15410 echo "$as_me:15410: result: $ac_cv_lib_cposix_main" >&5
15411 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15412 if test $ac_cv_lib_cposix_main = yes; then
15413 cat >>confdefs.h <<EOF
15414 #define HAVE_LIBCPOSIX 1
15417 LIBS="-lcposix $LIBS"
15421 echo "$as_me:15421: checking for bzero in -linet" >&5
15422 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
15423 if test "${ac_cv_lib_inet_bzero+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 ac_check_lib_save_LIBS=$LIBS
15427 LIBS="-linet $LIBS"
15428 cat >conftest.$ac_ext <<_ACEOF
15429 #line 15429 "configure"
15430 #include "confdefs.h"
15432 /* Override any gcc2 internal prototype to avoid an error. */
15436 /* We use char because int might match the return type of a gcc2
15437 builtin and then its argument prototype would still apply. */
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (eval echo "$as_me:15448: \"$ac_link\"") >&5
15449 (eval $ac_link) 2>&5
15451 echo "$as_me:15451: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
15453 { ac_try='test -s conftest$ac_exeext'
15454 { (eval echo "$as_me:15454: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15457 echo "$as_me:15457: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 ac_cv_lib_inet_bzero=yes
15461 echo "$as_me: failed program was:" >&5
15462 cat conftest.$ac_ext >&5
15463 ac_cv_lib_inet_bzero=no
15465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15468 echo "$as_me:15468: result: $ac_cv_lib_inet_bzero" >&5
15469 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
15470 if test $ac_cv_lib_inet_bzero = yes; then
15472 cf_add_libs="-linet"
15473 # Filter out duplicates - this happens with badly-designed ".pc" files...
15474 for cf_add_1lib in $LIBS
15476 for cf_add_2lib in $cf_add_libs
15478 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15484 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15486 LIBS="$cf_add_libs"
15491 echo "$as_me:15491: checking if sys/time.h works with sys/select.h" >&5
15492 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15493 if test "${cf_cv_sys_time_select+set}" = set; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 #line 15498 "configure"
15499 #include "confdefs.h"
15501 #include <sys/types.h>
15502 #ifdef HAVE_SYS_TIME_H
15503 #include <sys/time.h>
15505 #ifdef HAVE_SYS_SELECT_H
15506 #include <sys/select.h>
15517 rm -f conftest.$ac_objext
15518 if { (eval echo "$as_me:15518: \"$ac_compile\"") >&5
15519 (eval $ac_compile) 2>&5
15521 echo "$as_me:15521: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (eval echo "$as_me:15524: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 echo "$as_me:15527: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 cf_cv_sys_time_select=yes
15531 echo "$as_me: failed program was:" >&5
15532 cat conftest.$ac_ext >&5
15533 cf_cv_sys_time_select=no
15535 rm -f conftest.$ac_objext conftest.$ac_ext
15539 echo "$as_me:15539: result: $cf_cv_sys_time_select" >&5
15540 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15541 test "$cf_cv_sys_time_select" = yes &&
15542 cat >>confdefs.h <<\EOF
15543 #define HAVE_SYS_TIME_SELECT 1
15546 ### checks for compiler characteristics
15548 ac_cpp='$CPP $CPPFLAGS'
15549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15552 ac_main_return=return
15554 echo "$as_me:15554: checking for an ANSI C-conforming const" >&5
15555 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15556 if test "${ac_cv_c_const+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 cat >conftest.$ac_ext <<_ACEOF
15560 #line 15560 "configure"
15561 #include "confdefs.h"
15566 /* FIXME: Include the comments suggested by Paul. */
15567 #ifndef __cplusplus
15568 /* Ultrix mips cc rejects this. */
15569 typedef int charset[2];
15571 /* SunOS 4.1.1 cc rejects this. */
15572 char const *const *ccp;
15574 /* NEC SVR4.0.2 mips cc rejects this. */
15575 struct point {int x, y;};
15576 static struct point const zero = {0,0};
15577 /* AIX XL C 1.02.0.0 rejects this.
15578 It does not let you subtract one const X* pointer from another in
15579 an arm of an if-expression whose if-part is not a constant
15581 const char *g = "string";
15582 ccp = &g + (g ? g-g : 0);
15583 /* HPUX 7.0 cc rejects these. */
15586 ccp = (char const *const *) p;
15587 { /* SCO 3.2v4 cc rejects this. */
15589 char const *s = 0 ? (char *) 0 : (char const *) 0;
15593 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15594 int x[] = {25, 17};
15595 const int *foo = &x[0];
15598 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15599 typedef const int *iptr;
15603 { /* AIX XL C 1.02.0.0 rejects this saying
15604 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15605 struct s { int j; const int *ap[3]; };
15606 struct s *b; b->j = 5;
15608 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15609 const int foo = 10;
15617 rm -f conftest.$ac_objext
15618 if { (eval echo "$as_me:15618: \"$ac_compile\"") >&5
15619 (eval $ac_compile) 2>&5
15621 echo "$as_me:15621: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -s conftest.$ac_objext'
15624 { (eval echo "$as_me:15624: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:15627: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15631 echo "$as_me: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15635 rm -f conftest.$ac_objext conftest.$ac_ext
15637 echo "$as_me:15637: result: $ac_cv_c_const" >&5
15638 echo "${ECHO_T}$ac_cv_c_const" >&6
15639 if test $ac_cv_c_const = no; then
15641 cat >>confdefs.h <<\EOF
15647 echo "$as_me:15647: checking for inline" >&5
15648 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15649 if test "${ac_cv_c_inline+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 for ac_kw in inline __inline__ __inline; do
15654 cat >conftest.$ac_ext <<_ACEOF
15655 #line 15655 "configure"
15656 #include "confdefs.h"
15657 #ifndef __cplusplus
15658 static $ac_kw int static_foo () {return 0; }
15659 $ac_kw int foo () {return 0; }
15663 rm -f conftest.$ac_objext
15664 if { (eval echo "$as_me:15664: \"$ac_compile\"") >&5
15665 (eval $ac_compile) 2>&5
15667 echo "$as_me:15667: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (eval echo "$as_me:15670: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:15673: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_c_inline=$ac_kw; break
15677 echo "$as_me: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15680 rm -f conftest.$ac_objext conftest.$ac_ext
15684 echo "$as_me:15684: result: $ac_cv_c_inline" >&5
15685 echo "${ECHO_T}$ac_cv_c_inline" >&6
15686 case $ac_cv_c_inline in
15689 cat >>confdefs.h <<\EOF
15693 *) cat >>confdefs.h <<EOF
15694 #define inline $ac_cv_c_inline
15700 if test "$ac_cv_c_inline" != no ; then
15701 NCURSES_INLINE=inline
15702 if test "$INTEL_COMPILER" = yes
15705 elif test "$CLANG_COMPILER" = yes
15708 elif test "$GCC" = yes
15710 echo "$as_me:15710: checking if $CC supports options to tune inlining" >&5
15711 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
15712 if test "${cf_cv_gcc_inline+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15716 cf_save_CFLAGS=$CFLAGS
15717 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
15718 cat >conftest.$ac_ext <<_ACEOF
15719 #line 15719 "configure"
15720 #include "confdefs.h"
15721 inline int foo(void) { return 1; }
15725 ${cf_cv_main_return:-return} foo()
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:15731: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>&5
15734 echo "$as_me:15734: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:15737: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:15740: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 cf_cv_gcc_inline=yes
15744 echo "$as_me: failed program was:" >&5
15745 cat conftest.$ac_ext >&5
15746 cf_cv_gcc_inline=no
15748 rm -f conftest.$ac_objext conftest.$ac_ext
15749 CFLAGS=$cf_save_CFLAGS
15752 echo "$as_me:15752: result: $cf_cv_gcc_inline" >&5
15753 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
15754 if test "$cf_cv_gcc_inline" = yes ; then
15759 cf_new_extra_cppflags=
15761 for cf_add_cflags in --param max-inline-insns-single=1200
15763 case $cf_fix_cppflags in
15765 case $cf_add_cflags in #(vi
15766 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15767 case $cf_add_cflags in
15769 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15771 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15772 && test -z "${cf_tst_cflags}" \
15773 && cf_fix_cppflags=yes
15775 if test $cf_fix_cppflags = yes ; then
15776 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15778 elif test "${cf_tst_cflags}" = "\"'" ; then
15779 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15784 case "$CPPFLAGS" in
15785 *$cf_add_cflags) #(vi
15788 case $cf_add_cflags in #(vi
15790 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15792 CPPFLAGS=`echo "$CPPFLAGS" | \
15793 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15794 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15798 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15803 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15808 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15810 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15812 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15813 && test -z "${cf_tst_cflags}" \
15814 && cf_fix_cppflags=no
15819 if test -n "$cf_new_cflags" ; then
15821 CFLAGS="$CFLAGS $cf_new_cflags"
15824 if test -n "$cf_new_cppflags" ; then
15826 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15829 if test -n "$cf_new_extra_cppflags" ; then
15831 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15838 echo "$as_me:15838: checking for signal global datatype" >&5
15839 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
15840 if test "${cf_cv_sig_atomic_t+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 "volatile sig_atomic_t" \
15849 cat >conftest.$ac_ext <<_ACEOF
15850 #line 15850 "configure"
15851 #include "confdefs.h"
15853 #include <sys/types.h>
15854 #include <signal.h>
15859 static void handler(int sig)
15866 signal(SIGINT, handler);
15872 rm -f conftest.$ac_objext
15873 if { (eval echo "$as_me:15873: \"$ac_compile\"") >&5
15874 (eval $ac_compile) 2>&5
15876 echo "$as_me:15876: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -s conftest.$ac_objext'
15879 { (eval echo "$as_me:15879: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:15882: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 cf_cv_sig_atomic_t=$cf_type
15886 echo "$as_me: failed program was:" >&5
15887 cat conftest.$ac_ext >&5
15888 cf_cv_sig_atomic_t=no
15890 rm -f conftest.$ac_objext conftest.$ac_ext
15891 test "$cf_cv_sig_atomic_t" != no && break
15896 echo "$as_me:15896: result: $cf_cv_sig_atomic_t" >&5
15897 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
15898 test "$cf_cv_sig_atomic_t" != no &&
15899 cat >>confdefs.h <<EOF
15900 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
15903 if test $NCURSES_CHTYPE = auto ; then
15905 echo "$as_me:15905: checking for type of chtype" >&5
15906 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
15907 if test "${cf_cv_typeof_chtype+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 if test "$cross_compiling" = yes; then
15912 cf_cv_typeof_chtype=long
15914 cat >conftest.$ac_ext <<_ACEOF
15915 #line 15915 "configure"
15916 #include "confdefs.h"
15918 #define WANT_BITS 31
15922 FILE *fp = fopen("cf_test.out", "w");
15924 char *result = "long";
15925 if (sizeof(unsigned long) > sizeof(unsigned int)) {
15928 for (n = 0; n < WANT_BITS; n++) {
15931 if (y != 1 || x == 0) {
15937 * If x is nonzero, an int is big enough for the bits
15940 result = (x != 0) ? "int" : "long";
15945 ${cf_cv_main_return:-return}(0);
15949 rm -f conftest$ac_exeext
15950 if { (eval echo "$as_me:15950: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>&5
15953 echo "$as_me:15953: \$? = $ac_status" >&5
15954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15955 { (eval echo "$as_me:15955: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:15958: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 cf_cv_typeof_chtype=`cat cf_test.out`
15962 echo "$as_me: program exited with status $ac_status" >&5
15963 echo "$as_me: failed program was:" >&5
15964 cat conftest.$ac_ext >&5
15965 cf_cv_typeof_chtype=long
15967 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15973 echo "$as_me:15973: result: $cf_cv_typeof_chtype" >&5
15974 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15976 cat >>confdefs.h <<EOF
15977 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15981 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15983 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15985 echo "$as_me:15985: checking if unsigned literals are legal" >&5
15986 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15987 if test "${cf_cv_unsigned_literals+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 cat >conftest.$ac_ext <<_ACEOF
15992 #line 15992 "configure"
15993 #include "confdefs.h"
15998 long x = 1L + 1UL + 1U + 1
16003 rm -f conftest.$ac_objext
16004 if { (eval echo "$as_me:16004: \"$ac_compile\"") >&5
16005 (eval $ac_compile) 2>&5
16007 echo "$as_me:16007: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -s conftest.$ac_objext'
16010 { (eval echo "$as_me:16010: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 echo "$as_me:16013: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 cf_cv_unsigned_literals=yes
16017 echo "$as_me: failed program was:" >&5
16018 cat conftest.$ac_ext >&5
16019 cf_cv_unsigned_literals=no
16021 rm -f conftest.$ac_objext conftest.$ac_ext
16025 echo "$as_me:16025: result: $cf_cv_unsigned_literals" >&5
16026 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
16029 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
16030 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
16032 if test $NCURSES_MMASK_T = auto ; then
16033 cf_cv_typeof_mmask_t=long
16035 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
16037 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
16039 ### Checks for external-data
16041 echo "$as_me:16041: checking if external errno is declared" >&5
16042 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
16043 if test "${cf_cv_dcl_errno+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 cat >conftest.$ac_ext <<_ACEOF
16048 #line 16048 "configure"
16049 #include "confdefs.h"
16051 #ifdef HAVE_STDLIB_H
16052 #include <stdlib.h>
16055 #include <sys/types.h>
16060 int x = (int) errno
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:16066: \"$ac_compile\"") >&5
16067 (eval $ac_compile) 2>&5
16069 echo "$as_me:16069: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -s conftest.$ac_objext'
16072 { (eval echo "$as_me:16072: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:16075: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 cf_cv_dcl_errno=yes
16079 echo "$as_me: failed program was:" >&5
16080 cat conftest.$ac_ext >&5
16083 rm -f conftest.$ac_objext conftest.$ac_ext
16086 echo "$as_me:16086: result: $cf_cv_dcl_errno" >&5
16087 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
16089 if test "$cf_cv_dcl_errno" = no ; then
16091 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16093 cat >>confdefs.h <<EOF
16094 #define $cf_result 1
16099 # It's possible (for near-UNIX clones) that the data doesn't exist
16101 echo "$as_me:16101: checking if external errno exists" >&5
16102 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
16103 if test "${cf_cv_have_errno+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line 16108 "configure"
16109 #include "confdefs.h"
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 cf_cv_have_errno=yes
16136 echo "$as_me: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 cf_cv_have_errno=no
16140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16143 echo "$as_me:16143: result: $cf_cv_have_errno" >&5
16144 echo "${ECHO_T}$cf_cv_have_errno" >&6
16146 if test "$cf_cv_have_errno" = yes ; then
16148 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16150 cat >>confdefs.h <<EOF
16151 #define $cf_result 1
16156 echo "$as_me:16156: checking if data-only library module links" >&5
16157 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
16158 if test "${cf_cv_link_dataonly+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 cat >conftest.$ac_ext <<EOF
16164 #line 16164 "configure"
16165 int testdata[3] = { 123, 456, 789 };
16167 if { (eval echo "$as_me:16167: \"$ac_compile\"") >&5
16168 (eval $ac_compile) 2>&5
16170 echo "$as_me:16170: \$? = $ac_status" >&5
16171 (exit $ac_status); } ; then
16172 mv conftest.o data.o && \
16173 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
16175 rm -f conftest.$ac_ext data.o
16176 cat >conftest.$ac_ext <<EOF
16177 #line 16177 "configure"
16181 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
16183 extern int testdata[3];
16184 return testdata[0] == 123
16185 && testdata[1] == 456
16186 && testdata[2] == 789;
16190 if { (eval echo "$as_me:16190: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>&5
16193 echo "$as_me:16193: \$? = $ac_status" >&5
16194 (exit $ac_status); }; then
16195 mv conftest.o func.o && \
16196 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
16198 rm -f conftest.$ac_ext func.o
16199 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
16200 cf_saveLIBS="$LIBS"
16201 LIBS="conftest.a $LIBS"
16202 if test "$cross_compiling" = yes; then
16203 cf_cv_link_dataonly=unknown
16205 cat >conftest.$ac_ext <<_ACEOF
16206 #line 16206 "configure"
16207 #include "confdefs.h"
16211 extern int testfunc();
16212 ${cf_cv_main_return:-return} (!testfunc());
16216 rm -f conftest$ac_exeext
16217 if { (eval echo "$as_me:16217: \"$ac_link\"") >&5
16218 (eval $ac_link) 2>&5
16220 echo "$as_me:16220: \$? = $ac_status" >&5
16221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16222 { (eval echo "$as_me:16222: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16225 echo "$as_me:16225: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 cf_cv_link_dataonly=yes
16229 echo "$as_me: program exited with status $ac_status" >&5
16230 echo "$as_me: failed program was:" >&5
16231 cat conftest.$ac_ext >&5
16232 cf_cv_link_dataonly=no
16234 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16236 LIBS="$cf_saveLIBS"
16240 echo "$as_me:16240: result: $cf_cv_link_dataonly" >&5
16241 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
16243 if test "$cf_cv_link_dataonly" = no ; then
16245 cat >>confdefs.h <<\EOF
16246 #define BROKEN_LINKER 1
16252 ### Checks for library functions.
16278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16279 echo "$as_me:16279: checking for $ac_func" >&5
16280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16281 if eval "test \"\${$as_ac_var+set}\" = set"; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 cat >conftest.$ac_ext <<_ACEOF
16285 #line 16285 "configure"
16286 #include "confdefs.h"
16287 /* System header to define __stub macros and hopefully few prototypes,
16288 which can conflict with char $ac_func (); below. */
16289 #include <assert.h>
16290 /* Override any gcc2 internal prototype to avoid an error. */
16294 /* We use char because int might match the return type of a gcc2
16295 builtin and then its argument prototype would still apply. */
16302 /* The GNU C library defines this for functions which it implements
16303 to always fail with ENOSYS. Some functions are actually named
16304 something starting with __ and the normal name is an alias. */
16305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16308 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16315 rm -f conftest.$ac_objext conftest$ac_exeext
16316 if { (eval echo "$as_me:16316: \"$ac_link\"") >&5
16317 (eval $ac_link) 2>&5
16319 echo "$as_me:16319: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -s conftest$ac_exeext'
16322 { (eval echo "$as_me:16322: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16325 echo "$as_me:16325: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 eval "$as_ac_var=yes"
16329 echo "$as_me: failed program was:" >&5
16330 cat conftest.$ac_ext >&5
16331 eval "$as_ac_var=no"
16333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16335 echo "$as_me:16335: result: `eval echo '${'$as_ac_var'}'`" >&5
16336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16337 if test `eval echo '${'$as_ac_var'}'` = yes; then
16338 cat >>confdefs.h <<EOF
16339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16345 if test "x$ac_cv_func_getopt" = xno &&
16346 test "x$cf_with_progs$cf_with_tests" != xnono; then
16347 { { echo "$as_me:16347: error: getopt is required for building programs" >&5
16348 echo "$as_me: error: getopt is required for building programs" >&2;}
16349 { (exit 1); exit 1; }; }
16352 if test "x$with_getcap" = "xyes" ; then
16354 echo "$as_me:16354: checking for terminal-capability database functions" >&5
16355 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16356 if test "${cf_cv_cgetent+set}" = set; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 cat >conftest.$ac_ext <<_ACEOF
16361 #line 16361 "configure"
16362 #include "confdefs.h"
16364 #include <stdlib.h>
16371 char *db_array = temp;
16372 cgetent(&buf, &db_array, "vt100");
16373 cgetcap(buf, "tc", '=');
16374 cgetmatch(buf, "tc");
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (eval echo "$as_me:16381: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>&5
16384 echo "$as_me:16384: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try='test -s conftest$ac_exeext'
16387 { (eval echo "$as_me:16387: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16390 echo "$as_me:16390: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16394 echo "$as_me: failed program was:" >&5
16395 cat conftest.$ac_ext >&5
16398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16401 echo "$as_me:16401: result: $cf_cv_cgetent" >&5
16402 echo "${ECHO_T}$cf_cv_cgetent" >&6
16404 if test "$cf_cv_cgetent" = yes
16407 cat >>confdefs.h <<\EOF
16408 #define HAVE_BSD_CGETENT 1
16411 echo "$as_me:16411: checking if cgetent uses const parameter" >&5
16412 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16413 if test "${cf_cv_cgetent_const+set}" = set; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 cat >conftest.$ac_ext <<_ACEOF
16418 #line 16418 "configure"
16419 #include "confdefs.h"
16421 #include <stdlib.h>
16428 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
16429 const char *db_array = temp;
16430 cgetent(&buf, &db_array, "vt100");
16432 cgetcap(buf, "tc", '=');
16433 cgetmatch(buf, "tc");
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (eval echo "$as_me:16440: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>&5
16443 echo "$as_me:16443: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -s conftest$ac_exeext'
16446 { (eval echo "$as_me:16446: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16449 echo "$as_me:16449: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16451 cf_cv_cgetent_const=yes
16453 echo "$as_me: failed program was:" >&5
16454 cat conftest.$ac_ext >&5
16455 cf_cv_cgetent_const=no
16457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16460 echo "$as_me:16460: result: $cf_cv_cgetent_const" >&5
16461 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
16462 if test "$cf_cv_cgetent_const" = yes
16465 cat >>confdefs.h <<EOF
16466 #define CGETENT_CONST const
16474 echo "$as_me:16474: checking for isascii" >&5
16475 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
16476 if test "${cf_cv_have_isascii+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 cat >conftest.$ac_ext <<_ACEOF
16481 #line 16481 "configure"
16482 #include "confdefs.h"
16487 int x = isascii(' ')
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (eval echo "$as_me:16493: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>&5
16496 echo "$as_me:16496: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -s conftest$ac_exeext'
16499 { (eval echo "$as_me:16499: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16502 echo "$as_me:16502: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 cf_cv_have_isascii=yes
16506 echo "$as_me: failed program was:" >&5
16507 cat conftest.$ac_ext >&5
16508 cf_cv_have_isascii=no
16510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16513 echo "$as_me:16513: result: $cf_cv_have_isascii" >&5
16514 echo "${ECHO_T}$cf_cv_have_isascii" >&6
16515 test "$cf_cv_have_isascii" = yes &&
16516 cat >>confdefs.h <<\EOF
16517 #define HAVE_ISASCII 1
16520 if test "$ac_cv_func_sigaction" = yes; then
16521 echo "$as_me:16521: checking whether sigaction needs _POSIX_SOURCE" >&5
16522 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
16523 cat >conftest.$ac_ext <<_ACEOF
16524 #line 16524 "configure"
16525 #include "confdefs.h"
16527 #include <sys/types.h>
16528 #include <signal.h>
16532 struct sigaction act
16537 rm -f conftest.$ac_objext
16538 if { (eval echo "$as_me:16538: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>&5
16541 echo "$as_me:16541: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:16544: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:16547: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16551 echo "$as_me: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16554 cat >conftest.$ac_ext <<_ACEOF
16555 #line 16555 "configure"
16556 #include "confdefs.h"
16558 #define _POSIX_SOURCE
16559 #include <sys/types.h>
16560 #include <signal.h>
16564 struct sigaction act
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:16570: \"$ac_compile\"") >&5
16571 (eval $ac_compile) 2>&5
16573 echo "$as_me:16573: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -s conftest.$ac_objext'
16576 { (eval echo "$as_me:16576: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16579 echo "$as_me:16579: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16583 cat >>confdefs.h <<\EOF
16584 #define _POSIX_SOURCE 1
16588 echo "$as_me: failed program was:" >&5
16589 cat conftest.$ac_ext >&5
16592 rm -f conftest.$ac_objext conftest.$ac_ext
16594 rm -f conftest.$ac_objext conftest.$ac_ext
16595 echo "$as_me:16595: result: $sigact_bad" >&5
16596 echo "${ECHO_T}$sigact_bad" >&6
16599 echo "$as_me:16599: checking if nanosleep really works" >&5
16600 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
16601 if test "${cf_cv_func_nanosleep+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 if test "$cross_compiling" = yes; then
16606 cf_cv_func_nanosleep=unknown
16608 cat >conftest.$ac_ext <<_ACEOF
16609 #line 16609 "configure"
16610 #include "confdefs.h"
16616 #ifdef HAVE_SYS_TIME_H
16617 #include <sys/time.h>
16621 struct timespec ts1, ts2;
16624 ts1.tv_nsec = 750000000;
16628 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16629 ${cf_cv_main_return:-return}(code != 0);
16633 rm -f conftest$ac_exeext
16634 if { (eval echo "$as_me:16634: \"$ac_link\"") >&5
16635 (eval $ac_link) 2>&5
16637 echo "$as_me:16637: \$? = $ac_status" >&5
16638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16639 { (eval echo "$as_me:16639: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 echo "$as_me:16642: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 cf_cv_func_nanosleep=yes
16646 echo "$as_me: program exited with status $ac_status" >&5
16647 echo "$as_me: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 cf_cv_func_nanosleep=no
16651 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16654 echo "$as_me:16654: result: $cf_cv_func_nanosleep" >&5
16655 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16657 test "$cf_cv_func_nanosleep" = "yes" &&
16658 cat >>confdefs.h <<\EOF
16659 #define HAVE_NANOSLEEP 1
16668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16669 echo "$as_me:16669: checking for $ac_header" >&5
16670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.$ac_ext <<_ACEOF
16675 #line 16675 "configure"
16676 #include "confdefs.h"
16677 #include <$ac_header>
16679 if { (eval echo "$as_me:16679: \"$ac_cpp conftest.$ac_ext\"") >&5
16680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16682 egrep -v '^ *\+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:16685: \$? = $ac_status" >&5
16686 (exit $ac_status); } >/dev/null; then
16687 if test -s conftest.err; then
16688 ac_cpp_err=$ac_c_preproc_warn_flag
16695 if test -z "$ac_cpp_err"; then
16696 eval "$as_ac_Header=yes"
16698 echo "$as_me: failed program was:" >&5
16699 cat conftest.$ac_ext >&5
16700 eval "$as_ac_Header=no"
16702 rm -f conftest.err conftest.$ac_ext
16704 echo "$as_me:16704: result: `eval echo '${'$as_ac_Header'}'`" >&5
16705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16707 cat >>confdefs.h <<EOF
16708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16714 if test "$ISC" = yes ; then
16716 for ac_header in sys/termio.h
16718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16719 echo "$as_me:16719: checking for $ac_header" >&5
16720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 cat >conftest.$ac_ext <<_ACEOF
16725 #line 16725 "configure"
16726 #include "confdefs.h"
16727 #include <$ac_header>
16729 if { (eval echo "$as_me:16729: \"$ac_cpp conftest.$ac_ext\"") >&5
16730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16732 egrep -v '^ *\+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 echo "$as_me:16735: \$? = $ac_status" >&5
16736 (exit $ac_status); } >/dev/null; then
16737 if test -s conftest.err; then
16738 ac_cpp_err=$ac_c_preproc_warn_flag
16745 if test -z "$ac_cpp_err"; then
16746 eval "$as_ac_Header=yes"
16748 echo "$as_me: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 eval "$as_ac_Header=no"
16752 rm -f conftest.err conftest.$ac_ext
16754 echo "$as_me:16754: result: `eval echo '${'$as_ac_Header'}'`" >&5
16755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16757 cat >>confdefs.h <<EOF
16758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16765 if test "$ac_cv_header_termios_h" = yes ; then
16766 case "$CFLAGS $CPPFLAGS" in
16768 termios_bad=dunno ;;
16769 *) termios_bad=maybe ;;
16771 if test "$termios_bad" = maybe ; then
16772 echo "$as_me:16772: checking whether termios.h needs _POSIX_SOURCE" >&5
16773 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
16774 cat >conftest.$ac_ext <<_ACEOF
16775 #line 16775 "configure"
16776 #include "confdefs.h"
16777 #include <termios.h>
16781 struct termios foo; int x = foo.c_iflag
16786 rm -f conftest.$ac_objext
16787 if { (eval echo "$as_me:16787: \"$ac_compile\"") >&5
16788 (eval $ac_compile) 2>&5
16790 echo "$as_me:16790: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (eval echo "$as_me:16793: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16796 echo "$as_me:16796: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16800 echo "$as_me: failed program was:" >&5
16801 cat conftest.$ac_ext >&5
16803 cat >conftest.$ac_ext <<_ACEOF
16804 #line 16804 "configure"
16805 #include "confdefs.h"
16807 #define _POSIX_SOURCE
16808 #include <termios.h>
16812 struct termios foo; int x = foo.c_iflag
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 termios_bad=unknown
16831 echo "$as_me: failed program was:" >&5
16832 cat conftest.$ac_ext >&5
16834 cat >>confdefs.h <<\EOF
16835 #define _POSIX_SOURCE 1
16839 rm -f conftest.$ac_objext conftest.$ac_ext
16842 rm -f conftest.$ac_objext conftest.$ac_ext
16843 echo "$as_me:16843: result: $termios_bad" >&5
16844 echo "${ECHO_T}$termios_bad" >&6
16848 echo "$as_me:16848: checking for tcgetattr" >&5
16849 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
16850 if test "${cf_cv_have_tcgetattr+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 cat >conftest.$ac_ext <<_ACEOF
16855 #line 16855 "configure"
16856 #include "confdefs.h"
16858 #include <sys/types.h>
16859 #ifdef HAVE_UNISTD_H
16860 #include <unistd.h>
16862 #ifdef HAVE_TERMIOS_H
16863 #include <termios.h>
16864 #define TTY struct termios
16866 #ifdef HAVE_TERMIO_H
16867 #include <termio.h>
16868 #define TTY struct termio
16877 tcgetattr(1, &foo);
16882 rm -f conftest.$ac_objext conftest$ac_exeext
16883 if { (eval echo "$as_me:16883: \"$ac_link\"") >&5
16884 (eval $ac_link) 2>&5
16886 echo "$as_me:16886: \$? = $ac_status" >&5
16887 (exit $ac_status); } &&
16888 { ac_try='test -s conftest$ac_exeext'
16889 { (eval echo "$as_me:16889: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16892 echo "$as_me:16892: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 cf_cv_have_tcgetattr=yes
16896 echo "$as_me: failed program was:" >&5
16897 cat conftest.$ac_ext >&5
16898 cf_cv_have_tcgetattr=no
16900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16902 echo "$as_me:16902: result: $cf_cv_have_tcgetattr" >&5
16903 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
16904 test "$cf_cv_have_tcgetattr" = yes &&
16905 cat >>confdefs.h <<\EOF
16906 #define HAVE_TCGETATTR 1
16909 echo "$as_me:16909: checking for vsscanf function or workaround" >&5
16910 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
16911 if test "${cf_cv_func_vsscanf+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 cat >conftest.$ac_ext <<_ACEOF
16916 #line 16916 "configure"
16917 #include "confdefs.h"
16919 #include <stdarg.h>
16926 vsscanf("from", "%d", ap)
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:16932: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>&5
16935 echo "$as_me:16935: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (eval echo "$as_me:16938: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:16941: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 cf_cv_func_vsscanf=vsscanf
16945 echo "$as_me: failed program was:" >&5
16946 cat conftest.$ac_ext >&5
16948 cat >conftest.$ac_ext <<_ACEOF
16949 #line 16949 "configure"
16950 #include "confdefs.h"
16952 #include <stdarg.h>
16959 char *str = "from";
16961 strbuf._flag = _IOREAD;
16962 strbuf._ptr = strbuf._base = (unsigned char *) str;
16963 strbuf._cnt = strlen(str);
16964 strbuf._file = _NFILE;
16965 return (vfscanf(&strbuf, "%d", ap))
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (eval echo "$as_me:16971: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>&5
16974 echo "$as_me:16974: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -s conftest$ac_exeext'
16977 { (eval echo "$as_me:16977: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16980 echo "$as_me:16980: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 cf_cv_func_vsscanf=vfscanf
16984 echo "$as_me: failed program was:" >&5
16985 cat conftest.$ac_ext >&5
16987 cat >conftest.$ac_ext <<_ACEOF
16988 #line 16988 "configure"
16989 #include "confdefs.h"
16991 #include <stdarg.h>
16998 char *str = "from";
17000 strbuf._flag = _IOREAD;
17001 strbuf._ptr = strbuf._base = (unsigned char *) str;
17002 strbuf._cnt = strlen(str);
17003 strbuf._file = _NFILE;
17004 return (_doscan(&strbuf, "%d", ap))
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (eval echo "$as_me:17010: \"$ac_link\"") >&5
17011 (eval $ac_link) 2>&5
17013 echo "$as_me:17013: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (eval echo "$as_me:17016: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:17019: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 cf_cv_func_vsscanf=_doscan
17023 echo "$as_me: failed program was:" >&5
17024 cat conftest.$ac_ext >&5
17026 cf_cv_func_vsscanf=no
17028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17034 echo "$as_me:17034: result: $cf_cv_func_vsscanf" >&5
17035 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
17037 case $cf_cv_func_vsscanf in #(vi
17039 cat >>confdefs.h <<\EOF
17040 #define HAVE_VSSCANF 1
17044 cat >>confdefs.h <<\EOF
17045 #define HAVE_VFSCANF 1
17049 cat >>confdefs.h <<\EOF
17050 #define HAVE__DOSCAN 1
17055 echo "$as_me:17055: checking for working mkstemp" >&5
17056 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
17057 if test "${cf_cv_func_mkstemp+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 if test "$cross_compiling" = yes; then
17063 cf_cv_func_mkstemp=maybe
17065 cat >conftest.$ac_ext <<_ACEOF
17066 #line 17066 "configure"
17067 #include "confdefs.h"
17069 #include <sys/types.h>
17070 #include <stdlib.h>
17072 #include <string.h>
17073 #include <sys/stat.h>
17076 char *tmpl = "conftestXXXXXX";
17084 for (n = 0; n < 2; ++n) {
17085 strcpy(name[n], tmpl);
17086 if ((fd = mkstemp(name[n])) >= 0) {
17087 if (!strcmp(name[n], tmpl)
17088 || stat(name[n], &sb) != 0
17089 || (sb.st_mode & S_IFMT) != S_IFREG
17090 || (sb.st_mode & 077) != 0) {
17097 && !strcmp(name[0], name[1]))
17099 ${cf_cv_main_return:-return}(result);
17103 rm -f conftest$ac_exeext
17104 if { (eval echo "$as_me:17104: \"$ac_link\"") >&5
17105 (eval $ac_link) 2>&5
17107 echo "$as_me:17107: \$? = $ac_status" >&5
17108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17109 { (eval echo "$as_me:17109: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17112 echo "$as_me:17112: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 cf_cv_func_mkstemp=yes
17117 echo "$as_me: program exited with status $ac_status" >&5
17118 echo "$as_me: failed program was:" >&5
17119 cat conftest.$ac_ext >&5
17120 cf_cv_func_mkstemp=no
17123 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17127 echo "$as_me:17127: result: $cf_cv_func_mkstemp" >&5
17128 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
17129 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
17130 echo "$as_me:17130: checking for mkstemp" >&5
17131 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17132 if test "${ac_cv_func_mkstemp+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 cat >conftest.$ac_ext <<_ACEOF
17136 #line 17136 "configure"
17137 #include "confdefs.h"
17138 /* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char mkstemp (); below. */
17140 #include <assert.h>
17141 /* Override any gcc2 internal prototype to avoid an error. */
17145 /* We use char because int might match the return type of a gcc2
17146 builtin and then its argument prototype would still apply. */
17153 /* The GNU C library defines this for functions which it implements
17154 to always fail with ENOSYS. Some functions are actually named
17155 something starting with __ and the normal name is an alias. */
17156 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17159 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (eval echo "$as_me:17167: \"$ac_link\"") >&5
17168 (eval $ac_link) 2>&5
17170 echo "$as_me:17170: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (eval echo "$as_me:17173: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:17176: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_func_mkstemp=yes
17180 echo "$as_me: failed program was:" >&5
17181 cat conftest.$ac_ext >&5
17182 ac_cv_func_mkstemp=no
17184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17186 echo "$as_me:17186: result: $ac_cv_func_mkstemp" >&5
17187 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17190 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
17192 cat >>confdefs.h <<\EOF
17193 #define HAVE_MKSTEMP 1
17198 # setup for prototype of fallback for vsscanf()
17200 if test "$cf_cv_func_vsscanf" = vsscanf ; then
17206 if test "x$cross_compiling" = xyes ; then
17207 { echo "$as_me:17207: WARNING: cross compiling: assume setvbuf params not reversed" >&5
17208 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
17210 echo "$as_me:17210: checking whether setvbuf arguments are reversed" >&5
17211 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
17212 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 if test "$cross_compiling" = yes; then
17216 { { echo "$as_me:17216: error: cannot run test program while cross compiling" >&5
17217 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17218 { (exit 1); exit 1; }; }
17220 cat >conftest.$ac_ext <<_ACEOF
17221 #line 17221 "configure"
17222 #include "confdefs.h"
17224 /* If setvbuf has the reversed format, exit 0. */
17228 /* This call has the arguments reversed.
17229 A reversed system may check and see that the address of main
17230 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
17231 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
17232 $ac_main_return(1);
17233 putc('\r', stdout);
17234 $ac_main_return(0); /* Non-reversed systems segv here. */
17237 rm -f conftest$ac_exeext
17238 if { (eval echo "$as_me:17238: \"$ac_link\"") >&5
17239 (eval $ac_link) 2>&5
17241 echo "$as_me:17241: \$? = $ac_status" >&5
17242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17243 { (eval echo "$as_me:17243: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17246 echo "$as_me:17246: \$? = $ac_status" >&5
17247 (exit $ac_status); }; }; then
17248 ac_cv_func_setvbuf_reversed=yes
17250 echo "$as_me: program exited with status $ac_status" >&5
17251 echo "$as_me: failed program was:" >&5
17252 cat conftest.$ac_ext >&5
17253 ac_cv_func_setvbuf_reversed=no
17255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17257 rm -f core core.* *.core
17259 echo "$as_me:17259: result: $ac_cv_func_setvbuf_reversed" >&5
17260 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
17261 if test $ac_cv_func_setvbuf_reversed = yes; then
17263 cat >>confdefs.h <<\EOF
17264 #define SETVBUF_REVERSED 1
17270 echo "$as_me:17270: checking for intptr_t" >&5
17271 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
17272 if test "${ac_cv_type_intptr_t+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17276 #line 17276 "configure"
17277 #include "confdefs.h"
17278 $ac_includes_default
17282 if ((intptr_t *) 0)
17284 if (sizeof (intptr_t))
17290 rm -f conftest.$ac_objext
17291 if { (eval echo "$as_me:17291: \"$ac_compile\"") >&5
17292 (eval $ac_compile) 2>&5
17294 echo "$as_me:17294: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -s conftest.$ac_objext'
17297 { (eval echo "$as_me:17297: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17300 echo "$as_me:17300: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_cv_type_intptr_t=yes
17304 echo "$as_me: failed program was:" >&5
17305 cat conftest.$ac_ext >&5
17306 ac_cv_type_intptr_t=no
17308 rm -f conftest.$ac_objext conftest.$ac_ext
17310 echo "$as_me:17310: result: $ac_cv_type_intptr_t" >&5
17311 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
17312 if test $ac_cv_type_intptr_t = yes; then
17316 cat >>confdefs.h <<EOF
17317 #define intptr_t long
17322 echo "$as_me:17322: checking for ssize_t" >&5
17323 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17324 if test "${ac_cv_type_ssize_t+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 cat >conftest.$ac_ext <<_ACEOF
17328 #line 17328 "configure"
17329 #include "confdefs.h"
17330 $ac_includes_default
17336 if (sizeof (ssize_t))
17342 rm -f conftest.$ac_objext
17343 if { (eval echo "$as_me:17343: \"$ac_compile\"") >&5
17344 (eval $ac_compile) 2>&5
17346 echo "$as_me:17346: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -s conftest.$ac_objext'
17349 { (eval echo "$as_me:17349: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17352 echo "$as_me:17352: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_cv_type_ssize_t=yes
17356 echo "$as_me: failed program was:" >&5
17357 cat conftest.$ac_ext >&5
17358 ac_cv_type_ssize_t=no
17360 rm -f conftest.$ac_objext conftest.$ac_ext
17362 echo "$as_me:17362: result: $ac_cv_type_ssize_t" >&5
17363 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17364 if test $ac_cv_type_ssize_t = yes; then
17368 cat >>confdefs.h <<EOF
17369 #define ssize_t int
17374 echo "$as_me:17374: checking for type sigaction_t" >&5
17375 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17376 if test "${cf_cv_type_sigaction+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 cat >conftest.$ac_ext <<_ACEOF
17381 #line 17381 "configure"
17382 #include "confdefs.h"
17384 #include <signal.h>
17393 rm -f conftest.$ac_objext
17394 if { (eval echo "$as_me:17394: \"$ac_compile\"") >&5
17395 (eval $ac_compile) 2>&5
17397 echo "$as_me:17397: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -s conftest.$ac_objext'
17400 { (eval echo "$as_me:17400: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:17403: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 cf_cv_type_sigaction=yes
17407 echo "$as_me: failed program was:" >&5
17408 cat conftest.$ac_ext >&5
17409 cf_cv_type_sigaction=no
17411 rm -f conftest.$ac_objext conftest.$ac_ext
17414 echo "$as_me:17414: result: $cf_cv_type_sigaction" >&5
17415 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17416 test "$cf_cv_type_sigaction" = yes &&
17417 cat >>confdefs.h <<\EOF
17418 #define HAVE_TYPE_SIGACTION 1
17421 echo "$as_me:17421: checking declaration of size-change" >&5
17422 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
17423 if test "${cf_cv_sizechange+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cf_cv_sizechange=unknown
17428 cf_save_CPPFLAGS="$CPPFLAGS"
17430 for cf_opts in "" "NEED_PTEM_H"
17433 CPPFLAGS="$cf_save_CPPFLAGS"
17434 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
17435 cat >conftest.$ac_ext <<_ACEOF
17436 #line 17436 "configure"
17437 #include "confdefs.h"
17438 #include <sys/types.h>
17439 #ifdef HAVE_TERMIOS_H
17440 #include <termios.h>
17442 #ifdef HAVE_TERMIO_H
17443 #include <termio.h>
17447 /* This is a workaround for SCO: they neglected to define struct winsize in
17448 * termios.h -- it's only in termio.h and ptem.h
17450 #include <sys/stream.h>
17451 #include <sys/ptem.h>
17453 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
17454 #include <sys/ioctl.h>
17462 struct ttysize win; /* FIXME: what system is this? */
17463 int y = win.ts_lines;
17464 int x = win.ts_cols;
17467 struct winsize win;
17468 int y = win.ws_row;
17469 int x = win.ws_col;
17471 no TIOCGSIZE or TIOCGWINSZ
17472 #endif /* TIOCGWINSZ */
17473 #endif /* TIOCGSIZE */
17479 rm -f conftest.$ac_objext
17480 if { (eval echo "$as_me:17480: \"$ac_compile\"") >&5
17481 (eval $ac_compile) 2>&5
17483 echo "$as_me:17483: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -s conftest.$ac_objext'
17486 { (eval echo "$as_me:17486: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:17489: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 cf_cv_sizechange=yes
17493 echo "$as_me: failed program was:" >&5
17494 cat conftest.$ac_ext >&5
17495 cf_cv_sizechange=no
17497 rm -f conftest.$ac_objext conftest.$ac_ext
17499 CPPFLAGS="$cf_save_CPPFLAGS"
17500 if test "$cf_cv_sizechange" = yes ; then
17501 echo "size-change succeeded ($cf_opts)" >&5
17502 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
17508 echo "$as_me:17508: result: $cf_cv_sizechange" >&5
17509 echo "${ECHO_T}$cf_cv_sizechange" >&6
17510 if test "$cf_cv_sizechange" != no ; then
17512 cat >>confdefs.h <<\EOF
17513 #define HAVE_SIZECHANGE 1
17516 case $cf_cv_sizechange in #(vi
17518 cat >>confdefs.h <<EOF
17519 #define $cf_cv_sizechange 1
17526 echo "$as_me:17526: checking for memmove" >&5
17527 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17528 if test "${ac_cv_func_memmove+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 cat >conftest.$ac_ext <<_ACEOF
17532 #line 17532 "configure"
17533 #include "confdefs.h"
17534 /* System header to define __stub macros and hopefully few prototypes,
17535 which can conflict with char memmove (); below. */
17536 #include <assert.h>
17537 /* Override any gcc2 internal prototype to avoid an error. */
17541 /* We use char because int might match the return type of a gcc2
17542 builtin and then its argument prototype would still apply. */
17549 /* The GNU C library defines this for functions which it implements
17550 to always fail with ENOSYS. Some functions are actually named
17551 something starting with __ and the normal name is an alias. */
17552 #if defined (__stub_memmove) || defined (__stub___memmove)
17555 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:17563: \"$ac_link\"") >&5
17564 (eval $ac_link) 2>&5
17566 echo "$as_me:17566: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -s conftest$ac_exeext'
17569 { (eval echo "$as_me:17569: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17572 echo "$as_me:17572: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_cv_func_memmove=yes
17576 echo "$as_me: failed program was:" >&5
17577 cat conftest.$ac_ext >&5
17578 ac_cv_func_memmove=no
17580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17582 echo "$as_me:17582: result: $ac_cv_func_memmove" >&5
17583 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17584 if test $ac_cv_func_memmove = yes; then
17588 echo "$as_me:17588: checking for bcopy" >&5
17589 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
17590 if test "${ac_cv_func_bcopy+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.$ac_ext <<_ACEOF
17594 #line 17594 "configure"
17595 #include "confdefs.h"
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char bcopy (); below. */
17598 #include <assert.h>
17599 /* Override any gcc2 internal prototype to avoid an error. */
17603 /* We use char because int might match the return type of a gcc2
17604 builtin and then its argument prototype would still apply. */
17611 /* The GNU C library defines this for functions which it implements
17612 to always fail with ENOSYS. Some functions are actually named
17613 something starting with __ and the normal name is an alias. */
17614 #if defined (__stub_bcopy) || defined (__stub___bcopy)
17617 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (eval echo "$as_me:17625: \"$ac_link\"") >&5
17626 (eval $ac_link) 2>&5
17628 echo "$as_me:17628: \$? = $ac_status" >&5
17629 (exit $ac_status); } &&
17630 { ac_try='test -s conftest$ac_exeext'
17631 { (eval echo "$as_me:17631: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17634 echo "$as_me:17634: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 ac_cv_func_bcopy=yes
17638 echo "$as_me: failed program was:" >&5
17639 cat conftest.$ac_ext >&5
17640 ac_cv_func_bcopy=no
17642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17644 echo "$as_me:17644: result: $ac_cv_func_bcopy" >&5
17645 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
17646 if test $ac_cv_func_bcopy = yes; then
17648 echo "$as_me:17648: checking if bcopy does overlapping moves" >&5
17649 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
17650 if test "${cf_cv_good_bcopy+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 if test "$cross_compiling" = yes; then
17655 cf_cv_good_bcopy=unknown
17657 cat >conftest.$ac_ext <<_ACEOF
17658 #line 17658 "configure"
17659 #include "confdefs.h"
17662 static char data[] = "abcdefghijklmnopqrstuwwxyz";
17664 bcopy(data, temp, sizeof(data));
17665 bcopy(temp+10, temp, 15);
17666 bcopy(temp+5, temp+15, 10);
17667 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
17671 rm -f conftest$ac_exeext
17672 if { (eval echo "$as_me:17672: \"$ac_link\"") >&5
17673 (eval $ac_link) 2>&5
17675 echo "$as_me:17675: \$? = $ac_status" >&5
17676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677 { (eval echo "$as_me:17677: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:17680: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 cf_cv_good_bcopy=yes
17684 echo "$as_me: program exited with status $ac_status" >&5
17685 echo "$as_me: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 cf_cv_good_bcopy=no
17689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17693 echo "$as_me:17693: result: $cf_cv_good_bcopy" >&5
17694 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
17697 cf_cv_good_bcopy=no
17700 if test "$cf_cv_good_bcopy" = yes ; then
17702 cat >>confdefs.h <<\EOF
17703 #define USE_OK_BCOPY 1
17708 cat >>confdefs.h <<\EOF
17709 #define USE_MY_MEMMOVE 1
17716 echo "$as_me:17716: checking if poll really works" >&5
17717 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
17718 if test "${cf_cv_working_poll+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 if test "$cross_compiling" = yes; then
17723 cf_cv_working_poll=unknown
17725 cat >conftest.$ac_ext <<_ACEOF
17726 #line 17726 "configure"
17727 #include "confdefs.h"
17729 #include <stdlib.h>
17731 #include <unistd.h>
17736 #include <sys/poll.h>
17739 struct pollfd myfds;
17742 /* check for Darwin bug with respect to "devices" */
17743 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
17746 myfds.events = POLLIN;
17749 ret = poll(&myfds, 1, 100);
17751 if (ret < 0 || (myfds.revents & POLLNVAL)) {
17756 fd = open("/dev/tty", 2); /* O_RDWR */
17760 /* also check with standard input */
17762 myfds.events = POLLIN;
17764 ret = poll(&myfds, 1, 100);
17769 ${cf_cv_main_return:-return}(ret < 0);
17772 rm -f conftest$ac_exeext
17773 if { (eval echo "$as_me:17773: \"$ac_link\"") >&5
17774 (eval $ac_link) 2>&5
17776 echo "$as_me:17776: \$? = $ac_status" >&5
17777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17778 { (eval echo "$as_me:17778: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:17781: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 cf_cv_working_poll=yes
17785 echo "$as_me: program exited with status $ac_status" >&5
17786 echo "$as_me: failed program was:" >&5
17787 cat conftest.$ac_ext >&5
17788 cf_cv_working_poll=no
17790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17793 echo "$as_me:17793: result: $cf_cv_working_poll" >&5
17794 echo "${ECHO_T}$cf_cv_working_poll" >&6
17795 test "$cf_cv_working_poll" = "yes" &&
17796 cat >>confdefs.h <<\EOF
17797 #define HAVE_WORKING_POLL 1
17800 echo "$as_me:17800: checking for va_copy" >&5
17801 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
17802 if test "${cf_cv_have_va_copy+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 cat >conftest.$ac_ext <<_ACEOF
17807 #line 17807 "configure"
17808 #include "confdefs.h"
17810 #include <stdarg.h>
17816 static va_list dst;
17817 static va_list src;
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (eval echo "$as_me:17824: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>&5
17827 echo "$as_me:17827: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -s conftest$ac_exeext'
17830 { (eval echo "$as_me:17830: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:17833: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 cf_cv_have_va_copy=yes
17837 echo "$as_me: failed program was:" >&5
17838 cat conftest.$ac_ext >&5
17839 cf_cv_have_va_copy=no
17841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17843 echo "$as_me:17843: result: $cf_cv_have_va_copy" >&5
17844 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
17846 test "$cf_cv_have_va_copy" = yes &&
17847 cat >>confdefs.h <<\EOF
17848 #define HAVE_VA_COPY 1
17851 echo "$as_me:17851: checking for __va_copy" >&5
17852 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17853 if test "${cf_cv_have___va_copy+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 cat >conftest.$ac_ext <<_ACEOF
17858 #line 17858 "configure"
17859 #include "confdefs.h"
17861 #include <stdarg.h>
17867 static va_list dst;
17868 static va_list src;
17869 __va_copy(dst, src)
17874 rm -f conftest.$ac_objext conftest$ac_exeext
17875 if { (eval echo "$as_me:17875: \"$ac_link\"") >&5
17876 (eval $ac_link) 2>&5
17878 echo "$as_me:17878: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -s conftest$ac_exeext'
17881 { (eval echo "$as_me:17881: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:17884: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 cf_cv_have___va_copy=yes
17888 echo "$as_me: failed program was:" >&5
17889 cat conftest.$ac_ext >&5
17890 cf_cv_have___va_copy=no
17892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17894 echo "$as_me:17894: result: $cf_cv_have___va_copy" >&5
17895 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
17897 test "$cf_cv_have___va_copy" = yes &&
17898 cat >>confdefs.h <<\EOF
17899 #define HAVE___VA_COPY 1
17902 echo "$as_me:17902: checking for pid_t" >&5
17903 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17904 if test "${ac_cv_type_pid_t+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 cat >conftest.$ac_ext <<_ACEOF
17908 #line 17908 "configure"
17909 #include "confdefs.h"
17910 $ac_includes_default
17916 if (sizeof (pid_t))
17922 rm -f conftest.$ac_objext
17923 if { (eval echo "$as_me:17923: \"$ac_compile\"") >&5
17924 (eval $ac_compile) 2>&5
17926 echo "$as_me:17926: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -s conftest.$ac_objext'
17929 { (eval echo "$as_me:17929: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:17932: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_cv_type_pid_t=yes
17936 echo "$as_me: failed program was:" >&5
17937 cat conftest.$ac_ext >&5
17938 ac_cv_type_pid_t=no
17940 rm -f conftest.$ac_objext conftest.$ac_ext
17942 echo "$as_me:17942: result: $ac_cv_type_pid_t" >&5
17943 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17944 if test $ac_cv_type_pid_t = yes; then
17948 cat >>confdefs.h <<EOF
17954 for ac_header in unistd.h vfork.h
17956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17957 echo "$as_me:17957: checking for $ac_header" >&5
17958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 cat >conftest.$ac_ext <<_ACEOF
17963 #line 17963 "configure"
17964 #include "confdefs.h"
17965 #include <$ac_header>
17967 if { (eval echo "$as_me:17967: \"$ac_cpp conftest.$ac_ext\"") >&5
17968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17970 egrep -v '^ *\+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:17973: \$? = $ac_status" >&5
17974 (exit $ac_status); } >/dev/null; then
17975 if test -s conftest.err; then
17976 ac_cpp_err=$ac_c_preproc_warn_flag
17983 if test -z "$ac_cpp_err"; then
17984 eval "$as_ac_Header=yes"
17986 echo "$as_me: failed program was:" >&5
17987 cat conftest.$ac_ext >&5
17988 eval "$as_ac_Header=no"
17990 rm -f conftest.err conftest.$ac_ext
17992 echo "$as_me:17992: result: `eval echo '${'$as_ac_Header'}'`" >&5
17993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17995 cat >>confdefs.h <<EOF
17996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18002 for ac_func in fork vfork
18004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18005 echo "$as_me:18005: checking for $ac_func" >&5
18006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18007 if eval "test \"\${$as_ac_var+set}\" = set"; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 cat >conftest.$ac_ext <<_ACEOF
18011 #line 18011 "configure"
18012 #include "confdefs.h"
18013 /* System header to define __stub macros and hopefully few prototypes,
18014 which can conflict with char $ac_func (); below. */
18015 #include <assert.h>
18016 /* Override any gcc2 internal prototype to avoid an error. */
18020 /* We use char because int might match the return type of a gcc2
18021 builtin and then its argument prototype would still apply. */
18028 /* The GNU C library defines this for functions which it implements
18029 to always fail with ENOSYS. Some functions are actually named
18030 something starting with __ and the normal name is an alias. */
18031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18034 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18041 rm -f conftest.$ac_objext conftest$ac_exeext
18042 if { (eval echo "$as_me:18042: \"$ac_link\"") >&5
18043 (eval $ac_link) 2>&5
18045 echo "$as_me:18045: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -s conftest$ac_exeext'
18048 { (eval echo "$as_me:18048: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:18051: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 eval "$as_ac_var=yes"
18055 echo "$as_me: failed program was:" >&5
18056 cat conftest.$ac_ext >&5
18057 eval "$as_ac_var=no"
18059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18061 echo "$as_me:18061: result: `eval echo '${'$as_ac_var'}'`" >&5
18062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18063 if test `eval echo '${'$as_ac_var'}'` = yes; then
18064 cat >>confdefs.h <<EOF
18065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18071 ac_cv_func_fork_works=$ac_cv_func_fork
18072 if test "x$ac_cv_func_fork" = xyes; then
18073 echo "$as_me:18073: checking for working fork" >&5
18074 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18075 if test "${ac_cv_func_fork_works+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 if test "$cross_compiling" = yes; then
18079 ac_cv_func_fork_works=cross
18081 cat >conftest.$ac_ext <<_ACEOF
18082 /* By Rüdiger Kuhlmann. */
18083 #include <sys/types.h>
18085 # include <unistd.h>
18087 /* Some systems only have a dummy stub for fork() */
18091 $ac_main_return (1);
18092 $ac_main_return (0);
18095 rm -f conftest$ac_exeext
18096 if { (eval echo "$as_me:18096: \"$ac_link\"") >&5
18097 (eval $ac_link) 2>&5
18099 echo "$as_me:18099: \$? = $ac_status" >&5
18100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18101 { (eval echo "$as_me:18101: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18104 echo "$as_me:18104: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_func_fork_works=yes
18108 echo "$as_me: program exited with status $ac_status" >&5
18109 echo "$as_me: failed program was:" >&5
18110 cat conftest.$ac_ext >&5
18111 ac_cv_func_fork_works=no
18113 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18116 echo "$as_me:18116: result: $ac_cv_func_fork_works" >&5
18117 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18120 if test "x$ac_cv_func_fork_works" = xcross; then
18122 *-*-amigaos* | *-*-msdosdjgpp*)
18123 # Override, as these systems have only a dummy fork() stub
18124 ac_cv_func_fork_works=no
18127 ac_cv_func_fork_works=yes
18130 { echo "$as_me:18130: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
18131 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
18133 ac_cv_func_vfork_works=$ac_cv_func_vfork
18134 if test "x$ac_cv_func_vfork" = xyes; then
18135 echo "$as_me:18135: checking for working vfork" >&5
18136 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18137 if test "${ac_cv_func_vfork_works+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 if test "$cross_compiling" = yes; then
18141 ac_cv_func_vfork_works=cross
18143 cat >conftest.$ac_ext <<_ACEOF
18144 #line 18144 "configure"
18145 #include "confdefs.h"
18146 /* Thanks to Paul Eggert for this test. */
18148 #include <sys/types.h>
18149 #include <sys/stat.h>
18151 # include <unistd.h>
18154 # include <vfork.h>
18156 /* On some sparc systems, changes by the child to local and incoming
18157 argument registers are propagated back to the parent. The compiler
18158 is told about this with #include <vfork.h>, but some compilers
18159 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18160 static variable whose address is put into a register that is
18161 clobbered by the vfork. */
18164 sparc_address_test (int arg)
18166 sparc_address_test (arg) int arg;
18169 static pid_t child;
18187 pid_t parent = getpid ();
18190 sparc_address_test ();
18195 /* Here is another test for sparc vfork register problems. This
18196 test uses lots of local variables, at least as many local
18197 variables as main has allocated so far including compiler
18198 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18199 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18200 reuse the register of parent for one of the local variables,
18201 since it will think that parent can't possibly be used any more
18202 in this routine. Assigning to the local variable will thus
18203 munge parent in the parent process. */
18205 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18206 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18207 /* Convince the compiler that p..p7 are live; otherwise, it might
18208 use the same hardware register for all 8 local variables. */
18209 if (p != p1 || p != p2 || p != p3 || p != p4
18210 || p != p5 || p != p6 || p != p7)
18213 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18214 from child file descriptors. If the child closes a descriptor
18215 before it execs or exits, this munges the parent's descriptor
18216 as well. Test for this by closing stdout in the child. */
18217 _exit(close(fileno(stdout)) != 0);
18222 while (wait(&status) != child)
18225 /* Was there some problem with vforking? */
18228 /* Did the child fail? (This shouldn't happen.) */
18231 /* Did the vfork/compiler bug occur? */
18232 || parent != getpid()
18234 /* Did the file descriptor bug occur? */
18235 || fstat(fileno(stdout), &st) != 0
18240 rm -f conftest$ac_exeext
18241 if { (eval echo "$as_me:18241: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>&5
18244 echo "$as_me:18244: \$? = $ac_status" >&5
18245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18246 { (eval echo "$as_me:18246: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:18249: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_func_vfork_works=yes
18253 echo "$as_me: program exited with status $ac_status" >&5
18254 echo "$as_me: failed program was:" >&5
18255 cat conftest.$ac_ext >&5
18256 ac_cv_func_vfork_works=no
18258 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18261 echo "$as_me:18261: result: $ac_cv_func_vfork_works" >&5
18262 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18265 if test "x$ac_cv_func_fork_works" = xcross; then
18266 ac_cv_func_vfork_works=ac_cv_func_vfork
18267 { echo "$as_me:18267: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
18268 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
18271 if test "x$ac_cv_func_vfork_works" = xyes; then
18273 cat >>confdefs.h <<\EOF
18274 #define HAVE_WORKING_VFORK 1
18279 cat >>confdefs.h <<\EOF
18284 if test "x$ac_cv_func_fork_works" = xyes; then
18286 cat >>confdefs.h <<\EOF
18287 #define HAVE_WORKING_FORK 1
18292 # special check for test/ditto.c
18294 echo "$as_me:18294: checking for openpty in -lutil" >&5
18295 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18296 if test "${ac_cv_lib_util_openpty+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lutil $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18302 #line 18302 "configure"
18303 #include "confdefs.h"
18305 /* Override any gcc2 internal prototype to avoid an error. */
18309 /* We use char because int might match the return type of a gcc2
18310 builtin and then its argument prototype would still apply. */
18320 rm -f conftest.$ac_objext conftest$ac_exeext
18321 if { (eval echo "$as_me:18321: \"$ac_link\"") >&5
18322 (eval $ac_link) 2>&5
18324 echo "$as_me:18324: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -s conftest$ac_exeext'
18327 { (eval echo "$as_me:18327: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18330 echo "$as_me:18330: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
18332 ac_cv_lib_util_openpty=yes
18334 echo "$as_me: failed program was:" >&5
18335 cat conftest.$ac_ext >&5
18336 ac_cv_lib_util_openpty=no
18338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18339 LIBS=$ac_check_lib_save_LIBS
18341 echo "$as_me:18341: result: $ac_cv_lib_util_openpty" >&5
18342 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18343 if test $ac_cv_lib_util_openpty = yes; then
18349 echo "$as_me:18349: checking for openpty header" >&5
18350 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18351 if test "${cf_cv_func_openpty+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 cf_save_LIBS="$LIBS"
18356 test $cf_cv_lib_util = yes &&
18357 cf_add_libs="-lutil"
18358 # Filter out duplicates - this happens with badly-designed ".pc" files...
18359 for cf_add_1lib in $LIBS
18361 for cf_add_2lib in $cf_add_libs
18363 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18369 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18371 LIBS="$cf_add_libs"
18373 for cf_header in pty.h libutil.h util.h
18375 cat >conftest.$ac_ext <<_ACEOF
18376 #line 18376 "configure"
18377 #include "confdefs.h"
18379 #include <$cf_header>
18385 int x = openpty((int *)0, (int *)0, (char *)0,
18386 (struct termios *)0, (struct winsize *)0);
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (eval echo "$as_me:18393: \"$ac_link\"") >&5
18394 (eval $ac_link) 2>&5
18396 echo "$as_me:18396: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -s conftest$ac_exeext'
18399 { (eval echo "$as_me:18399: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18402 echo "$as_me:18402: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18405 cf_cv_func_openpty=$cf_header
18409 echo "$as_me: failed program was:" >&5
18410 cat conftest.$ac_ext >&5
18412 cf_cv_func_openpty=no
18415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18417 LIBS="$cf_save_LIBS"
18420 echo "$as_me:18420: result: $cf_cv_func_openpty" >&5
18421 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18423 if test "$cf_cv_func_openpty" != no ; then
18425 cat >>confdefs.h <<EOF
18426 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18429 cat >>confdefs.h <<\EOF
18430 #define USE_XTERM_PTY 1
18433 if test "x$cf_cv_lib_util" = xyes ; then
18435 cf_add_libs="-lutil"
18436 # Filter out duplicates - this happens with badly-designed ".pc" files...
18437 for cf_add_1lib in $TEST_LIBS
18439 for cf_add_2lib in $cf_add_libs
18441 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18447 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18449 TEST_LIBS="$cf_add_libs"
18454 if test "$with_hashed_db" != no ; then
18456 cat >>confdefs.h <<\EOF
18457 #define USE_HASHED_DB 1
18460 case $with_hashed_db in #(vi
18464 if test -d "$with_hashed_db" ; then
18466 if test -n "$with_hashed_db/include" ; then
18467 for cf_add_incdir in $with_hashed_db/include
18469 while test $cf_add_incdir != /usr/include
18471 if test -d $cf_add_incdir
18474 if test -n "$CFLAGS$CPPFLAGS" ; then
18475 # a loop is needed to ensure we can add subdirs of existing dirs
18476 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18477 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18478 cf_have_incdir=yes; break
18483 if test "$cf_have_incdir" = no ; then
18484 if test "$cf_add_incdir" = /usr/local/include ; then
18485 if test "$GCC" = yes
18487 cf_save_CPPFLAGS=$CPPFLAGS
18488 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 #line 18490 "configure"
18491 #include "confdefs.h"
18501 rm -f conftest.$ac_objext
18502 if { (eval echo "$as_me:18502: \"$ac_compile\"") >&5
18503 (eval $ac_compile) 2>&5
18505 echo "$as_me:18505: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -s conftest.$ac_objext'
18508 { (eval echo "$as_me:18508: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18511 echo "$as_me:18511: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18515 echo "$as_me: failed program was:" >&5
18516 cat conftest.$ac_ext >&5
18519 rm -f conftest.$ac_objext conftest.$ac_ext
18520 CPPFLAGS=$cf_save_CPPFLAGS
18525 if test "$cf_have_incdir" = no ; then
18526 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18528 echo "${as_me:-configure}:18528: testing adding $cf_add_incdir to include-path ..." 1>&5
18530 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18532 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18533 test "$cf_top_incdir" = "$cf_add_incdir" && break
18534 cf_add_incdir="$cf_top_incdir"
18543 if test -n "$with_hashed_db/lib" ; then
18544 for cf_add_libdir in $with_hashed_db/lib
18546 if test $cf_add_libdir = /usr/lib ; then
18548 elif test -d $cf_add_libdir
18551 if test -n "$LDFLAGS$LIBS" ; then
18552 # a loop is needed to ensure we can add subdirs of existing dirs
18553 for cf_test_libdir in $LDFLAGS $LIBS ; do
18554 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18555 cf_have_libdir=yes; break
18559 if test "$cf_have_libdir" = no ; then
18560 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18562 echo "${as_me:-configure}:18562: testing adding $cf_add_libdir to library-path ..." 1>&5
18564 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18571 case "$with_hashed_db" in #(vi
18573 { echo "$as_me:18573: WARNING: no such directory $with_hashed_db" >&5
18574 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
18580 test "x$prefix" != "xNONE" && \
18581 test -d "$prefix" && \
18583 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
18584 test -d $prefix/include && cf_search="$cf_search $prefix/include"
18585 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
18586 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
18587 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
18588 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
18591 for cf_subdir_prefix in \
18600 test "x$cf_subdir_prefix" != "x$prefix" && \
18601 test -d "$cf_subdir_prefix" && \
18602 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18603 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
18604 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
18605 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
18606 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
18607 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
18608 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"
18613 for cf_item in $cf_search
18615 case $cf_item in #(vi
18618 if test -n "$cf_item" ; then
18619 for cf_add_incdir in $cf_item
18621 while test $cf_add_incdir != /usr/include
18623 if test -d $cf_add_incdir
18626 if test -n "$CFLAGS$CPPFLAGS" ; then
18627 # a loop is needed to ensure we can add subdirs of existing dirs
18628 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18629 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18630 cf_have_incdir=yes; break
18635 if test "$cf_have_incdir" = no ; then
18636 if test "$cf_add_incdir" = /usr/local/include ; then
18637 if test "$GCC" = yes
18639 cf_save_CPPFLAGS=$CPPFLAGS
18640 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18641 cat >conftest.$ac_ext <<_ACEOF
18642 #line 18642 "configure"
18643 #include "confdefs.h"
18653 rm -f conftest.$ac_objext
18654 if { (eval echo "$as_me:18654: \"$ac_compile\"") >&5
18655 (eval $ac_compile) 2>&5
18657 echo "$as_me:18657: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
18659 { ac_try='test -s conftest.$ac_objext'
18660 { (eval echo "$as_me:18660: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:18663: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18667 echo "$as_me: failed program was:" >&5
18668 cat conftest.$ac_ext >&5
18671 rm -f conftest.$ac_objext conftest.$ac_ext
18672 CPPFLAGS=$cf_save_CPPFLAGS
18677 if test "$cf_have_incdir" = no ; then
18678 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18680 echo "${as_me:-configure}:18680: testing adding $cf_add_incdir to include-path ..." 1>&5
18682 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18684 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18685 test "$cf_top_incdir" = "$cf_add_incdir" && break
18686 cf_add_incdir="$cf_top_incdir"
18701 test "x$prefix" != "xNONE" && \
18702 test -d "$prefix" && \
18704 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
18705 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
18706 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
18707 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
18708 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
18709 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
18712 for cf_subdir_prefix in \
18721 test "x$cf_subdir_prefix" != "x$prefix" && \
18722 test -d "$cf_subdir_prefix" && \
18723 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18724 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
18725 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
18726 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
18727 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
18728 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
18729 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"
18734 for cf_item in $cf_search
18736 case $cf_item in #(vi
18739 if test -n "$cf_item" ; then
18740 for cf_add_libdir in $cf_item
18742 if test $cf_add_libdir = /usr/lib ; then
18744 elif test -d $cf_add_libdir
18747 if test -n "$LDFLAGS$LIBS" ; then
18748 # a loop is needed to ensure we can add subdirs of existing dirs
18749 for cf_test_libdir in $LDFLAGS $LIBS ; do
18750 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18751 cf_have_libdir=yes; break
18755 if test "$cf_have_libdir" = no ; then
18756 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18758 echo "${as_me:-configure}:18758: testing adding $cf_add_libdir to library-path ..." 1>&5
18760 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18775 echo "$as_me:18775: checking for db.h" >&5
18776 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
18777 if test "${ac_cv_header_db_h+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 cat >conftest.$ac_ext <<_ACEOF
18781 #line 18781 "configure"
18782 #include "confdefs.h"
18785 if { (eval echo "$as_me:18785: \"$ac_cpp conftest.$ac_ext\"") >&5
18786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18788 egrep -v '^ *\+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:18791: \$? = $ac_status" >&5
18792 (exit $ac_status); } >/dev/null; then
18793 if test -s conftest.err; then
18794 ac_cpp_err=$ac_c_preproc_warn_flag
18801 if test -z "$ac_cpp_err"; then
18802 ac_cv_header_db_h=yes
18804 echo "$as_me: failed program was:" >&5
18805 cat conftest.$ac_ext >&5
18806 ac_cv_header_db_h=no
18808 rm -f conftest.err conftest.$ac_ext
18810 echo "$as_me:18810: result: $ac_cv_header_db_h" >&5
18811 echo "${ECHO_T}$ac_cv_header_db_h" >&6
18812 if test $ac_cv_header_db_h = yes; then
18814 echo "$as_me:18814: checking for version of db" >&5
18815 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
18816 if test "${cf_cv_hashed_db_version+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 cf_cv_hashed_db_version=unknown
18822 for cf_db_version in 1 2 3 4 5 6
18825 echo "${as_me:-configure}:18825: testing checking for db version $cf_db_version ..." 1>&5
18827 cat >conftest.$ac_ext <<_ACEOF
18828 #line 18828 "configure"
18829 #include "confdefs.h"
18831 $ac_includes_default
18834 #ifdef DB_VERSION_MAJOR
18835 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
18836 #if $cf_db_version == DB_VERSION_MAJOR
18842 #if $cf_db_version == 1
18843 /* ok: assuming this is DB 1.8.5 */
18857 rm -f conftest.$ac_objext
18858 if { (eval echo "$as_me:18858: \"$ac_compile\"") >&5
18859 (eval $ac_compile) 2>&5
18861 echo "$as_me:18861: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
18863 { ac_try='test -s conftest.$ac_objext'
18864 { (eval echo "$as_me:18864: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:18867: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18870 cf_cv_hashed_db_version=$cf_db_version
18874 echo "$as_me: failed program was:" >&5
18875 cat conftest.$ac_ext >&5
18877 rm -f conftest.$ac_objext conftest.$ac_ext
18881 echo "$as_me:18881: result: $cf_cv_hashed_db_version" >&5
18882 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
18884 if test "$cf_cv_hashed_db_version" = unknown ; then
18885 { { echo "$as_me:18885: error: Cannot determine version of db" >&5
18886 echo "$as_me: error: Cannot determine version of db" >&2;}
18887 { (exit 1); exit 1; }; }
18890 echo "$as_me:18890: checking for db libraries" >&5
18891 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
18892 if test "${cf_cv_hashed_db_libs+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 cf_cv_hashed_db_libs=unknown
18897 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
18899 cf_save_libs="$LIBS"
18900 if test -n "$cf_db_libs"; then
18902 cf_add_libs="-l$cf_db_libs"
18903 # Filter out duplicates - this happens with badly-designed ".pc" files...
18904 for cf_add_1lib in $LIBS
18906 for cf_add_2lib in $cf_add_libs
18908 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18914 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18916 LIBS="$cf_add_libs"
18920 echo "${as_me:-configure}:18920: testing checking for library "$cf_db_libs" ..." 1>&5
18922 cat >conftest.$ac_ext <<_ACEOF
18923 #line 18923 "configure"
18924 #include "confdefs.h"
18926 $ac_includes_default
18933 char *path = "/tmp/foo";
18934 #ifdef DB_VERSION_MAJOR
18935 #if DB_VERSION_MAJOR >= 4
18937 db_create(&result, NULL, 0);
18938 result->open(result,
18945 #elif DB_VERSION_MAJOR >= 3
18947 db_create(&result, NULL, 0);
18948 result->open(result,
18954 #elif DB_VERSION_MAJOR >= 2
18963 #endif /* DB_VERSION_MAJOR */
18965 DB *result = dbopen(path,
18971 ${cf_cv_main_return:-return}(result != 0)
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (eval echo "$as_me:18978: \"$ac_link\"") >&5
18979 (eval $ac_link) 2>&5
18981 echo "$as_me:18981: \$? = $ac_status" >&5
18982 (exit $ac_status); } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (eval echo "$as_me:18984: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:18987: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18990 if test -n "$cf_db_libs" ; then
18991 cf_cv_hashed_db_libs=$cf_db_libs
18993 cf_cv_hashed_db_libs=default
18995 LIBS="$cf_save_libs"
18999 echo "$as_me: failed program was:" >&5
19000 cat conftest.$ac_ext >&5
19002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19003 LIBS="$cf_save_libs"
19007 echo "$as_me:19007: result: $cf_cv_hashed_db_libs" >&5
19008 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
19010 if test "$cf_cv_hashed_db_libs" = unknown ; then
19011 { { echo "$as_me:19011: error: Cannot determine library for db" >&5
19012 echo "$as_me: error: Cannot determine library for db" >&2;}
19013 { (exit 1); exit 1; }; }
19014 elif test "$cf_cv_hashed_db_libs" != default ; then
19016 cf_add_libs="-l$cf_cv_hashed_db_libs"
19017 # Filter out duplicates - this happens with badly-designed ".pc" files...
19018 for cf_add_1lib in $LIBS
19020 for cf_add_2lib in $cf_add_libs
19022 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19028 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19030 LIBS="$cf_add_libs"
19037 { { echo "$as_me:19037: error: Cannot find db.h" >&5
19038 echo "$as_me: error: Cannot find db.h" >&2;}
19039 { (exit 1); exit 1; }; }
19045 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
19046 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19047 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19050 # Just in case, check if the C compiler has a bool type.
19052 echo "$as_me:19052: checking if we should include stdbool.h" >&5
19053 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19055 if test "${cf_cv_header_stdbool_h+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 cat >conftest.$ac_ext <<_ACEOF
19060 #line 19060 "configure"
19061 #include "confdefs.h"
19071 rm -f conftest.$ac_objext
19072 if { (eval echo "$as_me:19072: \"$ac_compile\"") >&5
19073 (eval $ac_compile) 2>&5
19075 echo "$as_me:19075: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (eval echo "$as_me:19078: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:19081: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 cf_cv_header_stdbool_h=0
19085 echo "$as_me: failed program was:" >&5
19086 cat conftest.$ac_ext >&5
19087 cat >conftest.$ac_ext <<_ACEOF
19088 #line 19088 "configure"
19089 #include "confdefs.h"
19092 #include <stdbool.h>
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:19104: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>&5
19107 echo "$as_me:19107: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (eval echo "$as_me:19110: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19113 echo "$as_me:19113: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 cf_cv_header_stdbool_h=1
19117 echo "$as_me: failed program was:" >&5
19118 cat conftest.$ac_ext >&5
19119 cf_cv_header_stdbool_h=0
19121 rm -f conftest.$ac_objext conftest.$ac_ext
19123 rm -f conftest.$ac_objext conftest.$ac_ext
19126 if test "$cf_cv_header_stdbool_h" = 1
19127 then echo "$as_me:19127: result: yes" >&5
19128 echo "${ECHO_T}yes" >&6
19129 else echo "$as_me:19129: result: no" >&5
19130 echo "${ECHO_T}no" >&6
19133 echo "$as_me:19133: checking for builtin bool type" >&5
19134 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19136 if test "${cf_cv_cc_bool_type+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 cat >conftest.$ac_ext <<_ACEOF
19141 #line 19141 "configure"
19142 #include "confdefs.h"
19145 #include <sys/types.h>
19155 rm -f conftest.$ac_objext
19156 if { (eval echo "$as_me:19156: \"$ac_compile\"") >&5
19157 (eval $ac_compile) 2>&5
19159 echo "$as_me:19159: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -s conftest.$ac_objext'
19162 { (eval echo "$as_me:19162: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:19165: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 cf_cv_cc_bool_type=1
19169 echo "$as_me: failed program was:" >&5
19170 cat conftest.$ac_ext >&5
19171 cf_cv_cc_bool_type=0
19173 rm -f conftest.$ac_objext conftest.$ac_ext
19177 if test "$cf_cv_cc_bool_type" = 1
19178 then echo "$as_me:19178: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6
19180 else echo "$as_me:19180: result: no" >&5
19181 echo "${ECHO_T}no" >&6
19184 # Check for C++ compiler characteristics (and ensure that it's there!)
19185 if test -n "$CXX" ; then
19187 ac_cpp='$CXXCPP $CPPFLAGS'
19188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19191 ac_main_return=return
19193 if test -n "$GXX" ; then
19194 case $cf_cv_system_name in #(vi
19196 cf_stdcpp_libname=stdcpp
19199 cf_stdcpp_libname=stdc++
19202 echo "$as_me:19202: checking for library $cf_stdcpp_libname" >&5
19203 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
19204 if test "${cf_cv_libstdcpp+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19210 cf_add_libs="-l$cf_stdcpp_libname"
19211 # Filter out duplicates - this happens with badly-designed ".pc" files...
19212 for cf_add_1lib in $LIBS
19214 for cf_add_2lib in $cf_add_libs
19216 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19224 LIBS="$cf_add_libs"
19226 cat >conftest.$ac_ext <<_ACEOF
19227 #line 19227 "configure"
19228 #include "confdefs.h"
19230 #include <strstream.h>
19236 strstreambuf foo(buf, sizeof(buf))
19242 rm -f conftest.$ac_objext conftest$ac_exeext
19243 if { (eval echo "$as_me:19243: \"$ac_link\"") >&5
19244 (eval $ac_link) 2>&5
19246 echo "$as_me:19246: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -s conftest$ac_exeext'
19249 { (eval echo "$as_me:19249: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:19252: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 cf_cv_libstdcpp=yes
19256 echo "$as_me: failed program was:" >&5
19257 cat conftest.$ac_ext >&5
19260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19264 echo "$as_me:19264: result: $cf_cv_libstdcpp" >&5
19265 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
19266 test "$cf_cv_libstdcpp" = yes &&
19267 cf_add_libs="-l$cf_stdcpp_libname"
19268 # Filter out duplicates - this happens with badly-designed ".pc" files...
19269 for cf_add_1lib in $CXXLIBS
19271 for cf_add_2lib in $cf_add_libs
19273 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19279 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19281 CXXLIBS="$cf_add_libs"
19285 echo "$as_me:19285: checking whether $CXX understands -c and -o together" >&5
19286 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
19287 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 cat > conftest.$ac_ext <<CF_EOF
19295 ${cf_cv_main_return:-return}(0);
19298 # We do the test twice because some compilers refuse to overwrite an
19299 # existing .o file with -o, though they will create one.
19300 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19301 if { (eval echo "$as_me:19301: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:19304: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 test -f conftest2.$ac_objext && { (eval echo "$as_me:19306: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:19309: \$? = $ac_status" >&5
19310 (exit $ac_status); };
19312 eval cf_cv_prog_CXX_c_o=yes
19314 eval cf_cv_prog_CXX_c_o=no
19319 if test $cf_cv_prog_CXX_c_o = yes; then
19320 echo "$as_me:19320: result: yes" >&5
19321 echo "${ECHO_T}yes" >&6
19323 echo "$as_me:19323: result: no" >&5
19324 echo "${ECHO_T}no" >&6
19327 case $GXX_VERSION in
19333 cf_cxx_library=unknown
19334 case $cf_cv_system_name in #(vi
19342 if test "$GXX" = yes; then
19343 echo "$as_me:19343: checking for lib$cf_gpp_libname" >&5
19344 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
19347 cf_add_libs="-l$cf_gpp_libname"
19348 # Filter out duplicates - this happens with badly-designed ".pc" files...
19349 for cf_add_1lib in $LIBS
19351 for cf_add_2lib in $cf_add_libs
19353 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19359 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19361 LIBS="$cf_add_libs"
19363 cat >conftest.$ac_ext <<_ACEOF
19364 #line 19364 "configure"
19365 #include "confdefs.h"
19367 #include <$cf_gpp_libname/builtin.h>
19372 two_arg_error_handler_t foo2 = lib_error_handler
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (eval echo "$as_me:19378: \"$ac_link\"") >&5
19379 (eval $ac_link) 2>&5
19381 echo "$as_me:19381: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -s conftest$ac_exeext'
19384 { (eval echo "$as_me:19384: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:19387: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19391 cf_add_libs="-l$cf_gpp_libname"
19392 # Filter out duplicates - this happens with badly-designed ".pc" files...
19393 for cf_add_1lib in $CXXLIBS
19395 for cf_add_2lib in $cf_add_libs
19397 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19403 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19405 CXXLIBS="$cf_add_libs"
19407 if test "$cf_gpp_libname" = cpp ; then
19409 cat >>confdefs.h <<\EOF
19410 #define HAVE_GPP_BUILTIN_H 1
19415 cat >>confdefs.h <<\EOF
19416 #define HAVE_GXX_BUILTIN_H 1
19421 echo "$as_me: failed program was:" >&5
19422 cat conftest.$ac_ext >&5
19423 cat >conftest.$ac_ext <<_ACEOF
19424 #line 19424 "configure"
19425 #include "confdefs.h"
19427 #include <builtin.h>
19432 two_arg_error_handler_t foo2 = lib_error_handler
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (eval echo "$as_me:19438: \"$ac_link\"") >&5
19439 (eval $ac_link) 2>&5
19441 echo "$as_me:19441: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -s conftest$ac_exeext'
19444 { (eval echo "$as_me:19444: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19447 echo "$as_me:19447: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19451 cf_add_libs="-l$cf_gpp_libname"
19452 # Filter out duplicates - this happens with badly-designed ".pc" files...
19453 for cf_add_1lib in $CXXLIBS
19455 for cf_add_2lib in $cf_add_libs
19457 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19463 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19465 CXXLIBS="$cf_add_libs"
19467 cat >>confdefs.h <<\EOF
19468 #define HAVE_BUILTIN_H 1
19472 echo "$as_me: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19480 echo "$as_me:19480: result: $cf_cxx_library" >&5
19481 echo "${ECHO_T}$cf_cxx_library" >&6
19491 ac_cpp='$CXXCPP $CPPFLAGS'
19492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19495 ac_main_return=return
19496 echo "$as_me:19496: checking how to run the C++ preprocessor" >&5
19497 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19498 if test -z "$CXXCPP"; then
19499 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 # Double quotes because CXXCPP needs to be expanded
19503 for CXXCPP in "$CXX -E" "/lib/cpp"
19505 ac_preproc_ok=false
19506 for ac_cxx_preproc_warn_flag in '' yes
19508 # Use a header file that comes with gcc, so configuring glibc
19509 # with a fresh cross-compiler works.
19510 # On the NeXT, cc -E runs the code through the compiler's parser,
19511 # not just through cpp. "Syntax error" is here to catch this case.
19512 cat >conftest.$ac_ext <<_ACEOF
19513 #line 19513 "configure"
19514 #include "confdefs.h"
19515 #include <assert.h>
19518 if { (eval echo "$as_me:19518: \"$ac_cpp conftest.$ac_ext\"") >&5
19519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19521 egrep -v '^ *\+' conftest.er1 >conftest.err
19523 cat conftest.err >&5
19524 echo "$as_me:19524: \$? = $ac_status" >&5
19525 (exit $ac_status); } >/dev/null; then
19526 if test -s conftest.err; then
19527 ac_cpp_err=$ac_cxx_preproc_warn_flag
19534 if test -z "$ac_cpp_err"; then
19537 echo "$as_me: failed program was:" >&5
19538 cat conftest.$ac_ext >&5
19539 # Broken: fails on valid input.
19542 rm -f conftest.err conftest.$ac_ext
19544 # OK, works on sane cases. Now check whether non-existent headers
19545 # can be detected and how.
19546 cat >conftest.$ac_ext <<_ACEOF
19547 #line 19547 "configure"
19548 #include "confdefs.h"
19549 #include <ac_nonexistent.h>
19551 if { (eval echo "$as_me:19551: \"$ac_cpp conftest.$ac_ext\"") >&5
19552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19554 egrep -v '^ *\+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:19557: \$? = $ac_status" >&5
19558 (exit $ac_status); } >/dev/null; then
19559 if test -s conftest.err; then
19560 ac_cpp_err=$ac_cxx_preproc_warn_flag
19567 if test -z "$ac_cpp_err"; then
19568 # Broken: success on invalid input.
19571 echo "$as_me: failed program was:" >&5
19572 cat conftest.$ac_ext >&5
19573 # Passes both tests.
19577 rm -f conftest.err conftest.$ac_ext
19580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19581 rm -f conftest.err conftest.$ac_ext
19582 if $ac_preproc_ok; then
19587 ac_cv_prog_CXXCPP=$CXXCPP
19590 CXXCPP=$ac_cv_prog_CXXCPP
19592 ac_cv_prog_CXXCPP=$CXXCPP
19594 echo "$as_me:19594: result: $CXXCPP" >&5
19595 echo "${ECHO_T}$CXXCPP" >&6
19596 ac_preproc_ok=false
19597 for ac_cxx_preproc_warn_flag in '' yes
19599 # Use a header file that comes with gcc, so configuring glibc
19600 # with a fresh cross-compiler works.
19601 # On the NeXT, cc -E runs the code through the compiler's parser,
19602 # not just through cpp. "Syntax error" is here to catch this case.
19603 cat >conftest.$ac_ext <<_ACEOF
19604 #line 19604 "configure"
19605 #include "confdefs.h"
19606 #include <assert.h>
19609 if { (eval echo "$as_me:19609: \"$ac_cpp conftest.$ac_ext\"") >&5
19610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19612 egrep -v '^ *\+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:19615: \$? = $ac_status" >&5
19616 (exit $ac_status); } >/dev/null; then
19617 if test -s conftest.err; then
19618 ac_cpp_err=$ac_cxx_preproc_warn_flag
19625 if test -z "$ac_cpp_err"; then
19628 echo "$as_me: failed program was:" >&5
19629 cat conftest.$ac_ext >&5
19630 # Broken: fails on valid input.
19633 rm -f conftest.err conftest.$ac_ext
19635 # OK, works on sane cases. Now check whether non-existent headers
19636 # can be detected and how.
19637 cat >conftest.$ac_ext <<_ACEOF
19638 #line 19638 "configure"
19639 #include "confdefs.h"
19640 #include <ac_nonexistent.h>
19642 if { (eval echo "$as_me:19642: \"$ac_cpp conftest.$ac_ext\"") >&5
19643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19645 egrep -v '^ *\+' conftest.er1 >conftest.err
19647 cat conftest.err >&5
19648 echo "$as_me:19648: \$? = $ac_status" >&5
19649 (exit $ac_status); } >/dev/null; then
19650 if test -s conftest.err; then
19651 ac_cpp_err=$ac_cxx_preproc_warn_flag
19658 if test -z "$ac_cpp_err"; then
19659 # Broken: success on invalid input.
19662 echo "$as_me: failed program was:" >&5
19663 cat conftest.$ac_ext >&5
19664 # Passes both tests.
19668 rm -f conftest.err conftest.$ac_ext
19671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19672 rm -f conftest.err conftest.$ac_ext
19673 if $ac_preproc_ok; then
19676 { { echo "$as_me:19676: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
19677 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
19678 { (exit 1); exit 1; }; }
19682 ac_cpp='$CXXCPP $CPPFLAGS'
19683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19686 ac_main_return=return
19688 for ac_header in typeinfo
19690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19691 echo "$as_me:19691: checking for $ac_header" >&5
19692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 cat >conftest.$ac_ext <<_ACEOF
19697 #line 19697 "configure"
19698 #include "confdefs.h"
19699 #include <$ac_header>
19701 if { (eval echo "$as_me:19701: \"$ac_cpp conftest.$ac_ext\"") >&5
19702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19704 egrep -v '^ *\+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 echo "$as_me:19707: \$? = $ac_status" >&5
19708 (exit $ac_status); } >/dev/null; then
19709 if test -s conftest.err; then
19710 ac_cpp_err=$ac_cxx_preproc_warn_flag
19717 if test -z "$ac_cpp_err"; then
19718 eval "$as_ac_Header=yes"
19720 echo "$as_me: failed program was:" >&5
19721 cat conftest.$ac_ext >&5
19722 eval "$as_ac_Header=no"
19724 rm -f conftest.err conftest.$ac_ext
19726 echo "$as_me:19726: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729 cat >>confdefs.h <<EOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19736 for ac_header in iostream
19738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19739 echo "$as_me:19739: checking for $ac_header" >&5
19740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 cat >conftest.$ac_ext <<_ACEOF
19745 #line 19745 "configure"
19746 #include "confdefs.h"
19747 #include <$ac_header>
19749 if { (eval echo "$as_me:19749: \"$ac_cpp conftest.$ac_ext\"") >&5
19750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19752 egrep -v '^ *\+' conftest.er1 >conftest.err
19754 cat conftest.err >&5
19755 echo "$as_me:19755: \$? = $ac_status" >&5
19756 (exit $ac_status); } >/dev/null; then
19757 if test -s conftest.err; then
19758 ac_cpp_err=$ac_cxx_preproc_warn_flag
19765 if test -z "$ac_cpp_err"; then
19766 eval "$as_ac_Header=yes"
19768 echo "$as_me: failed program was:" >&5
19769 cat conftest.$ac_ext >&5
19770 eval "$as_ac_Header=no"
19772 rm -f conftest.err conftest.$ac_ext
19774 echo "$as_me:19774: result: `eval echo '${'$as_ac_Header'}'`" >&5
19775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19777 cat >>confdefs.h <<EOF
19778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19784 if test x"$ac_cv_header_iostream" = xyes ; then
19785 echo "$as_me:19785: checking if iostream uses std-namespace" >&5
19786 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
19787 cat >conftest.$ac_ext <<_ACEOF
19788 #line 19788 "configure"
19789 #include "confdefs.h"
19791 #include <iostream>
19798 cerr << "testing" << endl;
19804 rm -f conftest.$ac_objext
19805 if { (eval echo "$as_me:19805: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>&5
19808 echo "$as_me:19808: \$? = $ac_status" >&5
19809 (exit $ac_status); } &&
19810 { ac_try='test -s conftest.$ac_objext'
19811 { (eval echo "$as_me:19811: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:19814: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 cf_iostream_namespace=yes
19818 echo "$as_me: failed program was:" >&5
19819 cat conftest.$ac_ext >&5
19820 cf_iostream_namespace=no
19822 rm -f conftest.$ac_objext conftest.$ac_ext
19823 echo "$as_me:19823: result: $cf_iostream_namespace" >&5
19824 echo "${ECHO_T}$cf_iostream_namespace" >&6
19825 if test "$cf_iostream_namespace" = yes ; then
19827 cat >>confdefs.h <<\EOF
19828 #define IOSTREAM_NAMESPACE 1
19834 echo "$as_me:19834: checking if we should include stdbool.h" >&5
19835 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19837 if test "${cf_cv_header_stdbool_h+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19842 #line 19842 "configure"
19843 #include "confdefs.h"
19853 rm -f conftest.$ac_objext
19854 if { (eval echo "$as_me:19854: \"$ac_compile\"") >&5
19855 (eval $ac_compile) 2>&5
19857 echo "$as_me:19857: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -s conftest.$ac_objext'
19860 { (eval echo "$as_me:19860: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19863 echo "$as_me:19863: \$? = $ac_status" >&5
19864 (exit $ac_status); }; }; then
19865 cf_cv_header_stdbool_h=0
19867 echo "$as_me: failed program was:" >&5
19868 cat conftest.$ac_ext >&5
19869 cat >conftest.$ac_ext <<_ACEOF
19870 #line 19870 "configure"
19871 #include "confdefs.h"
19874 #include <stdbool.h>
19885 rm -f conftest.$ac_objext
19886 if { (eval echo "$as_me:19886: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>&5
19889 echo "$as_me:19889: \$? = $ac_status" >&5
19890 (exit $ac_status); } &&
19891 { ac_try='test -s conftest.$ac_objext'
19892 { (eval echo "$as_me:19892: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19895 echo "$as_me:19895: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 cf_cv_header_stdbool_h=1
19899 echo "$as_me: failed program was:" >&5
19900 cat conftest.$ac_ext >&5
19901 cf_cv_header_stdbool_h=0
19903 rm -f conftest.$ac_objext conftest.$ac_ext
19905 rm -f conftest.$ac_objext conftest.$ac_ext
19908 if test "$cf_cv_header_stdbool_h" = 1
19909 then echo "$as_me:19909: result: yes" >&5
19910 echo "${ECHO_T}yes" >&6
19911 else echo "$as_me:19911: result: no" >&5
19912 echo "${ECHO_T}no" >&6
19915 echo "$as_me:19915: checking for builtin bool type" >&5
19916 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19918 if test "${cf_cv_builtin_bool+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19922 cat >conftest.$ac_ext <<_ACEOF
19923 #line 19923 "configure"
19924 #include "confdefs.h"
19927 #include <sys/types.h>
19937 rm -f conftest.$ac_objext
19938 if { (eval echo "$as_me:19938: \"$ac_compile\"") >&5
19939 (eval $ac_compile) 2>&5
19941 echo "$as_me:19941: \$? = $ac_status" >&5
19942 (exit $ac_status); } &&
19943 { ac_try='test -s conftest.$ac_objext'
19944 { (eval echo "$as_me:19944: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:19947: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 cf_cv_builtin_bool=1
19951 echo "$as_me: failed program was:" >&5
19952 cat conftest.$ac_ext >&5
19953 cf_cv_builtin_bool=0
19955 rm -f conftest.$ac_objext conftest.$ac_ext
19959 if test "$cf_cv_builtin_bool" = 1
19960 then echo "$as_me:19960: result: yes" >&5
19961 echo "${ECHO_T}yes" >&6
19962 else echo "$as_me:19962: result: no" >&5
19963 echo "${ECHO_T}no" >&6
19966 echo "$as_me:19966: checking for size of bool" >&5
19967 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19968 if test "${cf_cv_type_of_bool+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 if test "$cross_compiling" = yes; then
19974 cf_cv_type_of_bool=unknown
19976 cat >conftest.$ac_ext <<_ACEOF
19977 #line 19977 "configure"
19978 #include "confdefs.h"
19980 #include <stdlib.h>
19983 #if defined(__cplusplus)
19985 #ifdef HAVE_GXX_BUILTIN_H
19986 #include <g++/builtin.h>
19987 #elif HAVE_GPP_BUILTIN_H
19988 #include <gpp/builtin.h>
19989 #elif HAVE_BUILTIN_H
19990 #include <builtin.h>
19995 #if $cf_cv_header_stdbool_h
19996 #include <stdbool.h>
20003 FILE *fp = fopen("cf_test.out", "w");
20006 if ((bool)(-x) >= 0)
20007 fputs("unsigned ", fp);
20008 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20009 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20010 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20011 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20014 ${cf_cv_main_return:-return}(0);
20018 rm -f conftest$ac_exeext
20019 if { (eval echo "$as_me:20019: \"$ac_link\"") >&5
20020 (eval $ac_link) 2>&5
20022 echo "$as_me:20022: \$? = $ac_status" >&5
20023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20024 { (eval echo "$as_me:20024: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20027 echo "$as_me:20027: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 cf_cv_type_of_bool=`cat cf_test.out`
20030 if test -z "$cf_cv_type_of_bool"; then
20031 cf_cv_type_of_bool=unknown
20034 echo "$as_me: program exited with status $ac_status" >&5
20035 echo "$as_me: failed program was:" >&5
20036 cat conftest.$ac_ext >&5
20037 cf_cv_type_of_bool=unknown
20039 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20045 echo "$as_me:20045: result: $cf_cv_type_of_bool" >&5
20046 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20047 if test "$cf_cv_type_of_bool" = unknown ; then
20048 case .$NCURSES_BOOL in #(vi
20049 .auto|.) NCURSES_BOOL=unsigned;;
20051 { echo "$as_me:20051: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20052 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20053 cf_cv_type_of_bool=$NCURSES_BOOL
20056 echo "$as_me:20056: checking for special defines needed for etip.h" >&5
20057 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
20058 cf_save_CXXFLAGS="$CXXFLAGS"
20061 # etip.h includes ncurses.h which includes ncurses_dll.h
20062 # But ncurses_dll.h is generated - fix here.
20063 test -d include || mkdir include
20064 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
20066 for cf_math in "" MATH_H
20068 for cf_excp in "" MATH_EXCEPTION
20070 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
20071 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
20072 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
20073 cat >conftest.$ac_ext <<_ACEOF
20074 #line 20074 "configure"
20075 #include "confdefs.h"
20077 #include <etip.h.in>
20087 rm -f conftest.$ac_objext
20088 if { (eval echo "$as_me:20088: \"$ac_compile\"") >&5
20089 (eval $ac_compile) 2>&5
20091 echo "$as_me:20091: \$? = $ac_status" >&5
20092 (exit $ac_status); } &&
20093 { ac_try='test -s conftest.$ac_objext'
20094 { (eval echo "$as_me:20094: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 echo "$as_me:20097: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20100 test -n "$cf_math" && cat >>confdefs.h <<EOF
20101 #define ETIP_NEEDS_${cf_math} 1
20104 test -n "$cf_excp" && cat >>confdefs.h <<EOF
20105 #define ETIP_NEEDS_${cf_excp} 1
20108 cf_result="$cf_math $cf_excp"
20112 echo "$as_me: failed program was:" >&5
20113 cat conftest.$ac_ext >&5
20115 rm -f conftest.$ac_objext conftest.$ac_ext
20118 echo "$as_me:20118: result: $cf_result" >&5
20119 echo "${ECHO_T}$cf_result" >&6
20120 CXXFLAGS="$cf_save_CXXFLAGS"
20122 if test -n "$CXX"; then
20123 echo "$as_me:20123: checking if $CXX accepts parameter initialization" >&5
20124 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
20125 if test "${cf_cv_cpp_param_init+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 ac_cpp='$CXXCPP $CPPFLAGS'
20131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20134 ac_main_return=return
20136 if test "$cross_compiling" = yes; then
20137 cf_cv_cpp_param_init=unknown
20139 cat >conftest.$ac_ext <<_ACEOF
20140 #line 20140 "configure"
20141 #include "confdefs.h"
20151 TEST::TEST(int x = 1) // some compilers do not like second initializer
20158 rm -f conftest$ac_exeext
20159 if { (eval echo "$as_me:20159: \"$ac_link\"") >&5
20160 (eval $ac_link) 2>&5
20162 echo "$as_me:20162: \$? = $ac_status" >&5
20163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20164 { (eval echo "$as_me:20164: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:20167: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 cf_cv_cpp_param_init=yes
20171 echo "$as_me: program exited with status $ac_status" >&5
20172 echo "$as_me: failed program was:" >&5
20173 cat conftest.$ac_ext >&5
20174 cf_cv_cpp_param_init=no
20176 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20179 ac_cpp='$CXXCPP $CPPFLAGS'
20180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20183 ac_main_return=return
20186 echo "$as_me:20186: result: $cf_cv_cpp_param_init" >&5
20187 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
20189 test "$cf_cv_cpp_param_init" = yes &&
20190 cat >>confdefs.h <<\EOF
20191 #define CPP_HAS_PARAM_INIT 1
20194 if test -n "$CXX"; then
20196 echo "$as_me:20196: checking if $CXX accepts static_cast" >&5
20197 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
20198 if test "${cf_cv_cpp_static_cast+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 ac_cpp='$CXXCPP $CPPFLAGS'
20204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20207 ac_main_return=return
20209 cat >conftest.$ac_ext <<_ACEOF
20210 #line 20210 "configure"
20211 #include "confdefs.h"
20216 NCursesPanel(int nlines,
20226 template<class T> class NCursesUserPanel : public NCursesPanel
20229 NCursesUserPanel (int nlines,
20233 const T* p_UserData = static_cast<T*>(0))
20234 : NCursesPanel (nlines, ncols, begin_y, begin_x)
20237 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
20241 virtual ~NCursesUserPanel() {};
20248 const char* p_UserData = static_cast<char*>(0)
20253 rm -f conftest.$ac_objext
20254 if { (eval echo "$as_me:20254: \"$ac_compile\"") >&5
20255 (eval $ac_compile) 2>&5
20257 echo "$as_me:20257: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:20260: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20263 echo "$as_me:20263: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 cf_cv_cpp_static_cast=yes
20267 echo "$as_me: failed program was:" >&5
20268 cat conftest.$ac_ext >&5
20269 cf_cv_cpp_static_cast=no
20271 rm -f conftest.$ac_objext conftest.$ac_ext
20274 ac_cpp='$CXXCPP $CPPFLAGS'
20275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20278 ac_main_return=return
20281 echo "$as_me:20281: result: $cf_cv_cpp_static_cast" >&5
20282 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
20286 test "$cf_cv_cpp_static_cast" = yes &&
20287 cat >>confdefs.h <<\EOF
20288 #define CPP_HAS_STATIC_CAST 1
20292 CXX_ARFLAGS='$(ARFLAGS)'
20293 case $cf_cv_system_name in #(vi
20295 if test "$GXX" != yes ; then
20297 CXX_ARFLAGS='-ar -o'
20301 CXXLDFLAGS="-u main"
20304 if test "$GXX" != yes ; then
20306 CXX_ARFLAGS='-xar -o'
20313 cf_cv_builtin_bool=1
20315 # Just because we are not configuring against C++ right now does not
20316 # mean that a user will not want to use C++. Some distributors disable
20317 # the C++ portion of this configuration as a shortcut (or just to avoid
20318 # compiling the demo in the c++ directory). So we need a reasonable
20319 # default for the 'bool' type.
20321 # Caveat: since the storage of the bool type is not standardized, it
20324 if test "$NCURSES_BOOL" != auto ; then
20325 cf_cv_type_of_bool=$NCURSES_BOOL
20326 cf_cv_header_stdbool_h=0
20328 if test "$cf_cv_header_stdbool_h" = 1 ; then
20330 echo "$as_me:20330: checking for size of bool" >&5
20331 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20332 if test "${cf_cv_type_of_bool+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 if test "$cross_compiling" = yes; then
20338 cf_cv_type_of_bool=unknown
20340 cat >conftest.$ac_ext <<_ACEOF
20341 #line 20341 "configure"
20342 #include "confdefs.h"
20344 #include <stdlib.h>
20347 #if defined(__cplusplus)
20349 #ifdef HAVE_GXX_BUILTIN_H
20350 #include <g++/builtin.h>
20351 #elif HAVE_GPP_BUILTIN_H
20352 #include <gpp/builtin.h>
20353 #elif HAVE_BUILTIN_H
20354 #include <builtin.h>
20359 #if $cf_cv_header_stdbool_h
20360 #include <stdbool.h>
20367 FILE *fp = fopen("cf_test.out", "w");
20370 if ((bool)(-x) >= 0)
20371 fputs("unsigned ", fp);
20372 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20373 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20374 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20375 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20378 ${cf_cv_main_return:-return}(0);
20382 rm -f conftest$ac_exeext
20383 if { (eval echo "$as_me:20383: \"$ac_link\"") >&5
20384 (eval $ac_link) 2>&5
20386 echo "$as_me:20386: \$? = $ac_status" >&5
20387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20388 { (eval echo "$as_me:20388: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20391 echo "$as_me:20391: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 cf_cv_type_of_bool=`cat cf_test.out`
20394 if test -z "$cf_cv_type_of_bool"; then
20395 cf_cv_type_of_bool=unknown
20398 echo "$as_me: program exited with status $ac_status" >&5
20399 echo "$as_me: failed program was:" >&5
20400 cat conftest.$ac_ext >&5
20401 cf_cv_type_of_bool=unknown
20403 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20409 echo "$as_me:20409: result: $cf_cv_type_of_bool" >&5
20410 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20411 if test "$cf_cv_type_of_bool" = unknown ; then
20412 case .$NCURSES_BOOL in #(vi
20413 .auto|.) NCURSES_BOOL=unsigned;;
20415 { echo "$as_me:20415: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20416 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20417 cf_cv_type_of_bool=$NCURSES_BOOL
20421 echo "$as_me:20421: checking for fallback type of bool" >&5
20422 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
20423 case "$host_cpu" in #(vi
20424 i?86) cf_cv_type_of_bool=char ;; #(vi
20425 *) cf_cv_type_of_bool=int ;;
20427 echo "$as_me:20427: result: $cf_cv_type_of_bool" >&5
20428 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20433 # If the C compiler did not declare bool, and we did not determine that the C++
20434 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
20435 # ncurses library use the same type as C++ bool. Note that this allows one to
20436 # specify the type of bool in a configure-script option and postpone
20437 # integration with the C++ compiler provided that the types are compatible.
20439 if test $cf_cv_cc_bool_type = 1
20441 # oops: C has a bool. Unlikely, but C++ could differ.
20443 elif test $cf_cv_builtin_bool = 0
20448 # this is the normal case
20449 USE_CXX_BOOL='defined(__cplusplus)'
20452 if test -f "${srcdir}/Ada95/Makefile.in" ; then
20454 if test "$cf_with_ada" != "no" ; then
20455 if test "$with_libtool" != "no"; then
20456 { echo "$as_me:20456: WARNING: libtool does not support Ada - disabling feature" >&5
20457 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
20462 if test "$cf_with_ada" != "no" ; then
20464 cf_ada_make=gnatmake
20465 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
20466 set dummy $cf_ada_make; ac_word=$2
20467 echo "$as_me:20467: checking for $ac_word" >&5
20468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20469 if test "${ac_cv_prog_gnat_exists+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 if test -n "$gnat_exists"; then
20473 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
20475 ac_save_IFS=$IFS; IFS=$ac_path_separator
20477 for ac_dir in $ac_dummy; do
20479 test -z "$ac_dir" && ac_dir=.
20480 $as_executable_p "$ac_dir/$ac_word" || continue
20481 ac_cv_prog_gnat_exists="yes"
20482 echo "$as_me:20482: found $ac_dir/$ac_word" >&5
20486 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
20489 gnat_exists=$ac_cv_prog_gnat_exists
20490 if test -n "$gnat_exists"; then
20491 echo "$as_me:20491: result: $gnat_exists" >&5
20492 echo "${ECHO_T}$gnat_exists" >&6
20494 echo "$as_me:20494: result: no" >&5
20495 echo "${ECHO_T}no" >&6
20498 if test "$ac_cv_prog_gnat_exists" = no; then
20500 cf_cv_prog_gnat_correct=no
20503 echo "$as_me:20503: checking for gnat version" >&5
20504 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
20505 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
20506 grep '[0-9].[0-9][0-9]*' |\
20507 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
20508 echo "$as_me:20508: result: $cf_gnat_version" >&5
20509 echo "${ECHO_T}$cf_gnat_version" >&6
20511 case $cf_gnat_version in #(vi
20512 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
20513 cf_cv_prog_gnat_correct=yes
20516 { echo "$as_me:20516: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
20517 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
20518 cf_cv_prog_gnat_correct=no
20522 # Extract the first word of "m4", so it can be a program name with args.
20523 set dummy m4; ac_word=$2
20524 echo "$as_me:20524: checking for $ac_word" >&5
20525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20526 if test "${ac_cv_prog_M4_exists+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 if test -n "$M4_exists"; then
20530 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
20532 ac_save_IFS=$IFS; IFS=$ac_path_separator
20534 for ac_dir in $ac_dummy; do
20536 test -z "$ac_dir" && ac_dir=.
20537 $as_executable_p "$ac_dir/$ac_word" || continue
20538 ac_cv_prog_M4_exists="yes"
20539 echo "$as_me:20539: found $ac_dir/$ac_word" >&5
20543 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
20546 M4_exists=$ac_cv_prog_M4_exists
20547 if test -n "$M4_exists"; then
20548 echo "$as_me:20548: result: $M4_exists" >&5
20549 echo "${ECHO_T}$M4_exists" >&6
20551 echo "$as_me:20551: result: no" >&5
20552 echo "${ECHO_T}no" >&6
20555 if test "$ac_cv_prog_M4_exists" = no; then
20556 cf_cv_prog_gnat_correct=no
20557 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
20559 if test "$cf_cv_prog_gnat_correct" = yes; then
20560 echo "$as_me:20560: checking if GNAT works" >&5
20561 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
20563 rm -rf conftest* *~conftest*
20564 cat >>conftest.ads <<CF_EOF
20565 procedure conftest;
20567 cat >>conftest.adb <<CF_EOF
20570 procedure conftest is
20572 Text_IO.Put ("Hello World");
20574 GNAT.OS_Lib.OS_Exit (0);
20577 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20578 if ( ./conftest 1>&5 2>&1 ) ; then
20579 cf_cv_prog_gnat_correct=yes
20581 cf_cv_prog_gnat_correct=no
20584 cf_cv_prog_gnat_correct=no
20586 rm -rf conftest* *~conftest*
20588 echo "$as_me:20588: result: $cf_cv_prog_gnat_correct" >&5
20589 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
20593 if test "x$cf_cv_prog_gnat_correct" = xyes; then
20595 ADAFLAGS="$ADAFLAGS -gnatpn"
20597 echo "$as_me:20597: checking optimization options for ADAFLAGS" >&5
20598 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
20602 ADAFLAGS="$ADAFLAGS -g"
20608 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
20610 ADAFLAGS="$ADAFLAGS $cf_O_flag"
20614 echo "$as_me:20614: result: $ADAFLAGS" >&5
20615 echo "${ECHO_T}$ADAFLAGS" >&6
20617 echo "$as_me:20617: checking if GNATPREP supports -T option" >&5
20618 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
20619 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 cf_cv_gnatprep_opt_t=no
20624 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
20627 echo "$as_me:20627: result: $cf_cv_gnatprep_opt_t" >&5
20628 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
20629 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
20631 echo "$as_me:20631: checking if GNAT supports generics" >&5
20632 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
20633 case $cf_gnat_version in #(vi
20634 3.[1-9]*|[4-9].*) #(vi
20635 cf_gnat_generics=yes
20638 cf_gnat_generics=no
20641 echo "$as_me:20641: result: $cf_gnat_generics" >&5
20642 echo "${ECHO_T}$cf_gnat_generics" >&6
20644 if test "$cf_gnat_generics" = yes
20646 cf_compile_generics=generics
20647 cf_generic_objects="\${GENOBJS}"
20649 cf_compile_generics=
20650 cf_generic_objects=
20653 echo "$as_me:20653: checking if GNAT supports SIGINT" >&5
20654 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
20655 if test "${cf_cv_gnat_sigint+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 rm -rf conftest* *~conftest*
20660 cat >>conftest.ads <<CF_EOF
20661 with Ada.Interrupts.Names;
20663 package ConfTest is
20665 pragma Warnings (Off); -- the next pragma exists since 3.11p
20666 pragma Unreserve_All_Interrupts;
20667 pragma Warnings (On);
20669 protected Process is
20671 function Continue return Boolean;
20672 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
20674 Done : Boolean := False;
20679 cat >>conftest.adb <<CF_EOF
20680 package body ConfTest is
20681 protected body Process is
20686 function Continue return Boolean is
20693 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20694 cf_cv_gnat_sigint=yes
20696 cf_cv_gnat_sigint=no
20698 rm -rf conftest* *~conftest*
20701 echo "$as_me:20701: result: $cf_cv_gnat_sigint" >&5
20702 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
20704 if test $cf_cv_gnat_sigint = yes ; then
20707 USE_GNAT_SIGINT="#"
20710 cf_gnat_libraries=no
20711 cf_gnat_projects=no
20713 if test "$enable_gnat_projects" != no ; then
20714 echo "$as_me:20714: checking if GNAT supports project files" >&5
20715 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
20716 case $cf_gnat_version in #(vi
20720 case $cf_cv_system_name in #(vi
20721 cygwin*|msys*) #(vi
20724 mkdir conftest.src conftest.bin conftest.lib
20726 rm -rf conftest* *~conftest*
20727 cat >>library.gpr <<CF_EOF
20729 Kind := External ("LIB_KIND");
20730 for Library_Name use "ConfTest";
20731 for Object_Dir use ".";
20732 for Library_ALI_Dir use External("LIBRARY_DIR");
20733 for Library_Version use External ("SONAME");
20734 for Library_Kind use Kind;
20735 for Library_Dir use External("BUILD_DIR");
20736 Source_Dir := External ("SOURCE_DIR");
20737 for Source_Dirs use (Source_Dir);
20740 cat >>confpackage.ads <<CF_EOF
20741 package ConfPackage is
20742 procedure conftest;
20745 cat >>confpackage.adb <<CF_EOF
20747 package body ConfPackage is
20748 procedure conftest is
20750 Text_IO.Put ("Hello World");
20755 if ( $cf_ada_make $ADAFLAGS \
20757 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
20758 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
20759 -XSOURCE_DIR=`pwd` \
20760 -XSONAME=libConfTest.so.1 \
20761 -XLIB_KIND=static 1>&5 2>&1 ) ; then
20762 cf_gnat_projects=yes
20765 if test -f conftest.lib/confpackage.ali
20767 cf_gnat_libraries=yes
20769 rm -rf conftest* *~conftest*
20774 echo "$as_me:20774: result: $cf_gnat_projects" >&5
20775 echo "${ECHO_T}$cf_gnat_projects" >&6
20776 fi # enable_gnat_projects
20778 if test $cf_gnat_projects = yes
20780 echo "$as_me:20780: checking if GNAT supports libraries" >&5
20781 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
20782 echo "$as_me:20782: result: $cf_gnat_libraries" >&5
20783 echo "${ECHO_T}$cf_gnat_libraries" >&6
20786 if test "$cf_gnat_projects" = yes
20788 USE_OLD_MAKERULES="#"
20789 USE_GNAT_PROJECTS=""
20791 USE_OLD_MAKERULES=""
20792 USE_GNAT_PROJECTS="#"
20795 if test "$cf_gnat_libraries" = yes
20797 USE_GNAT_LIBRARIES=""
20799 USE_GNAT_LIBRARIES="#"
20802 echo "$as_me:20802: checking for ada-compiler" >&5
20803 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
20805 # Check whether --with-ada-compiler or --without-ada-compiler was given.
20806 if test "${with_ada_compiler+set}" = set; then
20807 withval="$with_ada_compiler"
20808 cf_ada_compiler=$withval
20810 cf_ada_compiler=gnatmake
20813 echo "$as_me:20813: result: $cf_ada_compiler" >&5
20814 echo "${ECHO_T}$cf_ada_compiler" >&6
20816 cf_ada_package=terminal_interface
20818 echo "$as_me:20818: checking for ada-include" >&5
20819 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
20821 # Check whether --with-ada-include or --without-ada-include was given.
20822 if test "${with_ada_include+set}" = set; then
20823 withval="$with_ada_include"
20826 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
20827 fi; if test -n "$prefix/share/ada/adainclude" ; then
20829 if test "x$prefix" != xNONE; then
20830 cf_path_syntax="$prefix"
20832 cf_path_syntax="$ac_default_prefix"
20835 case ".$withval" in #(vi
20836 .\$\(*\)*|.\'*\'*) #(vi
20840 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
20842 .\${*prefix}*|.\${*dir}*) #(vi
20843 eval withval="$withval"
20844 case ".$withval" in #(vi
20846 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20851 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20854 { { echo "$as_me:20854: error: expected a pathname, not \"$withval\"" >&5
20855 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
20856 { (exit 1); exit 1; }; }
20861 eval ADA_INCLUDE="$withval"
20863 echo "$as_me:20863: result: $ADA_INCLUDE" >&5
20864 echo "${ECHO_T}$ADA_INCLUDE" >&6
20866 echo "$as_me:20866: checking for ada-objects" >&5
20867 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
20869 # Check whether --with-ada-objects or --without-ada-objects was given.
20870 if test "${with_ada_objects+set}" = set; then
20871 withval="$with_ada_objects"
20874 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
20875 fi; if test -n "$prefix/lib/ada/adalib" ; then
20877 if test "x$prefix" != xNONE; then
20878 cf_path_syntax="$prefix"
20880 cf_path_syntax="$ac_default_prefix"
20883 case ".$withval" in #(vi
20884 .\$\(*\)*|.\'*\'*) #(vi
20888 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
20890 .\${*prefix}*|.\${*dir}*) #(vi
20891 eval withval="$withval"
20892 case ".$withval" in #(vi
20894 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20899 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20902 { { echo "$as_me:20902: error: expected a pathname, not \"$withval\"" >&5
20903 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
20904 { (exit 1); exit 1; }; }
20909 eval ADA_OBJECTS="$withval"
20911 echo "$as_me:20911: result: $ADA_OBJECTS" >&5
20912 echo "${ECHO_T}$ADA_OBJECTS" >&6
20914 echo "$as_me:20914: checking if an Ada95 shared-library should be built" >&5
20915 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
20917 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
20918 if test "${with_ada_sharedlib+set}" = set; then
20919 withval="$with_ada_sharedlib"
20920 with_ada_sharedlib=$withval
20922 with_ada_sharedlib=no
20924 echo "$as_me:20924: result: $with_ada_sharedlib" >&5
20925 echo "${ECHO_T}$with_ada_sharedlib" >&6
20927 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
20928 MAKE_ADA_SHAREDLIB="#"
20930 if test "x$with_ada_sharedlib" != xno
20932 MAKE_ADA_SHAREDLIB=
20933 if test "x$with_ada_sharedlib" != xyes
20935 ADA_SHAREDLIB="$with_ada_sharedlib"
20945 # do this "late" to avoid conflict with header-checks
20946 if test "x$with_widec" = xyes ; then
20947 echo "$as_me:20947: checking for wchar_t" >&5
20948 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20949 if test "${ac_cv_type_wchar_t+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 cat >conftest.$ac_ext <<_ACEOF
20953 #line 20953 "configure"
20954 #include "confdefs.h"
20955 $ac_includes_default
20961 if (sizeof (wchar_t))
20967 rm -f conftest.$ac_objext
20968 if { (eval echo "$as_me:20968: \"$ac_compile\"") >&5
20969 (eval $ac_compile) 2>&5
20971 echo "$as_me:20971: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -s conftest.$ac_objext'
20974 { (eval echo "$as_me:20974: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20977 echo "$as_me:20977: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_type_wchar_t=yes
20981 echo "$as_me: failed program was:" >&5
20982 cat conftest.$ac_ext >&5
20983 ac_cv_type_wchar_t=no
20985 rm -f conftest.$ac_objext conftest.$ac_ext
20987 echo "$as_me:20987: result: $ac_cv_type_wchar_t" >&5
20988 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20990 echo "$as_me:20990: checking size of wchar_t" >&5
20991 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20992 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 if test "$ac_cv_type_wchar_t" = yes; then
20996 if test "$cross_compiling" = yes; then
20997 # Depending upon the size, compute the lo and hi bounds.
20998 cat >conftest.$ac_ext <<_ACEOF
20999 #line 20999 "configure"
21000 #include "confdefs.h"
21001 $ac_includes_default
21005 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
21010 rm -f conftest.$ac_objext
21011 if { (eval echo "$as_me:21011: \"$ac_compile\"") >&5
21012 (eval $ac_compile) 2>&5
21014 echo "$as_me:21014: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -s conftest.$ac_objext'
21017 { (eval echo "$as_me:21017: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:21020: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21024 cat >conftest.$ac_ext <<_ACEOF
21025 #line 21025 "configure"
21026 #include "confdefs.h"
21027 $ac_includes_default
21031 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21036 rm -f conftest.$ac_objext
21037 if { (eval echo "$as_me:21037: \"$ac_compile\"") >&5
21038 (eval $ac_compile) 2>&5
21040 echo "$as_me:21040: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
21042 { ac_try='test -s conftest.$ac_objext'
21043 { (eval echo "$as_me:21043: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21046 echo "$as_me:21046: \$? = $ac_status" >&5
21047 (exit $ac_status); }; }; then
21048 ac_hi=$ac_mid; break
21050 echo "$as_me: failed program was:" >&5
21051 cat conftest.$ac_ext >&5
21052 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
21054 rm -f conftest.$ac_objext conftest.$ac_ext
21057 echo "$as_me: failed program was:" >&5
21058 cat conftest.$ac_ext >&5
21061 cat >conftest.$ac_ext <<_ACEOF
21062 #line 21062 "configure"
21063 #include "confdefs.h"
21064 $ac_includes_default
21068 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
21073 rm -f conftest.$ac_objext
21074 if { (eval echo "$as_me:21074: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>&5
21077 echo "$as_me:21077: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:21080: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 echo "$as_me:21083: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_lo=$ac_mid; break
21087 echo "$as_me: failed program was:" >&5
21088 cat conftest.$ac_ext >&5
21089 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
21091 rm -f conftest.$ac_objext conftest.$ac_ext
21094 rm -f conftest.$ac_objext conftest.$ac_ext
21095 # Binary search between lo and hi bounds.
21096 while test "x$ac_lo" != "x$ac_hi"; do
21097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21098 cat >conftest.$ac_ext <<_ACEOF
21099 #line 21099 "configure"
21100 #include "confdefs.h"
21101 $ac_includes_default
21105 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21110 rm -f conftest.$ac_objext
21111 if { (eval echo "$as_me:21111: \"$ac_compile\"") >&5
21112 (eval $ac_compile) 2>&5
21114 echo "$as_me:21114: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try='test -s conftest.$ac_objext'
21117 { (eval echo "$as_me:21117: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21120 echo "$as_me:21120: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21124 echo "$as_me: failed program was:" >&5
21125 cat conftest.$ac_ext >&5
21126 ac_lo=`expr $ac_mid + 1`
21128 rm -f conftest.$ac_objext conftest.$ac_ext
21130 ac_cv_sizeof_wchar_t=$ac_lo
21132 if test "$cross_compiling" = yes; then
21133 { { echo "$as_me:21133: error: cannot run test program while cross compiling" >&5
21134 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21135 { (exit 1); exit 1; }; }
21137 cat >conftest.$ac_ext <<_ACEOF
21138 #line 21138 "configure"
21139 #include "confdefs.h"
21140 $ac_includes_default
21144 FILE *f = fopen ("conftest.val", "w");
21146 $ac_main_return (1);
21147 fprintf (f, "%d", (sizeof (wchar_t)));
21153 rm -f conftest$ac_exeext
21154 if { (eval echo "$as_me:21154: \"$ac_link\"") >&5
21155 (eval $ac_link) 2>&5
21157 echo "$as_me:21157: \$? = $ac_status" >&5
21158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21159 { (eval echo "$as_me:21159: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21162 echo "$as_me:21162: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 ac_cv_sizeof_wchar_t=`cat conftest.val`
21166 echo "$as_me: program exited with status $ac_status" >&5
21167 echo "$as_me: failed program was:" >&5
21168 cat conftest.$ac_ext >&5
21170 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21175 ac_cv_sizeof_wchar_t=0
21178 echo "$as_me:21178: result: $ac_cv_sizeof_wchar_t" >&5
21179 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21180 cat >>confdefs.h <<EOF
21181 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21186 ### Construct the ncurses library-subsets, if any, from this set of keywords:
21187 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
21189 ### ticlib modules may be a separate library, otherwise contained in termlib.
21190 ### termlib modules may be a separate library, otherwise contained in ncurses.
21192 ### The of "+" or " " between the tokens controls the way the script
21193 ### chooses to split module lists into libraries.
21195 ### (see CF_LIB_RULES).
21196 echo "$as_me:21196: checking for library subsets" >&5
21197 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
21200 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
21201 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
21202 if test "$with_ticlib" != no ; then
21203 LIB_SUBSETS="${LIB_SUBSETS} "
21205 LIB_SUBSETS="${LIB_SUBSETS}+"
21209 LIB_SUBSETS="${LIB_SUBSETS}termlib"
21210 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
21212 if test "$with_termlib" != no ; then
21213 LIB_SUBSETS="${LIB_SUBSETS} "
21215 LIB_SUBSETS="${LIB_SUBSETS}+"
21218 LIB_SUBSETS="${LIB_SUBSETS}base"
21220 # Most term-driver calls are to tinfo, but some like init_pair are to the
21221 # base library (so it resides in base).
21222 if test "$with_term_driver" != no ; then
21223 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
21224 case $cf_cv_system_name in #(vi
21225 *mingw32*|*mingw64*) #(vi
21226 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
21227 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
21230 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
21235 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
21236 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
21238 echo "$as_me:21238: result: $LIB_SUBSETS" >&5
21239 echo "${ECHO_T}$LIB_SUBSETS" >&6
21241 ### Construct the list of include-directories to be generated
21243 if test "$srcdir" != "."; then
21244 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
21246 CPPFLAGS="-I../include $CPPFLAGS"
21247 if test "$srcdir" != "."; then
21248 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
21250 CPPFLAGS="-I. $CPPFLAGS"
21252 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
21253 if test "$srcdir" != "."; then
21254 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
21256 if test "$GCC" != yes; then
21257 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21258 elif test "$includedir" != "/usr/include"; then
21259 if test "$includedir" = '${prefix}/include' ; then
21260 if test x$prefix != x/usr ; then
21261 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21264 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21268 ### Build up pieces for makefile rules
21269 echo "$as_me:21269: checking default library suffix" >&5
21270 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
21272 case $DFT_LWR_MODEL in
21273 libtool) DFT_ARG_SUFFIX='' ;;
21274 normal) DFT_ARG_SUFFIX='' ;;
21275 debug) DFT_ARG_SUFFIX='_g' ;;
21276 profile) DFT_ARG_SUFFIX='_p' ;;
21277 shared) DFT_ARG_SUFFIX='' ;;
21279 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
21280 echo "$as_me:21280: result: $DFT_ARG_SUFFIX" >&5
21281 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
21283 echo "$as_me:21283: checking default library-dependency suffix" >&5
21284 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
21286 case X$DFT_LWR_MODEL in #(vi
21288 DFT_LIB_SUFFIX='.la'
21289 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21292 DFT_LIB_SUFFIX='_g.a'
21293 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21296 DFT_LIB_SUFFIX='_p.a'
21297 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21300 case $cf_cv_system_name in
21302 DFT_LIB_SUFFIX='.so'
21303 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21305 cygwin*|msys*|mingw*) #(vi
21306 DFT_LIB_SUFFIX='.dll'
21307 DFT_DEP_SUFFIX='.dll.a'
21310 DFT_LIB_SUFFIX='.dylib'
21311 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21316 DFT_LIB_SUFFIX='.so'
21317 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21320 DFT_LIB_SUFFIX='.sl'
21321 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21326 DFT_LIB_SUFFIX='.so'
21327 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21332 DFT_LIB_SUFFIX='.a'
21333 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21336 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
21337 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
21338 echo "$as_me:21338: result: $DFT_DEP_SUFFIX" >&5
21339 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
21341 echo "$as_me:21341: checking default object directory" >&5
21342 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
21344 case $DFT_LWR_MODEL in
21345 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
21346 normal) DFT_OBJ_SUBDIR='objects' ;;
21347 debug) DFT_OBJ_SUBDIR='obj_g' ;;
21348 profile) DFT_OBJ_SUBDIR='obj_p' ;;
21350 case $cf_cv_system_name in #(vi
21352 DFT_OBJ_SUBDIR='objects' ;;
21354 DFT_OBJ_SUBDIR='obj_s' ;;
21357 echo "$as_me:21357: result: $DFT_OBJ_SUBDIR" >&5
21358 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
21360 if test "x$cf_with_cxx" = xyes ; then
21361 echo "$as_me:21361: checking c++ library-dependency suffix" >&5
21362 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
21363 if test "$with_libtool" != "no"; then
21364 # libtool thinks it can make c++ shared libraries (perhaps only g++)
21365 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21366 elif test "$with_shared_cxx" != "no"; then
21367 # also for g++ users...
21368 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21370 # we normally make a static library because C/C++ library rules differ
21372 case Xnormal in #(vi
21374 CXX_LIB_SUFFIX='.la'
21375 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21378 CXX_LIB_SUFFIX='_g.a'
21379 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21382 CXX_LIB_SUFFIX='_p.a'
21383 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21386 case $cf_cv_system_name in
21388 CXX_LIB_SUFFIX='.so'
21389 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21391 cygwin*|msys*|mingw*) #(vi
21392 CXX_LIB_SUFFIX='.dll'
21393 CXX_DEP_SUFFIX='.dll.a'
21396 CXX_LIB_SUFFIX='.dylib'
21397 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21402 CXX_LIB_SUFFIX='.so'
21403 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21406 CXX_LIB_SUFFIX='.sl'
21407 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21412 CXX_LIB_SUFFIX='.so'
21413 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21418 CXX_LIB_SUFFIX='.a'
21419 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21422 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
21423 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
21426 echo "$as_me:21426: result: $CXX_LIB_SUFFIX" >&5
21427 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
21431 # do not want -ldl in build except as needed for -lncurses dependency
21432 if test "x$with_dlsym" = xyes ; then
21433 if test $DFT_LWR_MODEL = shared || \
21434 test $DFT_LWR_MODEL = libtool ; then
21436 # remove dl library from $LIBS
21437 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21441 ### Set up low-level terminfo dependencies for makefiles.
21443 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
21444 # do not need libdl
21446 if test "x$with_dlsym" = xyes ; then
21448 # remove dl library from $SHLIB_LIST
21449 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21453 if test "$with_ticlib" != no ; then
21455 if test "x$with_ticlib" != xyes ; then
21456 TICS_NAME=$with_ticlib
21457 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21458 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21459 TICS_LIB_SUFFIX="${with_ticlib}"
21461 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
21462 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
21463 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
21465 TICS_LDFLAGS="-L${LIB_DIR}"
21466 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
21468 TICS_LDFLAGS="-L${LIB_DIR}"
21469 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
21472 if test "$with_termlib" != no ; then
21474 if test "x$with_termlib" != xyes ; then
21475 TINFO_NAME=$with_termlib
21476 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21477 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21478 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21479 TINFO_LIB_SUFFIX="${with_termlib}"
21481 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21482 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
21483 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
21484 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
21487 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21488 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21489 if test "$DFT_LWR_MODEL" = "libtool"; then
21490 TEST_ARGS="${TEST_DEPS}"
21491 TEST_ARG2="${TEST_DEP2}"
21492 TINFO_LDFLAGS="-L${LIB_DIR}"
21493 TINFO_LIBS="$TEST_ARGS"
21494 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
21495 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
21497 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
21498 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
21499 if test "x$with_term_driver" != xno ; then
21500 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
21501 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
21502 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
21504 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21505 TINFO_LIBS="$TEST_ARGS"
21507 TINFO_LDFLAGS="-L${LIB_DIR}"
21508 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21511 # the next lines are needed for linking libtic over libncurses
21512 TINFO_NAME=${LIB_NAME}
21513 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21514 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
21515 if test "x$with_tic_depends" = xyes ; then
21516 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
21518 TICS_LIST="$SHLIB_LIST"
21521 TINFO_LDFLAGS="-L${LIB_DIR}"
21522 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
21525 if test "$DFT_LWR_MODEL" = shared ; then
21526 case $cf_cv_system_name in #(vi
21528 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
21534 if test "x$with_dlsym" = xyes ; then
21536 # remove dl library from $TICS_LIST
21537 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21541 if test "$DFT_LWR_MODEL" = "libtool"; then
21546 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
21548 case $DFT_LWR_MODEL in
21549 normal|debug|profile)
21551 if test "$GCC" = yes ; then
21552 case $cf_cv_system_name in #(
21553 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
21557 *) #( normally, except when broken
21558 LDFLAGS_STATIC=-static
21559 LDFLAGS_SHARED=-dynamic
21563 case $cf_cv_system_name in #(
21564 aix[4-7]*) #( from ld manpage
21565 LDFLAGS_STATIC=-bstatic
21566 LDFLAGS_SHARED=-bdynamic
21568 hpux*) #( from ld manpage for hpux10.20, hpux11.11
21569 # We could also use just "archive" and "shared".
21570 LDFLAGS_STATIC=-Wl,-a,archive_shared
21571 LDFLAGS_SHARED=-Wl,-a,shared_archive
21573 irix*) #( from ld manpage IRIX64
21574 LDFLAGS_STATIC=-Bstatic
21575 LDFLAGS_SHARED=-Bdynamic
21577 osf[45]*) #( from ld manpage osf4.0d, osf5.1
21578 # alternative "-oldstyle_liblookup" (not in cc manpage)
21579 LDFLAGS_STATIC=-noso
21580 LDFLAGS_SHARED=-so_archive
21583 LDFLAGS_STATIC=-Bstatic
21584 LDFLAGS_SHARED=-Bdynamic
21589 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
21591 echo "$as_me:21591: checking if linker supports switching between static/dynamic" >&5
21592 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
21594 rm -f libconftest.a
21595 cat >conftest.$ac_ext <<EOF
21596 #line 21596 "configure"
21598 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
21600 if { (eval echo "$as_me:21600: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>&5
21603 echo "$as_me:21603: \$? = $ac_status" >&5
21604 (exit $ac_status); } ; then
21605 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
21606 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
21610 cf_save_LIBS="$LIBS"
21612 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
21613 cat >conftest.$ac_ext <<_ACEOF
21614 #line 21614 "configure"
21615 #include "confdefs.h"
21617 #line 21617 "configure"
21619 int cf_ldflags_static(FILE *fp);
21625 return cf_ldflags_static(stdin);
21631 rm -f conftest.$ac_objext conftest$ac_exeext
21632 if { (eval echo "$as_me:21632: \"$ac_link\"") >&5
21633 (eval $ac_link) 2>&5
21635 echo "$as_me:21635: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
21637 { ac_try='test -s conftest$ac_exeext'
21638 { (eval echo "$as_me:21638: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:21641: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21644 # some linkers simply ignore the -dynamic
21645 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
21647 cf_ldflags_static=no
21650 cf_ldflags_static=yes
21655 echo "$as_me: failed program was:" >&5
21656 cat conftest.$ac_ext >&5
21657 cf_ldflags_static=no
21659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21661 rm -f libconftest.*
21662 LIBS="$cf_save_LIBS"
21664 echo "$as_me:21664: result: $cf_ldflags_static" >&5
21665 echo "${ECHO_T}$cf_ldflags_static" >&6
21667 if test $cf_ldflags_static != yes
21680 echo "$as_me:21680: checking where we will install curses.h" >&5
21681 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
21684 if test "$with_overwrite" = no && \
21685 ( test "x$includedir" = 'x${prefix}/include' || \
21686 test "x$includedir" = "x${prefix}/include" )
21688 includesubdir="/ncurses${LIB_SUFFIX}"
21690 echo "$as_me:21690: result: ${includedir}${includesubdir}" >&5
21691 echo "${ECHO_T}${includedir}${includesubdir}" >&6
21693 ### Resolve a conflict between normal and wide-curses by forcing applications
21694 ### that will need libutf8 to add it to their configure script.
21695 if test "$with_overwrite" != no ; then
21696 if test "$NCURSES_LIBUTF8" = 1 ; then
21697 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
21698 { echo "$as_me:21698: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
21699 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
21702 WITH_OVERWRITE=$with_overwrite
21704 # used to separate tack out of the tree
21707 ### predefined stuff for the test programs
21709 cat >>confdefs.h <<\EOF
21710 #define HAVE_SLK_COLOR 1
21713 ### Construct the list of subdirectories for which we'll customize makefiles
21714 ### with the appropriate compile-rules.
21716 echo "$as_me:21716: checking for src modules" >&5
21717 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
21719 # dependencies and linker-arguments for test-programs
21720 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
21721 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
21722 if test "$DFT_LWR_MODEL" = "libtool"; then
21723 TEST_ARGS="${TEST_DEPS}"
21724 TEST_ARG2="${TEST_DEP2}"
21726 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
21727 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
21730 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
21732 for cf_dir in $modules_to_build
21734 if test -f $srcdir/$cf_dir/modules; then
21736 # We may/may not have tack in the distribution, though the
21738 if test $cf_dir = tack ; then
21739 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
21744 if test -z "$cf_cv_src_modules"; then
21745 cf_cv_src_modules=$cf_dir
21747 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
21750 # Make the ncurses_cfg.h file record the library interface files as
21751 # well. These are header files that are the same name as their
21752 # directory. Ncurses is the only library that does not follow
21754 if test $cf_dir = tack ; then
21756 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
21758 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21760 cat >>confdefs.h <<EOF
21761 #define HAVE_${cf_have_include}_H 1
21764 cat >>confdefs.h <<EOF
21765 #define HAVE_LIB${cf_have_include} 1
21768 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
21769 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
21770 if test "$DFT_LWR_MODEL" = "libtool"; then
21771 TEST_ARGS="${TEST_DEPS}"
21772 TEST_ARG2="${TEST_DEP2}"
21774 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
21775 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
21777 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
21781 echo "$as_me:21781: result: $cf_cv_src_modules" >&5
21782 echo "${ECHO_T}$cf_cv_src_modules" >&6
21784 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
21785 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
21788 if test "x$cf_with_manpages" != xno ; then
21789 SRC_SUBDIRS="$SRC_SUBDIRS man"
21791 SRC_SUBDIRS="$SRC_SUBDIRS include"
21792 for cf_dir in $cf_cv_src_modules
21794 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
21796 if test "x$cf_with_tests" != "xno" ; then
21797 SRC_SUBDIRS="$SRC_SUBDIRS test"
21799 # always make this, to install the ncurses-config script
21800 SRC_SUBDIRS="$SRC_SUBDIRS misc"
21801 if test "$cf_with_cxx_binding" != no; then
21802 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
21803 SRC_SUBDIRS="$SRC_SUBDIRS c++"
21806 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
21807 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
21810 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
21811 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
21812 ADA_SUBDIRS="gen src"
21813 if test "x$cf_with_tests" != "xno" ; then
21814 ADA_SUBDIRS="$ADA_SUBDIRS samples"
21819 for cf_dir in $SRC_SUBDIRS
21821 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
21824 if test -n "$ADA_SUBDIRS"; then
21825 for cf_dir in $ADA_SUBDIRS
21827 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
21832 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
21833 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
21834 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
21838 for cf_item in $cf_list_models
21842 libtool) cf_subdir='obj_lo' ;;
21843 normal) cf_subdir='objects' ;;
21844 debug) cf_subdir='obj_g' ;;
21845 profile) cf_subdir='obj_p' ;;
21847 case $cf_cv_system_name in #(vi
21849 cf_subdir='objects' ;;
21851 cf_subdir='obj_s' ;;
21855 for cf_item2 in $DIRS_TO_MAKE
21857 test $cf_item2 = $cf_subdir && break
21859 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
21861 for cf_dir in $DIRS_TO_MAKE
21863 test ! -d $cf_dir && mkdir $cf_dir
21866 # symbols that differ when compiling Ada95 by itself.
21867 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
21869 # values to use as strings
21871 cat >>confdefs.h <<EOF
21872 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
21875 cat >>confdefs.h <<EOF
21876 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
21879 ### Now that we're done running tests, add the compiler-warnings, if any
21884 cf_new_extra_cppflags=
21886 for cf_add_cflags in $EXTRA_CFLAGS
21888 case $cf_fix_cppflags in
21890 case $cf_add_cflags in #(vi
21891 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
21892 case $cf_add_cflags in
21894 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21896 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21897 && test -z "${cf_tst_cflags}" \
21898 && cf_fix_cppflags=yes
21900 if test $cf_fix_cppflags = yes ; then
21901 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21903 elif test "${cf_tst_cflags}" = "\"'" ; then
21904 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21909 case "$CPPFLAGS" in
21910 *$cf_add_cflags) #(vi
21913 case $cf_add_cflags in #(vi
21915 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21917 CPPFLAGS=`echo "$CPPFLAGS" | \
21918 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21919 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21923 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
21928 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
21933 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21935 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
21937 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21938 && test -z "${cf_tst_cflags}" \
21939 && cf_fix_cppflags=no
21944 if test -n "$cf_new_cflags" ; then
21946 CFLAGS="$CFLAGS $cf_new_cflags"
21949 if test -n "$cf_new_cppflags" ; then
21951 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
21954 if test -n "$cf_new_extra_cppflags" ; then
21956 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
21959 ### Define substitutions for header files to avoid name-pollution
21961 if test "x$cf_cv_have_tcgetattr" = xyes ; then
21967 if test "x$ac_cv_header_stdint_h" = xyes ; then
21973 if test "x$ac_cv_header_termio_h" = xyes ; then
21979 if test "x$ac_cv_header_termios_h" = xyes ; then
21985 ################################################################################
21986 test "x$use_database" = xyes && \
21987 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
21989 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
21990 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
21992 if test "x$enable_pc_files" = xyes ; then \
21993 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
21999 # Extract the first word of "tic", so it can be a program name with args.
22000 set dummy tic; ac_word=$2
22001 echo "$as_me:22001: checking for $ac_word" >&5
22002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22003 if test "${ac_cv_path_TIC_PATH+set}" = set; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22008 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
22011 ac_save_IFS=$IFS; IFS=$ac_path_separator
22012 ac_dummy="$PATH:/usr/local/ncurses/bin"
22013 for ac_dir in $ac_dummy; do
22015 test -z "$ac_dir" && ac_dir=.
22016 if $as_executable_p "$ac_dir/$ac_word"; then
22017 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
22018 echo "$as_me:22018: found $ac_dir/$ac_word" >&5
22023 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
22027 TIC_PATH=$ac_cv_path_TIC_PATH
22029 if test -n "$TIC_PATH"; then
22030 echo "$as_me:22030: result: $TIC_PATH" >&5
22031 echo "${ECHO_T}$TIC_PATH" >&6
22033 echo "$as_me:22033: result: no" >&5
22034 echo "${ECHO_T}no" >&6
22037 if test -n "$FALLBACK_LIST"
22039 if test "$TIC_PATH" = unknown
22041 { echo "$as_me:22041: WARNING: no tic program found for fallbacks" >&5
22042 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
22046 if test "x$cf_with_tests" != xno ; then
22052 ADAHTML_DIR=../../doc/html/ada
22054 # these could be configurable, but are not currently
22060 # workaround for g++ versus Solaris (20131116)
22061 case $cf_cv_system_name in #(vi
22063 case "x$CPPFLAGS" in #(vi
22064 *-D_XOPEN_SOURCE_EXTENDED*)
22065 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
22067 echo "${as_me:-configure}:22067: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
22069 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
22070 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
22076 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
22077 case "x$NCURSES_OSPEED" in #(vi
22086 cat >>confdefs.h <<EOF
22087 #define NCURSES_OSPEED_COMPAT $cf_compatible
22090 case "x$cf_cv_typeof_chtype" in
22092 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
22096 case "x$cf_cv_typeof_mmask_t" in
22098 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
22102 # substitute into misc/Makefile to suppress
22103 # (un)install.data from the
22104 # (un)install rules.
22105 if test "x$cf_with_db_install" = "xno"; then
22107 MISC_UNINSTALL_DATA=
22109 MISC_INSTALL_DATA=install.data
22110 MISC_UNINSTALL_DATA=uninstall.data
22115 if test -n "$PACKAGE"
22117 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
22119 echo "package: $PACKAGE"
22125 if test -n "$RESULTING_SYMS"
22127 case $cf_cv_abi_version in
22129 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
22131 echo "${as_me:-configure}:22131: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
22136 test -n "$verbose" && echo " will map symbols to default ABI" 1>&6
22138 echo "${as_me:-configure}:22138: testing will map symbols to default ABI ..." 1>&5
22144 if test "x$WILDCARD_SYMS" = xno
22149 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
22150 if test $cf_filter_syms = yes
22152 RESULTING_SYMS=resulting.map
22155 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"
22156 ac_config_commands="$ac_config_commands default"
22157 cat >confcache <<\_ACEOF
22158 # This file is a shell script that caches the results of configure
22159 # tests run on this system so they can be shared between configure
22160 # scripts and configure runs, see configure's option --config-cache.
22161 # It is not useful on other systems. If it contains results you don't
22162 # want to keep, you may remove or edit it.
22164 # config.status only pays attention to the cache file if you give it
22165 # the --recheck option to rerun configure.
22167 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22168 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22169 # following values.
22173 # The following way of writing the cache mishandles newlines in values,
22174 # but we know of no workaround that is simple, portable, and efficient.
22175 # So, don't put newlines in cache variables' values.
22176 # Ultrix sh set writes to stderr and can't be redirected directly,
22177 # and sets the high bit in the cache file unless we assign to the vars.
22180 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22182 # `set' does not quote correctly, so add quotes (double-quote
22183 # substitution turns \\\\ into \\, and sed turns \\ into \).
22186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22189 # `set' quotes correctly as required by POSIX, so do not add quotes.
22191 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22198 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22200 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22202 if cmp -s $cache_file confcache; then :; else
22203 if test -w $cache_file; then
22204 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22205 cat confcache >$cache_file
22207 echo "not updating unwritable cache $cache_file"
22212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22213 # Let make expand exec_prefix.
22214 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22218 # trailing colons and then remove the whole line if VPATH becomes empty
22219 # (actually we leave an empty line to preserve line numbers).
22220 if test "x$srcdir" = x.; then
22221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22222 s/:*\$(srcdir):*/:/;
22223 s/:*\${srcdir}:*/:/;
22225 s/^\([^=]*=[ ]*\):*/\1/;
22231 DEFS=-DHAVE_CONFIG_H
22233 : ${CONFIG_STATUS=./config.status}
22234 ac_clean_files_save=$ac_clean_files
22235 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22236 { echo "$as_me:22236: creating $CONFIG_STATUS" >&5
22237 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22238 cat >$CONFIG_STATUS <<_ACEOF
22240 # Generated automatically by configure.
22241 # Run this file to recreate the current configuration.
22242 # Compiler output produced by configure, useful for debugging
22243 # configure, is in config.log if it exists.
22246 SHELL=\${CONFIG_SHELL-$SHELL}
22247 ac_cs_invocation="\$0 \$@"
22251 cat >>$CONFIG_STATUS <<\_ACEOF
22252 # Be Bourne compatible
22253 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22256 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22260 # Name of the executable.
22261 as_me=`echo "$0" |sed 's,.*[\\/],,'`
22263 if expr a : '\(a\)' >/dev/null 2>&1; then
22269 rm -f conf$$ conf$$.exe conf$$.file
22271 if ln -s conf$$.file conf$$ 2>/dev/null; then
22272 # We could just check for DJGPP; but this test a) works b) is more generic
22273 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22274 if test -f conf$$.exe; then
22275 # Don't use ln at all; we don't have any links
22280 elif ln conf$$.file conf$$ 2>/dev/null; then
22285 rm -f conf$$ conf$$.exe conf$$.file
22287 as_executable_p="test -f"
22289 # Support unset when possible.
22290 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22297 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
22298 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
22299 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
22300 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
22301 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
22302 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
22303 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
22304 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
22307 # We need space, tab and new line, in precisely that order.
22313 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
22319 # Files that config.status was made for.
22320 if test -n "$ac_config_files"; then
22321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22324 if test -n "$ac_config_headers"; then
22325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22328 if test -n "$ac_config_links"; then
22329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22332 if test -n "$ac_config_commands"; then
22333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22336 cat >>$CONFIG_STATUS <<\EOF
22339 \`$as_me' instantiates files from templates according to the
22340 current configuration.
22342 Usage: $0 [OPTIONS] [FILE]...
22344 -h, --help print this help, then exit
22345 -V, --version print version number, then exit
22346 -d, --debug don't remove temporary files
22347 --recheck update $as_me by reconfiguring in the same conditions
22348 --file=FILE[:TEMPLATE]
22349 instantiate the configuration file FILE
22350 --header=FILE[:TEMPLATE]
22351 instantiate the configuration header FILE
22353 Configuration files:
22356 Configuration headers:
22359 Configuration commands:
22362 Report bugs to <dickey@invisible-island.net>."
22365 cat >>$CONFIG_STATUS <<EOF
22368 configured by $0, generated by GNU Autoconf 2.52.20141204,
22369 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22371 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22372 Free Software Foundation, Inc.
22373 This config.status script is free software; the Free Software Foundation
22374 gives unlimited permission to copy, distribute and modify it."
22379 cat >>$CONFIG_STATUS <<\EOF
22380 # If no file are specified by the user, then we need to provide default
22381 # value. By we need to know if files were specified by the user.
22387 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22388 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22390 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22394 *) # This is not an option, so the user has probably given explicit
22396 ac_need_defaults=false;;
22400 # Handling of the options.
22402 cat >>$CONFIG_STATUS <<EOF
22403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22404 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22405 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22407 cat >>$CONFIG_STATUS <<\EOF
22408 --version | --vers* | -V )
22409 echo "$ac_cs_version"; exit 0 ;;
22411 # Conflict between --help and --header
22412 { { echo "$as_me:22412: error: ambiguous option: $1
22413 Try \`$0 --help' for more information." >&5
22414 echo "$as_me: error: ambiguous option: $1
22415 Try \`$0 --help' for more information." >&2;}
22416 { (exit 1); exit 1; }; };;
22417 --help | --hel | -h )
22418 echo "$ac_cs_usage"; exit 0 ;;
22419 --debug | --d* | -d )
22421 --file | --fil | --fi | --f )
22423 CONFIG_FILES="$CONFIG_FILES $1"
22424 ac_need_defaults=false;;
22425 --header | --heade | --head | --hea )
22427 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22428 ac_need_defaults=false;;
22430 # This is an error.
22431 -*) { { echo "$as_me:22431: error: unrecognized option: $1
22432 Try \`$0 --help' for more information." >&5
22433 echo "$as_me: error: unrecognized option: $1
22434 Try \`$0 --help' for more information." >&2;}
22435 { (exit 1); exit 1; }; } ;;
22437 *) ac_config_targets="$ac_config_targets $1" ;;
22446 ## ----------------------- ##
22447 ## Running config.status. ##
22448 ## ----------------------- ##
22450 This file was extended by $as_me 2.52.20141204, executed with
22451 CONFIG_FILES = $CONFIG_FILES
22452 CONFIG_HEADERS = $CONFIG_HEADERS
22453 CONFIG_LINKS = $CONFIG_LINKS
22454 CONFIG_COMMANDS = $CONFIG_COMMANDS
22455 > $ac_cs_invocation
22456 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22461 cat >>$CONFIG_STATUS <<EOF
22463 # INIT-COMMANDS section.
22466 ### Special initialization commands, used to pass information from the
22467 ### configuration-run into config.status
22470 ALTERNATE_SYMS="$ALTERNATE_SYMS"
22471 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
22472 DFT_LWR_MODEL="$DFT_LWR_MODEL"
22474 LDCONFIG="$LDCONFIG"
22475 LIBTOOL_VERSION="$LIBTOOL_VERSION"
22476 LIB_NAME="$LIB_NAME"
22477 LIB_PREFIX="$LIB_PREFIX"
22478 LIB_SUBSETS="$LIB_SUBSETS"
22479 LIB_SUFFIX="$LIB_SUFFIX"
22480 LIB_TRACING="$LIB_TRACING"
22482 MAKE_TERMINFO="$MAKE_TERMINFO"
22483 NCURSES_MAJOR="$NCURSES_MAJOR"
22484 NCURSES_MINOR="$NCURSES_MINOR"
22485 NCURSES_OSPEED="$NCURSES_OSPEED"
22486 NCURSES_PATCH="$NCURSES_PATCH"
22487 SRC_SUBDIRS="$SRC_SUBDIRS"
22488 TERMINFO="$TERMINFO"
22489 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
22490 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
22491 TICS_NAME="$TICS_NAME"
22492 TIC_PATH="$TIC_PATH"
22493 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
22494 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
22495 TINFO_NAME="$TINFO_NAME"
22496 TINFO_SUFFIX="$TINFO_SUFFIX"
22497 UNALTERED_SYMS="$UNALTERED_SYMS"
22498 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
22499 WILDCARD_SYMS="$WILDCARD_SYMS"
22500 WITH_CURSES_H="$with_curses_h"
22501 WITH_ECHO="${enable_echo:=yes}"
22502 WITH_OVERWRITE="$with_overwrite"
22503 cf_LIST_MODELS="$cf_list_models"
22504 cf_cv_abi_version="$cf_cv_abi_version"
22505 cf_cv_do_relink="$cf_cv_do_relink"
22506 cf_cv_do_symlinks="$cf_cv_do_symlinks"
22507 cf_cv_enable_lp64="$cf_cv_enable_lp64"
22508 cf_cv_enable_opaque="$cf_cv_enable_opaque"
22509 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
22510 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
22511 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
22512 cf_cv_rel_version="$cf_cv_rel_version"
22513 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
22514 cf_cv_shared_soname='$cf_cv_shared_soname'
22515 cf_cv_shlib_version="$cf_cv_shlib_version"
22516 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
22517 cf_cv_system_name="$cf_cv_system_name"
22518 cf_cv_term_driver="$with_term_driver"
22519 cf_with_ada="$cf_with_ada"
22520 cf_with_cxx_binding="$cf_with_cxx_binding"
22521 cf_with_db_install="$cf_with_db_install"
22522 cf_with_manpages="$cf_with_manpages"
22523 cf_with_tests="$cf_with_tests"
22526 with_shared_cxx="$with_shared_cxx"
22530 cat >>$CONFIG_STATUS <<\EOF
22531 for ac_config_target in $ac_config_targets
22533 case "$ac_config_target" in
22534 # Handling of arguments.
22535 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
22536 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
22537 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
22538 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
22539 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
22540 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
22541 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
22542 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22543 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22544 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
22545 *) { { echo "$as_me:22545: error: invalid argument: $ac_config_target" >&5
22546 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22547 { (exit 1); exit 1; }; };;
22551 # If the user did not use the arguments to specify the items to instantiate,
22552 # then the envvar interface is used. Set only those that are not.
22553 # We use the long form for the default assignment because of an extremely
22554 # bizarre bug on SunOS 4.1.3.
22555 if $ac_need_defaults; then
22556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22561 # Create a temporary directory, and hook for its removal unless debugging.
22564 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22565 trap '{ (exit 1); exit 1; }' 1 2 13 15
22568 # Create a (secure) tmp directory for tmp files.
22571 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
22572 test -n "$tmp" && test -d "$tmp"
22575 tmp=$TMPDIR/cs$$-$RANDOM
22576 (umask 077 && mkdir $tmp)
22579 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
22580 { (exit 1); exit 1; }
22585 cat >>$CONFIG_STATUS <<EOF
22588 # CONFIG_FILES section.
22591 # No need to generate the scripts if there are no CONFIG_FILES.
22592 # This happens for instance when ./config.status config.h
22593 if test -n "\$CONFIG_FILES"; then
22594 # Protect against being on the right side of a sed subst in config.status.
22595 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22596 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22597 s,@SHELL@,$SHELL,;t t
22598 s,@exec_prefix@,$exec_prefix,;t t
22599 s,@prefix@,$prefix,;t t
22600 s,@program_transform_name@,$program_transform_name,;t t
22601 s,@bindir@,$bindir,;t t
22602 s,@sbindir@,$sbindir,;t t
22603 s,@libexecdir@,$libexecdir,;t t
22604 s,@datarootdir@,$datarootdir,;t t
22605 s,@datadir@,$datadir,;t t
22606 s,@sysconfdir@,$sysconfdir,;t t
22607 s,@sharedstatedir@,$sharedstatedir,;t t
22608 s,@localstatedir@,$localstatedir,;t t
22609 s,@libdir@,$libdir,;t t
22610 s,@includedir@,$includedir,;t t
22611 s,@oldincludedir@,$oldincludedir,;t t
22612 s,@infodir@,$infodir,;t t
22613 s,@mandir@,$mandir,;t t
22614 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22615 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22616 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22617 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22618 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22619 s,@build_alias@,$build_alias,;t t
22620 s,@host_alias@,$host_alias,;t t
22621 s,@target_alias@,$target_alias,;t t
22622 s,@ECHO_C@,$ECHO_C,;t t
22623 s,@ECHO_N@,$ECHO_N,;t t
22624 s,@ECHO_T@,$ECHO_T,;t t
22625 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22626 s,@DEFS@,$DEFS,;t t
22627 s,@LIBS@,$LIBS,;t t
22628 s,@top_builddir@,$top_builddir,;t t
22629 s,@EGREP@,$EGREP,;t t
22630 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
22631 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
22632 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
22633 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
22634 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
22635 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
22636 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
22637 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
22638 s,@VERSION@,$VERSION,;t t
22639 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
22640 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
22641 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
22642 s,@PACKAGE@,$PACKAGE,;t t
22643 s,@build@,$build,;t t
22644 s,@build_cpu@,$build_cpu,;t t
22645 s,@build_vendor@,$build_vendor,;t t
22646 s,@build_os@,$build_os,;t t
22647 s,@host@,$host,;t t
22648 s,@host_cpu@,$host_cpu,;t t
22649 s,@host_vendor@,$host_vendor,;t t
22650 s,@host_os@,$host_os,;t t
22651 s,@target@,$target,;t t
22652 s,@target_cpu@,$target_cpu,;t t
22653 s,@target_vendor@,$target_vendor,;t t
22654 s,@target_os@,$target_os,;t t
22656 s,@CFLAGS@,$CFLAGS,;t t
22657 s,@LDFLAGS@,$LDFLAGS,;t t
22658 s,@CPPFLAGS@,$CPPFLAGS,;t t
22659 s,@ac_ct_CC@,$ac_ct_CC,;t t
22660 s,@EXEEXT@,$EXEEXT,;t t
22661 s,@OBJEXT@,$OBJEXT,;t t
22662 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
22664 s,@LDCONFIG@,$LDCONFIG,;t t
22666 s,@CXXFLAGS@,$CXXFLAGS,;t t
22667 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22669 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22670 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22671 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22672 s,@LINT@,$LINT,;t t
22673 s,@LINT_OPTS@,$LINT_OPTS,;t t
22674 s,@LN_S@,$LN_S,;t t
22675 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22676 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22677 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
22678 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
22679 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
22680 s,@SET_MAKE@,$SET_MAKE,;t t
22681 s,@CTAGS@,$CTAGS,;t t
22682 s,@ETAGS@,$ETAGS,;t t
22683 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
22684 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
22685 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
22686 s,@RANLIB@,$RANLIB,;t t
22687 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22689 s,@ac_ct_LD@,$ac_ct_LD,;t t
22691 s,@ac_ct_AR@,$ac_ct_AR,;t t
22693 s,@ac_ct_NM@,$ac_ct_NM,;t t
22694 s,@ARFLAGS@,$ARFLAGS,;t t
22695 s,@DESTDIR@,$DESTDIR,;t t
22696 s,@BUILD_CC@,$BUILD_CC,;t t
22697 s,@BUILD_CPP@,$BUILD_CPP,;t t
22698 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
22699 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
22700 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
22701 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
22702 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
22703 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
22704 s,@cf_list_models@,$cf_list_models,;t t
22705 s,@ABI_VERSION@,$ABI_VERSION,;t t
22706 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
22707 s,@LIBTOOL@,$LIBTOOL,;t t
22708 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
22709 s,@LT_UNDEF@,$LT_UNDEF,;t t
22710 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
22711 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
22712 s,@LIB_CREATE@,$LIB_CREATE,;t t
22713 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
22714 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
22715 s,@LIB_PREP@,$LIB_PREP,;t t
22716 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
22717 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
22718 s,@LIB_LINK@,$LIB_LINK,;t t
22719 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
22720 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
22721 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
22722 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
22723 s,@TICS_NAME@,$TICS_NAME,;t t
22724 s,@TINFO_NAME@,$TINFO_NAME,;t t
22725 s,@LIB_NAME@,$LIB_NAME,;t t
22726 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
22727 s,@CC_G_OPT@,$CC_G_OPT,;t t
22728 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
22729 s,@LD_MODEL@,$LD_MODEL,;t t
22730 s,@shlibdir@,$shlibdir,;t t
22731 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
22732 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
22733 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
22734 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
22735 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
22736 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
22737 s,@LINK_PROGS@,$LINK_PROGS,;t t
22738 s,@LINK_TESTS@,$LINK_TESTS,;t t
22739 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
22740 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22741 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
22742 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
22743 s,@RPATH_LIST@,$RPATH_LIST,;t t
22744 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
22745 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
22746 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
22747 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
22748 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
22749 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
22750 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
22751 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
22752 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
22753 s,@XTERM_KBS@,$XTERM_KBS,;t t
22754 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
22755 s,@TERMINFO@,$TERMINFO,;t t
22756 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
22757 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
22758 s,@TERMPATH@,$TERMPATH,;t t
22759 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
22760 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
22761 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
22762 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
22763 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
22764 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
22765 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
22766 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
22767 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
22768 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
22769 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
22770 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
22771 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
22772 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
22773 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
22774 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
22775 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
22776 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
22777 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
22778 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
22779 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
22780 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
22781 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
22782 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
22783 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
22784 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
22785 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
22786 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
22787 s,@PTHREAD@,$PTHREAD,;t t
22788 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
22789 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
22790 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
22791 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
22792 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
22793 s,@ECHO_LT@,$ECHO_LT,;t t
22794 s,@ECHO_LD@,$ECHO_LD,;t t
22795 s,@RULE_CC@,$RULE_CC,;t t
22796 s,@SHOW_CC@,$SHOW_CC,;t t
22797 s,@ECHO_CC@,$ECHO_CC,;t t
22798 s,@ECHO_LINK@,$ECHO_LINK,;t t
22799 s,@ADAFLAGS@,$ADAFLAGS,;t t
22800 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
22801 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
22802 s,@ADA_TRACE@,$ADA_TRACE,;t t
22803 s,@MATH_LIB@,$MATH_LIB,;t t
22804 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
22805 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
22806 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
22807 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
22808 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
22809 s,@TEST_LIBS@,$TEST_LIBS,;t t
22810 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
22811 s,@CXXCPP@,$CXXCPP,;t t
22812 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
22813 s,@CXX_AR@,$CXX_AR,;t t
22814 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
22815 s,@CXXLIBS@,$CXXLIBS,;t t
22816 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
22817 s,@gnat_exists@,$gnat_exists,;t t
22818 s,@M4_exists@,$M4_exists,;t t
22819 s,@cf_ada_make@,$cf_ada_make,;t t
22820 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
22821 s,@cf_compile_generics@,$cf_compile_generics,;t t
22822 s,@cf_generic_objects@,$cf_generic_objects,;t t
22823 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
22824 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
22825 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
22826 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
22827 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
22828 s,@cf_ada_package@,$cf_ada_package,;t t
22829 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
22830 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
22831 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
22832 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
22833 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
22834 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
22835 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
22836 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
22837 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
22838 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
22839 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
22840 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
22841 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
22842 s,@TICS_LIBS@,$TICS_LIBS,;t t
22843 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
22844 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
22845 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
22846 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
22847 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
22848 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
22849 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
22850 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
22851 s,@includesubdir@,$includesubdir,;t t
22852 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
22853 s,@TICS_LIST@,$TICS_LIST,;t t
22854 s,@TINFO_LIST@,$TINFO_LIST,;t t
22855 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
22856 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
22857 s,@TEST_ARGS@,$TEST_ARGS,;t t
22858 s,@TEST_DEPS@,$TEST_DEPS,;t t
22859 s,@TEST_ARG2@,$TEST_ARG2,;t t
22860 s,@TEST_DEP2@,$TEST_DEP2,;t t
22861 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
22862 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
22863 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
22864 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
22865 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
22866 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22867 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
22868 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
22869 s,@cross_compiling@,$cross_compiling,;t t
22870 s,@TIC_PATH@,$TIC_PATH,;t t
22871 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
22872 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
22873 s,@PANEL_NAME@,$PANEL_NAME,;t t
22874 s,@MENU_NAME@,$MENU_NAME,;t t
22875 s,@FORM_NAME@,$FORM_NAME,;t t
22876 s,@CXX_NAME@,$CXX_NAME,;t t
22877 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
22878 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
22879 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
22884 cat >>$CONFIG_STATUS <<\EOF
22885 # Split the substitutions into bite-sized pieces for seds with
22886 # small command number limits, like on Digital OSF/1 and HP-UX.
22887 ac_max_sed_lines=48
22888 ac_sed_frag=1 # Number of current file.
22889 ac_beg=1 # First line for current file.
22890 ac_end=$ac_max_sed_lines # Line after last line for current file.
22893 while $ac_more_lines; do
22894 if test $ac_beg -gt 1; then
22895 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22897 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22899 if test ! -s $tmp/subs.frag; then
22900 ac_more_lines=false
22902 # The purpose of the label and of the branching condition is to
22903 # speed up the sed processing (if there are no `@' at all, there
22904 # is no need to browse any of the substitutions).
22905 # These are the two extra sed commands mentioned above.
22907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22908 if test -z "$ac_sed_cmds"; then
22909 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22911 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22913 ac_sed_frag=`expr $ac_sed_frag + 1`
22915 ac_end=`expr $ac_end + $ac_max_sed_lines`
22918 if test -z "$ac_sed_cmds"; then
22921 fi # test -n "$CONFIG_FILES"
22924 cat >>$CONFIG_STATUS <<\EOF
22925 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22928 - | *:- | *:-:* ) # input from stdin
22930 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22931 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22932 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22934 * ) ac_file_in=$ac_file.in ;;
22937 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22938 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22939 X"$ac_file" : 'X\(//\)[^/]' \| \
22940 X"$ac_file" : 'X\(//\)$' \| \
22941 X"$ac_file" : 'X\(/\)' \| \
22942 . : '\(.\)' 2>/dev/null ||
22944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22946 /^X\(\/\/\)$/{ s//\1/; q; }
22947 /^X\(\/\).*/{ s//\1/; q; }
22949 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22950 { case "$ac_dir" in
22951 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22955 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22956 case $as_mkdir_dir in
22957 # Skip DOS drivespec
22958 ?:) as_incr_dir=$as_mkdir_dir ;;
22960 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22961 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22966 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
22967 # A "../" for each directory in $ac_dir_suffix.
22968 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
22970 ac_dir_suffix= ac_dots=
22975 if test -z "$ac_dots"; then
22978 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
22980 [\\/]* | ?:[\\/]* )
22981 ac_srcdir=$srcdir$ac_dir_suffix;
22982 ac_top_srcdir=$srcdir ;;
22983 *) # Relative path.
22984 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
22985 ac_top_srcdir=$ac_dots$srcdir ;;
22989 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22990 *) ac_INSTALL=$ac_dots$INSTALL ;;
22993 if test x"$ac_file" != x-; then
22994 { echo "$as_me:22994: creating $ac_file" >&5
22995 echo "$as_me: creating $ac_file" >&6;}
22998 # Let's still pretend it is `configure' which instantiates (i.e., don't
22999 # use $as_me), people would be surprised to read:
23000 # /* config.h. Generated automatically by config.status. */
23001 configure_input="Generated automatically from `echo $ac_file_in |
23002 sed 's,.*/,,'` by configure."
23004 # First look for the input files in the build tree, otherwise in the
23006 ac_file_inputs=`IFS=:
23007 for f in $ac_file_in; do
23009 -) echo $tmp/stdin ;;
23011 # Absolute (can't be DOS-style, as IFS=:)
23012 test -f "$f" || { { echo "$as_me:23012: error: cannot find input file: $f" >&5
23013 echo "$as_me: error: cannot find input file: $f" >&2;}
23014 { (exit 1); exit 1; }; }
23017 if test -f "$f"; then
23020 elif test -f "$srcdir/$f"; then
23025 { { echo "$as_me:23025: error: cannot find input file: $f" >&5
23026 echo "$as_me: error: cannot find input file: $f" >&2;}
23027 { (exit 1); exit 1; }; }
23030 done` || { (exit 1); exit 1; }
23032 cat >>$CONFIG_STATUS <<\EOF
23033 ac_warn_datarootdir=no
23034 if test x"$ac_file" != x-; then
23035 for ac_item in $ac_file_inputs
23037 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
23038 if test -n "$ac_seen"; then
23039 ac_used=`grep '@datarootdir@' $ac_item`
23040 if test -z "$ac_used"; then
23041 { echo "$as_me:23041: WARNING: datarootdir was used implicitly but not set:
23043 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
23045 ac_warn_datarootdir=yes
23048 ac_seen=`grep '${datarootdir}' $ac_item`
23049 if test -n "$ac_seen"; then
23050 { echo "$as_me:23050: WARNING: datarootdir was used explicitly but not set:
23052 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
23054 ac_warn_datarootdir=yes
23059 if test "x$ac_warn_datarootdir" = xyes; then
23060 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
23064 cat >>$CONFIG_STATUS <<EOF
23068 cat >>$CONFIG_STATUS <<\EOF
23070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23071 s,@configure_input@,$configure_input,;t t
23072 s,@srcdir@,$ac_srcdir,;t t
23073 s,@top_srcdir@,$ac_top_srcdir,;t t
23074 s,@INSTALL@,$ac_INSTALL,;t t
23075 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23077 if test x"$ac_file" != x-; then
23078 cp $tmp/out $ac_file
23080 for ac_name in prefix exec_prefix datarootdir
23082 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
23083 if test -n "$ac_seen"; then
23084 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
23085 if test -z "$ac_init"; then
23086 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
23087 { echo "$as_me:23087: WARNING: Variable $ac_name is used but was not set:
23089 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
23094 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
23095 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
23096 if test -s $tmp/out; then
23097 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
23098 { echo "$as_me:23098: WARNING: Some variables may not be substituted:
23100 echo "$as_me: WARNING: Some variables may not be substituted:
23110 cat >>$CONFIG_STATUS <<\EOF
23113 # CONFIG_HEADER section.
23116 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23117 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23119 # ac_d sets the value in "#define NAME VALUE" lines.
23120 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23121 ac_dB='[ ].*$,\1#\2'
23124 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23125 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23126 ac_iB='\([ ]\),\1#\2define\3'
23129 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23130 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23131 ac_uB='$,\1#\2define\3'
23135 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23138 - | *:- | *:-:* ) # input from stdin
23140 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23142 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23144 * ) ac_file_in=$ac_file.in ;;
23147 test x"$ac_file" != x- && { echo "$as_me:23147: creating $ac_file" >&5
23148 echo "$as_me: creating $ac_file" >&6;}
23150 # First look for the input files in the build tree, otherwise in the
23152 ac_file_inputs=`IFS=:
23153 for f in $ac_file_in; do
23155 -) echo $tmp/stdin ;;
23157 # Absolute (can't be DOS-style, as IFS=:)
23158 test -f "$f" || { { echo "$as_me:23158: error: cannot find input file: $f" >&5
23159 echo "$as_me: error: cannot find input file: $f" >&2;}
23160 { (exit 1); exit 1; }; }
23163 if test -f "$f"; then
23166 elif test -f "$srcdir/$f"; then
23171 { { echo "$as_me:23171: error: cannot find input file: $f" >&5
23172 echo "$as_me: error: cannot find input file: $f" >&2;}
23173 { (exit 1); exit 1; }; }
23176 done` || { (exit 1); exit 1; }
23177 # Remove the trailing spaces.
23178 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23182 # Transform confdefs.h into a list of #define's. We won't use it as a sed
23183 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
23184 # be either 'cat' or 'sort'.
23185 cat confdefs.h | uniq >conftest.vals
23187 # Break up conftest.vals because some shells have a limit on
23188 # the size of here documents, and old seds have small limits too.
23190 rm -f conftest.tail
23191 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
23192 while grep . conftest.vals >/dev/null
23194 # Write chunks of a limited-size here document to conftest.frag.
23195 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
23196 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
23197 echo 'CEOF' >> $CONFIG_STATUS
23198 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23199 rm -f conftest.vals
23200 mv conftest.tail conftest.vals
23202 rm -f conftest.vals
23204 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
23206 echo ' cat >> conftest.edit <<CEOF
23207 /@DEFS@/r conftest.frag
23210 sed -f conftest.edit $tmp/in > $tmp/out
23212 mv $tmp/out $tmp/in
23213 rm -f conftest.edit conftest.frag
23214 ' >> $CONFIG_STATUS
23216 cat >>$CONFIG_STATUS <<\EOF
23217 # Let's still pretend it is `configure' which instantiates (i.e., don't
23218 # use $as_me), people would be surprised to read:
23219 # /* config.h. Generated automatically by config.status. */
23220 if test x"$ac_file" = x-; then
23221 echo "/* Generated automatically by configure. */" >$tmp/config.h
23223 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
23225 cat $tmp/in >>$tmp/config.h
23227 if test x"$ac_file" != x-; then
23228 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
23229 { echo "$as_me:23229: $ac_file is unchanged" >&5
23230 echo "$as_me: $ac_file is unchanged" >&6;}
23232 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23233 X"$ac_file" : 'X\(//\)[^/]' \| \
23234 X"$ac_file" : 'X\(//\)$' \| \
23235 X"$ac_file" : 'X\(/\)' \| \
23236 . : '\(.\)' 2>/dev/null ||
23238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23240 /^X\(\/\/\)$/{ s//\1/; q; }
23241 /^X\(\/\).*/{ s//\1/; q; }
23243 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23244 { case "$ac_dir" in
23245 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23249 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23250 case $as_mkdir_dir in
23251 # Skip DOS drivespec
23252 ?:) as_incr_dir=$as_mkdir_dir ;;
23254 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23255 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23262 mv $tmp/config.h $ac_file
23266 rm -f $tmp/config.h
23270 cat >>$CONFIG_STATUS <<\EOF
23272 # CONFIG_COMMANDS section.
23274 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23275 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23276 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23280 if test "x$cf_with_tests" != xno ; then
23284 if test ! -d $srcdir/$cf_dir; then
23286 elif test -f $srcdir/$cf_dir/programs; then
23287 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
23293 cf_prefix=$LIB_PREFIX
23295 case $cf_cv_shlib_version in #(vi
23296 cygdll|msysdll|mingw)
23297 TINFO_NAME=$TINFO_ARG_SUFFIX
23302 if test -n "$TINFO_SUFFIX" ; then
23303 case $TINFO_SUFFIX in
23305 TINFO_NAME="${TINFO_NAME}tw"
23306 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
23309 TINFO_NAME="${TINFO_NAME}t"
23310 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
23313 TINFO_NAME="${TINFO_NAME}w"
23314 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
23319 for cf_dir in $SRC_SUBDIRS
23321 if test ! -d $srcdir/$cf_dir ; then
23323 elif test -f $srcdir/$cf_dir/modules; then
23329 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
23331 cf_sed_options="$cf_sed_options -e \"s/NCURSES\\([WT]\\+\\)\?_/NCURSES\\1${cf_cv_abi_version}_/g\""
23334 if test "x$WILDCARD_SYMS" = xno
23336 cf_sed_options="$cf_sed_options -e \"s/_\*;//g\""
23339 if test "x$cf_sed_options" != "x"
23341 cat >>$cf_dir/Makefile <<CF_EOF
23343 # Generated by CF_LIB_RULES
23344 resulting.map: $UNALTERED_SYMS
23345 sed $cf_sed_options < $UNALTERED_SYMS >\$@
23348 rm -f resulting.map
23352 for cf_item in $cf_LIST_MODELS
23355 case X$cf_item in #(vi
23358 cf_depsuf=$cf_suffix
23362 cf_depsuf=$cf_suffix
23366 cf_depsuf=$cf_suffix
23369 case $cf_cv_system_name in
23372 cf_depsuf=$cf_suffix
23374 cygwin*|msys*|mingw*) #(vi
23380 cf_depsuf=$cf_suffix
23386 cf_depsuf=$cf_suffix
23390 cf_depsuf=$cf_suffix
23396 cf_depsuf=$cf_suffix
23402 cf_depsuf=$cf_suffix
23405 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
23406 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
23409 test "$cf_dir" = c++ && cf_libname=ncurses++
23410 if test $cf_item = shared ; then
23411 if test -n "${LIB_SUFFIX}"
23413 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
23415 cf_shared_suffix="$cf_suffix"
23417 if test "$cf_cv_do_symlinks" = yes ; then
23420 case "$cf_cv_shlib_version" in #(vi
23422 cf_version_name=REL_VERSION
23425 cf_version_name=ABI_VERSION
23429 if test -n "$cf_version_name"
23431 case "$cf_cv_system_name" in #(vi
23434 cf_suffix="${LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
23437 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
23441 if test -n "${LIB_SUFFIX}"
23443 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
23445 cf_shared_suffix="$cf_suffix"
23448 # cygwin needs import library, and has unique naming convention
23449 # use autodetected ${cf_prefix} for import lib and static lib, but
23450 # use 'cyg' prefix for shared lib.
23451 case $cf_cv_shlib_version in #(vi
23453 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23454 Libs_To_Make="$Libs_To_Make ../lib/cyg${cf_libname}${cf_cygsuf}"
23458 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23459 Libs_To_Make="$Libs_To_Make ../lib/msys-${cf_libname}${cf_cygsuf}"
23463 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23464 Libs_To_Make="$Libs_To_Make ../lib/lib${cf_libname}${cf_cygsuf}"
23469 Libs_To_Make="$Libs_To_Make ../lib/${cf_prefix}${cf_libname}${cf_suffix}"
23472 if test $cf_dir = ncurses ; then
23473 cf_subsets="$LIB_SUBSETS"
23474 cf_r_parts="$cf_subsets"
23475 cf_liblist="$Libs_To_Make"
23477 while test -n "$cf_r_parts"
23479 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
23480 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
23481 if test "$cf_l_parts" != "$cf_r_parts" ; then
23483 case $cf_l_parts in #(vi
23485 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
23488 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
23494 if test -n "$cf_item"; then
23495 Libs_To_Make="$cf_item $Libs_To_Make"
23502 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
23505 if test $cf_dir = c++; then
23506 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
23508 for cf_item in $Libs_To_Make
23514 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
23517 for cf_test in $cf_list
23519 if test "$cf_test" = "$cf_item"
23521 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
23526 test -n "$cf_item" && cf_list="$cf_list $cf_item"
23528 Libs_To_Make="$cf_list"
23532 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
23533 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
23534 $cf_dir/Makefile >$cf_dir/Makefile.out
23535 mv $cf_dir/Makefile.out $cf_dir/Makefile
23537 $AWK -f $srcdir/mk-0th.awk \
23538 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
23539 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23541 for cf_subset in $cf_subsets
23544 for cf_item in $cf_LIST_MODELS
23547 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
23549 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23552 if test "$CXX_MODEL" = SHARED; then
23553 case $cf_cv_shlib_version in #(vi
23554 cygdll|msysdll|mingw) #(vi
23555 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
23557 echo "${as_me:-configure}:23557: testing overriding CXX_MODEL to SHARED ..." 1>&5
23559 with_shared_cxx=yes
23562 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
23567 case X$cf_item in #(vi
23570 cf_depsuf=$cf_suffix
23574 cf_depsuf=$cf_suffix
23578 cf_depsuf=$cf_suffix
23581 case $cf_cv_system_name in
23584 cf_depsuf=$cf_suffix
23586 cygwin*|msys*|mingw*) #(vi
23592 cf_depsuf=$cf_suffix
23598 cf_depsuf=$cf_suffix
23602 cf_depsuf=$cf_suffix
23608 cf_depsuf=$cf_suffix
23614 cf_depsuf=$cf_suffix
23617 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
23618 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
23621 libtool) cf_subdir='obj_lo' ;;
23622 normal) cf_subdir='objects' ;;
23623 debug) cf_subdir='obj_g' ;;
23624 profile) cf_subdir='obj_p' ;;
23626 case $cf_cv_system_name in #(vi
23628 cf_subdir='objects' ;;
23630 cf_subdir='obj_s' ;;
23634 # Test for case where we build libtinfo with a different name.
23636 if test $cf_dir = ncurses ; then
23639 cf_libname=${cf_libname}$LIB_SUFFIX
23642 cf_libname=$TINFO_LIB_SUFFIX
23645 cf_libname=$TICS_LIB_SUFFIX
23648 elif test $cf_dir = c++ ; then
23649 cf_libname=ncurses++$LIB_SUFFIX
23651 cf_libname=${cf_libname}$LIB_SUFFIX
23653 if test -n "${DFT_ARG_SUFFIX}" ; then
23654 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
23655 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
23658 # These dependencies really are for development, not
23659 # builds, but they are useful in porting, too.
23660 cf_depend="../include/ncurses_cfg.h"
23661 if test "$srcdir" = "."; then
23664 cf_reldir="\${srcdir}"
23667 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
23668 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
23669 elif test -f $srcdir/$cf_dir/curses.priv.h; then
23670 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
23674 old_cf_suffix="$cf_suffix"
23675 if test "$cf_cv_shlib_version_infix" = yes ; then
23676 if test -n "$LIB_SUFFIX" ; then
23677 case $LIB_SUFFIX in
23679 cf_libname=`echo $cf_libname | sed 's/tw$//'`
23680 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
23684 cf_libname=`echo $cf_libname | sed 's/t$//'`
23685 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
23689 cf_libname=`echo $cf_libname | sed 's/w$//'`
23690 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
23697 $AWK -f $srcdir/mk-1st.awk \
23698 name=${cf_libname}${cf_dir_suffix} \
23699 traces=$LIB_TRACING \
23701 CXX_MODEL=$CXX_MODEL \
23703 prefix=$cf_prefix \
23704 suffix=$cf_suffix \
23705 subset=$cf_subset \
23706 driver=$cf_cv_term_driver \
23708 TermlibRoot=$TINFO_NAME \
23709 TermlibSuffix=$TINFO_SUFFIX \
23710 ShlibVer=$cf_cv_shlib_version \
23711 ShlibVerInfix=$cf_cv_shlib_version_infix \
23712 ReLink=${cf_cv_do_relink:-no} \
23713 DoLinks=$cf_cv_do_symlinks \
23714 rmSoLocs=$cf_cv_rm_so_locs \
23715 ldconfig="$LDCONFIG" \
23716 overwrite=$WITH_OVERWRITE \
23717 depend="$cf_depend" \
23719 libtool_version="$LIBTOOL_VERSION" \
23720 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23722 cf_suffix="$old_cf_suffix"
23724 for cf_subdir2 in $cf_subdirs lib
23726 test $cf_subdir = $cf_subdir2 && break
23728 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
23729 $AWK -f $srcdir/mk-2nd.awk \
23731 traces=$LIB_TRACING \
23734 subset=$cf_subset \
23737 crenames=$cf_cv_prog_CC_c_o \
23738 cxxrenames=$cf_cv_prog_CXX_c_o \
23739 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23740 cf_subdirs="$cf_subdirs $cf_subdir"
23745 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
23748 for cf_dir in $SRC_SUBDIRS
23750 if test ! -d $srcdir/$cf_dir ; then
23754 if test -f $cf_dir/Makefile ; then
23757 echo 'libs \' >> Makefile
23758 echo 'install.libs \' >> Makefile
23759 echo 'uninstall.libs ::' >> Makefile
23760 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
23765 if test -f $srcdir/$cf_dir/modules; then
23767 if test -f $srcdir/$cf_dir/headers; then
23768 cat >> Makefile <<CF_EOF
23769 install.includes \\
23770 uninstall.includes \\
23773 if test "$cf_dir" != "c++" ; then
23774 echo 'lint \' >> Makefile
23776 cat >> Makefile <<CF_EOF
23782 uninstall.$cf_dir ::
23783 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
23785 elif test -f $srcdir/$cf_dir/headers; then
23786 cat >> Makefile <<CF_EOF
23791 install.includes \\
23792 uninstall.includes ::
23793 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
23798 if test "x$cf_with_db_install" = xyes; then
23799 cat >> Makefile <<CF_EOF
23801 install.libs uninstall.libs \\
23802 install.data uninstall.data ::
23803 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
23806 cat >> Makefile <<CF_EOF
23808 install.libs uninstall.libs ::
23809 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
23813 if test "x$cf_with_manpages" = xyes; then
23814 cat >> Makefile <<CF_EOF
23818 cd man && \${MAKE} \${TOP_MFLAGS} \$@
23822 cat >> Makefile <<CF_EOF
23825 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
23826 rm -f headers.sh headers.sed mk_shared_lib.sh
23827 rm -f edit_man.* man_alias.*
23828 rm -rf \${DIRS_TO_MAKE}
23831 # Special case: tack's manpage lives in its own directory.
23832 if test "x$cf_with_manpages" = xyes; then
23833 if test -d tack ; then
23834 if test -f $srcdir/$tack.h; then
23835 cat >> Makefile <<CF_EOF
23839 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
23845 rm -f headers.sed headers.sh
23847 echo creating headers.sh
23848 cat >headers.sh <<CF_EOF
23850 # This shell script is generated by the 'configure' script. It is invoked in a
23851 # subdirectory of the build tree. It generates a sed-script in the parent
23852 # directory that is used to adjust includes for header files that reside in a
23853 # subdirectory of /usr/include, etc.
23855 while test \$# != 3
23857 PRG="\$PRG \$1"; shift
23862 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
23863 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
23864 echo installing \$SRC in \$DST
23867 if test $WITH_CURSES_H = yes; then
23868 cat >>headers.sh <<CF_EOF
23871 END=\`basename \$DST\`
23872 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
23874 NAME=\`basename \$i\`
23875 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
23879 echo "" >> \$TMPSED
23885 cat >>headers.sh <<CF_EOF
23888 END=\`basename \$DST\`
23889 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
23891 NAME=\`basename \$i\`
23892 if test "\$NAME" = "curses.h"
23894 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
23897 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
23901 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
23906 cat >>headers.sh <<CF_EOF
23908 sed -f \$TMPSED \$SRC > \$TMPSRC
23909 NAME=\`basename \$SRC\`
23911 if test $WITH_CURSES_H != yes; then
23912 cat >>headers.sh <<CF_EOF
23913 test "\$NAME" = "curses.h" && NAME=ncurses.h
23916 cat >>headers.sh <<CF_EOF
23917 # Just in case someone gzip'd manpages, remove the conflicting copy.
23918 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
23920 eval \$PRG \$TMPSRC \$DST/\$NAME
23921 rm -f \$TMPSRC \$TMPSED
23924 chmod 0755 headers.sh
23926 for cf_dir in $SRC_SUBDIRS
23928 if test ! -d $srcdir/$cf_dir ; then
23932 if test -f $srcdir/$cf_dir/headers; then
23933 $AWK -f $srcdir/mk-hdr.awk \
23934 subset="$LIB_SUBSETS" \
23935 compat="$WITH_CURSES_H" \
23936 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
23939 if test -f $srcdir/$cf_dir/modules; then
23940 if test "$cf_dir" != "c++" ; then
23941 cat >>$cf_dir/Makefile <<"CF_EOF"
23942 depend : ${AUTO_SRC}
23943 makedepend -- ${CPPFLAGS} -- ${C_SRC}
23945 # DO NOT DELETE THIS LINE -- make depend depends on it.
23951 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
23952 if test -z "$USE_OLD_MAKERULES" ; then
23953 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
23961 cat >>$CONFIG_STATUS <<\EOF
23963 { (exit 0); exit 0; }
23965 chmod +x $CONFIG_STATUS
23966 ac_clean_files=$ac_clean_files_save
23968 # configure is writing to config.log, and then calls config.status.
23969 # config.status does its own redirection, appending to config.log.
23970 # Unfortunately, on DOS this fails, as config.log is still kept open
23971 # by configure, so config.status won't be able to write to it; its
23972 # output is simply discarded. So we exec the FD to /dev/null,
23973 # effectively closing config.log, so it can be properly (re)opened and
23974 # appended to by config.status. When coming back to configure, we
23975 # need to make the FD available again.
23976 if test "$no_create" != yes; then
23979 $SHELL $CONFIG_STATUS || ac_cs_success=false
23981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23982 # would make configure fail if this is the last instruction.
23983 $ac_cs_success || { (exit 1); exit 1; }
23985 ${MAKE:-make} preinstall