2 # From configure.in Revision: 1.626 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20150926.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable SCREEN-extensions
794 --enable-term-driver enable terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20150926. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1303 if test "x$cf_cv_abi_version" != "x$withval"
1305 { echo "$as_me:1305: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1306 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1307 case $cf_cv_rel_version in
1309 cf_cv_rel_version=$withval.0
1312 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1316 cf_cv_abi_version=$withval
1319 if test -n "$cf_cv_abi_version" ; then
1320 case $cf_cv_abi_version in
1324 { { echo "$as_me:1324: error: ABI version is not a number: $cf_cv_abi_version" >&5
1325 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1326 { (exit 1); exit 1; }; }
1330 { { echo "$as_me:1330: error: ABI version value is empty" >&5
1331 echo "$as_me: error: ABI version value is empty" >&2;}
1332 { (exit 1); exit 1; }; }
1335 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1337 case $cf_cv_rel_version in
1339 cf_cv_rel_version=$with_abi_version.0
1345 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1346 if test -f $ac_dir/install-sh; then
1348 ac_install_sh="$ac_aux_dir/install-sh -c"
1350 elif test -f $ac_dir/install.sh; then
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1354 elif test -f $ac_dir/shtool; then
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:1361: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1362 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1363 { (exit 1); exit 1; }; }
1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:1371: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:1375: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:1384: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:1400: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:1409: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:1414: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1422 echo "$as_me:1422: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 # The aliases save the names the user supplied, while $host etc.
1444 # will get canonicalized.
1445 test -n "$target_alias" &&
1446 test "$program_prefix$program_suffix$program_transform_name" = \
1448 program_prefix=${target_alias}-
1449 system_name="$host_os"
1451 system_name="`(uname -s -r) 2>/dev/null`"
1452 if test -z "$system_name" ; then
1453 system_name="`(hostname) 2>/dev/null`"
1456 test -n "$system_name" &&
1457 cat >>confdefs.h <<EOF
1458 #define SYSTEM_NAME "$system_name"
1461 if test "${cf_cv_system_name+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 cf_cv_system_name="$system_name"
1467 test -z "$system_name" && system_name="$cf_cv_system_name"
1468 test -n "$cf_cv_system_name" && echo "$as_me:1468: result: Configuring for $cf_cv_system_name" >&5
1469 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1471 if test ".$system_name" != ".$cf_cv_system_name" ; then
1472 echo "$as_me:1472: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1473 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1474 { { echo "$as_me:1474: error: \"Please remove config.cache and try again.\"" >&5
1475 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1476 { (exit 1); exit 1; }; }
1479 # Check whether --with-system-type or --without-system-type was given.
1480 if test "${with_system_type+set}" = set; then
1481 withval="$with_system_type"
1482 { echo "$as_me:1482: WARNING: overriding system type to $withval" >&5
1483 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1484 cf_cv_system_name=$withval
1489 ### Save the given $CFLAGS to allow user-override.
1490 cf_user_CFLAGS="$CFLAGS"
1492 ### Default install-location
1494 echo "$as_me:1494: checking for prefix" >&5
1495 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1496 if test "x$prefix" = "xNONE" ; then
1497 case "$cf_cv_system_name" in
1498 # non-vendor systems don't have a conflict
1499 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1502 (*) prefix=$ac_default_prefix
1506 echo "$as_me:1506: result: $prefix" >&5
1507 echo "${ECHO_T}$prefix" >&6
1509 if test "x$prefix" = "xNONE" ; then
1510 echo "$as_me:1510: checking for default include-directory" >&5
1511 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1512 test -n "$verbose" && echo 1>&6
1515 $includedir/ncurses \
1517 $prefix/include/ncurses \
1518 /usr/local/include \
1519 /usr/local/include/ncurses \
1521 /usr/include/ncurses
1523 cf_dir=`eval echo $cf_symbol`
1524 if test -f $cf_dir/curses.h ; then
1525 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1526 includedir="$cf_symbol"
1527 test -n "$verbose" && echo $ac_n " found " 1>&6
1531 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1533 echo "$as_me:1533: result: $includedir" >&5
1534 echo "${ECHO_T}$includedir" >&6
1537 ### Defaults for ncurses ABI
1539 case x$cf_cv_abi_version in
1541 cf_dft_ext_colors=yes
1542 cf_dft_ext_const=yes
1543 cf_dft_ext_mouse=yes
1544 cf_dft_ext_putwin=yes
1545 cf_dft_ext_spfuncs=yes
1546 cf_dft_filter_syms=yes
1547 cf_dft_chtype=uint32_t
1548 cf_dft_mmask_t=uint32_t
1550 cf_dft_tparm_arg=intptr_t
1551 cf_dft_with_lp64=yes
1554 cf_dft_ext_colors=no
1557 cf_dft_ext_putwin=no
1558 cf_dft_ext_spfuncs=no
1559 cf_dft_filter_syms=no
1563 cf_dft_tparm_arg=long
1568 ### Checks for programs.
1570 # Check whether --with-ada or --without-ada was given.
1571 if test "${with_ada+set}" = set; then
1573 cf_with_ada=$withval
1577 if test "x$cf_with_ada" = xyes
1579 cf_PROG_CC="gnatgcc gcc cc"
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 ac_main_return=return
1590 if test -n "$ac_tool_prefix"; then
1591 for ac_prog in $cf_PROG_CC
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:1595: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 ac_save_IFS=$IFS; IFS=$ac_path_separator
1605 for ac_dir in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir=.
1608 $as_executable_p "$ac_dir/$ac_word" || continue
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:1610: found $ac_dir/$ac_word" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:1618: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:1621: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1625 test -n "$CC" && break
1628 if test -z "$CC"; then
1630 for ac_prog in $cf_PROG_CC
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo "$as_me:1634: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 ac_save_IFS=$IFS; IFS=$ac_path_separator
1644 for ac_dir in $ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 $as_executable_p "$ac_dir/$ac_word" || continue
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:1649: found $ac_dir/$ac_word" >&5
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:1657: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1660 echo "$as_me:1660: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$ac_ct_CC" && break
1670 test -z "$CC" && { { echo "$as_me:1670: error: no acceptable cc found in \$PATH" >&5
1671 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1672 { (exit 1); exit 1; }; }
1674 # Provide some information about the compiler.
1675 echo "$as_me:1675:" \
1676 "checking for C compiler version" >&5
1677 ac_compiler=`set X $ac_compile; echo $2`
1678 { (eval echo "$as_me:1678: \"$ac_compiler --version </dev/null >&5\"") >&5
1679 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 echo "$as_me:1681: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:1683: \"$ac_compiler -v </dev/null >&5\"") >&5
1684 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -V </dev/null >&5\"") >&5
1689 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1694 cat >conftest.$ac_ext <<_ACEOF
1695 #line 1695 "configure"
1696 #include "confdefs.h"
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1711 echo "$as_me:1711: checking for C compiler default output" >&5
1712 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:1714: \"$ac_link_default\"") >&5
1715 (eval $ac_link_default) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # Find the output, starting from the most likely. This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1723 ls a.out conftest 2>/dev/null;
1724 ls a.* conftest.* 2>/dev/null`; do
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1727 a.out ) # We found the default executable, but exeext='' is most
1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1738 echo "$as_me: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 { { echo "$as_me:1740: error: C compiler cannot create executables" >&5
1741 echo "$as_me: error: C compiler cannot create executables" >&2;}
1742 { (exit 77); exit 77; }; }
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:1746: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:1751: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756 if { ac_try='./$ac_file'
1757 { (eval echo "$as_me:1757: \"$ac_try\"") >&5
1760 echo "$as_me:1760: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 if test "$cross_compiling" = maybe; then
1767 { { echo "$as_me:1767: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'." >&5
1769 echo "$as_me: error: cannot run C compiled programs.
1770 If you meant to cross compile, use \`--host'." >&2;}
1771 { (exit 1); exit 1; }; }
1775 echo "$as_me:1775: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1778 rm -f a.out a.exe conftest$ac_cv_exeext
1779 ac_clean_files=$ac_clean_files_save
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether we are cross compiling" >&5
1783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1784 echo "$as_me:1784: result: $cross_compiling" >&5
1785 echo "${ECHO_T}$cross_compiling" >&6
1787 echo "$as_me:1787: checking for executable suffix" >&5
1788 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1789 if { (eval echo "$as_me:1789: \"$ac_link\"") >&5
1790 (eval $ac_link) 2>&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1796 # work properly (i.e., refer to `conftest.exe'), while it won't with
1798 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1801 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 { { echo "$as_me:1808: error: cannot compute EXEEXT: cannot compile and link" >&5
1809 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1810 { (exit 1); exit 1; }; }
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:1814: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1820 echo "$as_me:1820: checking for object suffix" >&5
1821 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line 1826 "configure"
1827 #include "confdefs.h"
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:1853: error: cannot compute OBJEXT: cannot compile" >&5
1854 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1864 echo "$as_me:1864: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:1891: \"$ac_try\"") >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:1906: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1912 echo "$as_me:1912: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:1930: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:1936: \"$ac_try\"") >&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1949 echo "$as_me:1949: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 # Some people use a C++ compiler to compile C. Since we use `exit',
1967 # in C++ we need to declare it. In case someone uses the same compiler
1968 # for both compiling C and C++ we need to have the C++ compiler decide
1969 # the declaration of exit, since it's the most demanding environment.
1970 cat >conftest.$ac_ext <<_ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 for ac_declaration in \
1989 '#include <stdlib.h>' \
1990 'extern "C" void std::exit (int) throw (); using std::exit;' \
1991 'extern "C" void std::exit (int); using std::exit;' \
1992 'extern "C" void exit (int) throw ();' \
1993 'extern "C" void exit (int);' \
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line 1997 "configure"
1998 #include "confdefs.h"
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 ac_main_return=return
2079 if test "$GCC" = yes ; then
2080 echo "$as_me:2080: checking version of $CC" >&5
2081 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2082 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2083 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2084 echo "$as_me:2084: result: $GCC_VERSION" >&5
2085 echo "${ECHO_T}$GCC_VERSION" >&6
2088 echo "$as_me:2088: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_cv_prog_cc_stdc=no
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2100 #include <sys/types.h>
2101 #include <sys/stat.h>
2102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2103 struct buf { int x; };
2104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2105 static char *e (p, i)
2111 static char *f (char * (*g) (char **, int), char **p, ...)
2116 s = g (p, va_arg (v,int));
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2134 # Don't try gcc -ansi; that turns off useful extensions and
2135 # breaks some systems' header files.
2136 # AIX -qlanglvl=ansi
2137 # Ultrix and OSF/1 -std1
2138 # HP-UX 10.20 and later -Ae
2139 # HP-UX older versions -Aa -D_HPUX_SOURCE
2140 # SVR4 -Xc -D__EXTENSIONS__
2141 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143 CC="$ac_save_CC $ac_arg"
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cc_stdc=$ac_arg
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 rm -f conftest.$ac_objext
2164 rm -f conftest.$ac_ext conftest.$ac_objext
2169 case "x$ac_cv_prog_cc_stdc" in
2171 echo "$as_me:2171: result: none needed" >&5
2172 echo "${ECHO_T}none needed" >&6 ;;
2174 echo "$as_me:2174: result: $ac_cv_prog_cc_stdc" >&5
2175 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2176 CC="$CC $ac_cv_prog_cc_stdc" ;;
2179 # This should have been defined by AC_PROG_CC
2182 echo "$as_me:2182: checking \$CC variable" >&5
2183 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2186 echo "$as_me:2186: result: broken" >&5
2187 echo "${ECHO_T}broken" >&6
2188 { echo "$as_me:2188: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2189 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2191 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2192 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_flags
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2216 elif test "${cf_tst_cflags}" = "\"'" ; then
2217 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2226 case $cf_add_cflags in
2228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2230 CPPFLAGS=`echo "$CPPFLAGS" | \
2231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2236 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2241 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2248 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2250 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2251 && test -z "${cf_tst_cflags}" \
2252 && cf_fix_cppflags=no
2257 if test -n "$cf_new_cflags" ; then
2259 CFLAGS="$CFLAGS $cf_new_cflags"
2262 if test -n "$cf_new_cppflags" ; then
2264 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2267 if test -n "$cf_new_extra_cppflags" ; then
2269 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2274 echo "$as_me:2274: result: ok" >&5
2275 echo "${ECHO_T}ok" >&6
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284 ac_main_return=return
2285 echo "$as_me:2285: checking how to run the C preprocessor" >&5
2286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2287 # On Suns, sometimes $CPP names a directory.
2288 if test -n "$CPP" && test -d "$CPP"; then
2291 if test -z "$CPP"; then
2292 if test "${ac_cv_prog_CPP+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 # Double quotes because CPP needs to be expanded
2296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2299 for ac_c_preproc_warn_flag in '' yes
2301 # Use a header file that comes with gcc, so configuring glibc
2302 # with a fresh cross-compiler works.
2303 # On the NeXT, cc -E runs the code through the compiler's parser,
2304 # not just through cpp. "Syntax error" is here to catch this case.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line 2306 "configure"
2307 #include "confdefs.h"
2311 if { (eval echo "$as_me:2311: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:2317: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2327 if test -z "$ac_cpp_err"; then
2330 echo "$as_me: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 # Broken: fails on valid input.
2335 rm -f conftest.err conftest.$ac_ext
2337 # OK, works on sane cases. Now check whether non-existent headers
2338 # can be detected and how.
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line 2340 "configure"
2341 #include "confdefs.h"
2342 #include <ac_nonexistent.h>
2344 if { (eval echo "$as_me:2344: \"$ac_cpp conftest.$ac_ext\"") >&5
2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 egrep -v '^ *\+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:2350: \$? = $ac_status" >&5
2351 (exit $ac_status); } >/dev/null; then
2352 if test -s conftest.err; then
2353 ac_cpp_err=$ac_c_preproc_warn_flag
2360 if test -z "$ac_cpp_err"; then
2361 # Broken: success on invalid input.
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 # Passes both tests.
2370 rm -f conftest.err conftest.$ac_ext
2373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2374 rm -f conftest.err conftest.$ac_ext
2375 if $ac_preproc_ok; then
2387 echo "$as_me:2387: result: $CPP" >&5
2388 echo "${ECHO_T}$CPP" >&6
2390 for ac_c_preproc_warn_flag in '' yes
2392 # Use a header file that comes with gcc, so configuring glibc
2393 # with a fresh cross-compiler works.
2394 # On the NeXT, cc -E runs the code through the compiler's parser,
2395 # not just through cpp. "Syntax error" is here to catch this case.
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line 2397 "configure"
2398 #include "confdefs.h"
2402 if { (eval echo "$as_me:2402: \"$ac_cpp conftest.$ac_ext\"") >&5
2403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 egrep -v '^ *\+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:2408: \$? = $ac_status" >&5
2409 (exit $ac_status); } >/dev/null; then
2410 if test -s conftest.err; then
2411 ac_cpp_err=$ac_c_preproc_warn_flag
2418 if test -z "$ac_cpp_err"; then
2421 echo "$as_me: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 # Broken: fails on valid input.
2426 rm -f conftest.err conftest.$ac_ext
2428 # OK, works on sane cases. Now check whether non-existent headers
2429 # can be detected and how.
2430 cat >conftest.$ac_ext <<_ACEOF
2431 #line 2431 "configure"
2432 #include "confdefs.h"
2433 #include <ac_nonexistent.h>
2435 if { (eval echo "$as_me:2435: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438 egrep -v '^ *\+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2451 if test -z "$ac_cpp_err"; then
2452 # Broken: success on invalid input.
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 # Passes both tests.
2461 rm -f conftest.err conftest.$ac_ext
2464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2465 rm -f conftest.err conftest.$ac_ext
2466 if $ac_preproc_ok; then
2469 { { echo "$as_me:2469: error: C preprocessor \"$CPP\" fails sanity check" >&5
2470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2471 { (exit 1); exit 1; }; }
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 ac_main_return=return
2481 if test $ac_cv_c_compiler_gnu = yes; then
2482 echo "$as_me:2482: checking whether $CC needs -traditional" >&5
2483 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2484 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_pattern="Autoconf.*'x'"
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2492 int Autoconf = TIOCGETP;
2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "$ac_pattern" >/dev/null 2>&1; then
2496 ac_cv_prog_gcc_traditional=yes
2498 ac_cv_prog_gcc_traditional=no
2502 if test $ac_cv_prog_gcc_traditional = no; then
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line 2504 "configure"
2505 #include "confdefs.h"
2507 int Autoconf = TCGETA;
2509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 egrep "$ac_pattern" >/dev/null 2>&1; then
2511 ac_cv_prog_gcc_traditional=yes
2517 echo "$as_me:2517: result: $ac_cv_prog_gcc_traditional" >&5
2518 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2519 if test $ac_cv_prog_gcc_traditional = yes; then
2520 CC="$CC -traditional"
2524 echo "$as_me:2524: checking whether $CC understands -c and -o together" >&5
2525 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2526 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat > conftest.$ac_ext <<CF_EOF
2534 ${cf_cv_main_return:-return}(0);
2537 # We do the test twice because some compilers refuse to overwrite an
2538 # existing .o file with -o, though they will create one.
2539 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2540 if { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 test -f conftest2.$ac_objext && { (eval echo "$as_me:2545: \"$ac_try\"") >&5
2548 echo "$as_me:2548: \$? = $ac_status" >&5
2549 (exit $ac_status); };
2551 eval cf_cv_prog_CC_c_o=yes
2553 eval cf_cv_prog_CC_c_o=no
2558 if test $cf_cv_prog_CC_c_o = yes; then
2559 echo "$as_me:2559: result: yes" >&5
2560 echo "${ECHO_T}yes" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2566 if test "$cross_compiling" = yes ; then
2569 case "$cf_cv_system_name" in
2570 (dragonfly*|mirbsd*|freebsd*)
2571 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2573 (*) LDPATH=$PATH:/sbin:/usr/sbin
2574 # Extract the first word of "ldconfig", so it can be a program name with args.
2575 set dummy ldconfig; ac_word=$2
2576 echo "$as_me:2576: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2586 ac_save_IFS=$IFS; IFS=$ac_path_separator
2588 for ac_dir in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir=.
2591 if $as_executable_p "$ac_dir/$ac_word"; then
2592 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2593 echo "$as_me:2593: found $ac_dir/$ac_word" >&5
2601 LDCONFIG=$ac_cv_path_LDCONFIG
2603 if test -n "$LDCONFIG"; then
2604 echo "$as_me:2604: result: $LDCONFIG" >&5
2605 echo "${ECHO_T}$LDCONFIG" >&6
2607 echo "$as_me:2607: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2615 echo "$as_me:2615: checking if you want to ensure bool is consistent with C++" >&5
2616 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2618 # Check whether --with-cxx or --without-cxx was given.
2619 if test "${with_cxx+set}" = set; then
2621 cf_with_cxx=$withval
2625 echo "$as_me:2625: result: $cf_with_cxx" >&5
2626 echo "${ECHO_T}$cf_with_cxx" >&6
2627 if test "X$cf_with_cxx" = Xno ; then
2631 # with autoconf 2.13, we can change the error to a warning:
2633 ac_cpp='$CXXCPP $CPPFLAGS'
2634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2637 ac_main_return=return
2638 if test -n "$ac_tool_prefix"; then
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643 echo "$as_me:2643: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$CXX"; then
2649 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2651 ac_save_IFS=$IFS; IFS=$ac_path_separator
2653 for ac_dir in $ac_dummy; do
2655 test -z "$ac_dir" && ac_dir=.
2656 $as_executable_p "$ac_dir/$ac_word" || continue
2657 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:2658: found $ac_dir/$ac_word" >&5
2665 if test -n "$CXX"; then
2666 echo "$as_me:2666: result: $CXX" >&5
2667 echo "${ECHO_T}$CXX" >&6
2669 echo "$as_me:2669: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2673 test -n "$CXX" && break
2676 if test -z "$CXX"; then
2678 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:2682: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CXX"; then
2688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2690 ac_save_IFS=$IFS; IFS=$ac_path_separator
2692 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 $as_executable_p "$ac_dir/$ac_word" || continue
2696 ac_cv_prog_ac_ct_CXX="$ac_prog"
2697 echo "$as_me:2697: found $ac_dir/$ac_word" >&5
2703 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705 echo "$as_me:2705: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2708 echo "$as_me:2708: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$ac_ct_CXX" && break
2714 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2719 # Provide some information about the compiler.
2720 echo "$as_me:2720:" \
2721 "checking for C++ compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (eval echo "$as_me:2723: \"$ac_compiler --version </dev/null >&5\"") >&5
2724 (eval $ac_compiler --version </dev/null >&5) 2>&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (eval echo "$as_me:2728: \"$ac_compiler -v </dev/null >&5\"") >&5
2729 (eval $ac_compiler -v </dev/null >&5) 2>&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (eval echo "$as_me:2733: \"$ac_compiler -V </dev/null >&5\"") >&5
2734 (eval $ac_compiler -V </dev/null >&5) 2>&5
2736 echo "$as_me:2736: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2739 echo "$as_me:2739: checking whether we are using the GNU C++ compiler" >&5
2740 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:2760: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>&5
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:2766: \"$ac_try\"") >&5
2769 echo "$as_me:2769: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2777 rm -f conftest.$ac_objext conftest.$ac_ext
2778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2781 echo "$as_me:2781: result: $ac_cv_cxx_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2783 GXX=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CXXFLAGS=${CXXFLAGS+set}
2785 ac_save_CXXFLAGS=$CXXFLAGS
2787 echo "$as_me:2787: checking whether $CXX accepts -g" >&5
2788 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2789 if test "${ac_cv_prog_cxx_g+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:2805: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>&5
2808 echo "$as_me:2808: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:2811: \"$ac_try\"") >&5
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 ac_cv_prog_cxx_g=yes
2818 echo "$as_me: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2824 echo "$as_me:2824: result: $ac_cv_prog_cxx_g" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2826 if test "$ac_test_CXXFLAGS" = set; then
2827 CXXFLAGS=$ac_save_CXXFLAGS
2828 elif test $ac_cv_prog_cxx_g = yes; then
2829 if test "$GXX" = yes; then
2835 if test "$GXX" = yes; then
2841 for ac_declaration in \
2843 '#include <stdlib.h>' \
2844 'extern "C" void std::exit (int) throw (); using std::exit;' \
2845 'extern "C" void std::exit (int); using std::exit;' \
2846 'extern "C" void exit (int) throw ();' \
2847 'extern "C" void exit (int);' \
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line 2851 "configure"
2852 #include "confdefs.h"
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line 2883 "configure"
2884 #include "confdefs.h"
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 rm -f conftest.$ac_objext conftest.$ac_ext
2914 if test -n "$ac_declaration"; then
2915 echo '#ifdef __cplusplus' >>confdefs.h
2916 echo $ac_declaration >>confdefs.h
2917 echo '#endif' >>confdefs.h
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 ac_main_return=return
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 ac_main_return=return
2934 if test "x$cf_with_cxx" != xno
2936 # Several of the C++ configurations do not work, particularly when
2937 # cross-compiling (20140913 -TD)
2938 echo "$as_me:2938: checking if $CXX works" >&5
2939 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2941 save_CPPFLAGS="$CPPFLAGS"
2942 eval cf_includedir=${includedir}
2943 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line 2946 "configure"
2947 #include "confdefs.h"
2956 printf("Hello world!\n")
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:2963: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:2969: \"$ac_try\"") >&5
2972 echo "$as_me:2972: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2980 rm -f conftest.$ac_objext conftest.$ac_ext
2981 CPPFLAGS="$save_CPPFLAGS"
2983 echo "$as_me:2983: result: $cf_cxx_works" >&5
2984 echo "${ECHO_T}$cf_cxx_works" >&6
2985 if test "x$cf_cxx_works" = xno
2987 { echo "$as_me:2987: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2988 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2989 cf_with_cxx=no; CXX=""; GXX="";
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 ac_main_return=return
2999 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3000 if test "$CXX" = "g++" ; then
3001 # Extract the first word of "g++", so it can be a program name with args.
3002 set dummy g++; ac_word=$2
3003 echo "$as_me:3003: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_path_CXX+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3013 ac_save_IFS=$IFS; IFS=$ac_path_separator
3015 for ac_dir in $ac_dummy; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if $as_executable_p "$ac_dir/$ac_word"; then
3019 ac_cv_path_CXX="$ac_dir/$ac_word"
3020 echo "$as_me:3020: found $ac_dir/$ac_word" >&5
3030 if test -n "$CXX"; then
3031 echo "$as_me:3031: result: $CXX" >&5
3032 echo "${ECHO_T}$CXX" >&6
3034 echo "$as_me:3034: result: no" >&5
3035 echo "${ECHO_T}no" >&6
3041 { echo "$as_me:3041: WARNING: You don't have any C++ compiler, too bad" >&5
3042 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3043 cf_with_cxx=no; CXX=""; GXX="";
3049 if test "$GXX" = yes; then
3050 echo "$as_me:3050: checking version of ${CXX:-g++}" >&5
3051 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3052 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3053 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3054 echo "$as_me:3054: result: $GXX_VERSION" >&5
3055 echo "${ECHO_T}$GXX_VERSION" >&6
3058 case $GXX_VERSION in
3060 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3062 { echo "$as_me:3062: WARNING: templates do not work" >&5
3063 echo "$as_me: WARNING: templates do not work" >&2;}
3067 echo "$as_me:3067: checking if you want to build C++ binding and demo" >&5
3068 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3070 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3071 if test "${with_cxx_binding+set}" = set; then
3072 withval="$with_cxx_binding"
3073 cf_with_cxx_binding=$withval
3075 cf_with_cxx_binding=$cf_with_cxx
3077 echo "$as_me:3077: result: $cf_with_cxx_binding" >&5
3078 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3080 echo "$as_me:3080: checking if you want to build with Ada95" >&5
3081 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3082 echo "$as_me:3082: result: $cf_with_ada" >&5
3083 echo "${ECHO_T}$cf_with_ada" >&6
3085 echo "$as_me:3085: checking if you want to install terminal database" >&5
3086 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3088 # Check whether --enable-db-install or --disable-db-install was given.
3089 if test "${enable_db_install+set}" = set; then
3090 enableval="$enable_db_install"
3091 cf_with_db_install=$enableval
3093 cf_with_db_install=yes
3095 echo "$as_me:3095: result: $cf_with_db_install" >&5
3096 echo "${ECHO_T}$cf_with_db_install" >&6
3098 echo "$as_me:3098: checking if you want to install manpages" >&5
3099 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3101 # Check whether --with-manpages or --without-manpages was given.
3102 if test "${with_manpages+set}" = set; then
3103 withval="$with_manpages"
3104 cf_with_manpages=$withval
3106 cf_with_manpages=yes
3108 echo "$as_me:3108: result: $cf_with_manpages" >&5
3109 echo "${ECHO_T}$cf_with_manpages" >&6
3111 echo "$as_me:3111: checking if you want to build programs such as tic" >&5
3112 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3114 # Check whether --with-progs or --without-progs was given.
3115 if test "${with_progs+set}" = set; then
3116 withval="$with_progs"
3117 cf_with_progs=$withval
3121 echo "$as_me:3121: result: $cf_with_progs" >&5
3122 echo "${ECHO_T}$cf_with_progs" >&6
3124 echo "$as_me:3124: checking if you want to build test-programs" >&5
3125 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3127 # Check whether --with-tests or --without-tests was given.
3128 if test "${with_tests+set}" = set; then
3129 withval="$with_tests"
3130 cf_with_tests=$withval
3134 echo "$as_me:3134: result: $cf_with_tests" >&5
3135 echo "${ECHO_T}$cf_with_tests" >&6
3137 echo "$as_me:3137: checking if you wish to install curses.h" >&5
3138 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3140 # Check whether --with-curses-h or --without-curses-h was given.
3141 if test "${with_curses_h+set}" = set; then
3142 withval="$with_curses_h"
3143 with_curses_h=$withval
3147 echo "$as_me:3147: result: $with_curses_h" >&5
3148 echo "${ECHO_T}$with_curses_h" >&6
3150 modules_to_build="ncurses"
3151 if test "X$cf_with_progs" != Xno ; then
3152 modules_to_build="$modules_to_build progs tack"
3154 modules_to_build="$modules_to_build panel menu form"
3156 test "$program_prefix" != NONE &&
3157 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3158 # Use a double $ so make ignores it.
3159 test "$program_suffix" != NONE &&
3160 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3161 # Double any \ or $. echo might interpret backslashes.
3162 # By default was `s,x,x', remove it if useless.
3163 cat <<\_ACEOF >conftest.sed
3164 s/[\\$]/&&/g;s/;s,x,x,$//
3166 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3169 for ac_prog in mawk gawk nawk awk
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 echo "$as_me:3173: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_AWK+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$AWK"; then
3179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3181 ac_save_IFS=$IFS; IFS=$ac_path_separator
3183 for ac_dir in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir=.
3186 $as_executable_p "$ac_dir/$ac_word" || continue
3187 ac_cv_prog_AWK="$ac_prog"
3188 echo "$as_me:3188: found $ac_dir/$ac_word" >&5
3195 if test -n "$AWK"; then
3196 echo "$as_me:3196: result: $AWK" >&5
3197 echo "${ECHO_T}$AWK" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 test -n "$AWK" && break
3206 test -z "$AWK" && { { echo "$as_me:3206: error: No awk program found" >&5
3207 echo "$as_me: error: No awk program found" >&2;}
3208 { (exit 1); exit 1; }; }
3210 echo "$as_me:3210: checking for egrep" >&5
3211 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3212 if test "${ac_cv_prog_egrep+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3216 then ac_cv_prog_egrep='grep -E'
3217 else ac_cv_prog_egrep='egrep'
3220 echo "$as_me:3220: result: $ac_cv_prog_egrep" >&5
3221 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3222 EGREP=$ac_cv_prog_egrep
3224 test -z "$EGREP" && { { echo "$as_me:3224: error: No egrep program found" >&5
3225 echo "$as_me: error: No egrep program found" >&2;}
3226 { (exit 1); exit 1; }; }
3228 # Find a good install program. We prefer a C program (faster),
3229 # so one script is as good as another. But avoid the broken or
3230 # incompatible versions:
3231 # SysV /etc/install, /usr/sbin/install
3232 # SunOS /usr/etc/install
3233 # IRIX /sbin/install
3235 # AmigaOS /C/install, which installs bootblocks on floppy discs
3236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239 # ./install, which can be erroneously created by make from ./install.sh.
3240 echo "$as_me:3240: checking for a BSD compatible install" >&5
3241 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3242 if test -z "$INSTALL"; then
3243 if test "${ac_cv_path_install+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 ac_save_IFS=$IFS; IFS=$ac_path_separator
3247 for ac_dir in $PATH; do
3249 # Account for people who put trailing slashes in PATH elements.
3251 / | ./ | .// | /cC/* \
3252 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3255 # OSF1 and SCO ODT 3.0 have their own names for install.
3256 # Don't use installbsd from OSF since it installs stuff as root
3258 for ac_prog in ginstall scoinst install; do
3259 if $as_executable_p "$ac_dir/$ac_prog"; then
3260 if test $ac_prog = install &&
3261 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3262 # AIX install. It has an incompatible calling convention.
3264 elif test $ac_prog = install &&
3265 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3266 # program-specific install script used by HP pwplus--don't use.
3269 ac_cv_path_install="$ac_dir/$ac_prog -c"
3279 if test "${ac_cv_path_install+set}" = set; then
3280 INSTALL=$ac_cv_path_install
3282 # As a last resort, use the slow shell script. We don't cache a
3283 # path for INSTALL within a source directory, because that will
3284 # break other packages using the cache if that directory is
3285 # removed, or if the path is relative.
3286 INSTALL=$ac_install_sh
3289 echo "$as_me:3289: result: $INSTALL" >&5
3290 echo "${ECHO_T}$INSTALL" >&6
3292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3293 # It thinks the first close brace ends the variable substitution.
3294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3304 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3305 test -z "$cf_dir" && cf_dir=.
3306 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3310 for ac_prog in tdlint lint alint splint lclint
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_LINT+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$LINT"; then
3320 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_LINT="$ac_prog"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3335 LINT=$ac_cv_prog_LINT
3336 if test -n "$LINT"; then
3337 echo "$as_me:3337: result: $LINT" >&5
3338 echo "${ECHO_T}$LINT" >&6
3340 echo "$as_me:3340: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 test -n "$LINT" && break
3347 echo "$as_me:3347: checking whether ln -s works" >&5
3348 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3350 if test "$LN_S" = "ln -s"; then
3351 echo "$as_me:3351: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3354 echo "$as_me:3354: result: no, using $LN_S" >&5
3355 echo "${ECHO_T}no, using $LN_S" >&6
3358 echo "$as_me:3358: checking if $LN_S -f options work" >&5
3359 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3361 rm -f conf$$.src conf$$dst
3363 echo first >conf$$.src
3364 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3369 rm -f conf$$.dst conf$$src
3370 echo "$as_me:3370: result: $cf_prog_ln_sf" >&5
3371 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3373 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3375 echo "$as_me:3375: checking for long file names" >&5
3376 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3377 if test "${ac_cv_sys_long_file_names+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 ac_cv_sys_long_file_names=yes
3381 # Test for long file names in all the places we know might matter:
3382 # . the current directory, where building will happen
3383 # $prefix/lib where we will be installing things
3384 # $exec_prefix/lib likewise
3385 # eval it to expand exec_prefix.
3386 # $TMPDIR if set, where it might want to write temporary files
3387 # if $TMPDIR is not set:
3388 # /tmp where it might want to write temporary files
3391 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3394 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3396 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3397 test -d $ac_dir || continue
3398 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3399 ac_xdir=$ac_dir/cf$$
3400 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3401 ac_tf1=$ac_xdir/conftest9012345
3402 ac_tf2=$ac_xdir/conftest9012346
3403 (echo 1 >$ac_tf1) 2>/dev/null
3404 (echo 2 >$ac_tf2) 2>/dev/null
3405 ac_val=`cat $ac_tf1 2>/dev/null`
3406 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3407 ac_cv_sys_long_file_names=no
3408 rm -rf $ac_xdir 2>/dev/null
3411 rm -rf $ac_xdir 2>/dev/null
3414 echo "$as_me:3414: result: $ac_cv_sys_long_file_names" >&5
3415 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3416 if test $ac_cv_sys_long_file_names = yes; then
3418 cat >>confdefs.h <<\EOF
3419 #define HAVE_LONG_FILE_NAMES 1
3424 # if we find pkg-config, check if we should install the ".pc" files.
3426 echo "$as_me:3426: checking if you want to use pkg-config" >&5
3427 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3429 # Check whether --with-pkg-config or --without-pkg-config was given.
3430 if test "${with_pkg_config+set}" = set; then
3431 withval="$with_pkg_config"
3432 cf_pkg_config=$withval
3436 echo "$as_me:3436: result: $cf_pkg_config" >&5
3437 echo "${ECHO_T}$cf_pkg_config" >&6
3439 case $cf_pkg_config in
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3448 echo "$as_me:3448: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3458 ac_save_IFS=$IFS; IFS=$ac_path_separator
3460 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if $as_executable_p "$ac_dir/$ac_word"; then
3464 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3465 echo "$as_me:3465: found $ac_dir/$ac_word" >&5
3473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3475 if test -n "$PKG_CONFIG"; then
3476 echo "$as_me:3476: result: $PKG_CONFIG" >&5
3477 echo "${ECHO_T}$PKG_CONFIG" >&6
3479 echo "$as_me:3479: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$ac_cv_path_PKG_CONFIG"; then
3485 ac_pt_PKG_CONFIG=$PKG_CONFIG
3486 # Extract the first word of "pkg-config", so it can be a program name with args.
3487 set dummy pkg-config; ac_word=$2
3488 echo "$as_me:3488: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 case $ac_pt_PKG_CONFIG in
3495 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3498 ac_save_IFS=$IFS; IFS=$ac_path_separator
3500 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if $as_executable_p "$ac_dir/$ac_word"; then
3504 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3505 echo "$as_me:3505: found $ac_dir/$ac_word" >&5
3510 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3516 if test -n "$ac_pt_PKG_CONFIG"; then
3517 echo "$as_me:3517: result: $ac_pt_PKG_CONFIG" >&5
3518 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3520 echo "$as_me:3520: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 PKG_CONFIG=$ac_pt_PKG_CONFIG
3526 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3535 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3536 if test "$PKG_CONFIG" != none ; then
3538 if test "x$prefix" != xNONE; then
3539 cf_path_syntax="$prefix"
3541 cf_path_syntax="$ac_default_prefix"
3544 case ".$PKG_CONFIG" in
3549 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3551 (.\${*prefix}*|.\${*dir}*)
3552 eval PKG_CONFIG="$PKG_CONFIG"
3553 case ".$PKG_CONFIG" in
3555 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3560 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3563 { { echo "$as_me:3563: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3564 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3565 { (exit 1); exit 1; }; }
3569 elif test "x$cf_pkg_config" != xno ; then
3570 { echo "$as_me:3570: WARNING: pkg-config is not installed" >&5
3571 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3576 echo "$as_me:3576: checking for pkg-config library directory" >&5
3577 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3580 echo "$as_me:3580: checking for $PKG_CONFIG library directory" >&5
3581 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3585 PKG_CONFIG_LIBDIR=no
3587 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3588 if test "${with_pkg_config_libdir+set}" = set; then
3589 withval="$with_pkg_config_libdir"
3590 PKG_CONFIG_LIBDIR=$withval
3592 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3595 case x$PKG_CONFIG_LIBDIR in
3599 # Look for the library directory using the same prefix as the executable
3600 if test "x$PKG_CONFIG" = xnone
3604 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3607 # If you don't like using the default architecture, you have to specify the
3608 # intended library directory and corresponding compiler/linker options.
3610 # This case allows for Debian's 2014-flavor of multiarch, along with the
3611 # most common variations before that point. Some other variants spell the
3612 # directory differently, e.g., "pkg-config", and put it in unusual places.
3613 # pkg-config has always been poorly standardized, which is ironic...
3614 case x`(arch) 2>/dev/null` in
3617 $cf_path/lib/*64-linux-gnu \
3625 $cf_path/lib/*-linux-gnu \
3633 test -n "$verbose" && echo " list..." 1>&6
3635 echo "${as_me:-configure}:3635: testing list... ..." 1>&5
3637 for cf_config in $cf_search_path
3639 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3641 echo "${as_me:-configure}:3641: testing checking $cf_config/pkgconfig ..." 1>&5
3643 if test -d $cf_config/pkgconfig
3645 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3646 echo "$as_me:3646: checking done" >&5
3647 echo $ECHO_N "checking done... $ECHO_C" >&6
3656 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3657 echo "$as_me:3657: result: $PKG_CONFIG_LIBDIR" >&5
3658 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3661 if test "x$PKG_CONFIG" != xnone
3663 echo "$as_me:3663: checking if we should install .pc files for $PKG_CONFIG" >&5
3664 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3666 echo "$as_me:3666: checking if we should install .pc files" >&5
3667 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3670 # Check whether --enable-pc-files or --disable-pc-files was given.
3671 if test "${enable_pc_files+set}" = set; then
3672 enableval="$enable_pc_files"
3673 enable_pc_files=$enableval
3677 echo "$as_me:3677: result: $enable_pc_files" >&5
3678 echo "${ECHO_T}$enable_pc_files" >&6
3680 if test "x$enable_pc_files" != xno
3683 case "x$PKG_CONFIG_LIBDIR" in
3685 { echo "$as_me:3685: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3686 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3690 if test "x$prefix" != xNONE; then
3691 cf_path_syntax="$prefix"
3693 cf_path_syntax="$ac_default_prefix"
3696 case ".$PKG_CONFIG_LIBDIR" in
3701 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3703 (.\${*prefix}*|.\${*dir}*)
3704 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3705 case ".$PKG_CONFIG_LIBDIR" in
3707 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3712 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3715 { { echo "$as_me:3715: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3716 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3717 { (exit 1); exit 1; }; }
3727 if test -z "$MAKE_PC_FILES"
3729 echo "$as_me:3729: checking for suffix to add to pc-files" >&5
3730 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3732 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3733 if test "${with_pc_suffix+set}" = set; then
3734 withval="$with_pc_suffix"
3739 (*) PC_MODULE_SUFFIX="$withval"
3743 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3744 echo "$as_me:3744: result: $PC_MODULE_SUFFIX" >&5
3745 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3746 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3750 echo "$as_me:3750: checking if we should assume mixed-case filenames" >&5
3751 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3753 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3754 if test "${enable_mixed_case+set}" = set; then
3755 enableval="$enable_mixed_case"
3756 enable_mixedcase=$enableval
3758 enable_mixedcase=auto
3760 echo "$as_me:3760: result: $enable_mixedcase" >&5
3761 echo "${ECHO_T}$enable_mixedcase" >&6
3762 if test "$enable_mixedcase" = "auto" ; then
3764 echo "$as_me:3764: checking if filesystem supports mixed-case filenames" >&5
3765 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3766 if test "${cf_cv_mixedcase+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 if test "$cross_compiling" = yes ; then
3771 case $target_alias in
3772 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3780 rm -f conftest CONFTEST
3782 if test -f CONFTEST ; then
3787 rm -f conftest CONFTEST
3791 echo "$as_me:3791: result: $cf_cv_mixedcase" >&5
3792 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3793 test "$cf_cv_mixedcase" = yes &&
3794 cat >>confdefs.h <<\EOF
3795 #define MIXEDCASE_FILENAMES 1
3799 cf_cv_mixedcase=$enable_mixedcase
3800 if test "x$enable_mixedcase" = "xyes" ; then
3802 cat >>confdefs.h <<\EOF
3803 #define MIXEDCASE_FILENAMES 1
3809 # do this after mixed-case option (tags/TAGS is not as important as tic).
3810 echo "$as_me:3810: checking whether ${MAKE-make} sets \${MAKE}" >&5
3811 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3812 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3813 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 cat >conftest.make <<\EOF
3818 @echo 'ac_maketemp="${MAKE}"'
3820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3821 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3822 if test -n "$ac_maketemp"; then
3823 eval ac_cv_prog_make_${ac_make}_set=yes
3825 eval ac_cv_prog_make_${ac_make}_set=no
3829 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3830 echo "$as_me:3830: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3834 echo "$as_me:3834: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 SET_MAKE="MAKE=${MAKE-make}"
3839 for ac_prog in exctags ctags
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 echo "$as_me:3843: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_CTAGS+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$CTAGS"; then
3849 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3851 ac_save_IFS=$IFS; IFS=$ac_path_separator
3853 for ac_dir in $ac_dummy; do
3855 test -z "$ac_dir" && ac_dir=.
3856 $as_executable_p "$ac_dir/$ac_word" || continue
3857 ac_cv_prog_CTAGS="$ac_prog"
3858 echo "$as_me:3858: found $ac_dir/$ac_word" >&5
3864 CTAGS=$ac_cv_prog_CTAGS
3865 if test -n "$CTAGS"; then
3866 echo "$as_me:3866: result: $CTAGS" >&5
3867 echo "${ECHO_T}$CTAGS" >&6
3869 echo "$as_me:3869: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 test -n "$CTAGS" && break
3876 for ac_prog in exetags etags
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:3880: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_ETAGS+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 if test -n "$ETAGS"; then
3886 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3888 ac_save_IFS=$IFS; IFS=$ac_path_separator
3890 for ac_dir in $ac_dummy; do
3892 test -z "$ac_dir" && ac_dir=.
3893 $as_executable_p "$ac_dir/$ac_word" || continue
3894 ac_cv_prog_ETAGS="$ac_prog"
3895 echo "$as_me:3895: found $ac_dir/$ac_word" >&5
3901 ETAGS=$ac_cv_prog_ETAGS
3902 if test -n "$ETAGS"; then
3903 echo "$as_me:3903: result: $ETAGS" >&5
3904 echo "${ECHO_T}$ETAGS" >&6
3906 echo "$as_me:3906: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3910 test -n "$ETAGS" && break
3913 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3914 set dummy ${CTAGS:-ctags}; ac_word=$2
3915 echo "$as_me:3915: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -n "$MAKE_LOWER_TAGS"; then
3921 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3923 ac_save_IFS=$IFS; IFS=$ac_path_separator
3925 for ac_dir in $ac_dummy; do
3927 test -z "$ac_dir" && ac_dir=.
3928 $as_executable_p "$ac_dir/$ac_word" || continue
3929 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3930 echo "$as_me:3930: found $ac_dir/$ac_word" >&5
3934 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3937 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3938 if test -n "$MAKE_LOWER_TAGS"; then
3939 echo "$as_me:3939: result: $MAKE_LOWER_TAGS" >&5
3940 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3942 echo "$as_me:3942: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3946 if test "$cf_cv_mixedcase" = yes ; then
3947 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3948 set dummy ${ETAGS:-etags}; ac_word=$2
3949 echo "$as_me:3949: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 if test -n "$MAKE_UPPER_TAGS"; then
3955 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3957 ac_save_IFS=$IFS; IFS=$ac_path_separator
3959 for ac_dir in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir=.
3962 $as_executable_p "$ac_dir/$ac_word" || continue
3963 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3964 echo "$as_me:3964: found $ac_dir/$ac_word" >&5
3968 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3971 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3972 if test -n "$MAKE_UPPER_TAGS"; then
3973 echo "$as_me:3973: result: $MAKE_UPPER_TAGS" >&5
3974 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3976 echo "$as_me:3976: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3984 if test "$MAKE_UPPER_TAGS" = yes ; then
3990 if test "$MAKE_LOWER_TAGS" = yes ; then
3996 echo "$as_me:3996: checking for makeflags variable" >&5
3997 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3998 if test "${cf_cv_makeflags+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4005 cat >cf_makeflags.tmp <<CF_EOF
4008 @ echo '.$cf_option'
4010 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4011 case "$cf_result" in
4013 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4014 case "$cf_result" in
4015 (.*CC=*) cf_cv_makeflags=
4017 (*) cf_cv_makeflags=$cf_option
4023 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4027 rm -f cf_makeflags.tmp
4030 echo "$as_me:4030: result: $cf_cv_makeflags" >&5
4031 echo "${ECHO_T}$cf_cv_makeflags" >&6
4033 if test -n "$ac_tool_prefix"; then
4034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4036 echo "$as_me:4036: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_RANLIB+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -n "$RANLIB"; then
4042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4044 ac_save_IFS=$IFS; IFS=$ac_path_separator
4046 for ac_dir in $ac_dummy; do
4048 test -z "$ac_dir" && ac_dir=.
4049 $as_executable_p "$ac_dir/$ac_word" || continue
4050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4051 echo "$as_me:4051: found $ac_dir/$ac_word" >&5
4057 RANLIB=$ac_cv_prog_RANLIB
4058 if test -n "$RANLIB"; then
4059 echo "$as_me:4059: result: $RANLIB" >&5
4060 echo "${ECHO_T}$RANLIB" >&6
4062 echo "$as_me:4062: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4067 if test -z "$ac_cv_prog_RANLIB"; then
4068 ac_ct_RANLIB=$RANLIB
4069 # Extract the first word of "ranlib", so it can be a program name with args.
4070 set dummy ranlib; ac_word=$2
4071 echo "$as_me:4071: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$ac_ct_RANLIB"; then
4077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4079 ac_save_IFS=$IFS; IFS=$ac_path_separator
4081 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 $as_executable_p "$ac_dir/$ac_word" || continue
4085 ac_cv_prog_ac_ct_RANLIB="ranlib"
4086 echo "$as_me:4086: found $ac_dir/$ac_word" >&5
4090 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4094 if test -n "$ac_ct_RANLIB"; then
4095 echo "$as_me:4095: result: $ac_ct_RANLIB" >&5
4096 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4098 echo "$as_me:4098: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4102 RANLIB=$ac_ct_RANLIB
4104 RANLIB="$ac_cv_prog_RANLIB"
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}ld; ac_word=$2
4110 echo "$as_me:4110: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_LD+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$LD"; then
4116 ac_cv_prog_LD="$LD" # Let the user override the test.
4118 ac_save_IFS=$IFS; IFS=$ac_path_separator
4120 for ac_dir in $ac_dummy; do
4122 test -z "$ac_dir" && ac_dir=.
4123 $as_executable_p "$ac_dir/$ac_word" || continue
4124 ac_cv_prog_LD="${ac_tool_prefix}ld"
4125 echo "$as_me:4125: found $ac_dir/$ac_word" >&5
4132 if test -n "$LD"; then
4133 echo "$as_me:4133: result: $LD" >&5
4134 echo "${ECHO_T}$LD" >&6
4136 echo "$as_me:4136: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4141 if test -z "$ac_cv_prog_LD"; then
4143 # Extract the first word of "ld", so it can be a program name with args.
4144 set dummy ld; ac_word=$2
4145 echo "$as_me:4145: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if test -n "$ac_ct_LD"; then
4151 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4153 ac_save_IFS=$IFS; IFS=$ac_path_separator
4155 for ac_dir in $ac_dummy; do
4157 test -z "$ac_dir" && ac_dir=.
4158 $as_executable_p "$ac_dir/$ac_word" || continue
4159 ac_cv_prog_ac_ct_LD="ld"
4160 echo "$as_me:4160: found $ac_dir/$ac_word" >&5
4164 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4167 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4168 if test -n "$ac_ct_LD"; then
4169 echo "$as_me:4169: result: $ac_ct_LD" >&5
4170 echo "${ECHO_T}$ac_ct_LD" >&6
4172 echo "$as_me:4172: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}ar; ac_word=$2
4184 echo "$as_me:4184: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_prog_AR+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 if test -n "$AR"; then
4190 ac_cv_prog_AR="$AR" # Let the user override the test.
4192 ac_save_IFS=$IFS; IFS=$ac_path_separator
4194 for ac_dir in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir=.
4197 $as_executable_p "$ac_dir/$ac_word" || continue
4198 ac_cv_prog_AR="${ac_tool_prefix}ar"
4199 echo "$as_me:4199: found $ac_dir/$ac_word" >&5
4206 if test -n "$AR"; then
4207 echo "$as_me:4207: result: $AR" >&5
4208 echo "${ECHO_T}$AR" >&6
4210 echo "$as_me:4210: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4215 if test -z "$ac_cv_prog_AR"; then
4217 # Extract the first word of "ar", so it can be a program name with args.
4218 set dummy ar; ac_word=$2
4219 echo "$as_me:4219: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$ac_ct_AR"; then
4225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4227 ac_save_IFS=$IFS; IFS=$ac_path_separator
4229 for ac_dir in $ac_dummy; do
4231 test -z "$ac_dir" && ac_dir=.
4232 $as_executable_p "$ac_dir/$ac_word" || continue
4233 ac_cv_prog_ac_ct_AR="ar"
4234 echo "$as_me:4234: found $ac_dir/$ac_word" >&5
4238 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4242 if test -n "$ac_ct_AR"; then
4243 echo "$as_me:4243: result: $ac_ct_AR" >&5
4244 echo "${ECHO_T}$ac_ct_AR" >&6
4246 echo "$as_me:4246: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}nm; ac_word=$2
4258 echo "$as_me:4258: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_NM+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$NM"; then
4264 ac_cv_prog_NM="$NM" # Let the user override the test.
4266 ac_save_IFS=$IFS; IFS=$ac_path_separator
4268 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 $as_executable_p "$ac_dir/$ac_word" || continue
4272 ac_cv_prog_NM="${ac_tool_prefix}nm"
4273 echo "$as_me:4273: found $ac_dir/$ac_word" >&5
4280 if test -n "$NM"; then
4281 echo "$as_me:4281: result: $NM" >&5
4282 echo "${ECHO_T}$NM" >&6
4284 echo "$as_me:4284: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4289 if test -z "$ac_cv_prog_NM"; then
4291 # Extract the first word of "nm", so it can be a program name with args.
4292 set dummy nm; ac_word=$2
4293 echo "$as_me:4293: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test -n "$ac_ct_NM"; then
4299 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4301 ac_save_IFS=$IFS; IFS=$ac_path_separator
4303 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 $as_executable_p "$ac_dir/$ac_word" || continue
4307 ac_cv_prog_ac_ct_NM="nm"
4308 echo "$as_me:4308: found $ac_dir/$ac_word" >&5
4312 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4315 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4316 if test -n "$ac_ct_NM"; then
4317 echo "$as_me:4317: result: $ac_ct_NM" >&5
4318 echo "${ECHO_T}$ac_ct_NM" >&6
4320 echo "$as_me:4320: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4329 if test -n "$ac_tool_prefix"; then
4330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4331 set dummy ${ac_tool_prefix}ar; ac_word=$2
4332 echo "$as_me:4332: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_AR+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 if test -n "$AR"; then
4338 ac_cv_prog_AR="$AR" # Let the user override the test.
4340 ac_save_IFS=$IFS; IFS=$ac_path_separator
4342 for ac_dir in $ac_dummy; do
4344 test -z "$ac_dir" && ac_dir=.
4345 $as_executable_p "$ac_dir/$ac_word" || continue
4346 ac_cv_prog_AR="${ac_tool_prefix}ar"
4347 echo "$as_me:4347: found $ac_dir/$ac_word" >&5
4354 if test -n "$AR"; then
4355 echo "$as_me:4355: result: $AR" >&5
4356 echo "${ECHO_T}$AR" >&6
4358 echo "$as_me:4358: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4363 if test -z "$ac_cv_prog_AR"; then
4365 # Extract the first word of "ar", so it can be a program name with args.
4366 set dummy ar; ac_word=$2
4367 echo "$as_me:4367: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test -n "$ac_ct_AR"; then
4373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4375 ac_save_IFS=$IFS; IFS=$ac_path_separator
4377 for ac_dir in $ac_dummy; do
4379 test -z "$ac_dir" && ac_dir=.
4380 $as_executable_p "$ac_dir/$ac_word" || continue
4381 ac_cv_prog_ac_ct_AR="ar"
4382 echo "$as_me:4382: found $ac_dir/$ac_word" >&5
4386 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4390 if test -n "$ac_ct_AR"; then
4391 echo "$as_me:4391: result: $ac_ct_AR" >&5
4392 echo "${ECHO_T}$ac_ct_AR" >&6
4394 echo "$as_me:4394: result: no" >&5
4395 echo "${ECHO_T}no" >&6
4403 echo "$as_me:4403: checking for options to update archives" >&5
4404 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4405 if test "${cf_cv_ar_flags+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 cf_cv_ar_flags=unknown
4410 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4413 # check if $ARFLAGS already contains this choice
4414 if test "x$ARFLAGS" != "x" ; then
4415 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4416 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4422 rm -f conftest.$ac_cv_objext
4425 cat >conftest.$ac_ext <<EOF
4426 #line 4426 "configure"
4427 int testdata[3] = { 123, 456, 789 };
4429 if { (eval echo "$as_me:4429: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); } ; then
4434 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4435 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4436 if test -f conftest.a ; then
4437 cf_cv_ar_flags=$cf_ar_flags
4441 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4443 echo "${as_me:-configure}:4443: testing cannot compile test-program ..." 1>&5
4448 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4451 echo "$as_me:4451: result: $cf_cv_ar_flags" >&5
4452 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4454 if test -n "$ARFLAGS" ; then
4455 if test -n "$cf_cv_ar_flags" ; then
4456 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4459 ARFLAGS=$cf_cv_ar_flags
4462 echo "$as_me:4462: checking if you have specified an install-prefix" >&5
4463 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4465 # Check whether --with-install-prefix or --without-install-prefix was given.
4466 if test "${with_install_prefix+set}" = set; then
4467 withval="$with_install_prefix"
4471 (*) DESTDIR="$withval"
4475 echo "$as_me:4475: result: $DESTDIR" >&5
4476 echo "${ECHO_T}$DESTDIR" >&6
4478 ###############################################################################
4480 # If we're cross-compiling, allow the user to override the tools and their
4481 # options. The configure script is oriented toward identifying the host
4482 # compiler, etc., but we need a build compiler to generate parts of the source.
4484 if test "$cross_compiling" = yes ; then
4486 # defaults that we might want to override
4487 : ${BUILD_CFLAGS:=''}
4488 : ${BUILD_CPPFLAGS:=''}
4489 : ${BUILD_LDFLAGS:=''}
4491 : ${BUILD_EXEEXT:='$x'}
4492 : ${BUILD_OBJEXT:='o'}
4494 # Check whether --with-build-cc or --without-build-cc was given.
4495 if test "${with_build_cc+set}" = set; then
4496 withval="$with_build_cc"
4499 for ac_prog in gcc cc cl
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 echo "$as_me:4503: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$BUILD_CC"; then
4509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4511 ac_save_IFS=$IFS; IFS=$ac_path_separator
4513 for ac_dir in $ac_dummy; do
4515 test -z "$ac_dir" && ac_dir=.
4516 $as_executable_p "$ac_dir/$ac_word" || continue
4517 ac_cv_prog_BUILD_CC="$ac_prog"
4518 echo "$as_me:4518: found $ac_dir/$ac_word" >&5
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526 echo "$as_me:4526: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6
4529 echo "$as_me:4529: result: no" >&5
4530 echo "${ECHO_T}no" >&6
4533 test -n "$BUILD_CC" && break
4537 echo "$as_me:4537: checking for native build C compiler" >&5
4538 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4539 echo "$as_me:4539: result: $BUILD_CC" >&5
4540 echo "${ECHO_T}$BUILD_CC" >&6
4542 echo "$as_me:4542: checking for native build C preprocessor" >&5
4543 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4545 # Check whether --with-build-cpp or --without-build-cpp was given.
4546 if test "${with_build_cpp+set}" = set; then
4547 withval="$with_build_cpp"
4548 BUILD_CPP="$withval"
4550 BUILD_CPP='${BUILD_CC} -E'
4552 echo "$as_me:4552: result: $BUILD_CPP" >&5
4553 echo "${ECHO_T}$BUILD_CPP" >&6
4555 echo "$as_me:4555: checking for native build C flags" >&5
4556 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4558 # Check whether --with-build-cflags or --without-build-cflags was given.
4559 if test "${with_build_cflags+set}" = set; then
4560 withval="$with_build_cflags"
4561 BUILD_CFLAGS="$withval"
4563 echo "$as_me:4563: result: $BUILD_CFLAGS" >&5
4564 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4566 echo "$as_me:4566: checking for native build C preprocessor-flags" >&5
4567 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4569 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4570 if test "${with_build_cppflags+set}" = set; then
4571 withval="$with_build_cppflags"
4572 BUILD_CPPFLAGS="$withval"
4574 echo "$as_me:4574: result: $BUILD_CPPFLAGS" >&5
4575 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4577 echo "$as_me:4577: checking for native build linker-flags" >&5
4578 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4580 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4581 if test "${with_build_ldflags+set}" = set; then
4582 withval="$with_build_ldflags"
4583 BUILD_LDFLAGS="$withval"
4585 echo "$as_me:4585: result: $BUILD_LDFLAGS" >&5
4586 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4588 echo "$as_me:4588: checking for native build linker-libraries" >&5
4589 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4591 # Check whether --with-build-libs or --without-build-libs was given.
4592 if test "${with_build_libs+set}" = set; then
4593 withval="$with_build_libs"
4594 BUILD_LIBS="$withval"
4596 echo "$as_me:4596: result: $BUILD_LIBS" >&5
4597 echo "${ECHO_T}$BUILD_LIBS" >&6
4599 # this assumes we're on Unix.
4603 : ${BUILD_CC:='${CC}'}
4605 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4606 { { echo "$as_me:4606: error: Cross-build requires two compilers.
4607 Use --with-build-cc to specify the native compiler." >&5
4608 echo "$as_me: error: Cross-build requires two compilers.
4609 Use --with-build-cc to specify the native compiler." >&2;}
4610 { (exit 1); exit 1; }; }
4614 : ${BUILD_CC:='${CC}'}
4615 : ${BUILD_CPP:='${CPP}'}
4616 : ${BUILD_CFLAGS:='${CFLAGS}'}
4617 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4618 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4619 : ${BUILD_LIBS:='${LIBS}'}
4620 : ${BUILD_EXEEXT:='$x'}
4621 : ${BUILD_OBJEXT:='o'}
4624 ###############################################################################
4626 ### Options to allow the user to specify the set of libraries which are used.
4627 ### Use "--without-normal --with-shared" to allow the default model to be
4628 ### shared, for example.
4631 echo "$as_me:4631: checking if libtool -version-number should be used" >&5
4632 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4634 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4635 if test "${enable_libtool_version+set}" = set; then
4636 enableval="$enable_libtool_version"
4637 test "$enableval" != no && enableval=yes
4638 if test "$enableval" != "yes" ; then
4639 cf_libtool_version=no
4641 cf_libtool_version=yes
4645 cf_libtool_version=yes
4648 echo "$as_me:4648: result: $cf_libtool_version" >&5
4649 echo "${ECHO_T}$cf_libtool_version" >&6
4651 if test "$cf_libtool_version" = yes ; then
4652 LIBTOOL_VERSION="-version-number"
4654 LIBTOOL_VERSION="-version-info"
4657 { echo "$as_me:4657: WARNING: VERSION was not set" >&5
4658 echo "$as_me: WARNING: VERSION was not set" >&2;}
4661 ABI_VERSION="$VERSION"
4662 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4664 echo "${as_me:-configure}:4664: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4668 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4669 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4671 echo "${as_me:-configure}:4671: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4675 { echo "$as_me:4675: WARNING: unexpected VERSION value: $VERSION" >&5
4676 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4683 # common library maintenance symbols that are convenient for libtool scripts:
4684 LIB_CREATE='${AR} -cr'
4685 LIB_OBJECT='${OBJECTS}'
4689 # symbols used to prop libtool up to enable it to determine what it should be
4697 echo "$as_me:4697: checking if you want to build libraries with libtool" >&5
4698 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4700 # Check whether --with-libtool or --without-libtool was given.
4701 if test "${with_libtool+set}" = set; then
4702 withval="$with_libtool"
4703 with_libtool=$withval
4707 echo "$as_me:4707: result: $with_libtool" >&5
4708 echo "${ECHO_T}$with_libtool" >&6
4709 if test "$with_libtool" != "no"; then
4711 if test "$with_libtool" != "yes" ; then
4713 if test "x$prefix" != xNONE; then
4714 cf_path_syntax="$prefix"
4716 cf_path_syntax="$ac_default_prefix"
4719 case ".$with_libtool" in
4724 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4726 (.\${*prefix}*|.\${*dir}*)
4727 eval with_libtool="$with_libtool"
4728 case ".$with_libtool" in
4730 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4735 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4738 { { echo "$as_me:4738: error: expected a pathname, not \"$with_libtool\"" >&5
4739 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4740 { (exit 1); exit 1; }; }
4744 LIBTOOL=$with_libtool
4746 if test -n "$ac_tool_prefix"; then
4747 for ac_prog in libtool glibtool
4749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4751 echo "$as_me:4751: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4753 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 if test -n "$LIBTOOL"; then
4757 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4759 ac_save_IFS=$IFS; IFS=$ac_path_separator
4761 for ac_dir in $ac_dummy; do
4763 test -z "$ac_dir" && ac_dir=.
4764 $as_executable_p "$ac_dir/$ac_word" || continue
4765 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4766 echo "$as_me:4766: found $ac_dir/$ac_word" >&5
4772 LIBTOOL=$ac_cv_prog_LIBTOOL
4773 if test -n "$LIBTOOL"; then
4774 echo "$as_me:4774: result: $LIBTOOL" >&5
4775 echo "${ECHO_T}$LIBTOOL" >&6
4777 echo "$as_me:4777: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4781 test -n "$LIBTOOL" && break
4784 if test -z "$LIBTOOL"; then
4785 ac_ct_LIBTOOL=$LIBTOOL
4786 for ac_prog in libtool glibtool
4788 # Extract the first word of "$ac_prog", so it can be a program name with args.
4789 set dummy $ac_prog; ac_word=$2
4790 echo "$as_me:4790: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -n "$ac_ct_LIBTOOL"; then
4796 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4798 ac_save_IFS=$IFS; IFS=$ac_path_separator
4800 for ac_dir in $ac_dummy; do
4802 test -z "$ac_dir" && ac_dir=.
4803 $as_executable_p "$ac_dir/$ac_word" || continue
4804 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4805 echo "$as_me:4805: found $ac_dir/$ac_word" >&5
4811 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4812 if test -n "$ac_ct_LIBTOOL"; then
4813 echo "$as_me:4813: result: $ac_ct_LIBTOOL" >&5
4814 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4816 echo "$as_me:4816: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 test -n "$ac_ct_LIBTOOL" && break
4822 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4824 LIBTOOL=$ac_ct_LIBTOOL
4827 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4829 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4831 cf_cv_libtool_version=
4833 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4835 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4838 unset ac_cv_prog_ac_ct_LIBTOOL
4842 if test -n "$ac_tool_prefix"; then
4843 for ac_prog in glibtool
4845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4847 echo "$as_me:4847: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 if test -n "$LIBTOOL"; then
4853 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4855 ac_save_IFS=$IFS; IFS=$ac_path_separator
4857 for ac_dir in $ac_dummy; do
4859 test -z "$ac_dir" && ac_dir=.
4860 $as_executable_p "$ac_dir/$ac_word" || continue
4861 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4862 echo "$as_me:4862: found $ac_dir/$ac_word" >&5
4868 LIBTOOL=$ac_cv_prog_LIBTOOL
4869 if test -n "$LIBTOOL"; then
4870 echo "$as_me:4870: result: $LIBTOOL" >&5
4871 echo "${ECHO_T}$LIBTOOL" >&6
4873 echo "$as_me:4873: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4877 test -n "$LIBTOOL" && break
4880 if test -z "$LIBTOOL"; then
4881 ac_ct_LIBTOOL=$LIBTOOL
4882 for ac_prog in glibtool
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 echo "$as_me:4886: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test -n "$ac_ct_LIBTOOL"; then
4892 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4894 ac_save_IFS=$IFS; IFS=$ac_path_separator
4896 for ac_dir in $ac_dummy; do
4898 test -z "$ac_dir" && ac_dir=.
4899 $as_executable_p "$ac_dir/$ac_word" || continue
4900 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4901 echo "$as_me:4901: found $ac_dir/$ac_word" >&5
4907 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4908 if test -n "$ac_ct_LIBTOOL"; then
4909 echo "$as_me:4909: result: $ac_ct_LIBTOOL" >&5
4910 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4912 echo "$as_me:4912: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4916 test -n "$ac_ct_LIBTOOL" && break
4918 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4920 LIBTOOL=$ac_ct_LIBTOOL
4923 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4925 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4927 cf_cv_libtool_version=
4929 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4933 if test -z "$LIBTOOL" ; then
4934 { { echo "$as_me:4934: error: Cannot find libtool" >&5
4935 echo "$as_me: error: Cannot find libtool" >&2;}
4936 { (exit 1); exit 1; }; }
4938 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4939 LIB_OBJECT='${OBJECTS:.o=.lo}'
4941 LIB_CLEAN='${LIBTOOL} --mode=clean'
4942 LIB_COMPILE='${LIBTOOL} --mode=compile'
4943 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4944 LIB_INSTALL='${LIBTOOL} --mode=install'
4945 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4948 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4950 echo "$as_me:4950: checking version of $LIBTOOL" >&5
4951 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4953 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4955 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4957 cf_cv_libtool_version=
4959 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4961 echo "$as_me:4961: result: $cf_cv_libtool_version" >&5
4962 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4963 if test -z "$cf_cv_libtool_version" ; then
4964 { { echo "$as_me:4964: error: This is not GNU libtool" >&5
4965 echo "$as_me: error: This is not GNU libtool" >&2;}
4966 { (exit 1); exit 1; }; }
4969 { { echo "$as_me:4969: error: GNU libtool has not been found" >&5
4970 echo "$as_me: error: GNU libtool has not been found" >&2;}
4971 { (exit 1); exit 1; }; }
4974 # special hack to add -no-undefined (which libtool should do for itself)
4976 case "$cf_cv_system_name" in
4977 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
4978 LT_UNDEF=-no-undefined
4982 # special hack to add --tag option for C++ compiler
4983 case $cf_cv_libtool_version in
4984 (1.[5-9]*|[2-9].[0-9.a-z]*)
4985 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4986 LIBTOOL="$LIBTOOL --tag=CC"
4989 LIBTOOL_CXX="$LIBTOOL"
4997 test -z "$LIBTOOL" && ECHO_LT=
4999 if test "$with_libtool" != "no" ; then
5001 cf_list_models="$cf_list_models libtool"
5005 echo "$as_me:5005: checking if you want to build shared libraries" >&5
5006 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5008 # Check whether --with-shared or --without-shared was given.
5009 if test "${with_shared+set}" = set; then
5010 withval="$with_shared"
5011 with_shared=$withval
5015 echo "$as_me:5015: result: $with_shared" >&5
5016 echo "${ECHO_T}$with_shared" >&6
5017 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5019 echo "$as_me:5019: checking if you want to build static libraries" >&5
5020 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5022 # Check whether --with-normal or --without-normal was given.
5023 if test "${with_normal+set}" = set; then
5024 withval="$with_normal"
5025 with_normal=$withval
5029 echo "$as_me:5029: result: $with_normal" >&5
5030 echo "${ECHO_T}$with_normal" >&6
5031 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5033 echo "$as_me:5033: checking if you want to build debug libraries" >&5
5034 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5036 # Check whether --with-debug or --without-debug was given.
5037 if test "${with_debug+set}" = set; then
5038 withval="$with_debug"
5043 echo "$as_me:5043: result: $with_debug" >&5
5044 echo "${ECHO_T}$with_debug" >&6
5045 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5047 echo "$as_me:5047: checking if you want to build profiling libraries" >&5
5048 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5050 # Check whether --with-profile or --without-profile was given.
5051 if test "${with_profile+set}" = set; then
5052 withval="$with_profile"
5053 with_profile=$withval
5057 echo "$as_me:5057: result: $with_profile" >&5
5058 echo "${ECHO_T}$with_profile" >&6
5059 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5063 if test "X$cf_with_cxx_binding" != Xno; then
5064 if test "x$with_shared" = "xyes"; then
5065 echo "$as_me:5065: checking if you want to build C++ shared libraries" >&5
5066 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5068 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5069 if test "${with_cxx_shared+set}" = set; then
5070 withval="$with_cxx_shared"
5071 with_shared_cxx=$withval
5075 echo "$as_me:5075: result: $with_shared_cxx" >&5
5076 echo "${ECHO_T}$with_shared_cxx" >&6
5080 ###############################################################################
5082 echo "$as_me:5082: checking for specified models" >&5
5083 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5084 test -z "$cf_list_models" && cf_list_models=normal
5085 test "$with_libtool" != "no" && cf_list_models=libtool
5086 echo "$as_me:5086: result: $cf_list_models" >&5
5087 echo "${ECHO_T}$cf_list_models" >&6
5089 ### Use the first model as the default, and save its suffix for use in building
5090 ### up test-applications.
5091 echo "$as_me:5091: checking for default model" >&5
5092 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5093 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5094 echo "$as_me:5094: result: $DFT_LWR_MODEL" >&5
5095 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5097 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5108 echo "$as_me:5108: checking if you want to have a library-prefix" >&5
5109 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5111 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5112 if test "${with_lib_prefix+set}" = set; then
5113 withval="$with_lib_prefix"
5114 with_lib_prefix=$withval
5116 with_lib_prefix=auto
5118 echo "$as_me:5118: result: $with_lib_prefix" >&5
5119 echo "${ECHO_T}$with_lib_prefix" >&6
5121 if test $with_lib_prefix = auto
5124 case $cf_cv_system_name in
5126 if test "$DFT_LWR_MODEL" = libtool; then
5132 (*) LIB_PREFIX='lib'
5135 cf_prefix=$LIB_PREFIX
5137 elif test $with_lib_prefix = no
5141 LIB_PREFIX=$with_lib_prefix
5146 echo "$as_me:5146: checking for PATH separator" >&5
5147 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5148 case $cf_cv_system_name in
5149 (os2*) PATH_SEPARATOR=';' ;;
5150 (*) ${PATH_SEPARATOR:=':'} ;;
5153 echo "$as_me:5153: result: $PATH_SEPARATOR" >&5
5154 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5156 ###############################################################################
5158 echo "$as_me:5158: checking if you want to build a separate terminfo library" >&5
5159 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5161 # Check whether --with-termlib or --without-termlib was given.
5162 if test "${with_termlib+set}" = set; then
5163 withval="$with_termlib"
5164 with_termlib=$withval
5168 echo "$as_me:5168: result: $with_termlib" >&5
5169 echo "${ECHO_T}$with_termlib" >&6
5171 echo "$as_me:5171: checking if you want to build a separate tic library" >&5
5172 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5174 # Check whether --with-ticlib or --without-ticlib was given.
5175 if test "${with_ticlib+set}" = set; then
5176 withval="$with_ticlib"
5177 with_ticlib=$withval
5181 echo "$as_me:5181: result: $with_ticlib" >&5
5182 echo "${ECHO_T}$with_ticlib" >&6
5184 ### Checks for special libraries, must be done up-front.
5187 echo "$as_me:5187: checking if you want to link with the GPM mouse library" >&5
5188 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5190 # Check whether --with-gpm or --without-gpm was given.
5191 if test "${with_gpm+set}" = set; then
5197 echo "$as_me:5197: result: $with_gpm" >&5
5198 echo "${ECHO_T}$with_gpm" >&6
5200 if test "$with_gpm" != no ; then
5201 echo "$as_me:5201: checking for gpm.h" >&5
5202 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5203 if test "${ac_cv_header_gpm_h+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line 5207 "configure"
5208 #include "confdefs.h"
5211 if { (eval echo "$as_me:5211: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 egrep -v '^ *\+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:5217: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_c_preproc_warn_flag
5227 if test -z "$ac_cpp_err"; then
5228 ac_cv_header_gpm_h=yes
5230 echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_cv_header_gpm_h=no
5234 rm -f conftest.err conftest.$ac_ext
5236 echo "$as_me:5236: result: $ac_cv_header_gpm_h" >&5
5237 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5238 if test $ac_cv_header_gpm_h = yes; then
5240 cat >>confdefs.h <<\EOF
5241 #define HAVE_GPM_H 1
5244 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5245 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5247 echo "${as_me:-configure}:5247: testing assuming we really have GPM library ..." 1>&5
5249 cat >>confdefs.h <<\EOF
5250 #define HAVE_LIBGPM 1
5254 echo "$as_me:5254: checking for Gpm_Open in -lgpm" >&5
5255 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5256 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_check_lib_save_LIBS=$LIBS
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (eval echo "$as_me:5281: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:5284: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:5287: \"$ac_try\"") >&5
5290 echo "$as_me:5290: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_lib_gpm_Gpm_Open=yes
5294 echo "$as_me: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 ac_cv_lib_gpm_Gpm_Open=no
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5301 echo "$as_me:5301: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5302 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5303 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5307 { { echo "$as_me:5307: error: Cannot link with GPM library" >&5
5308 echo "$as_me: error: Cannot link with GPM library" >&2;}
5309 { (exit 1); exit 1; }; }
5317 test "$with_gpm" != maybe && { echo "$as_me:5317: WARNING: Cannot find GPM header" >&5
5318 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5325 if test "$with_gpm" != no ; then
5326 echo "$as_me:5326: checking if you want to load GPM dynamically" >&5
5327 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5329 # Check whether --with-dlsym or --without-dlsym was given.
5330 if test "${with_dlsym+set}" = set; then
5331 withval="$with_dlsym"
5336 echo "$as_me:5336: result: $with_dlsym" >&5
5337 echo "${ECHO_T}$with_dlsym" >&6
5338 if test "x$with_dlsym" = xyes ; then
5341 echo "$as_me:5341: checking for dlsym" >&5
5342 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5343 if test "${ac_cv_func_dlsym+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line 5347 "configure"
5348 #include "confdefs.h"
5349 /* System header to define __stub macros and hopefully few prototypes,
5350 which can conflict with char dlsym (); below. */
5352 /* Override any gcc2 internal prototype to avoid an error. */
5356 /* We use char because int might match the return type of a gcc2
5357 builtin and then its argument prototype would still apply. */
5364 /* The GNU C library defines this for functions which it implements
5365 to always fail with ENOSYS. Some functions are actually named
5366 something starting with __ and the normal name is an alias. */
5367 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5370 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:5378: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5381 echo "$as_me:5381: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest$ac_exeext'
5384 { (eval echo "$as_me:5384: \"$ac_try\"") >&5
5387 echo "$as_me:5387: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_func_dlsym=yes
5391 echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5397 echo "$as_me:5397: result: $ac_cv_func_dlsym" >&5
5398 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5399 if test $ac_cv_func_dlsym = yes; then
5404 echo "$as_me:5404: checking for dlsym in -ldl" >&5
5405 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5406 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_check_lib_save_LIBS=$LIBS
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line 5412 "configure"
5413 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:5431: \"$ac_link\"") >&5
5432 (eval $ac_link) 2>&5
5434 echo "$as_me:5434: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:5437: \"$ac_try\"") >&5
5440 echo "$as_me:5440: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_cv_lib_dl_dlsym=yes
5444 echo "$as_me: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 ac_cv_lib_dl_dlsym=no
5448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5449 LIBS=$ac_check_lib_save_LIBS
5451 echo "$as_me:5451: result: $ac_cv_lib_dl_dlsym" >&5
5452 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5453 if test $ac_cv_lib_dl_dlsym = yes; then
5461 if test "$cf_have_dlsym" = yes ; then
5462 test "$cf_have_libdl" = yes && {
5464 # Filter out duplicates - this happens with badly-designed ".pc" files...
5465 for cf_add_1lib in $LIBS
5467 for cf_add_2lib in $cf_add_libs
5469 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5475 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5480 echo "$as_me:5480: checking whether able to link to dl*() functions" >&5
5481 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line 5483 "configure"
5484 #include "confdefs.h"
5491 if ((obj = dlopen("filename", 0)) != 0) {
5492 if (dlsym(obj, "symbolname") == 0) {
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:5501: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest$ac_exeext'
5507 { (eval echo "$as_me:5507: \"$ac_try\"") >&5
5510 echo "$as_me:5510: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5513 cat >>confdefs.h <<\EOF
5514 #define HAVE_LIBDL 1
5518 echo "$as_me: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 { { echo "$as_me:5521: error: Cannot link test program for libdl" >&5
5522 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5523 { (exit 1); exit 1; }; }
5525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5526 echo "$as_me:5526: result: ok" >&5
5527 echo "${ECHO_T}ok" >&6
5529 { { echo "$as_me:5529: error: Cannot find dlsym function" >&5
5530 echo "$as_me: error: Cannot find dlsym function" >&2;}
5531 { (exit 1); exit 1; }; }
5534 if test "x$with_gpm" != xyes ; then
5535 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5537 echo "${as_me:-configure}:5537: testing assuming soname for gpm is $with_gpm ..." 1>&5
5539 cf_cv_gpm_soname="$with_gpm"
5542 echo "$as_me:5542: checking for soname of gpm library" >&5
5543 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5544 if test "${cf_cv_gpm_soname+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 cf_cv_gpm_soname=unknown
5549 if test "$cross_compiling" != yes ; then
5550 cat >conftest.$ac_ext <<CF_EOF
5554 if (Gpm_Open(0,0)) Gpm_Close();
5555 ${cf_cv_main_return:-return}(0);
5558 cf_save_LIBS="$LIBS"
5561 # Filter out duplicates - this happens with badly-designed ".pc" files...
5562 for cf_add_1lib in $LIBS
5564 for cf_add_2lib in $cf_add_libs
5566 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5572 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5576 if { (eval echo "$as_me:5576: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5579 echo "$as_me:5579: \$? = $ac_status" >&5
5580 (exit $ac_status); } ; then
5581 if { (eval echo "$as_me:5581: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:5584: \$? = $ac_status" >&5
5585 (exit $ac_status); } ; then
5586 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5587 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5591 LIBS="$cf_save_LIBS"
5595 echo "$as_me:5595: result: $cf_cv_gpm_soname" >&5
5596 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5599 test "$cf_cv_gpm_soname" != "unknown" &&
5600 cat >>confdefs.h <<EOF
5601 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5604 SHLIB_LIST="-ldl $SHLIB_LIST"
5606 SHLIB_LIST="-lgpm $SHLIB_LIST"
5609 # Filter out duplicates - this happens with badly-designed ".pc" files...
5610 for cf_add_1lib in $TEST_LIBS
5612 for cf_add_2lib in $cf_add_libs
5614 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5620 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5622 TEST_LIBS="$cf_add_libs"
5626 cat >>confdefs.h <<\EOF
5627 #define HAVE_LIBGPM 1
5630 echo "$as_me:5630: checking for Gpm_Wgetch in -lgpm" >&5
5631 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5632 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_check_lib_save_LIBS=$LIBS
5637 cat >conftest.$ac_ext <<_ACEOF
5638 #line 5638 "configure"
5639 #include "confdefs.h"
5641 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:5657: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>&5
5660 echo "$as_me:5660: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:5663: \"$ac_try\"") >&5
5666 echo "$as_me:5666: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_lib_gpm_Gpm_Wgetch=yes
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 ac_cv_lib_gpm_Gpm_Wgetch=no
5674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_check_lib_save_LIBS
5677 echo "$as_me:5677: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5678 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5679 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5681 echo "$as_me:5681: checking if GPM is weakly bound to curses library" >&5
5682 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5683 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cf_cv_check_gpm_wgetch=unknown
5688 if test "$cross_compiling" != yes ; then
5690 cat >conftest.$ac_ext <<CF_EOF
5695 ${cf_cv_main_return:-return}(0);
5699 cf_save_LIBS="$LIBS"
5700 # This only works if we can look at the symbol table. If a shared
5701 # library is stripped for install, we cannot use that. So we're forced
5702 # to rely on the static library, noting that some packagers may not
5704 LIBS="-static -lgpm -dynamic $LIBS"
5705 if { (eval echo "$as_me:5705: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:5708: \$? = $ac_status" >&5
5709 (exit $ac_status); } ; then
5710 if { (eval echo "$as_me:5710: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>&5
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); } ; then
5715 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5716 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5717 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5721 LIBS="$cf_save_LIBS"
5725 echo "$as_me:5725: result: $cf_cv_check_gpm_wgetch" >&5
5726 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5728 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5729 { echo "$as_me:5729: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5730 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5737 # not everyone has "test -c"
5738 if test -c /dev/sysmouse 2>/dev/null ; then
5739 echo "$as_me:5739: checking if you want to use sysmouse" >&5
5740 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5742 # Check whether --with-sysmouse or --without-sysmouse was given.
5743 if test "${with_sysmouse+set}" = set; then
5744 withval="$with_sysmouse"
5745 cf_with_sysmouse=$withval
5747 cf_with_sysmouse=maybe
5749 if test "$cf_with_sysmouse" != no ; then
5750 cat >conftest.$ac_ext <<_ACEOF
5751 #line 5751 "configure"
5752 #include "confdefs.h"
5754 #include <osreldate.h>
5755 #if (__FreeBSD_version >= 400017)
5756 #include <sys/consio.h>
5757 #include <sys/fbio.h>
5759 #include <machine/console.h>
5766 struct mouse_info the_mouse;
5767 ioctl(0, CONS_MOUSECTL, &the_mouse);
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:5774: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5777 echo "$as_me:5777: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:5780: \"$ac_try\"") >&5
5783 echo "$as_me:5783: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 cf_with_sysmouse=yes
5787 echo "$as_me: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5791 rm -f conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:5793: result: $cf_with_sysmouse" >&5
5794 echo "${ECHO_T}$cf_with_sysmouse" >&6
5795 test "$cf_with_sysmouse" = yes &&
5796 cat >>confdefs.h <<\EOF
5797 #define USE_SYSMOUSE 1
5802 if test X"$CC_G_OPT" = X"" ; then
5804 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5807 if test X"$CXX_G_OPT" = X"" ; then
5809 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5812 echo "$as_me:5812: checking for default loader flags" >&5
5813 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5814 case $DFT_LWR_MODEL in
5815 (libtool) LD_MODEL='' ;;
5816 (normal) LD_MODEL='' ;;
5817 (debug) LD_MODEL=$CC_G_OPT ;;
5818 (profile) LD_MODEL='-pg';;
5819 (shared) LD_MODEL='' ;;
5821 echo "$as_me:5821: result: $LD_MODEL" >&5
5822 echo "${ECHO_T}$LD_MODEL" >&6
5824 case $DFT_LWR_MODEL in
5827 echo "$as_me:5827: checking if rpath option should be used" >&5
5828 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5830 # Check whether --enable-rpath or --disable-rpath was given.
5831 if test "${enable_rpath+set}" = set; then
5832 enableval="$enable_rpath"
5833 cf_cv_enable_rpath=$enableval
5835 cf_cv_enable_rpath=no
5837 echo "$as_me:5837: result: $cf_cv_enable_rpath" >&5
5838 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5840 echo "$as_me:5840: checking if shared libraries should be relinked during install" >&5
5841 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5843 # Check whether --enable-relink or --disable-relink was given.
5844 if test "${enable_relink+set}" = set; then
5845 enableval="$enable_relink"
5846 cf_cv_do_relink=$enableval
5850 echo "$as_me:5850: result: $cf_cv_do_relink" >&5
5851 echo "${ECHO_T}$cf_cv_do_relink" >&6
5855 # we will build libraries one-level down.
5859 echo "$as_me:5859: checking for an rpath option" >&5
5860 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5861 case $cf_cv_system_name in
5863 if test "$GCC" = yes; then
5864 LD_RPATH_OPT="-Wl,-rpath,"
5866 LD_RPATH_OPT="-rpath "
5869 (linux*|gnu*|k*bsd*-gnu)
5870 LD_RPATH_OPT="-Wl,-rpath,"
5872 (openbsd[2-9].*|mirbsd*)
5873 LD_RPATH_OPT="-Wl,-rpath,"
5875 (dragonfly*|freebsd*)
5876 LD_RPATH_OPT="-rpath "
5879 LD_RPATH_OPT="-Wl,-rpath,"
5882 LD_RPATH_OPT="-rpath "
5890 echo "$as_me:5890: result: $LD_RPATH_OPT" >&5
5891 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5893 case "x$LD_RPATH_OPT" in
5895 echo "$as_me:5895: checking if we need a space after rpath option" >&5
5896 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5897 cf_save_LIBS="$LIBS"
5899 cf_add_libs="${LD_RPATH_OPT}$libdir"
5900 # Filter out duplicates - this happens with badly-designed ".pc" files...
5901 for cf_add_1lib in $LIBS
5903 for cf_add_2lib in $cf_add_libs
5905 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5911 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line 5916 "configure"
5917 #include "confdefs.h"
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:5928: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>&5
5931 echo "$as_me:5931: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -s conftest$ac_exeext'
5934 { (eval echo "$as_me:5934: \"$ac_try\"") >&5
5937 echo "$as_me:5937: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5946 LIBS="$cf_save_LIBS"
5947 echo "$as_me:5947: result: $cf_rpath_space" >&5
5948 echo "${ECHO_T}$cf_rpath_space" >&6
5949 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5957 INSTALL_LIB="-m 644"
5958 : ${rel_builddir:=.}
5964 cf_cv_do_symlinks=no
5966 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5968 echo "$as_me:5968: checking if release/abi version should be used for shared libs" >&5
5969 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5971 # Check whether --with-shlib-version or --without-shlib-version was given.
5972 if test "${with_shlib_version+set}" = set; then
5973 withval="$with_shlib_version"
5974 test -z "$withval" && withval=auto
5977 cf_cv_shlib_version=auto
5980 cf_cv_shlib_version=$withval
5983 echo "$as_me:5983: result: $withval" >&5
5984 echo "${ECHO_T}$withval" >&6
5985 { { echo "$as_me:5985: error: option value must be one of: rel, abi, or auto" >&5
5986 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5987 { (exit 1); exit 1; }; }
5992 cf_cv_shlib_version=auto
5994 echo "$as_me:5994: result: $cf_cv_shlib_version" >&5
5995 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6000 # Some less-capable ports of gcc support only -fpic
6002 if test "$GCC" = yes
6004 echo "$as_me:6004: checking which $CC option to use" >&5
6005 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6006 cf_save_CFLAGS="$CFLAGS"
6007 for CC_SHARED_OPTS in -fPIC -fpic ''
6009 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6010 cat >conftest.$ac_ext <<_ACEOF
6011 #line 6011 "configure"
6012 #include "confdefs.h"
6022 rm -f conftest.$ac_objext
6023 if { (eval echo "$as_me:6023: \"$ac_compile\"") >&5
6024 (eval $ac_compile) 2>&5
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:6029: \"$ac_try\"") >&5
6032 echo "$as_me:6032: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6036 echo "$as_me: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 rm -f conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:6041: result: $CC_SHARED_OPTS" >&5
6042 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6043 CFLAGS="$cf_save_CFLAGS"
6046 cf_cv_shlib_version_infix=no
6048 case $cf_cv_system_name in
6049 (aix4.3-9*|aix[5-7]*)
6050 if test "$GCC" = yes; then
6051 CC_SHARED_OPTS='-Wl,-brtl'
6052 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6054 CC_SHARED_OPTS='-brtl'
6055 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6056 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6060 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6064 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6065 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6066 cf_cv_shlib_version=cygdll
6067 cf_cv_shlib_version_infix=cygdll
6070 cat >mk_shared_lib.sh <<-CF_EOF
6073 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6076 Linking shared library
6077 ** SHARED_LIB \$SHARED_LIB
6078 ** IMPORT_LIB \$IMPORT_LIB
6080 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6082 chmod +x mk_shared_lib.sh
6086 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6087 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6088 cf_cv_shlib_version=msysdll
6089 cf_cv_shlib_version_infix=msysdll
6092 cat >mk_shared_lib.sh <<-CF_EOF
6095 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6098 Linking shared library
6099 ** SHARED_LIB \$SHARED_LIB
6100 ** IMPORT_LIB \$IMPORT_LIB
6102 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6104 chmod +x mk_shared_lib.sh
6107 cf_try_cflags="no-cpp-precomp"
6108 CC_SHARED_OPTS="-dynamic"
6109 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6110 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6111 cf_cv_shlib_version_infix=yes
6112 echo "$as_me:6112: checking if ld -search_paths_first works" >&5
6113 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6114 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 cf_save_LDFLAGS=$LDFLAGS
6119 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line 6121 "configure"
6122 #include "confdefs.h"
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:6133: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6136 echo "$as_me:6136: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:6139: \"$ac_try\"") >&5
6142 echo "$as_me:6142: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 cf_cv_ldflags_search_paths_first=yes
6146 echo "$as_me: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 cf_cv_ldflags_search_paths_first=no
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6151 LDFLAGS=$cf_save_LDFLAGS
6153 echo "$as_me:6153: result: $cf_cv_ldflags_search_paths_first" >&5
6154 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6155 if test $cf_cv_ldflags_search_paths_first = yes; then
6156 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6160 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6161 if test "$GCC" != yes; then
6164 MK_SHARED_LIB='${LD} -b -o $@'
6165 INSTALL_LIB="-m 555"
6168 # (tested with gcc 2.7.2 -- I don't have c89)
6169 if test "$GCC" = yes; then
6170 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6173 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6175 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6176 # HP-UX shared libraries must be executable, and should be
6177 # readonly to exploit a quirk in the memory manager.
6178 INSTALL_LIB="-m 555"
6181 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6182 if test "$cf_cv_shlib_version" = rel; then
6183 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6185 cf_shared_soname='`basename `'
6188 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6191 if test "$cf_cv_enable_rpath" = yes ; then
6192 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6194 # tested with IRIX 5.2 and 'cc'.
6195 if test "$GCC" != yes; then
6196 CC_SHARED_OPTS='-KPIC'
6197 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6199 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6201 cf_cv_rm_so_locs=yes
6203 (linux*|gnu*|k*bsd*-gnu)
6204 if test "$DFT_LWR_MODEL" = "shared" ; then
6205 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6206 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6208 if test "$cf_cv_enable_rpath" = yes ; then
6209 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6212 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6213 if test "$cf_cv_shlib_version" = rel; then
6214 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6216 cf_cv_shared_soname='`basename $@`'
6219 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6222 cf_cv_shlib_version=mingw
6223 cf_cv_shlib_version_infix=mingw
6226 if test "$DFT_LWR_MODEL" = "shared" ; then
6227 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6228 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6229 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6232 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6233 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6234 cat >mk_shared_lib.sh <<-CF_EOF
6237 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6240 Linking shared library
6241 ** SHARED_LIB \$SHARED_LIB
6242 ** IMPORT_LIB \$IMPORT_LIB
6244 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6246 chmod +x mk_shared_lib.sh
6248 (openbsd[2-9].*|mirbsd*)
6249 if test "$DFT_LWR_MODEL" = "shared" ; then
6250 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6251 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6253 if test "$cf_cv_enable_rpath" = yes ; then
6254 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6256 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6258 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6259 if test "$cf_cv_shlib_version" = rel; then
6260 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6262 cf_cv_shared_soname='`basename $@`'
6265 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6267 (nto-qnx*|openbsd*|freebsd[12].*)
6268 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6269 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6270 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6272 (dragonfly*|freebsd*)
6273 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6274 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6275 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6276 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6277 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6280 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6281 if test "$cf_cv_shlib_version" = rel; then
6282 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6284 cf_cv_shared_soname='`basename $@`'
6287 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6290 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6291 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6292 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6293 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6294 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6295 if test "$cf_cv_shlib_version" = auto; then
6296 if test -f /usr/libexec/ld.elf_so; then
6297 cf_cv_shlib_version=abi
6299 cf_cv_shlib_version=rel
6303 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6304 if test "$cf_cv_shlib_version" = rel; then
6305 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6307 cf_cv_shared_soname='`basename $@`'
6310 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6312 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6316 # tested with OSF/1 V3.2 and 'cc'
6317 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6318 # link with shared libs).
6319 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6322 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6325 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6326 if test "$DFT_LWR_MODEL" = "shared" ; then
6327 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6328 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6330 cf_cv_rm_so_locs=yes
6332 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6333 # tested with osr5.0.5
6334 if test "$GCC" != yes; then
6335 CC_SHARED_OPTS='-belf -KPIC'
6337 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6338 if test "$cf_cv_enable_rpath" = yes ; then
6339 # only way is to set LD_RUN_PATH but no switch for it
6342 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6343 LINK_PROGS='LD_RUN_PATH=${libdir}'
6344 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6347 # tested with SunOS 4.1.1 and gcc 2.7.0
6348 if test "$GCC" != yes; then
6349 CC_SHARED_OPTS='-KPIC'
6351 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6352 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6355 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6356 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6357 if test "$DFT_LWR_MODEL" = "shared" ; then
6358 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6359 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6361 if test "$cf_cv_enable_rpath" = yes ; then
6362 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6365 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6366 if test "$cf_cv_shlib_version" = rel; then
6367 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6369 cf_cv_shared_soname='`basename $@`'
6372 if test "$GCC" != yes; then
6373 cf_save_CFLAGS="$CFLAGS"
6374 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6376 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line 6378 "configure"
6379 #include "confdefs.h"
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:6390: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6393 echo "$as_me:6393: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:6396: \"$ac_try\"") >&5
6399 echo "$as_me:6399: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6403 echo "$as_me: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 rm -f conftest.$ac_objext conftest.$ac_ext
6408 CFLAGS="$cf_save_CFLAGS"
6409 CC_SHARED_OPTS=$cf_shared_opts
6410 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6412 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6415 (sysv5uw7*|unix_sv*)
6416 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6417 if test "$GCC" != yes; then
6418 CC_SHARED_OPTS='-KPIC'
6420 MK_SHARED_LIB='${LD} -d y -G -o $@'
6423 CC_SHARED_OPTS='unknown'
6424 MK_SHARED_LIB='echo unknown'
6428 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6429 case "$cf_cv_shlib_version" in
6431 case "$MK_SHARED_LIB" in
6433 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6436 { echo "$as_me:6436: WARNING: ignored --with-shlib-version" >&5
6437 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6443 if test -n "$cf_try_cflags"
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6446 "${as_me:-configure}"
6448 int main(int argc, char *argv[])
6451 return (argv[argc-1] == 0) ;
6454 cf_save_CFLAGS="$CFLAGS"
6455 for cf_opt in $cf_try_cflags
6457 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6458 echo "$as_me:6458: checking if CFLAGS option -$cf_opt works" >&5
6459 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6460 if { (eval echo "$as_me:6460: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }; then
6465 echo "$as_me:6465: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467 cf_save_CFLAGS="$CFLAGS"
6469 echo "$as_me:6469: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6473 CFLAGS="$cf_save_CFLAGS"
6476 # RPATH_LIST is a colon-separated list of directories
6477 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6478 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6480 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6482 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6484 echo "${as_me:-configure}:6484: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6486 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6488 echo "${as_me:-configure}:6488: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6490 for model in $cf_list_models; do
6494 echo "$as_me:6494: checking for additional libtool options" >&5
6495 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6497 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6498 if test "${with_libtool_opts+set}" = set; then
6499 withval="$with_libtool_opts"
6500 with_libtool_opts=$withval
6502 with_libtool_opts=no
6504 echo "$as_me:6504: result: $with_libtool_opts" >&5
6505 echo "${ECHO_T}$with_libtool_opts" >&6
6507 case .$with_libtool_opts in
6511 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6515 echo "$as_me:6515: checking if exported-symbols file should be used" >&5
6516 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6518 # Check whether --with-export-syms or --without-export-syms was given.
6519 if test "${with_export_syms+set}" = set; then
6520 withval="$with_export_syms"
6521 with_export_syms=$withval
6525 if test "x$with_export_syms" = xyes
6527 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6530 echo "$as_me:6530: result: $with_export_syms" >&5
6531 echo "${ECHO_T}$with_export_syms" >&6
6532 if test "x$with_export_syms" != xno
6534 EXPORT_SYMS="-export-symbols $with_export_syms"
6540 if test "$CC_SHARED_OPTS" = "unknown"; then
6541 { { echo "$as_me:6541: error: Shared libraries are not supported in this version" >&5
6542 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6543 { (exit 1); exit 1; }; }
6546 echo "$as_me:6546: checking if versioned-symbols file should be used" >&5
6547 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6549 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6550 if test "${with_versioned_syms+set}" = set; then
6551 withval="$with_versioned_syms"
6552 with_versioned_syms=$withval
6554 with_versioned_syms=no
6556 if test "x$with_versioned_syms" = xyes
6558 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6561 echo "$as_me:6561: result: $with_versioned_syms" >&5
6562 echo "${ECHO_T}$with_versioned_syms" >&6
6568 if test "x$with_versioned_syms" != xno
6570 RESULTING_SYMS=$with_versioned_syms
6571 case "x$MK_SHARED_LIB" in
6573 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6574 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6575 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6577 echo "${as_me:-configure}:6577: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6581 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6582 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6583 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6585 echo "${as_me:-configure}:6585: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6589 { echo "$as_me:6589: WARNING: this system does not support versioned-symbols" >&5
6590 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6594 # Linux ld can selectively override scope, e.g., of symbols beginning with
6595 # "_" by first declaring some as global, and then using a wildcard to
6596 # declare the others as local. Some other loaders cannot do this. Check
6597 # by constructing a (very) simple shared library and inspecting its
6599 if test "x$VERSIONED_SYMS" != "x"
6601 echo "$as_me:6601: checking if wildcards can be used to selectively omit symbols" >&5
6602 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6608 cat >conftest.ver <<EOF
6637 cat >conftest.$ac_ext <<EOF
6638 #line 6638 "configure"
6639 int _ismissing(void) { return 1; }
6640 int _localf1(void) { return 1; }
6641 int _localf2(void) { return 2; }
6642 int globalf1(void) { return 1; }
6643 int globalf2(void) { return 2; }
6644 int _sublocalf1(void) { return 1; }
6645 int _sublocalf2(void) { return 2; }
6646 int subglobalf1(void) { return 1; }
6647 int subglobalf2(void) { return 2; }
6649 cat >conftest.mk <<EOF
6652 CPPFLAGS=${CPPFLAGS}
6655 VERSIONED_SYMS=${VERSIONED_SYMS}
6656 RESULTING_SYMS=conftest.ver
6657 MK_SHARED_LIB=${MK_SHARED_LIB}
6658 conftest.so: conftest.$ac_cv_objext
6659 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6662 # compile source, make library
6663 if make -f conftest.mk 2>&5 >/dev/null
6665 # test for missing symbol in either Data or Text section
6666 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6667 test -n "$cf_missing" && WILDCARD_SYMS=yes
6669 echo "$as_me:6669: result: $WILDCARD_SYMS" >&5
6670 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6679 # pretend that ncurses==ncursesw==ncursest
6680 echo "$as_me:6680: checking if you want to disable library suffixes" >&5
6681 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6683 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6684 if test "${enable_lib_suffixes+set}" = set; then
6685 enableval="$enable_lib_suffixes"
6686 test "$enableval" != no && enableval=yes
6687 if test "$enableval" != "yes" ; then
6688 disable_lib_suffixes=yes
6690 disable_lib_suffixes=no
6694 disable_lib_suffixes=no
6697 echo "$as_me:6697: result: $disable_lib_suffixes" >&5
6698 echo "${ECHO_T}$disable_lib_suffixes" >&6
6700 ### If we're building with rpath, try to link non-standard libs that way too.
6701 if test "$DFT_LWR_MODEL" = "shared"; then
6703 echo "$as_me:6703: checking if rpath-hack should be disabled" >&5
6704 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6706 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6707 if test "${enable_rpath_hack+set}" = set; then
6708 enableval="$enable_rpath_hack"
6709 test "$enableval" != no && enableval=yes
6710 if test "$enableval" != "yes" ; then
6711 cf_disable_rpath_hack=yes
6713 cf_disable_rpath_hack=no
6717 cf_disable_rpath_hack=no
6720 echo "$as_me:6720: result: $cf_disable_rpath_hack" >&5
6721 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6722 if test "$cf_disable_rpath_hack" = no ; then
6724 echo "$as_me:6724: checking for updated LDFLAGS" >&5
6725 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6726 if test -n "$LD_RPATH_OPT" ; then
6727 echo "$as_me:6727: result: maybe" >&5
6728 echo "${ECHO_T}maybe" >&6
6732 # Extract the first word of "$ac_prog", so it can be a program name with args.
6733 set dummy $ac_prog; ac_word=$2
6734 echo "$as_me:6734: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 if test -n "$cf_ldd_prog"; then
6740 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6742 ac_save_IFS=$IFS; IFS=$ac_path_separator
6744 for ac_dir in $ac_dummy; do
6746 test -z "$ac_dir" && ac_dir=.
6747 $as_executable_p "$ac_dir/$ac_word" || continue
6748 ac_cv_prog_cf_ldd_prog="$ac_prog"
6749 echo "$as_me:6749: found $ac_dir/$ac_word" >&5
6755 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6756 if test -n "$cf_ldd_prog"; then
6757 echo "$as_me:6757: result: $cf_ldd_prog" >&5
6758 echo "${ECHO_T}$cf_ldd_prog" >&6
6760 echo "$as_me:6760: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6764 test -n "$cf_ldd_prog" && break
6766 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6768 cf_rpath_list="/usr/lib /lib"
6769 if test "$cf_ldd_prog" != no
6773 cat >conftest.$ac_ext <<_ACEOF
6774 #line 6774 "configure"
6775 #include "confdefs.h"
6785 rm -f conftest.$ac_objext conftest$ac_exeext
6786 if { (eval echo "$as_me:6786: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6789 echo "$as_me:6789: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:6792: \"$ac_try\"") >&5
6795 echo "$as_me:6795: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6798 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6800 echo "$as_me: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6805 # If we passed the link-test, but get a "not found" on a given library,
6806 # this could be due to inept reconfiguration of gcc to make it only
6807 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6808 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6809 # /usr/local libraries.
6810 if test -n "$cf_rpath_oops"
6812 for cf_rpath_src in $cf_rpath_oops
6814 for cf_rpath_dir in \
6819 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6821 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6823 echo "${as_me:-configure}:6823: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6825 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6833 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6835 echo "${as_me:-configure}:6835: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6837 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6839 echo "${as_me:-configure}:6839: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6842 for cf_rpath_src in $LDFLAGS
6844 case $cf_rpath_src in
6847 # check if this refers to a directory which we will ignore
6849 if test -n "$cf_rpath_list"
6851 for cf_rpath_item in $cf_rpath_list
6853 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6861 if test "$cf_rpath_skip" = no
6863 # transform the option
6864 if test "$LD_RPATH_OPT" = "-R " ; then
6865 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6867 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6870 # if we have not already added this, add it now
6871 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6872 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6874 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6876 echo "${as_me:-configure}:6876: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6878 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6883 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6885 LDFLAGS=$cf_rpath_dst
6887 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6889 echo "${as_me:-configure}:6889: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6891 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6893 echo "${as_me:-configure}:6893: testing ...checking LIBS $LIBS ..." 1>&5
6896 for cf_rpath_src in $LIBS
6898 case $cf_rpath_src in
6901 # check if this refers to a directory which we will ignore
6903 if test -n "$cf_rpath_list"
6905 for cf_rpath_item in $cf_rpath_list
6907 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6915 if test "$cf_rpath_skip" = no
6917 # transform the option
6918 if test "$LD_RPATH_OPT" = "-R " ; then
6919 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6921 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6924 # if we have not already added this, add it now
6925 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6926 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6928 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6930 echo "${as_me:-configure}:6930: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6932 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6937 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6941 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6943 echo "${as_me:-configure}:6943: testing ...checked LIBS $LIBS ..." 1>&5
6945 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6947 echo "${as_me:-configure}:6947: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6950 echo "$as_me:6950: result: no" >&5
6951 echo "${ECHO_T}no" >&6
6958 ###############################################################################
6960 ### use option --with-extra-suffix to append suffix to headers and libraries
6961 echo "$as_me:6961: checking if you wish to append extra suffix to header/library paths" >&5
6962 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
6965 # Check whether --with-extra-suffix or --without-extra-suffix was given.
6966 if test "${with_extra_suffix+set}" = set; then
6967 withval="$with_extra_suffix"
6972 EXTRA_SUFFIX=$cf_cv_abi_version
6975 EXTRA_SUFFIX=$withval
6980 echo "$as_me:6980: result: $EXTRA_SUFFIX" >&5
6981 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
6983 ### use option --disable-overwrite to leave out the link to -lcurses
6984 echo "$as_me:6984: checking if you wish to install ncurses overwriting curses" >&5
6985 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6987 # Check whether --enable-overwrite or --disable-overwrite was given.
6988 if test "${enable_overwrite+set}" = set; then
6989 enableval="$enable_overwrite"
6990 with_overwrite=$enableval
6992 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6994 echo "$as_me:6994: result: $with_overwrite" >&5
6995 echo "${ECHO_T}$with_overwrite" >&6
6997 echo "$as_me:6997: checking if external terminfo-database is used" >&5
6998 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7000 # Check whether --enable-database or --disable-database was given.
7001 if test "${enable_database+set}" = set; then
7002 enableval="$enable_database"
7003 use_database=$enableval
7007 echo "$as_me:7007: result: $use_database" >&5
7008 echo "${ECHO_T}$use_database" >&6
7012 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7015 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7019 NCURSES_USE_DATABASE=0
7020 if test "$use_database" != no ; then
7021 NCURSES_USE_DATABASE=1
7023 echo "$as_me:7023: checking which terminfo source-file will be installed" >&5
7024 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7026 # Check whether --with-database or --without-database was given.
7027 if test "${with_database+set}" = set; then
7028 withval="$with_database"
7029 TERMINFO_SRC=$withval
7031 echo "$as_me:7031: result: $TERMINFO_SRC" >&5
7032 echo "${ECHO_T}$TERMINFO_SRC" >&6
7034 echo "$as_me:7034: checking whether to use hashed database instead of directory/tree" >&5
7035 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7037 # Check whether --with-hashed-db or --without-hashed-db was given.
7038 if test "${with_hashed_db+set}" = set; then
7039 withval="$with_hashed_db"
7044 echo "$as_me:7044: result: $with_hashed_db" >&5
7045 echo "${ECHO_T}$with_hashed_db" >&6
7050 echo "$as_me:7050: checking for list of fallback descriptions" >&5
7051 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7053 # Check whether --with-fallbacks or --without-fallbacks was given.
7054 if test "${with_fallbacks+set}" = set; then
7055 withval="$with_fallbacks"
7056 with_fallback=$withval
7060 echo "$as_me:7060: result: $with_fallback" >&5
7061 echo "${ECHO_T}$with_fallback" >&6
7062 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7064 echo "$as_me:7064: checking if you want modern xterm or antique" >&5
7065 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7067 # Check whether --with-xterm-new or --without-xterm-new was given.
7068 if test "${with_xterm_new+set}" = set; then
7069 withval="$with_xterm_new"
7070 with_xterm_new=$withval
7074 case $with_xterm_new in
7075 (no) with_xterm_new=xterm-old;;
7076 (*) with_xterm_new=xterm-new;;
7078 echo "$as_me:7078: result: $with_xterm_new" >&5
7079 echo "${ECHO_T}$with_xterm_new" >&6
7080 WHICH_XTERM=$with_xterm_new
7082 echo "$as_me:7082: checking if xterm backspace sends BS or DEL" >&5
7083 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7085 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7086 if test "${with_xterm_kbs+set}" = set; then
7087 withval="$with_xterm_kbs"
7088 with_xterm_kbs=$withval
7092 case x$with_xterm_kbs in
7093 (xyes|xno|xBS|xbs|x8)
7100 with_xterm_kbs=$withval
7103 echo "$as_me:7103: result: $with_xterm_kbs" >&5
7104 echo "${ECHO_T}$with_xterm_kbs" >&6
7105 XTERM_KBS=$with_xterm_kbs
7108 if test "$use_database" = no ; then
7109 TERMINFO="${datadir}/terminfo"
7113 echo "$as_me:7113: checking for list of terminfo directories" >&5
7114 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7116 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7117 if test "${with_terminfo_dirs+set}" = set; then
7118 withval="$with_terminfo_dirs"
7121 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7123 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7125 for cf_src_path in $withval
7128 if test "x$prefix" != xNONE; then
7129 cf_path_syntax="$prefix"
7131 cf_path_syntax="$ac_default_prefix"
7134 case ".$cf_src_path" in
7139 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7141 (.\${*prefix}*|.\${*dir}*)
7142 eval cf_src_path="$cf_src_path"
7143 case ".$cf_src_path" in
7145 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7150 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7153 { { echo "$as_me:7153: error: expected a pathname, not \"$cf_src_path\"" >&5
7154 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7155 { (exit 1); exit 1; }; }
7159 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7160 cf_dst_path="${cf_dst_path}${cf_src_path}"
7164 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7165 # so we have to check/work around. We do prefer the result of "eval"...
7166 eval cf_dst_eval="$cf_dst_path"
7167 case "x$cf_dst_eval" in
7169 TERMINFO_DIRS=$cf_dst_path
7172 TERMINFO_DIRS="$cf_dst_eval"
7176 echo "$as_me:7176: result: $TERMINFO_DIRS" >&5
7177 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7178 test -n "$TERMINFO_DIRS" &&
7179 cat >>confdefs.h <<EOF
7180 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7183 echo "$as_me:7183: checking for default terminfo directory" >&5
7184 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7186 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7187 if test "${with_default_terminfo_dir+set}" = set; then
7188 withval="$with_default_terminfo_dir"
7191 withval="${TERMINFO:-${datadir}/terminfo}"
7192 fi; if test -n "${datadir}/terminfo" ; then
7194 if test "x$prefix" != xNONE; then
7195 cf_path_syntax="$prefix"
7197 cf_path_syntax="$ac_default_prefix"
7205 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7207 (.\${*prefix}*|.\${*dir}*)
7208 eval withval="$withval"
7211 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7216 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7219 { { echo "$as_me:7219: error: expected a pathname, not \"$withval\"" >&5
7220 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7221 { (exit 1); exit 1; }; }
7226 eval TERMINFO="$withval"
7228 echo "$as_me:7228: result: $TERMINFO" >&5
7229 echo "${ECHO_T}$TERMINFO" >&6
7231 cat >>confdefs.h <<EOF
7232 #define TERMINFO "$TERMINFO"
7237 ### use option --disable-big-core to make tic run on small machines
7238 ### We need 4Mb, check if we can allocate 50% more than that.
7239 echo "$as_me:7239: checking if big-core option selected" >&5
7240 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7242 # Check whether --enable-big-core or --disable-big-core was given.
7243 if test "${enable_big_core+set}" = set; then
7244 enableval="$enable_big_core"
7245 with_big_core=$enableval
7247 if test "$cross_compiling" = yes; then
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line 7251 "configure"
7252 #include "confdefs.h"
7257 unsigned long n = 6000000L;
7258 char *s = malloc(n);
7261 ${cf_cv_main_return:-return}(s == 0);
7264 rm -f conftest$ac_exeext
7265 if { (eval echo "$as_me:7265: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7270 { (eval echo "$as_me:7270: \"$ac_try\"") >&5
7273 echo "$as_me:7273: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7277 echo "$as_me: program exited with status $ac_status" >&5
7278 echo "$as_me: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7282 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7285 echo "$as_me:7285: result: $with_big_core" >&5
7286 echo "${ECHO_T}$with_big_core" >&6
7287 test "x$with_big_core" = "xyes" &&
7288 cat >>confdefs.h <<\EOF
7289 #define HAVE_BIG_CORE 1
7292 ### ISO C only guarantees 512-char strings, we have tables which load faster
7293 ### when constructed using "big" strings. More than the C compiler, the awk
7294 ### program is a limit on most vendor UNIX systems. Check that we can build.
7295 echo "$as_me:7295: checking if big-strings option selected" >&5
7296 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7298 # Check whether --enable-big-strings or --disable-big-strings was given.
7299 if test "${enable_big_strings+set}" = set; then
7300 enableval="$enable_big_strings"
7301 with_big_strings=$enableval
7306 eval with_big_strings=no
7309 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7310 | $AWK '{ printf "%d\n", length($0); }' 2>/dev/null | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
7311 eval with_big_strings=yes
7313 eval with_big_strings=no
7319 echo "$as_me:7319: result: $with_big_strings" >&5
7320 echo "${ECHO_T}$with_big_strings" >&6
7323 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7325 ### use option --enable-termcap to compile in the termcap fallback support
7326 echo "$as_me:7326: checking if you want termcap-fallback support" >&5
7327 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7329 # Check whether --enable-termcap or --disable-termcap was given.
7330 if test "${enable_termcap+set}" = set; then
7331 enableval="$enable_termcap"
7332 with_termcap=$enableval
7336 echo "$as_me:7336: result: $with_termcap" >&5
7337 echo "${ECHO_T}$with_termcap" >&6
7339 NCURSES_USE_TERMCAP=0
7340 if test "x$with_termcap" != "xyes" ; then
7341 if test "$use_database" = no ; then
7342 if test -z "$with_fallback" ; then
7343 { { echo "$as_me:7343: error: You have disabled the database w/o specifying fallbacks" >&5
7344 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7345 { (exit 1); exit 1; }; }
7349 cat >>confdefs.h <<\EOF
7350 #define PURE_TERMINFO 1
7355 if test "$with_ticlib" != no ; then
7356 { { echo "$as_me:7356: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7357 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7358 { (exit 1); exit 1; }; }
7361 NCURSES_USE_TERMCAP=1
7362 echo "$as_me:7362: checking for list of termcap files" >&5
7363 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7365 # Check whether --with-termpath or --without-termpath was given.
7366 if test "${with_termpath+set}" = set; then
7367 withval="$with_termpath"
7370 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7372 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7374 for cf_src_path in $withval
7377 if test "x$prefix" != xNONE; then
7378 cf_path_syntax="$prefix"
7380 cf_path_syntax="$ac_default_prefix"
7383 case ".$cf_src_path" in
7388 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7390 (.\${*prefix}*|.\${*dir}*)
7391 eval cf_src_path="$cf_src_path"
7392 case ".$cf_src_path" in
7394 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7399 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7402 { { echo "$as_me:7402: error: expected a pathname, not \"$cf_src_path\"" >&5
7403 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7404 { (exit 1); exit 1; }; }
7408 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7409 cf_dst_path="${cf_dst_path}${cf_src_path}"
7413 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7414 # so we have to check/work around. We do prefer the result of "eval"...
7415 eval cf_dst_eval="$cf_dst_path"
7416 case "x$cf_dst_eval" in
7418 TERMPATH=$cf_dst_path
7421 TERMPATH="$cf_dst_eval"
7425 echo "$as_me:7425: result: $TERMPATH" >&5
7426 echo "${ECHO_T}$TERMPATH" >&6
7427 test -n "$TERMPATH" &&
7428 cat >>confdefs.h <<EOF
7429 #define TERMPATH "$TERMPATH"
7432 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7433 echo "$as_me:7433: checking if fast termcap-loader is needed" >&5
7434 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7436 # Check whether --enable-getcap or --disable-getcap was given.
7437 if test "${enable_getcap+set}" = set; then
7438 enableval="$enable_getcap"
7439 with_getcap=$enableval
7443 echo "$as_me:7443: result: $with_getcap" >&5
7444 echo "${ECHO_T}$with_getcap" >&6
7445 test "x$with_getcap" = "xyes" &&
7446 cat >>confdefs.h <<\EOF
7447 #define USE_GETCAP 1
7450 echo "$as_me:7450: checking if translated termcaps will be cached in ~/.terminfo" >&5
7451 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7453 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7454 if test "${enable_getcap_cache+set}" = set; then
7455 enableval="$enable_getcap_cache"
7456 with_getcap_cache=$enableval
7458 with_getcap_cache=no
7460 echo "$as_me:7460: result: $with_getcap_cache" >&5
7461 echo "${ECHO_T}$with_getcap_cache" >&6
7462 test "x$with_getcap_cache" = "xyes" &&
7463 cat >>confdefs.h <<\EOF
7464 #define USE_GETCAP_CACHE 1
7469 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7470 echo "$as_me:7470: checking if ~/.terminfo is wanted" >&5
7471 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7473 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7474 if test "${enable_home_terminfo+set}" = set; then
7475 enableval="$enable_home_terminfo"
7476 with_home_terminfo=$enableval
7478 with_home_terminfo=yes
7480 echo "$as_me:7480: result: $with_home_terminfo" >&5
7481 echo "${ECHO_T}$with_home_terminfo" >&6
7482 test "x$with_home_terminfo" = "xyes" &&
7483 cat >>confdefs.h <<\EOF
7484 #define USE_HOME_TERMINFO 1
7487 echo "$as_me:7487: checking if you want to use restricted environment when running as root" >&5
7488 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7490 # Check whether --enable-root-environ or --disable-root-environ was given.
7491 if test "${enable_root_environ+set}" = set; then
7492 enableval="$enable_root_environ"
7493 with_root_environ=$enableval
7495 with_root_environ=yes
7497 echo "$as_me:7497: result: $with_root_environ" >&5
7498 echo "${ECHO_T}$with_root_environ" >&6
7499 test "x$with_root_environ" = xyes &&
7500 cat >>confdefs.h <<\EOF
7501 #define USE_ROOT_ENVIRON 1
7504 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7505 ### to reduce storage requirements for the terminfo database.
7511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7512 echo "$as_me:7512: checking for $ac_func" >&5
7513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7514 if eval "test \"\${$as_ac_var+set}\" = set"; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line 7518 "configure"
7519 #include "confdefs.h"
7520 /* System header to define __stub macros and hopefully few prototypes,
7521 which can conflict with char $ac_func (); below. */
7523 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7535 /* The GNU C library defines this for functions which it implements
7536 to always fail with ENOSYS. Some functions are actually named
7537 something starting with __ and the normal name is an alias. */
7538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7541 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (eval echo "$as_me:7549: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:7555: \"$ac_try\"") >&5
7558 echo "$as_me:7558: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 eval "$as_ac_var=yes"
7562 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 eval "$as_ac_var=no"
7566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7568 echo "$as_me:7568: result: `eval echo '${'$as_ac_var'}'`" >&5
7569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7570 if test `eval echo '${'$as_ac_var'}'` = yes; then
7571 cat >>confdefs.h <<EOF
7572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7578 if test "$cross_compiling" = yes ; then
7584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7585 echo "$as_me:7585: checking for $ac_func" >&5
7586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7587 if eval "test \"\${$as_ac_var+set}\" = set"; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 cat >conftest.$ac_ext <<_ACEOF
7591 #line 7591 "configure"
7592 #include "confdefs.h"
7593 /* System header to define __stub macros and hopefully few prototypes,
7594 which can conflict with char $ac_func (); below. */
7596 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7608 /* The GNU C library defines this for functions which it implements
7609 to always fail with ENOSYS. Some functions are actually named
7610 something starting with __ and the normal name is an alias. */
7611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7614 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:7622: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>&5
7625 echo "$as_me:7625: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:7628: \"$ac_try\"") >&5
7631 echo "$as_me:7631: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 eval "$as_ac_var=yes"
7635 echo "$as_me: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7637 eval "$as_ac_var=no"
7639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7641 echo "$as_me:7641: result: `eval echo '${'$as_ac_var'}'`" >&5
7642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7643 if test `eval echo '${'$as_ac_var'}'` = yes; then
7644 cat >>confdefs.h <<EOF
7645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7652 echo "$as_me:7652: checking if link/symlink functions work" >&5
7653 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7654 if test "${cf_cv_link_funcs+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 for cf_func in link symlink ; do
7660 if test "$cross_compiling" = yes; then
7662 eval 'ac_cv_func_'$cf_func'=error'
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line 7665 "configure"
7666 #include "confdefs.h"
7668 #include <sys/types.h>
7669 #include <sys/stat.h>
7670 #ifdef HAVE_UNISTD_H
7676 char *src = "config.log";
7677 char *dst = "conftest.chk";
7682 fail = ($cf_func("config.log", "conftest.chk") < 0)
7683 || (stat(dst, &dst_sb) < 0)
7684 || (dst_sb.st_mtime != src_sb.st_mtime);
7690 ${cf_cv_main_return:-return} (fail);
7694 rm -f conftest$ac_exeext
7695 if { (eval echo "$as_me:7695: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>&5
7698 echo "$as_me:7698: \$? = $ac_status" >&5
7699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7700 { (eval echo "$as_me:7700: \"$ac_try\"") >&5
7703 echo "$as_me:7703: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7706 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7707 eval 'ac_cv_func_'$cf_func'=yes'
7709 echo "$as_me: program exited with status $ac_status" >&5
7710 echo "$as_me: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval 'ac_cv_func_'$cf_func'=no'
7715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7718 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7721 echo "$as_me:7721: result: $cf_cv_link_funcs" >&5
7722 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7723 test "$ac_cv_func_link" = yes &&
7724 cat >>confdefs.h <<\EOF
7728 test "$ac_cv_func_symlink" = yes &&
7729 cat >>confdefs.h <<\EOF
7730 #define HAVE_SYMLINK 1
7738 # soft links (symbolic links) are useful for some systems where hard links do
7739 # not work, or to make it simpler to copy terminfo trees around.
7740 if test "x$ac_cv_func_symlink" = xyes ; then
7741 echo "$as_me:7741: checking if tic should use symbolic links" >&5
7742 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7744 # Check whether --enable-symlinks or --disable-symlinks was given.
7745 if test "${enable_symlinks+set}" = set; then
7746 enableval="$enable_symlinks"
7747 with_symlinks=$enableval
7751 echo "$as_me:7751: result: $with_symlinks" >&5
7752 echo "${ECHO_T}$with_symlinks" >&6
7755 # If we have hard links and did not choose to use soft links instead, there is
7756 # no reason to make this choice optional - use the hard links.
7757 if test "$with_symlinks" = no ; then
7758 echo "$as_me:7758: checking if tic should use hard links" >&5
7759 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7760 if test "x$ac_cv_func_link" = xyes ; then
7765 echo "$as_me:7765: result: $with_links" >&5
7766 echo "${ECHO_T}$with_links" >&6
7769 test "x$with_links" = xyes &&
7770 cat >>confdefs.h <<\EOF
7774 test "x$with_symlinks" = xyes &&
7775 cat >>confdefs.h <<\EOF
7776 #define USE_SYMLINKS 1
7779 ### use option --enable-broken-linker to force on use of broken-linker support
7780 echo "$as_me:7780: checking if you want broken-linker support code" >&5
7781 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7783 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7784 if test "${enable_broken_linker+set}" = set; then
7785 enableval="$enable_broken_linker"
7786 with_broken_linker=$enableval
7788 with_broken_linker=${BROKEN_LINKER:-no}
7790 echo "$as_me:7790: result: $with_broken_linker" >&5
7791 echo "${ECHO_T}$with_broken_linker" >&6
7794 if test "x$with_broken_linker" = xyes ; then
7796 cat >>confdefs.h <<\EOF
7797 #define BROKEN_LINKER 1
7801 elif test "$DFT_LWR_MODEL" = shared ; then
7802 case $cf_cv_system_name in
7805 cat >>confdefs.h <<\EOF
7806 #define BROKEN_LINKER 1
7810 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7812 echo "${as_me:-configure}:7812: testing cygwin linker is broken anyway ..." 1>&5
7818 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7819 echo "$as_me:7819: checking if tputs should process BSD-style prefix padding" >&5
7820 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7822 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7823 if test "${enable_bsdpad+set}" = set; then
7824 enableval="$enable_bsdpad"
7825 with_bsdpad=$enableval
7829 echo "$as_me:7829: result: $with_bsdpad" >&5
7830 echo "${ECHO_T}$with_bsdpad" >&6
7831 test "x$with_bsdpad" = xyes &&
7832 cat >>confdefs.h <<\EOF
7836 ### use option --enable-widec to turn on use of wide-character support
7845 # Check to define _XOPEN_SOURCE "automatically"
7846 CPPFLAGS_before_XOPEN="$CPPFLAGS"
7849 cf_POSIX_C_SOURCE=199506L
7854 cf_xopen_source="-D_ALL_SOURCE"
7860 cf_xopen_source="-D_APPLE_C_SOURCE"
7863 cf_xopen_source="-D_DARWIN_C_SOURCE"
7866 (freebsd*|dragonfly*)
7867 # 5.x headers associate
7868 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7869 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7870 cf_POSIX_C_SOURCE=200112L
7872 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7875 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7878 cf_xopen_source="-D_HPUX_SOURCE"
7881 cf_xopen_source="-D_SGI_SOURCE"
7884 (linux*|gnu*|mint*|k*bsd*-gnu)
7886 echo "$as_me:7886: checking if we must define _GNU_SOURCE" >&5
7887 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7888 if test "${cf_cv_gnu_source+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line 7893 "configure"
7894 #include "confdefs.h"
7895 #include <sys/types.h>
7900 #ifndef _XOPEN_SOURCE
7907 rm -f conftest.$ac_objext
7908 if { (eval echo "$as_me:7908: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -s conftest.$ac_objext'
7914 { (eval echo "$as_me:7914: \"$ac_try\"") >&5
7917 echo "$as_me:7917: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7924 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line 7926 "configure"
7927 #include "confdefs.h"
7928 #include <sys/types.h>
7933 #ifdef _XOPEN_SOURCE
7940 rm -f conftest.$ac_objext
7941 if { (eval echo "$as_me:7941: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>&5
7944 echo "$as_me:7944: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -s conftest.$ac_objext'
7947 { (eval echo "$as_me:7947: \"$ac_try\"") >&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7954 echo "$as_me: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7956 cf_cv_gnu_source=yes
7958 rm -f conftest.$ac_objext conftest.$ac_ext
7962 rm -f conftest.$ac_objext conftest.$ac_ext
7965 echo "$as_me:7965: result: $cf_cv_gnu_source" >&5
7966 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7967 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7971 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
7974 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7977 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7979 cf_save_CFLAGS="$CFLAGS"
7980 cf_save_CPPFLAGS="$CPPFLAGS"
7982 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7983 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7984 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7986 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7987 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7988 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7990 echo "$as_me:7990: checking if we should define _POSIX_C_SOURCE" >&5
7991 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7992 if test "${cf_cv_posix_c_source+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 echo "${as_me:-configure}:7996: testing if the symbol is already defined go no further ..." 1>&5
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line 7999 "configure"
8000 #include "confdefs.h"
8001 #include <sys/types.h>
8006 #ifndef _POSIX_C_SOURCE
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:8014: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>&5
8017 echo "$as_me:8017: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -s conftest.$ac_objext'
8020 { (eval echo "$as_me:8020: \"$ac_try\"") >&5
8023 echo "$as_me:8023: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 cf_cv_posix_c_source=no
8027 echo "$as_me: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8029 cf_want_posix_source=no
8030 case .$cf_POSIX_C_SOURCE in
8032 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8035 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8036 cf_want_posix_source=yes
8039 cf_want_posix_source=yes
8042 if test "$cf_want_posix_source" = yes ; then
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line 8044 "configure"
8045 #include "confdefs.h"
8046 #include <sys/types.h>
8051 #ifdef _POSIX_SOURCE
8058 rm -f conftest.$ac_objext
8059 if { (eval echo "$as_me:8059: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8062 echo "$as_me:8062: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:8065: \"$ac_try\"") >&5
8068 echo "$as_me:8068: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8072 echo "$as_me: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8074 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8076 rm -f conftest.$ac_objext conftest.$ac_ext
8079 echo "${as_me:-configure}:8079: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8081 CFLAGS="$cf_trim_CFLAGS"
8082 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8084 echo "${as_me:-configure}:8084: testing if the second compile does not leave our definition intact error ..." 1>&5
8086 cat >conftest.$ac_ext <<_ACEOF
8087 #line 8087 "configure"
8088 #include "confdefs.h"
8089 #include <sys/types.h>
8094 #ifndef _POSIX_C_SOURCE
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:8102: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>&5
8105 echo "$as_me:8105: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:8108: \"$ac_try\"") >&5
8111 echo "$as_me:8111: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 cf_cv_posix_c_source=no
8119 rm -f conftest.$ac_objext conftest.$ac_ext
8120 CFLAGS="$cf_save_CFLAGS"
8121 CPPFLAGS="$cf_save_CPPFLAGS"
8124 rm -f conftest.$ac_objext conftest.$ac_ext
8127 echo "$as_me:8127: result: $cf_cv_posix_c_source" >&5
8128 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8130 if test "$cf_cv_posix_c_source" != no ; then
8131 CFLAGS="$cf_trim_CFLAGS"
8132 CPPFLAGS="$cf_trim_CPPFLAGS"
8137 cf_new_extra_cppflags=
8139 for cf_add_cflags in $cf_cv_posix_c_source
8141 case $cf_fix_cppflags in
8143 case $cf_add_cflags in
8144 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8145 case $cf_add_cflags in
8147 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8149 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8150 && test -z "${cf_tst_cflags}" \
8151 && cf_fix_cppflags=yes
8153 if test $cf_fix_cppflags = yes ; then
8154 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8156 elif test "${cf_tst_cflags}" = "\"'" ; then
8157 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8166 case $cf_add_cflags in
8168 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8170 CPPFLAGS=`echo "$CPPFLAGS" | \
8171 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8172 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8176 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8181 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8186 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8188 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8190 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8191 && test -z "${cf_tst_cflags}" \
8192 && cf_fix_cppflags=no
8197 if test -n "$cf_new_cflags" ; then
8199 CFLAGS="$CFLAGS $cf_new_cflags"
8202 if test -n "$cf_new_cppflags" ; then
8204 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8207 if test -n "$cf_new_extra_cppflags" ; then
8209 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8216 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8219 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8220 cf_xopen_source="-D_BSD_SOURCE"
8224 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8230 cf_xopen_source="-D_OSF_SOURCE"
8233 cf_xopen_source="-D_QNX_SOURCE"
8236 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8239 cf_xopen_source="-D__EXTENSIONS__"
8240 cf_cv_xopen_source=broken
8242 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8248 echo "$as_me:8248: checking if we should define _XOPEN_SOURCE" >&5
8249 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8250 if test "${cf_cv_xopen_source+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8255 #line 8255 "configure"
8256 #include "confdefs.h"
8260 #include <sys/types.h>
8266 #ifndef _XOPEN_SOURCE
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:8274: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>&5
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -s conftest.$ac_objext'
8280 { (eval echo "$as_me:8280: \"$ac_try\"") >&5
8283 echo "$as_me:8283: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 cf_cv_xopen_source=no
8287 echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line 8292 "configure"
8293 #include "confdefs.h"
8297 #include <sys/types.h>
8303 #ifdef _XOPEN_SOURCE
8310 rm -f conftest.$ac_objext
8311 if { (eval echo "$as_me:8311: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>&5
8314 echo "$as_me:8314: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -s conftest.$ac_objext'
8317 { (eval echo "$as_me:8317: \"$ac_try\"") >&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 cf_cv_xopen_source=no
8324 echo "$as_me: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8326 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8328 rm -f conftest.$ac_objext conftest.$ac_ext
8332 rm -f conftest.$ac_objext conftest.$ac_ext
8335 echo "$as_me:8335: result: $cf_cv_xopen_source" >&5
8336 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8338 if test "$cf_cv_xopen_source" != no ; then
8340 CFLAGS=`echo "$CFLAGS" | \
8341 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8342 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8344 CPPFLAGS=`echo "$CPPFLAGS" | \
8345 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8346 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8348 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8353 cf_new_extra_cppflags=
8355 for cf_add_cflags in $cf_temp_xopen_source
8357 case $cf_fix_cppflags in
8359 case $cf_add_cflags in
8360 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8361 case $cf_add_cflags in
8363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8365 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8366 && test -z "${cf_tst_cflags}" \
8367 && cf_fix_cppflags=yes
8369 if test $cf_fix_cppflags = yes ; then
8370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8372 elif test "${cf_tst_cflags}" = "\"'" ; then
8373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8382 case $cf_add_cflags in
8384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8386 CPPFLAGS=`echo "$CPPFLAGS" | \
8387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8392 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8397 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8402 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8406 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8407 && test -z "${cf_tst_cflags}" \
8408 && cf_fix_cppflags=no
8413 if test -n "$cf_new_cflags" ; then
8415 CFLAGS="$CFLAGS $cf_new_cflags"
8418 if test -n "$cf_new_cppflags" ; then
8420 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8423 if test -n "$cf_new_extra_cppflags" ; then
8425 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8430 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8432 cf_save_CFLAGS="$CFLAGS"
8433 cf_save_CPPFLAGS="$CPPFLAGS"
8435 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8436 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8437 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8439 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8440 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8441 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8443 echo "$as_me:8443: checking if we should define _POSIX_C_SOURCE" >&5
8444 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8445 if test "${cf_cv_posix_c_source+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 echo "${as_me:-configure}:8449: testing if the symbol is already defined go no further ..." 1>&5
8451 cat >conftest.$ac_ext <<_ACEOF
8452 #line 8452 "configure"
8453 #include "confdefs.h"
8454 #include <sys/types.h>
8459 #ifndef _POSIX_C_SOURCE
8466 rm -f conftest.$ac_objext
8467 if { (eval echo "$as_me:8467: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>&5
8470 echo "$as_me:8470: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (eval echo "$as_me:8473: \"$ac_try\"") >&5
8476 echo "$as_me:8476: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 cf_cv_posix_c_source=no
8480 echo "$as_me: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8482 cf_want_posix_source=no
8483 case .$cf_POSIX_C_SOURCE in
8485 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8488 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8489 cf_want_posix_source=yes
8492 cf_want_posix_source=yes
8495 if test "$cf_want_posix_source" = yes ; then
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line 8497 "configure"
8498 #include "confdefs.h"
8499 #include <sys/types.h>
8504 #ifdef _POSIX_SOURCE
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:8512: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8515 echo "$as_me:8515: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest.$ac_objext'
8518 { (eval echo "$as_me:8518: \"$ac_try\"") >&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8525 echo "$as_me: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8527 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8529 rm -f conftest.$ac_objext conftest.$ac_ext
8532 echo "${as_me:-configure}:8532: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8534 CFLAGS="$cf_trim_CFLAGS"
8535 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8537 echo "${as_me:-configure}:8537: testing if the second compile does not leave our definition intact error ..." 1>&5
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line 8540 "configure"
8541 #include "confdefs.h"
8542 #include <sys/types.h>
8547 #ifndef _POSIX_C_SOURCE
8554 rm -f conftest.$ac_objext
8555 if { (eval echo "$as_me:8555: \"$ac_compile\"") >&5
8556 (eval $ac_compile) 2>&5
8558 echo "$as_me:8558: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:8561: \"$ac_try\"") >&5
8564 echo "$as_me:8564: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 cf_cv_posix_c_source=no
8572 rm -f conftest.$ac_objext conftest.$ac_ext
8573 CFLAGS="$cf_save_CFLAGS"
8574 CPPFLAGS="$cf_save_CPPFLAGS"
8577 rm -f conftest.$ac_objext conftest.$ac_ext
8580 echo "$as_me:8580: result: $cf_cv_posix_c_source" >&5
8581 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8583 if test "$cf_cv_posix_c_source" != no ; then
8584 CFLAGS="$cf_trim_CFLAGS"
8585 CPPFLAGS="$cf_trim_CPPFLAGS"
8590 cf_new_extra_cppflags=
8592 for cf_add_cflags in $cf_cv_posix_c_source
8594 case $cf_fix_cppflags in
8596 case $cf_add_cflags in
8597 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8598 case $cf_add_cflags in
8600 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8602 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8603 && test -z "${cf_tst_cflags}" \
8604 && cf_fix_cppflags=yes
8606 if test $cf_fix_cppflags = yes ; then
8607 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8609 elif test "${cf_tst_cflags}" = "\"'" ; then
8610 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8619 case $cf_add_cflags in
8621 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8623 CPPFLAGS=`echo "$CPPFLAGS" | \
8624 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8625 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8629 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8634 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8639 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8641 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8643 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8644 && test -z "${cf_tst_cflags}" \
8645 && cf_fix_cppflags=no
8650 if test -n "$cf_new_cflags" ; then
8652 CFLAGS="$CFLAGS $cf_new_cflags"
8655 if test -n "$cf_new_cppflags" ; then
8657 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8660 if test -n "$cf_new_extra_cppflags" ; then
8662 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8670 if test -n "$cf_xopen_source" ; then
8675 cf_new_extra_cppflags=
8677 for cf_add_cflags in $cf_xopen_source
8679 case $cf_fix_cppflags in
8681 case $cf_add_cflags in
8682 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8683 case $cf_add_cflags in
8685 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8687 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8688 && test -z "${cf_tst_cflags}" \
8689 && cf_fix_cppflags=yes
8691 if test $cf_fix_cppflags = yes ; then
8692 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8694 elif test "${cf_tst_cflags}" = "\"'" ; then
8695 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8704 case $cf_add_cflags in
8706 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8708 CPPFLAGS=`echo "$CPPFLAGS" | \
8709 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8710 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8714 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8719 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8724 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8726 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8728 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8729 && test -z "${cf_tst_cflags}" \
8730 && cf_fix_cppflags=no
8735 if test -n "$cf_new_cflags" ; then
8736 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8738 echo "${as_me:-configure}:8738: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8740 CFLAGS="$CFLAGS $cf_new_cflags"
8743 if test -n "$cf_new_cppflags" ; then
8744 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8746 echo "${as_me:-configure}:8746: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8748 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8751 if test -n "$cf_new_extra_cppflags" ; then
8752 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8754 echo "${as_me:-configure}:8754: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8756 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8761 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8762 echo "$as_me:8762: checking if _XOPEN_SOURCE really is set" >&5
8763 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8764 cat >conftest.$ac_ext <<_ACEOF
8765 #line 8765 "configure"
8766 #include "confdefs.h"
8772 #ifndef _XOPEN_SOURCE
8779 rm -f conftest.$ac_objext
8780 if { (eval echo "$as_me:8780: \"$ac_compile\"") >&5
8781 (eval $ac_compile) 2>&5
8783 echo "$as_me:8783: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -s conftest.$ac_objext'
8786 { (eval echo "$as_me:8786: \"$ac_try\"") >&5
8789 echo "$as_me:8789: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 cf_XOPEN_SOURCE_set=yes
8793 echo "$as_me: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8795 cf_XOPEN_SOURCE_set=no
8797 rm -f conftest.$ac_objext conftest.$ac_ext
8798 echo "$as_me:8798: result: $cf_XOPEN_SOURCE_set" >&5
8799 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8800 if test $cf_XOPEN_SOURCE_set = yes
8802 cat >conftest.$ac_ext <<_ACEOF
8803 #line 8803 "configure"
8804 #include "confdefs.h"
8810 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:8818: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>&5
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -s conftest.$ac_objext'
8824 { (eval echo "$as_me:8824: \"$ac_try\"") >&5
8827 echo "$as_me:8827: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 cf_XOPEN_SOURCE_set_ok=yes
8831 echo "$as_me: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 cf_XOPEN_SOURCE_set_ok=no
8835 rm -f conftest.$ac_objext conftest.$ac_ext
8836 if test $cf_XOPEN_SOURCE_set_ok = no
8838 { echo "$as_me:8838: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8839 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8843 echo "$as_me:8843: checking if we should define _XOPEN_SOURCE" >&5
8844 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8845 if test "${cf_cv_xopen_source+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8850 #line 8850 "configure"
8851 #include "confdefs.h"
8855 #include <sys/types.h>
8861 #ifndef _XOPEN_SOURCE
8868 rm -f conftest.$ac_objext
8869 if { (eval echo "$as_me:8869: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>&5
8872 echo "$as_me:8872: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -s conftest.$ac_objext'
8875 { (eval echo "$as_me:8875: \"$ac_try\"") >&5
8878 echo "$as_me:8878: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 cf_cv_xopen_source=no
8882 echo "$as_me: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8885 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line 8887 "configure"
8888 #include "confdefs.h"
8892 #include <sys/types.h>
8898 #ifdef _XOPEN_SOURCE
8905 rm -f conftest.$ac_objext
8906 if { (eval echo "$as_me:8906: \"$ac_compile\"") >&5
8907 (eval $ac_compile) 2>&5
8909 echo "$as_me:8909: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:8912: \"$ac_try\"") >&5
8915 echo "$as_me:8915: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 cf_cv_xopen_source=no
8919 echo "$as_me: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8923 rm -f conftest.$ac_objext conftest.$ac_ext
8927 rm -f conftest.$ac_objext conftest.$ac_ext
8930 echo "$as_me:8930: result: $cf_cv_xopen_source" >&5
8931 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8933 if test "$cf_cv_xopen_source" != no ; then
8935 CFLAGS=`echo "$CFLAGS" | \
8936 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8937 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8939 CPPFLAGS=`echo "$CPPFLAGS" | \
8940 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8941 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8943 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8948 cf_new_extra_cppflags=
8950 for cf_add_cflags in $cf_temp_xopen_source
8952 case $cf_fix_cppflags in
8954 case $cf_add_cflags in
8955 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8956 case $cf_add_cflags in
8958 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8960 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8961 && test -z "${cf_tst_cflags}" \
8962 && cf_fix_cppflags=yes
8964 if test $cf_fix_cppflags = yes ; then
8965 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8967 elif test "${cf_tst_cflags}" = "\"'" ; then
8968 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8977 case $cf_add_cflags in
8979 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8981 CPPFLAGS=`echo "$CPPFLAGS" | \
8982 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8983 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8987 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8992 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8997 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8999 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9001 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9002 && test -z "${cf_tst_cflags}" \
9003 && cf_fix_cppflags=no
9008 if test -n "$cf_new_cflags" ; then
9010 CFLAGS="$CFLAGS $cf_new_cflags"
9013 if test -n "$cf_new_cppflags" ; then
9015 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9018 if test -n "$cf_new_extra_cppflags" ; then
9020 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9028 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9030 # Work around breakage on OS X
9032 echo "$as_me:9032: checking if SIGWINCH is defined" >&5
9033 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9034 if test "${cf_cv_define_sigwinch+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line 9039 "configure"
9040 #include "confdefs.h"
9042 #include <sys/types.h>
9043 #include <sys/signal.h>
9053 rm -f conftest.$ac_objext
9054 if { (eval echo "$as_me:9054: \"$ac_compile\"") >&5
9055 (eval $ac_compile) 2>&5
9057 echo "$as_me:9057: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -s conftest.$ac_objext'
9060 { (eval echo "$as_me:9060: \"$ac_try\"") >&5
9063 echo "$as_me:9063: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 cf_cv_define_sigwinch=yes
9067 echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9073 #undef _XOPEN_SOURCE
9074 #undef _POSIX_SOURCE
9075 #undef _POSIX_C_SOURCE
9076 #include <sys/types.h>
9077 #include <sys/signal.h>
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:9088: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>&5
9091 echo "$as_me:9091: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (eval echo "$as_me:9094: \"$ac_try\"") >&5
9097 echo "$as_me:9097: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 cf_cv_define_sigwinch=maybe
9101 echo "$as_me: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 cf_cv_define_sigwinch=no
9105 rm -f conftest.$ac_objext conftest.$ac_ext
9108 rm -f conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:9111: result: $cf_cv_define_sigwinch" >&5
9112 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9114 if test "$cf_cv_define_sigwinch" = maybe ; then
9115 echo "$as_me:9115: checking for actual SIGWINCH definition" >&5
9116 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9117 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 cf_cv_fixup_sigwinch=unknown
9123 while test $cf_sigwinch != 1
9125 cat >conftest.$ac_ext <<_ACEOF
9126 #line 9126 "configure"
9127 #include "confdefs.h"
9129 #undef _XOPEN_SOURCE
9130 #undef _POSIX_SOURCE
9131 #undef _POSIX_C_SOURCE
9132 #include <sys/types.h>
9133 #include <sys/signal.h>
9139 #if SIGWINCH != $cf_sigwinch
9147 rm -f conftest.$ac_objext
9148 if { (eval echo "$as_me:9148: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>&5
9151 echo "$as_me:9151: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -s conftest.$ac_objext'
9154 { (eval echo "$as_me:9154: \"$ac_try\"") >&5
9157 echo "$as_me:9157: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 cf_cv_fixup_sigwinch=$cf_sigwinch
9162 echo "$as_me: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9165 rm -f conftest.$ac_objext conftest.$ac_ext
9167 cf_sigwinch=`expr $cf_sigwinch - 1`
9171 echo "$as_me:9171: result: $cf_cv_fixup_sigwinch" >&5
9172 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9174 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9175 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9179 # Checks for CODESET support.
9181 echo "$as_me:9181: checking for nl_langinfo and CODESET" >&5
9182 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9183 if test "${am_cv_langinfo_codeset+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 cat >conftest.$ac_ext <<_ACEOF
9187 #line 9187 "configure"
9188 #include "confdefs.h"
9189 #include <langinfo.h>
9193 char* cs = nl_langinfo(CODESET);
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:9199: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>&5
9202 echo "$as_me:9202: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:9205: \"$ac_try\"") >&5
9208 echo "$as_me:9208: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 am_cv_langinfo_codeset=yes
9212 echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 am_cv_langinfo_codeset=no
9216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9219 echo "$as_me:9219: result: $am_cv_langinfo_codeset" >&5
9220 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9221 if test $am_cv_langinfo_codeset = yes; then
9223 cat >>confdefs.h <<\EOF
9224 #define HAVE_LANGINFO_CODESET 1
9229 # use these variables to work around a defect in gcc's fixincludes.
9233 echo "$as_me:9233: checking if you want wide-character code" >&5
9234 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9236 # Check whether --enable-widec or --disable-widec was given.
9237 if test "${enable_widec+set}" = set; then
9238 enableval="$enable_widec"
9239 with_widec=$enableval
9243 echo "$as_me:9243: result: $with_widec" >&5
9244 echo "${ECHO_T}$with_widec" >&6
9246 NCURSES_WCWIDTH_GRAPHICS=1
9248 if test "x$with_widec" = xyes ; then
9249 if test "x$disable_lib_suffixes" = xno ; then
9250 LIB_SUFFIX="w${LIB_SUFFIX}"
9253 cat >>confdefs.h <<\EOF
9254 #define USE_WIDEC_SUPPORT 1
9257 cat >>confdefs.h <<\EOF
9258 #define NCURSES_WIDECHAR 1
9261 echo "$as_me:9261: checking if wchar.h can be used as is" >&5
9262 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9263 if test "${cf_cv_wchar_h_okay+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9268 #line 9268 "configure"
9269 #include "confdefs.h"
9279 int bar = iswpunct(foo)
9284 rm -f conftest.$ac_objext
9285 if { (eval echo "$as_me:9285: \"$ac_compile\"") >&5
9286 (eval $ac_compile) 2>&5
9288 echo "$as_me:9288: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (eval echo "$as_me:9291: \"$ac_try\"") >&5
9294 echo "$as_me:9294: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 cf_cv_wchar_h_okay=yes
9298 echo "$as_me: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 cf_cv_wchar_h_okay=no
9302 rm -f conftest.$ac_objext conftest.$ac_ext
9304 echo "$as_me:9304: result: $cf_cv_wchar_h_okay" >&5
9305 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9307 if test $cf_cv_wchar_h_okay = no
9310 echo "$as_me:9310: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9311 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9312 cat >conftest.$ac_ext <<_ACEOF
9313 #line 9313 "configure"
9314 #include "confdefs.h"
9315 #include <sys/types.h>
9321 #ifndef _XOPEN_SOURCE_EXTENDED
9328 rm -f conftest.$ac_objext
9329 if { (eval echo "$as_me:9329: \"$ac_compile\"") >&5
9330 (eval $ac_compile) 2>&5
9332 echo "$as_me:9332: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -s conftest.$ac_objext'
9335 { (eval echo "$as_me:9335: \"$ac_try\"") >&5
9338 echo "$as_me:9338: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9342 echo "$as_me: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9346 rm -f conftest.$ac_objext conftest.$ac_ext
9347 echo "$as_me:9347: result: $cf_result" >&5
9348 echo "${ECHO_T}$cf_result" >&6
9350 if test "$cf_result" = yes ; then
9351 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9352 elif test "x" != "x" ; then
9353 echo "$as_me:9353: checking checking for compatible value versus " >&5
9354 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9356 #line 9356 "configure"
9357 #include "confdefs.h"
9358 #include <sys/types.h>
9364 #if _XOPEN_SOURCE_EXTENDED- < 0
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:9372: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9375 echo "$as_me:9375: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -s conftest.$ac_objext'
9378 { (eval echo "$as_me:9378: \"$ac_try\"") >&5
9381 echo "$as_me:9381: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9385 echo "$as_me: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9389 rm -f conftest.$ac_objext conftest.$ac_ext
9390 echo "$as_me:9390: result: $cf_result" >&5
9391 echo "${ECHO_T}$cf_result" >&6
9392 if test "$cf_result" = no ; then
9393 # perhaps we can override it - try...
9394 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9400 echo "$as_me:9400: checking if wcwidth agrees graphics are single-width" >&5
9401 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
9402 if test "${cf_cv_wcwidth_graphics+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 cat >conftest.in <<CF_EOF
9408 0x250c upper left corner
9409 0x2514 lower left corner
9410 0x2510 upper right corner
9411 0x2518 lower right corner
9412 0x251c tee pointing left
9413 0x2524 tee pointing right
9414 0x2534 tee pointing up
9415 0x252c tee pointing down
9416 0x2500 horizontal line
9417 0x2502 vertical line
9418 0x253c large plus or crossover
9422 0x2592 checker board (stipple)
9423 0x00b0 degree symbol
9426 - Teletype 5410v1 symbols
9427 0x2190 arrow pointing left
9428 0x2192 arrow pointing right
9429 0x2193 arrow pointing down
9430 0x2191 arrow pointing up
9431 0x2592 board of squares
9432 0x2603 lantern symbol
9433 0x25ae solid square block
9434 - these defaults were invented for ncurses
9437 0x2264 less-than-or-equal-to
9438 0x2265 greater-than-or-equal-to
9441 0x00a3 pound-sterling symbol
9442 - thick-line-drawing
9443 0x250f upper left corner
9444 0x2517 lower left corner
9445 0x2513 upper right corner
9446 0x251b lower right corner
9447 0x2523 tee pointing left
9448 0x252b tee pointing right
9449 0x253b tee pointing up
9450 0x2533 tee pointing down
9451 0x2501 horizontal line
9452 0x2503 vertical line
9453 0x254b large plus or crossover
9454 - double-line-drawing
9455 0x2554 upper left corner
9456 0x255a lower left corner
9457 0x2557 upper right corner
9458 0x255d lower right corner
9459 0x2563 tee pointing left
9460 0x2560 tee pointing right
9461 0x2569 tee pointing up
9462 0x2566 tee pointing down
9463 0x2550 horizontal line
9464 0x2551 vertical line
9465 0x256c large plus or crossover
9467 if test "$cross_compiling" = yes; then
9468 cf_cv_wcwidth_graphics=unknown
9470 cat >conftest.$ac_ext <<_ACEOF
9471 #line 9471 "configure"
9472 #include "confdefs.h"
9485 char buffer[MY_LEN + 1];
9486 char notes[MY_LEN + 1];
9490 if (setlocale(LC_ALL, "en_US.UTF8") ||
9491 setlocale(LC_ALL, "en_US.UTF-8") ||
9492 setlocale(LC_ALL, "en_US.utf8") ||
9493 setlocale(LC_ALL, "en_US.utf-8")) {
9494 if ((fp = fopen("conftest.in", "r")) != 0) {
9495 while (fgets(buffer, MY_LEN, fp) != 0) {
9496 if (*buffer == '-') {
9497 fprintf(stderr, "\t%s", buffer);
9498 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
9500 if (wcwidth(value) == 1)
9502 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
9504 fprintf(stderr, "?\t%s", buffer);
9509 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
9510 return (totals == passed) ? 0 : 1;
9514 rm -f conftest$ac_exeext
9515 if { (eval echo "$as_me:9515: \"$ac_link\"") >&5
9516 (eval $ac_link) 2>&5
9518 echo "$as_me:9518: \$? = $ac_status" >&5
9519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9520 { (eval echo "$as_me:9520: \"$ac_try\"") >&5
9523 echo "$as_me:9523: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then
9525 cf_cv_wcwidth_graphics=yes
9527 echo "$as_me: program exited with status $ac_status" >&5
9528 echo "$as_me: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 cf_cv_wcwidth_graphics=no
9532 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9536 echo "$as_me:9536: result: $cf_cv_wcwidth_graphics" >&5
9537 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
9539 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
9542 NCURSES_CH_T=cchar_t
9544 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9547 echo "$as_me:9547: checking for $ac_func" >&5
9548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9549 if eval "test \"\${$as_ac_var+set}\" = set"; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9553 #line 9553 "configure"
9554 #include "confdefs.h"
9555 /* System header to define __stub macros and hopefully few prototypes,
9556 which can conflict with char $ac_func (); below. */
9558 /* Override any gcc2 internal prototype to avoid an error. */
9562 /* We use char because int might match the return type of a gcc2
9563 builtin and then its argument prototype would still apply. */
9570 /* The GNU C library defines this for functions which it implements
9571 to always fail with ENOSYS. Some functions are actually named
9572 something starting with __ and the normal name is an alias. */
9573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9576 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (eval echo "$as_me:9584: \"$ac_link\"") >&5
9585 (eval $ac_link) 2>&5
9587 echo "$as_me:9587: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -s conftest$ac_exeext'
9590 { (eval echo "$as_me:9590: \"$ac_try\"") >&5
9593 echo "$as_me:9593: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 eval "$as_ac_var=yes"
9597 echo "$as_me: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9599 eval "$as_ac_var=no"
9601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9603 echo "$as_me:9603: result: `eval echo '${'$as_ac_var'}'`" >&5
9604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9605 if test `eval echo '${'$as_ac_var'}'` = yes; then
9606 cat >>confdefs.h <<EOF
9607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9613 if test "x$ac_cv_func_putwc" != xyes ; then
9615 echo "$as_me:9615: checking for multibyte character support" >&5
9616 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9617 if test "${cf_cv_utf8_lib+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cf_save_LIBS="$LIBS"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 #line 9623 "configure"
9624 #include "confdefs.h"
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (eval echo "$as_me:9636: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>&5
9639 echo "$as_me:9639: \$? = $ac_status" >&5
9640 (exit $ac_status); } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (eval echo "$as_me:9642: \"$ac_try\"") >&5
9645 echo "$as_me:9645: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9649 echo "$as_me: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9652 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9653 # will be set on completion of the AC_TRY_LINK below.
9654 cf_cv_header_path_utf8=
9655 cf_cv_library_path_utf8=
9657 echo "${as_me:-configure}:9657: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9659 cf_save_LIBS="$LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662 #line 9662 "configure"
9663 #include "confdefs.h"
9665 #include <libutf8.h>
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:9675: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>&5
9678 echo "$as_me:9678: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:9681: \"$ac_try\"") >&5
9684 echo "$as_me:9684: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9687 cf_cv_find_linkage_utf8=yes
9688 cf_cv_header_path_utf8=/usr/include
9689 cf_cv_library_path_utf8=/usr/lib
9692 echo "$as_me: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9695 LIBS="-lutf8 $cf_save_LIBS"
9697 cat >conftest.$ac_ext <<_ACEOF
9698 #line 9698 "configure"
9699 #include "confdefs.h"
9701 #include <libutf8.h>
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:9711: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>&5
9714 echo "$as_me:9714: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (eval echo "$as_me:9717: \"$ac_try\"") >&5
9720 echo "$as_me:9720: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9723 cf_cv_find_linkage_utf8=yes
9724 cf_cv_header_path_utf8=/usr/include
9725 cf_cv_library_path_utf8=/usr/lib
9726 cf_cv_library_file_utf8="-lutf8"
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 cf_cv_find_linkage_utf8=no
9733 LIBS="$cf_save_LIBS"
9735 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9737 echo "${as_me:-configure}:9737: testing find linkage for utf8 library ..." 1>&5
9739 echo "${as_me:-configure}:9739: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9741 cf_save_CPPFLAGS="$CPPFLAGS"
9742 cf_test_CPPFLAGS="$CPPFLAGS"
9746 # collect the current set of include-directories from compiler flags
9747 cf_header_path_list=""
9748 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9749 for cf_header_path in $CPPFLAGS $CFLAGS
9751 case $cf_header_path in
9753 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9755 test "x$cf_header_path" != "xNONE" && \
9756 test -d "$cf_header_path" && \
9758 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9759 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9760 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9761 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9762 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9763 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9766 cf_header_path_list="$cf_header_path_list $cf_search"
9772 # add the variations for the package we are looking for
9776 test "x$prefix" != "xNONE" && \
9777 test -d "$prefix" && \
9779 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9780 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9781 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9782 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9783 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9784 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9787 for cf_subdir_prefix in \
9796 test "x$cf_subdir_prefix" != "x$prefix" && \
9797 test -d "$cf_subdir_prefix" && \
9798 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9799 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9800 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9801 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
9802 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
9803 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
9804 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
9809 test "$includedir" != NONE && \
9810 test "$includedir" != "/usr/include" && \
9811 test -d "$includedir" && {
9812 test -d $includedir && cf_search="$cf_search $includedir"
9813 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9816 test "$oldincludedir" != NONE && \
9817 test "$oldincludedir" != "/usr/include" && \
9818 test -d "$oldincludedir" && {
9819 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9820 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9823 cf_search="$cf_search $cf_header_path_list"
9825 for cf_cv_header_path_utf8 in $cf_search
9827 if test -d $cf_cv_header_path_utf8 ; then
9828 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9830 echo "${as_me:-configure}:9830: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9832 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9833 cat >conftest.$ac_ext <<_ACEOF
9834 #line 9834 "configure"
9835 #include "confdefs.h"
9837 #include <libutf8.h>
9846 rm -f conftest.$ac_objext
9847 if { (eval echo "$as_me:9847: \"$ac_compile\"") >&5
9848 (eval $ac_compile) 2>&5
9850 echo "$as_me:9850: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -s conftest.$ac_objext'
9853 { (eval echo "$as_me:9853: \"$ac_try\"") >&5
9856 echo "$as_me:9856: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9859 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9861 echo "${as_me:-configure}:9861: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9863 cf_cv_find_linkage_utf8=maybe
9864 cf_test_CPPFLAGS="$CPPFLAGS"
9867 echo "$as_me: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9870 CPPFLAGS="$cf_save_CPPFLAGS"
9873 rm -f conftest.$ac_objext conftest.$ac_ext
9877 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9879 echo "${as_me:-configure}:9879: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9881 cf_save_LIBS="$LIBS"
9882 cf_save_LDFLAGS="$LDFLAGS"
9884 if test "$cf_cv_find_linkage_utf8" != yes ; then
9887 cf_library_path_list=""
9888 if test -n "${LDFLAGS}${LIBS}" ; then
9889 for cf_library_path in $LDFLAGS $LIBS
9891 case $cf_library_path in
9893 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9895 test "x$cf_library_path" != "xNONE" && \
9896 test -d "$cf_library_path" && \
9898 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9899 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9900 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9901 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9902 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9903 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9906 cf_library_path_list="$cf_library_path_list $cf_search"
9914 test "x$prefix" != "xNONE" && \
9915 test -d "$prefix" && \
9917 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9918 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9919 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9920 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9921 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9922 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9925 for cf_subdir_prefix in \
9934 test "x$cf_subdir_prefix" != "x$prefix" && \
9935 test -d "$cf_subdir_prefix" && \
9936 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9937 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9938 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9939 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
9940 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
9941 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
9942 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
9947 cf_search="$cf_library_path_list $cf_search"
9949 for cf_cv_library_path_utf8 in $cf_search
9951 if test -d $cf_cv_library_path_utf8 ; then
9952 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9954 echo "${as_me:-configure}:9954: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9956 CPPFLAGS="$cf_test_CPPFLAGS"
9957 LIBS="-lutf8 $cf_save_LIBS"
9958 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line 9960 "configure"
9961 #include "confdefs.h"
9963 #include <libutf8.h>
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (eval echo "$as_me:9973: \"$ac_link\"") >&5
9974 (eval $ac_link) 2>&5
9976 echo "$as_me:9976: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:9979: \"$ac_try\"") >&5
9982 echo "$as_me:9982: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9985 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9987 echo "${as_me:-configure}:9987: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9989 cf_cv_find_linkage_utf8=yes
9990 cf_cv_library_file_utf8="-lutf8"
9993 echo "$as_me: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9996 CPPFLAGS="$cf_save_CPPFLAGS"
9997 LIBS="$cf_save_LIBS"
9998 LDFLAGS="$cf_save_LDFLAGS"
10001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10004 CPPFLAGS="$cf_save_CPPFLAGS"
10005 LDFLAGS="$cf_save_LDFLAGS"
10009 cf_cv_find_linkage_utf8=no
10013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10018 LIBS="$cf_save_LIBS"
10020 if test "$cf_cv_find_linkage_utf8" = yes ; then
10021 cf_cv_utf8_lib=add-on
10027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 echo "$as_me:10029: result: $cf_cv_utf8_lib" >&5
10030 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10032 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10033 # ncurses/ncursesw:
10034 if test "$cf_cv_utf8_lib" = "add-on" ; then
10036 cat >>confdefs.h <<\EOF
10037 #define HAVE_LIBUTF8_H 1
10040 if test -n "$cf_cv_header_path_utf8" ; then
10041 for cf_add_incdir in $cf_cv_header_path_utf8
10043 while test $cf_add_incdir != /usr/include
10045 if test -d $cf_add_incdir
10048 if test -n "$CFLAGS$CPPFLAGS" ; then
10049 # a loop is needed to ensure we can add subdirs of existing dirs
10050 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10051 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10052 cf_have_incdir=yes; break
10057 if test "$cf_have_incdir" = no ; then
10058 if test "$cf_add_incdir" = /usr/local/include ; then
10059 if test "$GCC" = yes
10061 cf_save_CPPFLAGS=$CPPFLAGS
10062 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10063 cat >conftest.$ac_ext <<_ACEOF
10064 #line 10064 "configure"
10065 #include "confdefs.h"
10075 rm -f conftest.$ac_objext
10076 if { (eval echo "$as_me:10076: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>&5
10079 echo "$as_me:10079: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -s conftest.$ac_objext'
10082 { (eval echo "$as_me:10082: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:10085: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10089 echo "$as_me: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10093 rm -f conftest.$ac_objext conftest.$ac_ext
10094 CPPFLAGS=$cf_save_CPPFLAGS
10099 if test "$cf_have_incdir" = no ; then
10100 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10102 echo "${as_me:-configure}:10102: testing adding $cf_add_incdir to include-path ..." 1>&5
10104 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10106 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10107 test "$cf_top_incdir" = "$cf_add_incdir" && break
10108 cf_add_incdir="$cf_top_incdir"
10119 if test -n "$cf_cv_library_path_utf8" ; then
10120 for cf_add_libdir in $cf_cv_library_path_utf8
10122 if test $cf_add_libdir = /usr/lib ; then
10124 elif test -d $cf_add_libdir
10127 if test -n "$LDFLAGS$LIBS" ; then
10128 # a loop is needed to ensure we can add subdirs of existing dirs
10129 for cf_test_libdir in $LDFLAGS $LIBS ; do
10130 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10131 cf_have_libdir=yes; break
10135 if test "$cf_have_libdir" = no ; then
10136 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10138 echo "${as_me:-configure}:10138: testing adding $cf_add_libdir to library-path ..." 1>&5
10140 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10146 cf_add_libs="$cf_cv_library_file_utf8"
10147 # Filter out duplicates - this happens with badly-designed ".pc" files...
10148 for cf_add_1lib in $LIBS
10150 for cf_add_2lib in $cf_add_libs
10152 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10158 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10160 LIBS="$cf_add_libs"
10164 if test "$cf_cv_utf8_lib" != no ; then
10169 # This is needed on Tru64 5.0 to declare mbstate_t
10170 echo "$as_me:10170: checking if we must include wchar.h to declare mbstate_t" >&5
10171 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10172 if test "${cf_cv_mbstate_t+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line 10177 "configure"
10178 #include "confdefs.h"
10180 #include <stdlib.h>
10181 #include <stdarg.h>
10183 #ifdef HAVE_LIBUTF8_H
10184 #include <libutf8.h>
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:10195: \"$ac_compile\"") >&5
10196 (eval $ac_compile) 2>&5
10198 echo "$as_me:10198: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -s conftest.$ac_objext'
10201 { (eval echo "$as_me:10201: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:10204: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10208 echo "$as_me: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 cat >conftest.$ac_ext <<_ACEOF
10211 #line 10211 "configure"
10212 #include "confdefs.h"
10214 #include <stdlib.h>
10215 #include <stdarg.h>
10218 #ifdef HAVE_LIBUTF8_H
10219 #include <libutf8.h>
10229 rm -f conftest.$ac_objext
10230 if { (eval echo "$as_me:10230: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10233 echo "$as_me:10233: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:10236: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:10239: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 cf_cv_mbstate_t=yes
10243 echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 cf_cv_mbstate_t=unknown
10247 rm -f conftest.$ac_objext conftest.$ac_ext
10249 rm -f conftest.$ac_objext conftest.$ac_ext
10251 echo "$as_me:10251: result: $cf_cv_mbstate_t" >&5
10252 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10254 if test "$cf_cv_mbstate_t" = yes ; then
10256 cat >>confdefs.h <<\EOF
10257 #define NEED_WCHAR_H 1
10263 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10264 if test "$cf_cv_mbstate_t" = unknown ; then
10265 NCURSES_MBSTATE_T=1
10268 # This is needed on Tru64 5.0 to declare wchar_t
10269 echo "$as_me:10269: checking if we must include wchar.h to declare wchar_t" >&5
10270 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10271 if test "${cf_cv_wchar_t+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 cat >conftest.$ac_ext <<_ACEOF
10276 #line 10276 "configure"
10277 #include "confdefs.h"
10279 #include <stdlib.h>
10280 #include <stdarg.h>
10282 #ifdef HAVE_LIBUTF8_H
10283 #include <libutf8.h>
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:10294: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>&5
10297 echo "$as_me:10297: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:10300: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:10303: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 cat >conftest.$ac_ext <<_ACEOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10313 #include <stdlib.h>
10314 #include <stdarg.h>
10317 #ifdef HAVE_LIBUTF8_H
10318 #include <libutf8.h>
10328 rm -f conftest.$ac_objext
10329 if { (eval echo "$as_me:10329: \"$ac_compile\"") >&5
10330 (eval $ac_compile) 2>&5
10332 echo "$as_me:10332: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:10335: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:10338: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10342 echo "$as_me: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10344 cf_cv_wchar_t=unknown
10346 rm -f conftest.$ac_objext conftest.$ac_ext
10348 rm -f conftest.$ac_objext conftest.$ac_ext
10350 echo "$as_me:10350: result: $cf_cv_wchar_t" >&5
10351 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10353 if test "$cf_cv_wchar_t" = yes ; then
10355 cat >>confdefs.h <<\EOF
10356 #define NEED_WCHAR_H 1
10362 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10363 if test "$cf_cv_wchar_t" = unknown ; then
10367 # if we find wchar_t in either place, use substitution to provide a fallback.
10368 if test "$cf_cv_wchar_t" != unknown ; then
10369 NCURSES_OK_WCHAR_T=1
10372 # This is needed on Tru64 5.0 to declare wint_t
10373 echo "$as_me:10373: checking if we must include wchar.h to declare wint_t" >&5
10374 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10375 if test "${cf_cv_wint_t+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line 10380 "configure"
10381 #include "confdefs.h"
10383 #include <stdlib.h>
10384 #include <stdarg.h>
10386 #ifdef HAVE_LIBUTF8_H
10387 #include <libutf8.h>
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:10398: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>&5
10401 echo "$as_me:10401: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:10404: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:10407: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10411 echo "$as_me: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10413 cat >conftest.$ac_ext <<_ACEOF
10414 #line 10414 "configure"
10415 #include "confdefs.h"
10417 #include <stdlib.h>
10418 #include <stdarg.h>
10421 #ifdef HAVE_LIBUTF8_H
10422 #include <libutf8.h>
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:10433: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10436 echo "$as_me:10436: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:10439: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:10442: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10446 echo "$as_me: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10448 cf_cv_wint_t=unknown
10450 rm -f conftest.$ac_objext conftest.$ac_ext
10452 rm -f conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:10454: result: $cf_cv_wint_t" >&5
10455 echo "${ECHO_T}$cf_cv_wint_t" >&6
10457 if test "$cf_cv_wint_t" = yes ; then
10459 cat >>confdefs.h <<\EOF
10460 #define NEED_WCHAR_H 1
10466 # if we do not find wint_t in either place, use substitution to provide a fallback.
10467 if test "$cf_cv_wint_t" = unknown ; then
10471 # if we find wint_t in either place, use substitution to provide a fallback.
10472 if test "$cf_cv_wint_t" != unknown ; then
10473 NCURSES_OK_WINT_T=1
10476 if test "$NCURSES_MBSTATE_T" != 0; then
10478 cat >>confdefs.h <<\EOF
10479 #define NEED_MBSTATE_T_DEF 1
10485 ### use option --disable-lp64 to allow long chtype
10486 echo "$as_me:10486: checking whether to enable _LP64 definition in curses.h" >&5
10487 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10489 # Check whether --enable-lp64 or --disable-lp64 was given.
10490 if test "${enable_lp64+set}" = set; then
10491 enableval="$enable_lp64"
10492 with_lp64=$enableval
10494 with_lp64=$cf_dft_with_lp64
10496 echo "$as_me:10496: result: $with_lp64" >&5
10497 echo "${ECHO_T}$with_lp64" >&6
10499 if test "x$with_lp64" = xyes ; then
10500 cf_cv_enable_lp64=1
10502 cf_cv_enable_lp64=0
10505 # Check whether --enable-largefile or --disable-largefile was given.
10506 if test "${enable_largefile+set}" = set; then
10507 enableval="$enable_largefile"
10510 if test "$enable_largefile" != no; then
10512 echo "$as_me:10512: checking for special C compiler options needed for large files" >&5
10513 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10514 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 ac_cv_sys_largefile_CC=no
10518 if test "$GCC" != yes; then
10521 # IRIX 6.2 and later do not support large files by default,
10522 # so use the C compiler's -n32 option if that helps.
10523 cat >conftest.$ac_ext <<_ACEOF
10524 #line 10524 "configure"
10525 #include "confdefs.h"
10526 #include <sys/types.h>
10527 /* Check that off_t can represent 2**63 - 1 correctly.
10528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10529 since some C++ compilers masquerading as C compilers
10530 incorrectly reject 9223372036854775807. */
10531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10533 && LARGE_OFF_T % 2147483647 == 1)
10543 rm -f conftest.$ac_objext
10544 if { (eval echo "$as_me:10544: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>&5
10547 echo "$as_me:10547: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -s conftest.$ac_objext'
10550 { (eval echo "$as_me:10550: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10553 echo "$as_me:10553: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10557 echo "$as_me: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10560 rm -f conftest.$ac_objext
10562 rm -f conftest.$ac_objext
10563 if { (eval echo "$as_me:10563: \"$ac_compile\"") >&5
10564 (eval $ac_compile) 2>&5
10566 echo "$as_me:10566: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -s conftest.$ac_objext'
10569 { (eval echo "$as_me:10569: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10572 echo "$as_me:10572: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10574 ac_cv_sys_largefile_CC=' -n32'; break
10576 echo "$as_me: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10579 rm -f conftest.$ac_objext
10583 rm -f conftest.$ac_ext
10586 echo "$as_me:10586: result: $ac_cv_sys_largefile_CC" >&5
10587 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10588 if test "$ac_cv_sys_largefile_CC" != no; then
10589 CC=$CC$ac_cv_sys_largefile_CC
10592 echo "$as_me:10592: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10593 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10594 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 ac_cv_sys_file_offset_bits=no
10599 cat >conftest.$ac_ext <<_ACEOF
10600 #line 10600 "configure"
10601 #include "confdefs.h"
10602 #include <sys/types.h>
10603 /* Check that off_t can represent 2**63 - 1 correctly.
10604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10605 since some C++ compilers masquerading as C compilers
10606 incorrectly reject 9223372036854775807. */
10607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10609 && LARGE_OFF_T % 2147483647 == 1)
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:10620: \"$ac_compile\"") >&5
10621 (eval $ac_compile) 2>&5
10623 echo "$as_me:10623: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (eval echo "$as_me:10626: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:10629: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10633 echo "$as_me: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 rm -f conftest.$ac_objext conftest.$ac_ext
10637 cat >conftest.$ac_ext <<_ACEOF
10638 #line 10638 "configure"
10639 #include "confdefs.h"
10640 #define _FILE_OFFSET_BITS 64
10641 #include <sys/types.h>
10642 /* Check that off_t can represent 2**63 - 1 correctly.
10643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10644 since some C++ compilers masquerading as C compilers
10645 incorrectly reject 9223372036854775807. */
10646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10648 && LARGE_OFF_T % 2147483647 == 1)
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:10659: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10662 echo "$as_me:10662: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (eval echo "$as_me:10665: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_sys_file_offset_bits=64; break
10672 echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10675 rm -f conftest.$ac_objext conftest.$ac_ext
10679 echo "$as_me:10679: result: $ac_cv_sys_file_offset_bits" >&5
10680 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10681 if test "$ac_cv_sys_file_offset_bits" != no; then
10683 cat >>confdefs.h <<EOF
10684 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10689 echo "$as_me:10689: checking for _LARGE_FILES value needed for large files" >&5
10690 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10691 if test "${ac_cv_sys_large_files+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 ac_cv_sys_large_files=no
10696 cat >conftest.$ac_ext <<_ACEOF
10697 #line 10697 "configure"
10698 #include "confdefs.h"
10699 #include <sys/types.h>
10700 /* Check that off_t can represent 2**63 - 1 correctly.
10701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10702 since some C++ compilers masquerading as C compilers
10703 incorrectly reject 9223372036854775807. */
10704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10706 && LARGE_OFF_T % 2147483647 == 1)
10716 rm -f conftest.$ac_objext
10717 if { (eval echo "$as_me:10717: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>&5
10720 echo "$as_me:10720: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -s conftest.$ac_objext'
10723 { (eval echo "$as_me:10723: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:10726: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10730 echo "$as_me: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 rm -f conftest.$ac_objext conftest.$ac_ext
10734 cat >conftest.$ac_ext <<_ACEOF
10735 #line 10735 "configure"
10736 #include "confdefs.h"
10737 #define _LARGE_FILES 1
10738 #include <sys/types.h>
10739 /* Check that off_t can represent 2**63 - 1 correctly.
10740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10741 since some C++ compilers masquerading as C compilers
10742 incorrectly reject 9223372036854775807. */
10743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10745 && LARGE_OFF_T % 2147483647 == 1)
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:10756: \"$ac_compile\"") >&5
10757 (eval $ac_compile) 2>&5
10759 echo "$as_me:10759: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:10762: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:10765: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_sys_large_files=1; break
10769 echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10772 rm -f conftest.$ac_objext conftest.$ac_ext
10776 echo "$as_me:10776: result: $ac_cv_sys_large_files" >&5
10777 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10778 if test "$ac_cv_sys_large_files" != no; then
10780 cat >>confdefs.h <<EOF
10781 #define _LARGE_FILES $ac_cv_sys_large_files
10788 if test "$enable_largefile" != no ; then
10789 echo "$as_me:10789: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10790 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10791 if test "${ac_cv_sys_largefile_source+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 ac_cv_sys_largefile_source=no
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line 10797 "configure"
10798 #include "confdefs.h"
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:10809: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>&5
10812 echo "$as_me:10812: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -s conftest.$ac_objext'
10815 { (eval echo "$as_me:10815: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:10818: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10822 echo "$as_me: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10825 rm -f conftest.$ac_objext conftest.$ac_ext
10826 cat >conftest.$ac_ext <<_ACEOF
10827 #line 10827 "configure"
10828 #include "confdefs.h"
10829 #define _LARGEFILE_SOURCE 1
10839 rm -f conftest.$ac_objext
10840 if { (eval echo "$as_me:10840: \"$ac_compile\"") >&5
10841 (eval $ac_compile) 2>&5
10843 echo "$as_me:10843: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -s conftest.$ac_objext'
10846 { (eval echo "$as_me:10846: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:10849: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_sys_largefile_source=1; break
10853 echo "$as_me: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10856 rm -f conftest.$ac_objext conftest.$ac_ext
10860 echo "$as_me:10860: result: $ac_cv_sys_largefile_source" >&5
10861 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10862 if test "$ac_cv_sys_largefile_source" != no; then
10864 cat >>confdefs.h <<EOF
10865 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10871 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10872 # in glibc 2.1.3, but that breaks too many other things.
10873 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10874 echo "$as_me:10874: checking for fseeko" >&5
10875 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10876 if test "${ac_cv_func_fseeko+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 cat >conftest.$ac_ext <<_ACEOF
10880 #line 10880 "configure"
10881 #include "confdefs.h"
10886 return fseeko && fseeko (stdin, 0, 0);
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:10892: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>&5
10895 echo "$as_me:10895: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -s conftest$ac_exeext'
10898 { (eval echo "$as_me:10898: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:10901: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_cv_func_fseeko=yes
10905 echo "$as_me: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 ac_cv_func_fseeko=no
10909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10911 echo "$as_me:10911: result: $ac_cv_func_fseeko" >&5
10912 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10913 if test $ac_cv_func_fseeko = yes; then
10915 cat >>confdefs.h <<\EOF
10916 #define HAVE_FSEEKO 1
10921 # Normally we would collect these definitions in the config.h,
10922 # but (like _XOPEN_SOURCE), some environments rely on having these
10923 # defined before any of the system headers are included. Another
10924 # case comes up with C++, e.g., on AIX the compiler compiles the
10925 # header files by themselves before looking at the body files it is
10926 # told to compile. For ncurses, those header files do not include
10928 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10929 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10930 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10932 echo "$as_me:10932: checking whether to use struct dirent64" >&5
10933 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10934 if test "${cf_cv_struct_dirent64+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10939 #line 10939 "configure"
10940 #include "confdefs.h"
10942 #include <sys/types.h>
10943 #include <dirent.h>
10949 /* if transitional largefile support is setup, this is true */
10950 extern struct dirent64 * readdir(DIR *);
10951 struct dirent64 *x = readdir((DIR *)0);
10952 struct dirent *y = readdir((DIR *)0);
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:10960: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>&5
10963 echo "$as_me:10963: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -s conftest.$ac_objext'
10966 { (eval echo "$as_me:10966: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:10969: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 cf_cv_struct_dirent64=yes
10973 echo "$as_me: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 cf_cv_struct_dirent64=no
10977 rm -f conftest.$ac_objext conftest.$ac_ext
10980 echo "$as_me:10980: result: $cf_cv_struct_dirent64" >&5
10981 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10982 test "$cf_cv_struct_dirent64" = yes &&
10983 cat >>confdefs.h <<\EOF
10984 #define HAVE_STRUCT_DIRENT64 1
10989 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10990 echo "$as_me:10990: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10991 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10993 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10994 if test "${enable_tparm_varargs+set}" = set; then
10995 enableval="$enable_tparm_varargs"
10996 with_tparm_varargs=$enableval
10998 with_tparm_varargs=yes
11000 echo "$as_me:11000: result: $with_tparm_varargs" >&5
11001 echo "${ECHO_T}$with_tparm_varargs" >&6
11002 NCURSES_TPARM_VARARGS=0
11003 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
11005 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
11006 if test "$with_ticlib" != no ; then
11007 echo "$as_me:11007: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
11008 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
11010 # Check whether --enable-tic-depends or --disable-tic-depends was given.
11011 if test "${enable_tic_depends+set}" = set; then
11012 enableval="$enable_tic_depends"
11013 with_tic_depends=$enableval
11015 with_tic_depends=yes
11017 echo "$as_me:11017: result: $with_tic_depends" >&5
11018 echo "${ECHO_T}$with_tic_depends" >&6
11020 with_tic_depends=no
11023 ### use option --with-bool to override bool's type
11024 echo "$as_me:11024: checking for type of bool" >&5
11025 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
11027 # Check whether --with-bool or --without-bool was given.
11028 if test "${with_bool+set}" = set; then
11029 withval="$with_bool"
11030 NCURSES_BOOL="$withval"
11034 echo "$as_me:11034: result: $NCURSES_BOOL" >&5
11035 echo "${ECHO_T}$NCURSES_BOOL" >&6
11037 echo "$as_me:11037: checking for alternate terminal capabilities file" >&5
11038 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
11040 # Check whether --with-caps or --without-caps was given.
11041 if test "${with_caps+set}" = set; then
11042 withval="$with_caps"
11043 TERMINFO_CAPS=Caps.$withval
11047 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
11048 echo "$as_me:11048: result: $TERMINFO_CAPS" >&5
11049 echo "${ECHO_T}$TERMINFO_CAPS" >&6
11051 ### use option --with-chtype to override chtype's type
11052 echo "$as_me:11052: checking for type of chtype" >&5
11053 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11055 # Check whether --with-chtype or --without-chtype was given.
11056 if test "${with_chtype+set}" = set; then
11057 withval="$with_chtype"
11058 NCURSES_CHTYPE="$withval"
11060 NCURSES_CHTYPE=$cf_dft_chtype
11062 echo "$as_me:11062: result: $NCURSES_CHTYPE" >&5
11063 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
11065 ### use option --with-ospeed to override ospeed's type
11066 echo "$as_me:11066: checking for type of ospeed" >&5
11067 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
11069 # Check whether --with-ospeed or --without-ospeed was given.
11070 if test "${with_ospeed+set}" = set; then
11071 withval="$with_ospeed"
11072 NCURSES_OSPEED="$withval"
11074 NCURSES_OSPEED=short
11076 echo "$as_me:11076: result: $NCURSES_OSPEED" >&5
11077 echo "${ECHO_T}$NCURSES_OSPEED" >&6
11079 ### use option --with-mmask-t to override mmask_t's type
11080 echo "$as_me:11080: checking for type of mmask_t" >&5
11081 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
11083 # Check whether --with-mmask-t or --without-mmask-t was given.
11084 if test "${with_mmask_t+set}" = set; then
11085 withval="$with_mmask_t"
11086 NCURSES_MMASK_T="$withval"
11088 NCURSES_MMASK_T=$cf_dft_mmask_t
11090 echo "$as_me:11090: result: $NCURSES_MMASK_T" >&5
11091 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
11093 ### use option --with-ccharw-max to override CCHARW_MAX size
11094 echo "$as_me:11094: checking for size CCHARW_MAX" >&5
11095 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
11097 # Check whether --with-ccharw-max or --without-ccharw-max was given.
11098 if test "${with_ccharw_max+set}" = set; then
11099 withval="$with_ccharw_max"
11100 NCURSES_CCHARW_MAX="$withval"
11102 NCURSES_CCHARW_MAX=5
11104 echo "$as_me:11104: result: $NCURSES_CCHARW_MAX" >&5
11105 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
11107 ### use option --with-tparm-arg to override tparm's argument type
11108 echo "$as_me:11108: checking for type of tparm args" >&5
11109 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
11111 # Check whether --with-tparm-arg or --without-tparm-arg was given.
11112 if test "${with_tparm_arg+set}" = set; then
11113 withval="$with_tparm_arg"
11114 NCURSES_TPARM_ARG="$withval"
11116 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
11118 echo "$as_me:11118: result: $NCURSES_TPARM_ARG" >&5
11119 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
11121 ### Enable compiling-in rcs id's
11122 echo "$as_me:11122: checking if RCS identifiers should be compiled-in" >&5
11123 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
11125 # Check whether --with-rcs-ids or --without-rcs-ids was given.
11126 if test "${with_rcs_ids+set}" = set; then
11127 withval="$with_rcs_ids"
11128 with_rcs_ids=$withval
11132 echo "$as_me:11132: result: $with_rcs_ids" >&5
11133 echo "${ECHO_T}$with_rcs_ids" >&6
11134 test "x$with_rcs_ids" = xyes &&
11135 cat >>confdefs.h <<\EOF
11136 #define USE_RCS_IDS 1
11139 ###############################################################################
11141 echo "$as_me:11141: checking format of man-pages" >&5
11142 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11144 # Check whether --with-manpage-format or --without-manpage-format was given.
11145 if test "${with_manpage_format+set}" = set; then
11146 withval="$with_manpage_format"
11147 MANPAGE_FORMAT=$withval
11149 MANPAGE_FORMAT=unknown
11152 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11153 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11157 case $MANPAGE_FORMAT in
11159 if test -z "$MANPATH" ; then
11160 MANPATH="/usr/man:/usr/share/man"
11163 # look for the 'date' man-page (it's most likely to be installed!)
11169 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11170 for cf_dir in $MANPATH; do
11171 test -z "$cf_dir" && cf_dir=/usr/man
11172 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
11174 cf_test=`echo $cf_name | sed -e 's/*//'`
11175 if test "x$cf_test" = "x$cf_name" ; then
11178 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11179 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11180 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11181 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11195 # if we found a match in either man* or cat*, stop looking
11196 if test -n "$MANPAGE_FORMAT" ; then
11198 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11199 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11205 test $cf_found=yes && break
11208 # only check the first directory in $MANPATH where we find manpages
11209 if test -n "$MANPAGE_FORMAT" ; then
11213 # if we did not find the example, just assume it is normal
11214 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11218 for cf_option in $MANPAGE_FORMAT; do
11220 (gzip|compress|BSDI|normal|formatted|catonly)
11223 cf_unknown="$cf_unknown $cf_option"
11230 echo "$as_me:11230: result: $MANPAGE_FORMAT" >&5
11231 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11232 if test -n "$cf_unknown" ; then
11233 { echo "$as_me:11233: WARNING: Unexpected manpage-format $cf_unknown" >&5
11234 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11237 echo "$as_me:11237: checking for manpage renaming" >&5
11238 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11240 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11241 if test "${with_manpage_renames+set}" = set; then
11242 withval="$with_manpage_renames"
11243 MANPAGE_RENAMES=$withval
11245 MANPAGE_RENAMES=yes
11248 case ".$MANPAGE_RENAMES" in
11252 # Debian 'man' program?
11253 if test -f /etc/debian_version ; then
11254 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11261 if test "$MANPAGE_RENAMES" != no ; then
11262 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11263 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11264 elif test ! -f $MANPAGE_RENAMES ; then
11265 { { echo "$as_me:11265: error: not a filename: $MANPAGE_RENAMES" >&5
11266 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11267 { (exit 1); exit 1; }; }
11270 test ! -d man && mkdir man
11272 # Construct a sed-script to perform renaming within man-pages
11273 if test -n "$MANPAGE_RENAMES" ; then
11274 test ! -d man && mkdir man
11275 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11279 echo "$as_me:11279: result: $MANPAGE_RENAMES" >&5
11280 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11282 echo "$as_me:11282: checking if manpage aliases will be installed" >&5
11283 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11285 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11286 if test "${with_manpage_aliases+set}" = set; then
11287 withval="$with_manpage_aliases"
11288 MANPAGE_ALIASES=$withval
11290 MANPAGE_ALIASES=yes
11293 echo "$as_me:11293: result: $MANPAGE_ALIASES" >&5
11294 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11298 cf_use_symlinks=yes
11305 MANPAGE_SYMLINKS=no
11306 if test "$MANPAGE_ALIASES" = yes ; then
11307 echo "$as_me:11307: checking if manpage symlinks should be used" >&5
11308 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11310 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11311 if test "${with_manpage_symlinks+set}" = set; then
11312 withval="$with_manpage_symlinks"
11313 MANPAGE_SYMLINKS=$withval
11315 MANPAGE_SYMLINKS=$cf_use_symlinks
11318 if test "$$cf_use_symlinks" = no; then
11319 if test "$MANPAGE_SYMLINKS" = yes ; then
11320 { echo "$as_me:11320: WARNING: cannot make symlinks" >&5
11321 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11322 MANPAGE_SYMLINKS=no
11326 echo "$as_me:11326: result: $MANPAGE_SYMLINKS" >&5
11327 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11330 echo "$as_me:11330: checking for manpage tbl" >&5
11331 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11333 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11334 if test "${with_manpage_tbl+set}" = set; then
11335 withval="$with_manpage_tbl"
11336 MANPAGE_TBL=$withval
11341 echo "$as_me:11341: result: $MANPAGE_TBL" >&5
11342 echo "${ECHO_T}$MANPAGE_TBL" >&6
11344 if test "$prefix" = "NONE" ; then
11345 cf_prefix="$ac_default_prefix"
11347 cf_prefix="$prefix"
11350 case "$MANPAGE_FORMAT" in
11365 test ! -d man && mkdir man
11369 case "$MANPAGE_FORMAT" in
11372 cf_compress=compress
11380 cf_edit_man=./edit_man.sh
11381 cf_man_alias=`pwd`/man_alias.sed
11383 cat >$cf_edit_man <<CF_EOF
11385 # this script is generated by the configure-script CF_MAN_PAGES macro.
11387 prefix="$cf_prefix"
11388 datarootdir="$datarootdir"
11391 NCURSES_MAJOR="$NCURSES_MAJOR"
11392 NCURSES_MINOR="$NCURSES_MINOR"
11393 NCURSES_PATCH="$NCURSES_PATCH"
11395 NCURSES_OSPEED="$NCURSES_OSPEED"
11396 TERMINFO="$TERMINFO"
11399 INSTALL_DATA="$INSTALL_DATA"
11401 transform="$program_transform_name"
11403 TMP=\${TMPDIR:=/tmp}/man\$\$
11404 trap "rm -f \$TMP" 0 1 2 5 15
11416 top_srcdir=\$srcdir/..
11419 if test "\$form" = normal ; then
11420 if test "$cf_format" = yes ; then
11421 if test "$cf_inboth" = no ; then
11422 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11426 cf_subdir=\$mandir/man
11427 cf_tables=$MANPAGE_TBL
11429 cf_subdir=\$mandir/cat
11433 # process the list of source-files
11438 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11439 if test \$verb = installing ; then
11440 if test ! -d \$cf_subdir\${section} ; then
11441 mkdir -p \$cf_subdir\$section
11445 # replace variables in man page
11446 if test ! -f $cf_man_alias ; then
11447 cat >>$cf_man_alias <<-CF_EOF2
11448 s,@DATADIR@,\$datadir,g
11449 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11450 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11451 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11452 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11453 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11454 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11457 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
11459 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11460 cf_name=`echo $cf_name|sed "$program_transform_name"`
11461 cat >>$cf_edit_man <<-CF_EOF
11462 s,@$cf_NAME@,$cf_name,g
11466 cat >>$cf_edit_man <<CF_EOF
11468 echo "...made $cf_man_alias"
11472 cf_source=\`basename \$i\`
11473 inalias=\$cf_source
11474 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11475 if test ! -f \$inalias ; then
11476 echo .. skipped \$cf_source
11481 if test "$MANPAGE_ALIASES" != no ; then
11482 cat >>$cf_edit_man <<CF_EOF
11484 test $with_curses_h = yes && nCurses=ncurses.3x
11485 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11489 if test "$MANPAGE_RENAMES" = no ; then
11490 cat >>$cf_edit_man <<CF_EOF
11491 # perform program transformations for section 1 man pages
11492 if test \$section = 1 ; then
11493 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11495 cf_target=\$cf_subdir\${section}/\$cf_source
11499 cat >>$cf_edit_man <<CF_EOF
11500 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11501 if test -z "\$cf_target" ; then
11502 echo '? missing rename for '\$cf_source
11503 cf_target="\$cf_source"
11505 cf_target="\$cf_subdir\${section}/\${cf_target}"
11510 cat >>$cf_edit_man <<CF_EOF
11511 sed -f $cf_man_alias \\
11514 if test -f $MANPAGE_RENAMES ; then
11515 cat >>$cf_edit_man <<CF_EOF
11516 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11519 cat >>$cf_edit_man <<CF_EOF
11524 cat >>$cf_edit_man <<CF_EOF
11525 if test \$cf_tables = yes ; then
11526 tbl \$TMP >\$TMP.out
11531 if test $with_overwrite != yes ; then
11532 cat >>$cf_edit_man <<CF_EOF
11533 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11538 if test $with_curses_h != yes ; then
11539 cat >>$cf_edit_man <<CF_EOF
11540 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11545 cat >>$cf_edit_man <<CF_EOF
11546 if test \$form = format ; then
11547 nroff -man \$TMP >\$TMP.out
11552 if test -n "$cf_compress" ; then
11553 cat >>$cf_edit_man <<CF_EOF
11554 if test \$verb = installing ; then
11555 if ( $cf_compress -f \$TMP )
11557 mv \$TMP.$cf_so_strip \$TMP
11560 cf_target="\$cf_target.$cf_so_strip"
11564 case "$MANPAGE_FORMAT" in
11566 cat >>$cf_edit_man <<CF_EOF
11567 if test \$form = format ; then
11568 # BSDI installs only .0 suffixes in the cat directories
11569 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11575 cat >>$cf_edit_man <<CF_EOF
11576 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11577 if test \$verb = installing ; then
11578 echo \$verb \$cf_target
11579 \$INSTALL_DATA \$TMP \$cf_target
11580 test -d \$cf_subdir\${section} &&
11581 test -n "\$aliases" && (
11582 cd \$cf_subdir\${section} && (
11583 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11584 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11585 cf_target=\`basename \$cf_target\`
11586 for cf_alias in \$aliases
11588 if test \$section = 1 ; then
11589 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11592 if test "$MANPAGE_SYMLINKS" = yes ; then
11593 if test -f \$cf_alias\${suffix} ; then
11594 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11599 echo .. \$verb alias \$cf_alias\${suffix}
11603 cat >>$cf_edit_man <<CF_EOF
11604 $LN_S \$cf_target \$cf_alias\${suffix}
11608 cat >>$cf_edit_man <<CF_EOF
11609 rm -f \$cf_alias\${suffix}
11610 $LN_S \$cf_target \$cf_alias\${suffix}
11614 cat >>$cf_edit_man <<CF_EOF
11615 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11616 echo ".so \$cf_source" >\$TMP
11618 if test -n "$cf_compress" ; then
11619 cat >>$cf_edit_man <<CF_EOF
11620 if test -n "$cf_so_strip" ; then
11621 $cf_compress -f \$TMP
11622 mv \$TMP.$cf_so_strip \$TMP
11626 cat >>$cf_edit_man <<CF_EOF
11627 echo .. \$verb alias \$cf_alias\${suffix}
11628 rm -f \$cf_alias\${suffix}
11629 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11634 elif test \$verb = removing ; then
11635 test -f \$cf_target && (
11636 echo \$verb \$cf_target
11639 test -d \$cf_subdir\${section} &&
11640 test -n "\$aliases" && (
11641 cd \$cf_subdir\${section} && (
11642 for cf_alias in \$aliases
11644 if test \$section = 1 ; then
11645 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11648 echo .. \$verb alias \$cf_alias\${suffix}
11649 rm -f \$cf_alias\${suffix}
11661 if test $cf_inboth = yes ; then
11662 if test \$form != format ; then
11663 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11669 chmod 755 $cf_edit_man
11671 ###############################################################################
11673 ### Note that some functions (such as const) are normally disabled anyway.
11674 echo "$as_me:11674: checking if you want to build with function extensions" >&5
11675 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11677 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11678 if test "${enable_ext_funcs+set}" = set; then
11679 enableval="$enable_ext_funcs"
11680 with_ext_funcs=$enableval
11684 echo "$as_me:11684: result: $with_ext_funcs" >&5
11685 echo "${ECHO_T}$with_ext_funcs" >&6
11686 if test "x$with_ext_funcs" = xyes ; then
11687 NCURSES_EXT_FUNCS=1
11689 cat >>confdefs.h <<\EOF
11690 #define HAVE_ASSUME_DEFAULT_COLORS 1
11693 cat >>confdefs.h <<\EOF
11694 #define HAVE_CURSES_VERSION 1
11697 cat >>confdefs.h <<\EOF
11698 #define HAVE_HAS_KEY 1
11701 cat >>confdefs.h <<\EOF
11702 #define HAVE_RESIZETERM 1
11705 cat >>confdefs.h <<\EOF
11706 #define HAVE_RESIZE_TERM 1
11709 cat >>confdefs.h <<\EOF
11710 #define HAVE_TERM_ENTRY_H 1
11713 cat >>confdefs.h <<\EOF
11714 #define HAVE_USE_DEFAULT_COLORS 1
11717 cat >>confdefs.h <<\EOF
11718 #define HAVE_USE_SCREEN 1
11721 cat >>confdefs.h <<\EOF
11722 #define HAVE_USE_WINDOW 1
11725 cat >>confdefs.h <<\EOF
11726 #define HAVE_WRESIZE 1
11729 cat >>confdefs.h <<\EOF
11730 #define NCURSES_EXT_FUNCS 1
11733 GENERATED_EXT_FUNCS=generated
11735 NCURSES_EXT_FUNCS=0
11736 GENERATED_EXT_FUNCS=
11739 echo "$as_me:11739: checking if you want to build with SCREEN extensions" >&5
11740 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
11742 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11743 if test "${enable_sp_funcs+set}" = set; then
11744 enableval="$enable_sp_funcs"
11745 with_sp_funcs=$enableval
11747 with_sp_funcs=$cf_dft_ext_spfuncs
11749 echo "$as_me:11749: result: $with_sp_funcs" >&5
11750 echo "${ECHO_T}$with_sp_funcs" >&6
11751 if test "x$with_sp_funcs" = xyes ; then
11754 cat >>confdefs.h <<\EOF
11755 #define NCURSES_SP_FUNCS 1
11758 GENERATED_SP_FUNCS=generated
11761 GENERATED_SP_FUNCS=
11764 echo "$as_me:11764: checking if you want to build with terminal-driver" >&5
11765 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
11767 # Check whether --enable-term-driver or --disable-term-driver was given.
11768 if test "${enable_term_driver+set}" = set; then
11769 enableval="$enable_term_driver"
11770 with_term_driver=$enableval
11772 with_term_driver=no
11774 echo "$as_me:11774: result: $with_term_driver" >&5
11775 echo "${ECHO_T}$with_term_driver" >&6
11776 if test "x$with_term_driver" = xyes ; then
11778 cat >>confdefs.h <<\EOF
11779 #define USE_TERM_DRIVER 1
11782 if test "x$with_termlib" != xno ; then
11783 { { echo "$as_me:11783: error: The term-driver option conflicts with the termlib option" >&5
11784 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
11785 { (exit 1); exit 1; }; }
11787 if test "x$with_sp_funcs" != xyes ; then
11788 { { echo "$as_me:11788: error: The term-driver option relies upon sp-funcs" >&5
11789 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11790 { (exit 1); exit 1; }; }
11794 ### use option --enable-const to turn on use of const beyond that in XSI.
11795 echo "$as_me:11795: checking for extended use of const keyword" >&5
11796 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11798 # Check whether --enable-const or --disable-const was given.
11799 if test "${enable_const+set}" = set; then
11800 enableval="$enable_const"
11801 with_ext_const=$enableval
11803 with_ext_const=$cf_dft_ext_const
11805 echo "$as_me:11805: result: $with_ext_const" >&5
11806 echo "${ECHO_T}$with_ext_const" >&6
11807 NCURSES_CONST='/*nothing*/'
11808 if test "x$with_ext_const" = xyes ; then
11809 NCURSES_CONST=const
11812 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11813 echo "$as_me:11813: checking if you want to use extended colors" >&5
11814 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11816 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11817 if test "${enable_ext_colors+set}" = set; then
11818 enableval="$enable_ext_colors"
11819 with_ext_colors=$enableval
11821 with_ext_colors=$cf_dft_ext_colors
11823 echo "$as_me:11823: result: $with_ext_colors" >&5
11824 echo "${ECHO_T}$with_ext_colors" >&6
11825 NCURSES_EXT_COLORS=0
11826 if test "x$with_ext_colors" = xyes ; then
11827 if test "x$with_widec" != xyes ; then
11828 { echo "$as_me:11828: WARNING: This option applies only to wide-character library" >&5
11829 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
11831 # cannot be ABI 5 since it changes sizeof(cchar_t)
11833 if test "${with_abi_version+set}" != set; then
11834 case $cf_cv_rel_version in
11836 cf_cv_rel_version=6.0
11837 cf_cv_abi_version=6
11838 { echo "$as_me:11838: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11839 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11844 NCURSES_EXT_COLORS=1
11846 cat >>confdefs.h <<\EOF
11847 #define NCURSES_EXT_COLORS 1
11853 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11854 echo "$as_me:11854: checking if you want to use extended mouse encoding" >&5
11855 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11857 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11858 if test "${enable_ext_mouse+set}" = set; then
11859 enableval="$enable_ext_mouse"
11860 with_ext_mouse=$enableval
11862 with_ext_mouse=$cf_dft_ext_mouse
11864 echo "$as_me:11864: result: $with_ext_mouse" >&5
11865 echo "${ECHO_T}$with_ext_mouse" >&6
11866 NCURSES_MOUSE_VERSION=1
11867 if test "x$with_ext_mouse" = xyes ; then
11868 NCURSES_MOUSE_VERSION=2
11870 if test "${with_abi_version+set}" != set; then
11871 case $cf_cv_rel_version in
11873 cf_cv_rel_version=6.0
11874 cf_cv_abi_version=6
11875 { echo "$as_me:11875: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11876 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11883 ### use option --enable-ext-putwin to turn on extended screendumps
11884 echo "$as_me:11884: checking if you want to use extended putwin/screendump" >&5
11885 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
11887 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
11888 if test "${enable_ext_putwin+set}" = set; then
11889 enableval="$enable_ext_putwin"
11890 with_ext_putwin=$enableval
11892 with_ext_putwin=$cf_dft_ext_putwin
11894 echo "$as_me:11894: result: $with_ext_putwin" >&5
11895 echo "${ECHO_T}$with_ext_putwin" >&6
11896 if test "x$with_ext_putwin" = xyes ; then
11898 cat >>confdefs.h <<\EOF
11899 #define NCURSES_EXT_PUTWIN 1
11904 echo "$as_me:11904: checking if you want \$NCURSES_NO_PADDING code" >&5
11905 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11907 # Check whether --enable-no-padding or --disable-no-padding was given.
11908 if test "${enable_no_padding+set}" = set; then
11909 enableval="$enable_no_padding"
11910 with_no_padding=$enableval
11912 with_no_padding=$with_ext_funcs
11914 echo "$as_me:11914: result: $with_no_padding" >&5
11915 echo "${ECHO_T}$with_no_padding" >&6
11916 test "x$with_no_padding" = xyes &&
11917 cat >>confdefs.h <<\EOF
11918 #define NCURSES_NO_PADDING 1
11921 echo "$as_me:11921: checking for ANSI C header files" >&5
11922 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11923 if test "${ac_cv_header_stdc+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line 11927 "configure"
11928 #include "confdefs.h"
11929 #include <stdlib.h>
11930 #include <stdarg.h>
11931 #include <string.h>
11935 if { (eval echo "$as_me:11935: \"$ac_cpp conftest.$ac_ext\"") >&5
11936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11938 egrep -v '^ *\+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:11941: \$? = $ac_status" >&5
11942 (exit $ac_status); } >/dev/null; then
11943 if test -s conftest.err; then
11944 ac_cpp_err=$ac_c_preproc_warn_flag
11951 if test -z "$ac_cpp_err"; then
11952 ac_cv_header_stdc=yes
11954 echo "$as_me: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11956 ac_cv_header_stdc=no
11958 rm -f conftest.err conftest.$ac_ext
11960 if test $ac_cv_header_stdc = yes; then
11961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11962 cat >conftest.$ac_ext <<_ACEOF
11963 #line 11963 "configure"
11964 #include "confdefs.h"
11965 #include <string.h>
11968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11969 egrep "memchr" >/dev/null 2>&1; then
11972 ac_cv_header_stdc=no
11978 if test $ac_cv_header_stdc = yes; then
11979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11980 cat >conftest.$ac_ext <<_ACEOF
11981 #line 11981 "configure"
11982 #include "confdefs.h"
11983 #include <stdlib.h>
11986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11987 egrep "free" >/dev/null 2>&1; then
11990 ac_cv_header_stdc=no
11996 if test $ac_cv_header_stdc = yes; then
11997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11998 if test "$cross_compiling" = yes; then
12001 cat >conftest.$ac_ext <<_ACEOF
12002 #line 12002 "configure"
12003 #include "confdefs.h"
12005 #if ((' ' & 0x0FF) == 0x020)
12006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12009 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12010 || ('j' <= (c) && (c) <= 'r') \
12011 || ('s' <= (c) && (c) <= 'z'))
12012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12020 for (i = 0; i < 256; i++)
12021 if (XOR (islower (i), ISLOWER (i))
12022 || toupper (i) != TOUPPER (i))
12023 $ac_main_return(2);
12024 $ac_main_return (0);
12027 rm -f conftest$ac_exeext
12028 if { (eval echo "$as_me:12028: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12031 echo "$as_me:12031: \$? = $ac_status" >&5
12032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12033 { (eval echo "$as_me:12033: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:12036: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12040 echo "$as_me: program exited with status $ac_status" >&5
12041 echo "$as_me: failed program was:" >&5
12042 cat conftest.$ac_ext >&5
12043 ac_cv_header_stdc=no
12045 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12049 echo "$as_me:12049: result: $ac_cv_header_stdc" >&5
12050 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12051 if test $ac_cv_header_stdc = yes; then
12053 cat >>confdefs.h <<\EOF
12054 #define STDC_HEADERS 1
12059 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12062 inttypes.h stdint.h unistd.h
12064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12065 echo "$as_me:12065: checking for $ac_header" >&5
12066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 cat >conftest.$ac_ext <<_ACEOF
12071 #line 12071 "configure"
12072 #include "confdefs.h"
12073 $ac_includes_default
12074 #include <$ac_header>
12076 rm -f conftest.$ac_objext
12077 if { (eval echo "$as_me:12077: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>&5
12080 echo "$as_me:12080: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:12083: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:12086: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 eval "$as_ac_Header=yes"
12090 echo "$as_me: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12092 eval "$as_ac_Header=no"
12094 rm -f conftest.$ac_objext conftest.$ac_ext
12096 echo "$as_me:12096: result: `eval echo '${'$as_ac_Header'}'`" >&5
12097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12099 cat >>confdefs.h <<EOF
12100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12106 echo "$as_me:12106: checking for signed char" >&5
12107 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12108 if test "${ac_cv_type_signed_char+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12112 #line 12112 "configure"
12113 #include "confdefs.h"
12114 $ac_includes_default
12118 if ((signed char *) 0)
12120 if (sizeof (signed char))
12126 rm -f conftest.$ac_objext
12127 if { (eval echo "$as_me:12127: \"$ac_compile\"") >&5
12128 (eval $ac_compile) 2>&5
12130 echo "$as_me:12130: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:12133: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12136 echo "$as_me:12136: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_cv_type_signed_char=yes
12140 echo "$as_me: failed program was:" >&5
12141 cat conftest.$ac_ext >&5
12142 ac_cv_type_signed_char=no
12144 rm -f conftest.$ac_objext conftest.$ac_ext
12146 echo "$as_me:12146: result: $ac_cv_type_signed_char" >&5
12147 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12149 echo "$as_me:12149: checking size of signed char" >&5
12150 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12151 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 if test "$ac_cv_type_signed_char" = yes; then
12155 if test "$cross_compiling" = yes; then
12156 # Depending upon the size, compute the lo and hi bounds.
12157 cat >conftest.$ac_ext <<_ACEOF
12158 #line 12158 "configure"
12159 #include "confdefs.h"
12160 $ac_includes_default
12164 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12169 rm -f conftest.$ac_objext
12170 if { (eval echo "$as_me:12170: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>&5
12173 echo "$as_me:12173: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:12176: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:12179: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line 12184 "configure"
12185 #include "confdefs.h"
12186 $ac_includes_default
12190 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:12196: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>&5
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:12202: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:12205: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_hi=$ac_mid; break
12209 echo "$as_me: failed program was:" >&5
12210 cat conftest.$ac_ext >&5
12211 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12213 rm -f conftest.$ac_objext conftest.$ac_ext
12216 echo "$as_me: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12220 cat >conftest.$ac_ext <<_ACEOF
12221 #line 12221 "configure"
12222 #include "confdefs.h"
12223 $ac_includes_default
12227 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12232 rm -f conftest.$ac_objext
12233 if { (eval echo "$as_me:12233: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
12236 echo "$as_me:12236: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -s conftest.$ac_objext'
12239 { (eval echo "$as_me:12239: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12242 echo "$as_me:12242: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_lo=$ac_mid; break
12246 echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12250 rm -f conftest.$ac_objext conftest.$ac_ext
12253 rm -f conftest.$ac_objext conftest.$ac_ext
12254 # Binary search between lo and hi bounds.
12255 while test "x$ac_lo" != "x$ac_hi"; do
12256 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12257 cat >conftest.$ac_ext <<_ACEOF
12258 #line 12258 "configure"
12259 #include "confdefs.h"
12260 $ac_includes_default
12264 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12269 rm -f conftest.$ac_objext
12270 if { (eval echo "$as_me:12270: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>&5
12273 echo "$as_me:12273: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (eval echo "$as_me:12276: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:12279: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12283 echo "$as_me: failed program was:" >&5
12284 cat conftest.$ac_ext >&5
12285 ac_lo=`expr $ac_mid + 1`
12287 rm -f conftest.$ac_objext conftest.$ac_ext
12289 ac_cv_sizeof_signed_char=$ac_lo
12291 if test "$cross_compiling" = yes; then
12292 { { echo "$as_me:12292: error: cannot run test program while cross compiling" >&5
12293 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12294 { (exit 1); exit 1; }; }
12296 cat >conftest.$ac_ext <<_ACEOF
12297 #line 12297 "configure"
12298 #include "confdefs.h"
12299 $ac_includes_default
12303 FILE *f = fopen ("conftest.val", "w");
12305 $ac_main_return (1);
12306 fprintf (f, "%d", (sizeof (signed char)));
12312 rm -f conftest$ac_exeext
12313 if { (eval echo "$as_me:12313: \"$ac_link\"") >&5
12314 (eval $ac_link) 2>&5
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12318 { (eval echo "$as_me:12318: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12321 echo "$as_me:12321: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_cv_sizeof_signed_char=`cat conftest.val`
12325 echo "$as_me: program exited with status $ac_status" >&5
12326 echo "$as_me: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12329 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12334 ac_cv_sizeof_signed_char=0
12337 echo "$as_me:12337: result: $ac_cv_sizeof_signed_char" >&5
12338 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12339 cat >>confdefs.h <<EOF
12340 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12343 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12344 NCURSES_SBOOL="signed char"
12346 NCURSES_SBOOL="char"
12348 echo "$as_me:12348: checking if you want to use signed Boolean array in term.h" >&5
12349 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12351 # Check whether --enable-signed-char or --disable-signed-char was given.
12352 if test "${enable_signed_char+set}" = set; then
12353 enableval="$enable_signed_char"
12354 with_signed_char=$enableval
12356 with_signed_char=no
12358 echo "$as_me:12358: result: $with_signed_char" >&5
12359 echo "${ECHO_T}$with_signed_char" >&6
12360 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12362 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12363 echo "$as_me:12363: checking if you want SIGWINCH handler" >&5
12364 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12366 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12367 if test "${enable_sigwinch+set}" = set; then
12368 enableval="$enable_sigwinch"
12369 with_sigwinch=$enableval
12371 with_sigwinch=$with_ext_funcs
12373 echo "$as_me:12373: result: $with_sigwinch" >&5
12374 echo "${ECHO_T}$with_sigwinch" >&6
12375 test "x$with_sigwinch" = xyes &&
12376 cat >>confdefs.h <<\EOF
12377 #define USE_SIGWINCH 1
12380 ### use option --enable-tcap-names to allow user to define new capabilities
12381 echo "$as_me:12381: checking if you want user-definable terminal capabilities like termcap" >&5
12382 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12384 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12385 if test "${enable_tcap_names+set}" = set; then
12386 enableval="$enable_tcap_names"
12387 with_tcap_names=$enableval
12389 with_tcap_names=$with_ext_funcs
12391 echo "$as_me:12391: result: $with_tcap_names" >&5
12392 echo "${ECHO_T}$with_tcap_names" >&6
12394 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12396 ###############################################################################
12397 # These options are relatively safe to experiment with.
12399 echo "$as_me:12399: checking if you want all development code" >&5
12400 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
12402 # Check whether --with-develop or --without-develop was given.
12403 if test "${with_develop+set}" = set; then
12404 withval="$with_develop"
12405 with_develop=$withval
12409 echo "$as_me:12409: result: $with_develop" >&5
12410 echo "${ECHO_T}$with_develop" >&6
12412 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
12413 echo "$as_me:12413: checking if you want hard-tabs code" >&5
12414 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
12416 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
12417 if test "${enable_hard_tabs+set}" = set; then
12418 enableval="$enable_hard_tabs"
12421 enable_hard_tabs=$with_develop
12423 echo "$as_me:12423: result: $enable_hard_tabs" >&5
12424 echo "${ECHO_T}$enable_hard_tabs" >&6
12425 test "x$enable_hard_tabs" = xyes &&
12426 cat >>confdefs.h <<\EOF
12427 #define USE_HARD_TABS 1
12430 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
12431 echo "$as_me:12431: checking if you want limited support for xmc" >&5
12432 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
12434 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12435 if test "${enable_xmc_glitch+set}" = set; then
12436 enableval="$enable_xmc_glitch"
12439 enable_xmc_glitch=$with_develop
12441 echo "$as_me:12441: result: $enable_xmc_glitch" >&5
12442 echo "${ECHO_T}$enable_xmc_glitch" >&6
12443 test "x$enable_xmc_glitch" = xyes &&
12444 cat >>confdefs.h <<\EOF
12445 #define USE_XMC_SUPPORT 1
12448 ###############################################################################
12449 # These are just experimental, probably should not be in a package:
12451 echo "$as_me:12451: checking if you do not want to assume colors are white-on-black" >&5
12452 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
12454 # Check whether --enable-assumed-color or --disable-assumed-color was given.
12455 if test "${enable_assumed_color+set}" = set; then
12456 enableval="$enable_assumed_color"
12457 with_assumed_color=$enableval
12459 with_assumed_color=yes
12461 echo "$as_me:12461: result: $with_assumed_color" >&5
12462 echo "${ECHO_T}$with_assumed_color" >&6
12463 test "x$with_assumed_color" = xyes &&
12464 cat >>confdefs.h <<\EOF
12465 #define USE_ASSUMED_COLOR 1
12468 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
12469 echo "$as_me:12469: checking if you want hashmap scrolling-optimization code" >&5
12470 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
12472 # Check whether --enable-hashmap or --disable-hashmap was given.
12473 if test "${enable_hashmap+set}" = set; then
12474 enableval="$enable_hashmap"
12475 with_hashmap=$enableval
12479 echo "$as_me:12479: result: $with_hashmap" >&5
12480 echo "${ECHO_T}$with_hashmap" >&6
12481 test "x$with_hashmap" = xyes &&
12482 cat >>confdefs.h <<\EOF
12483 #define USE_HASHMAP 1
12486 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
12487 echo "$as_me:12487: checking if you want colorfgbg code" >&5
12488 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
12490 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
12491 if test "${enable_colorfgbg+set}" = set; then
12492 enableval="$enable_colorfgbg"
12493 with_colorfgbg=$enableval
12497 echo "$as_me:12497: result: $with_colorfgbg" >&5
12498 echo "${ECHO_T}$with_colorfgbg" >&6
12499 test "x$with_colorfgbg" = xyes &&
12500 cat >>confdefs.h <<\EOF
12501 #define USE_COLORFGBG 1
12504 ### use option --enable-interop to turn on use of bindings used for interop
12505 echo "$as_me:12505: checking if you want interop bindings" >&5
12506 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
12508 # Check whether --enable-interop or --disable-interop was given.
12509 if test "${enable_interop+set}" = set; then
12510 enableval="$enable_interop"
12511 with_exp_interop=$enableval
12513 with_exp_interop=$cf_dft_interop
12515 echo "$as_me:12515: result: $with_exp_interop" >&5
12516 echo "${ECHO_T}$with_exp_interop" >&6
12518 NCURSES_INTEROP_FUNCS=0
12519 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
12521 # This is still experimental (20080329), but should ultimately be moved to
12522 # the script-block --with-normal, etc.
12524 echo "$as_me:12524: checking if you want to link with the pthread library" >&5
12525 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12527 # Check whether --with-pthread or --without-pthread was given.
12528 if test "${with_pthread+set}" = set; then
12529 withval="$with_pthread"
12530 with_pthread=$withval
12534 echo "$as_me:12534: result: $with_pthread" >&5
12535 echo "${ECHO_T}$with_pthread" >&6
12537 if test "$with_pthread" != no ; then
12538 echo "$as_me:12538: checking for pthread.h" >&5
12539 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12540 if test "${ac_cv_header_pthread_h+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 cat >conftest.$ac_ext <<_ACEOF
12544 #line 12544 "configure"
12545 #include "confdefs.h"
12546 #include <pthread.h>
12548 if { (eval echo "$as_me:12548: \"$ac_cpp conftest.$ac_ext\"") >&5
12549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12551 egrep -v '^ *\+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:12554: \$? = $ac_status" >&5
12555 (exit $ac_status); } >/dev/null; then
12556 if test -s conftest.err; then
12557 ac_cpp_err=$ac_c_preproc_warn_flag
12564 if test -z "$ac_cpp_err"; then
12565 ac_cv_header_pthread_h=yes
12567 echo "$as_me: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 ac_cv_header_pthread_h=no
12571 rm -f conftest.err conftest.$ac_ext
12573 echo "$as_me:12573: result: $ac_cv_header_pthread_h" >&5
12574 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12575 if test $ac_cv_header_pthread_h = yes; then
12577 cat >>confdefs.h <<\EOF
12578 #define HAVE_PTHREADS_H 1
12581 for cf_lib_pthread in pthread c_r
12583 echo "$as_me:12583: checking if we can link with the $cf_lib_pthread library" >&5
12584 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12585 cf_save_LIBS="$LIBS"
12587 cf_add_libs="-l$cf_lib_pthread"
12588 # Filter out duplicates - this happens with badly-designed ".pc" files...
12589 for cf_add_1lib in $LIBS
12591 for cf_add_2lib in $cf_add_libs
12593 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12599 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12601 LIBS="$cf_add_libs"
12603 cat >conftest.$ac_ext <<_ACEOF
12604 #line 12604 "configure"
12605 #include "confdefs.h"
12607 #include <pthread.h>
12613 int rc = pthread_create(0,0,0,0);
12614 int r2 = pthread_mutexattr_settype(0, 0);
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621 if { (eval echo "$as_me:12621: \"$ac_link\"") >&5
12622 (eval $ac_link) 2>&5
12624 echo "$as_me:12624: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
12626 { ac_try='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:12627: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:12630: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12634 echo "$as_me: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12639 LIBS="$cf_save_LIBS"
12640 echo "$as_me:12640: result: $with_pthread" >&5
12641 echo "${ECHO_T}$with_pthread" >&6
12642 test "$with_pthread" = yes && break
12645 if test "$with_pthread" = yes ; then
12647 cf_add_libs="-l$cf_lib_pthread"
12648 # Filter out duplicates - this happens with badly-designed ".pc" files...
12649 for cf_add_1lib in $LIBS
12651 for cf_add_2lib in $cf_add_libs
12653 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12659 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12661 LIBS="$cf_add_libs"
12663 cat >>confdefs.h <<\EOF
12664 #define HAVE_LIBPTHREADS 1
12668 { { echo "$as_me:12668: error: Cannot link with pthread library" >&5
12669 echo "$as_me: error: Cannot link with pthread library" >&2;}
12670 { (exit 1); exit 1; }; }
12677 if test "x$with_pthread" != xno; then
12678 echo "$as_me:12678: checking for pthread_kill" >&5
12679 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12680 if test "${ac_cv_func_pthread_kill+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 cat >conftest.$ac_ext <<_ACEOF
12684 #line 12684 "configure"
12685 #include "confdefs.h"
12686 /* System header to define __stub macros and hopefully few prototypes,
12687 which can conflict with char pthread_kill (); below. */
12688 #include <assert.h>
12689 /* Override any gcc2 internal prototype to avoid an error. */
12693 /* We use char because int might match the return type of a gcc2
12694 builtin and then its argument prototype would still apply. */
12695 char pthread_kill ();
12701 /* The GNU C library defines this for functions which it implements
12702 to always fail with ENOSYS. Some functions are actually named
12703 something starting with __ and the normal name is an alias. */
12704 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12707 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12714 rm -f conftest.$ac_objext conftest$ac_exeext
12715 if { (eval echo "$as_me:12715: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>&5
12718 echo "$as_me:12718: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -s conftest$ac_exeext'
12721 { (eval echo "$as_me:12721: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:12724: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_cv_func_pthread_kill=yes
12728 echo "$as_me: failed program was:" >&5
12729 cat conftest.$ac_ext >&5
12730 ac_cv_func_pthread_kill=no
12732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12734 echo "$as_me:12734: result: $ac_cv_func_pthread_kill" >&5
12735 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12736 if test $ac_cv_func_pthread_kill = yes; then
12738 echo "$as_me:12738: checking if you want to allow EINTR in wgetch with pthreads" >&5
12739 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12741 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12742 if test "${enable_pthreads_eintr+set}" = set; then
12743 enableval="$enable_pthreads_eintr"
12744 use_pthreads_eintr=$enableval
12746 use_pthreads_eintr=no
12748 echo "$as_me:12748: result: $use_pthreads_eintr" >&5
12749 echo "${ECHO_T}$use_pthreads_eintr" >&6
12750 if test "x$use_pthreads_eintr" = xyes ; then
12752 cat >>confdefs.h <<\EOF
12753 #define USE_PTHREADS_EINTR 1
12759 echo "$as_me:12759: checking if you want to use weak-symbols for pthreads" >&5
12760 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12762 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12763 if test "${enable_weak_symbols+set}" = set; then
12764 enableval="$enable_weak_symbols"
12765 use_weak_symbols=$enableval
12767 use_weak_symbols=no
12769 echo "$as_me:12769: result: $use_weak_symbols" >&5
12770 echo "${ECHO_T}$use_weak_symbols" >&6
12771 if test "x$use_weak_symbols" = xyes ; then
12773 echo "$as_me:12773: checking if $CC supports weak symbols" >&5
12774 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12775 if test "${cf_cv_weak_symbols+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 cat >conftest.$ac_ext <<_ACEOF
12780 #line 12780 "configure"
12781 #include "confdefs.h"
12788 #if defined(__GNUC__)
12789 # if defined __USE_ISOC99
12790 # define _cat_pragma(exp) _Pragma(#exp)
12791 # define _weak_pragma(exp) _cat_pragma(weak name)
12793 # define _weak_pragma(exp)
12795 # define _declare(name) __extension__ extern __typeof__(name) name
12796 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12799 weak_symbol(fopen);
12805 rm -f conftest.$ac_objext
12806 if { (eval echo "$as_me:12806: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>&5
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -s conftest.$ac_objext'
12812 { (eval echo "$as_me:12812: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:12815: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 cf_cv_weak_symbols=yes
12819 echo "$as_me: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 cf_cv_weak_symbols=no
12823 rm -f conftest.$ac_objext conftest.$ac_ext
12826 echo "$as_me:12826: result: $cf_cv_weak_symbols" >&5
12827 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12830 cf_cv_weak_symbols=no
12833 if test "x$cf_cv_weak_symbols" = xyes ; then
12835 cat >>confdefs.h <<\EOF
12836 #define USE_WEAK_SYMBOLS 1
12843 if test "x$with_pthread" = "xyes" ; then
12845 cat >>confdefs.h <<\EOF
12846 #define USE_PTHREADS 1
12849 enable_reentrant=yes
12850 if test "x$cf_cv_weak_symbols" = xyes ; then
12855 # Reentrant code has to be opaque; there's little advantage to making ncurses
12856 # opaque outside of that, so there is no --enable-opaque option. We can use
12857 # this option without --with-pthreads, but this will be always set for
12859 echo "$as_me:12859: checking if you want reentrant code" >&5
12860 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
12862 # Check whether --enable-reentrant or --disable-reentrant was given.
12863 if test "${enable_reentrant+set}" = set; then
12864 enableval="$enable_reentrant"
12865 with_reentrant=$enableval
12869 echo "$as_me:12869: result: $with_reentrant" >&5
12870 echo "${ECHO_T}$with_reentrant" >&6
12871 if test "x$with_reentrant" = xyes ; then
12872 cf_cv_enable_reentrant=1
12873 cf_cv_enable_opaque="NCURSES_INTERNALS"
12876 if test "x$cf_cv_weak_symbols" = xyes ; then
12878 # remove pthread library from $LIBS
12879 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12881 cf_add_libs="-lpthread"
12882 # Filter out duplicates - this happens with badly-designed ".pc" files...
12883 for cf_add_1lib in $TEST_LIBS
12885 for cf_add_2lib in $cf_add_libs
12887 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12895 TEST_LIBS="$cf_add_libs"
12897 cf_add_libs="-lpthread"
12898 # Filter out duplicates - this happens with badly-designed ".pc" files...
12899 for cf_add_1lib in $TEST_LIBS2
12901 for cf_add_2lib in $cf_add_libs
12903 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12909 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12911 TEST_LIBS2="$cf_add_libs"
12914 # when not using weak symbols but with_reentrant,
12915 # add 't' to the library suffix on all platforms
12916 # except cygwin, where we only do that if ALSO
12917 # compiling with full thread support.
12919 (*cygwin* | *msys*)
12920 if test "$with_pthread" = "yes" ; then
12921 if test "x$disable_lib_suffixes" = "xno" ; then
12922 LIB_SUFFIX="t${LIB_SUFFIX}"
12926 if test "x$disable_lib_suffixes" = "xno" ; then
12927 LIB_SUFFIX="t${LIB_SUFFIX}"
12933 cat >>confdefs.h <<\EOF
12934 #define USE_REENTRANT 1
12937 if test "${with_abi_version+set}" != set; then
12938 case $cf_cv_rel_version in
12940 cf_cv_rel_version=6.0
12941 cf_cv_abi_version=6
12942 { echo "$as_me:12942: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12943 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12949 cf_cv_enable_reentrant=0
12950 cf_cv_enable_opaque="NCURSES_OPAQUE"
12952 NCURSES_SIZE_T=short
12955 ### Allow using a different wrap-prefix
12956 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12957 echo "$as_me:12957: checking for prefix used to wrap public variables" >&5
12958 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12960 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12961 if test "${with_wrap_prefix+set}" = set; then
12962 withval="$with_wrap_prefix"
12963 NCURSES_WRAP_PREFIX=$withval
12965 NCURSES_WRAP_PREFIX=_nc_
12967 echo "$as_me:12967: result: $NCURSES_WRAP_PREFIX" >&5
12968 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12970 NCURSES_WRAP_PREFIX=_nc_
12973 cat >>confdefs.h <<EOF
12974 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12977 echo "$as_me:12977: checking if you want experimental safe-sprintf code" >&5
12978 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12980 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12981 if test "${enable_safe_sprintf+set}" = set; then
12982 enableval="$enable_safe_sprintf"
12983 with_safe_sprintf=$enableval
12985 with_safe_sprintf=no
12987 echo "$as_me:12987: result: $with_safe_sprintf" >&5
12988 echo "${ECHO_T}$with_safe_sprintf" >&6
12989 test "x$with_safe_sprintf" = xyes &&
12990 cat >>confdefs.h <<\EOF
12991 #define USE_SAFE_SPRINTF 1
12994 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12995 # when hashmap is used scroll hints are useless
12996 if test "$with_hashmap" = no ; then
12997 echo "$as_me:12997: checking if you want to experiment without scrolling-hints code" >&5
12998 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
13000 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
13001 if test "${enable_scroll_hints+set}" = set; then
13002 enableval="$enable_scroll_hints"
13003 with_scroll_hints=$enableval
13005 with_scroll_hints=yes
13007 echo "$as_me:13007: result: $with_scroll_hints" >&5
13008 echo "${ECHO_T}$with_scroll_hints" >&6
13009 test "x$with_scroll_hints" = xyes &&
13010 cat >>confdefs.h <<\EOF
13011 #define USE_SCROLL_HINTS 1
13016 echo "$as_me:13016: checking if you want wgetch-events code" >&5
13017 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
13019 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
13020 if test "${enable_wgetch_events+set}" = set; then
13021 enableval="$enable_wgetch_events"
13022 with_wgetch_events=$enableval
13024 with_wgetch_events=no
13026 echo "$as_me:13026: result: $with_wgetch_events" >&5
13027 echo "${ECHO_T}$with_wgetch_events" >&6
13028 test "x$with_wgetch_events" = xyes &&
13029 cat >>confdefs.h <<\EOF
13030 #define NCURSES_WGETCH_EVENTS 1
13033 ###############################################################################
13035 ### use option --disable-echo to suppress full display compiling commands
13037 echo "$as_me:13037: checking if you want to see long compiling messages" >&5
13038 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13040 # Check whether --enable-echo or --disable-echo was given.
13041 if test "${enable_echo+set}" = set; then
13042 enableval="$enable_echo"
13043 test "$enableval" != no && enableval=yes
13044 if test "$enableval" != "yes" ; then
13047 ECHO_LD='@echo linking $@;'
13048 RULE_CC='@echo compiling $<'
13049 SHOW_CC='@echo compiling $@'
13071 echo "$as_me:13071: result: $enableval" >&5
13072 echo "${ECHO_T}$enableval" >&6
13074 if test "x$enable_echo" = xyes; then
13077 ECHO_LINK='@ echo linking $@ ... ;'
13078 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
13079 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
13082 ### use option --enable-warnings to turn on all gcc warnings
13083 echo "$as_me:13083: checking if you want to see compiler warnings" >&5
13084 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13086 # Check whether --enable-warnings or --disable-warnings was given.
13087 if test "${enable_warnings+set}" = set; then
13088 enableval="$enable_warnings"
13089 with_warnings=$enableval
13091 echo "$as_me:13091: result: $with_warnings" >&5
13092 echo "${ECHO_T}$with_warnings" >&6
13094 if test "x$with_warnings" = "xyes"; then
13096 ADAFLAGS="$ADAFLAGS -gnatg"
13100 if test "$GCC" = yes ; then
13103 echo "$as_me:13103: checking if this is really Intel C compiler" >&5
13104 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
13105 cf_save_CFLAGS="$CFLAGS"
13106 CFLAGS="$CFLAGS -no-gcc"
13107 cat >conftest.$ac_ext <<_ACEOF
13108 #line 13108 "configure"
13109 #include "confdefs.h"
13115 #ifdef __INTEL_COMPILER
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:13125: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>&5
13128 echo "$as_me:13128: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:13131: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:13134: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13137 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13140 echo "$as_me: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13143 rm -f conftest.$ac_objext conftest.$ac_ext
13144 CFLAGS="$cf_save_CFLAGS"
13145 echo "$as_me:13145: result: $INTEL_COMPILER" >&5
13146 echo "${ECHO_T}$INTEL_COMPILER" >&6
13153 if test "$GCC" = yes ; then
13154 echo "$as_me:13154: checking if this is really Clang C compiler" >&5
13155 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13156 cf_save_CFLAGS="$CFLAGS"
13157 CFLAGS="$CFLAGS -Qunused-arguments"
13158 cat >conftest.$ac_ext <<_ACEOF
13159 #line 13159 "configure"
13160 #include "confdefs.h"
13175 rm -f conftest.$ac_objext
13176 if { (eval echo "$as_me:13176: \"$ac_compile\"") >&5
13177 (eval $ac_compile) 2>&5
13179 echo "$as_me:13179: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -s conftest.$ac_objext'
13182 { (eval echo "$as_me:13182: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:13185: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13188 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13191 echo "$as_me: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13194 rm -f conftest.$ac_objext conftest.$ac_ext
13195 CFLAGS="$cf_save_CFLAGS"
13196 echo "$as_me:13196: result: $CLANG_COMPILER" >&5
13197 echo "${ECHO_T}$CLANG_COMPILER" >&6
13200 cat > conftest.$ac_ext <<EOF
13201 #line 13201 "${as_me:-configure}"
13202 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13205 if test "$INTEL_COMPILER" = yes
13207 # The "-wdXXX" options suppress warnings:
13208 # remark #1419: external declaration in primary source file
13209 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13210 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13211 # remark #193: zero used for undefined preprocessing identifier
13212 # remark #593: variable "curs_sb_left_arrow" was set but never used
13213 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13214 # remark #869: parameter "tw" was never referenced
13215 # remark #981: operands are evaluated in unspecified order
13216 # warning #279: controlling expression is constant
13218 { echo "$as_me:13218: checking for $CC warning options..." >&5
13219 echo "$as_me: checking for $CC warning options..." >&6;}
13220 cf_save_CFLAGS="$CFLAGS"
13221 EXTRA_CFLAGS="-Wall"
13233 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13234 if { (eval echo "$as_me:13234: \"$ac_compile\"") >&5
13235 (eval $ac_compile) 2>&5
13237 echo "$as_me:13237: \$? = $ac_status" >&5
13238 (exit $ac_status); }; then
13239 test -n "$verbose" && echo "$as_me:13239: result: ... -$cf_opt" >&5
13240 echo "${ECHO_T}... -$cf_opt" >&6
13241 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13244 CFLAGS="$cf_save_CFLAGS"
13246 elif test "$GCC" = yes
13248 { echo "$as_me:13248: checking for $CC warning options..." >&5
13249 echo "$as_me: checking for $CC warning options..." >&6;}
13250 cf_save_CFLAGS="$CFLAGS"
13253 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13254 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13255 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13256 for cf_opt in W Wall \
13257 Wbad-function-cast \
13260 Wdeclaration-after-statement \
13263 Wmissing-declarations \
13264 Wmissing-prototypes \
13268 Wstrict-prototypes \
13269 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13271 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13272 if { (eval echo "$as_me:13272: \"$ac_compile\"") >&5
13273 (eval $ac_compile) 2>&5
13275 echo "$as_me:13275: \$? = $ac_status" >&5
13276 (exit $ac_status); }; then
13277 test -n "$verbose" && echo "$as_me:13277: result: ... -$cf_opt" >&5
13278 echo "${ECHO_T}... -$cf_opt" >&6
13281 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13284 case $GCC_VERSION in
13286 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13288 echo "${as_me:-configure}:13288: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13294 case $GCC_VERSION in
13296 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13298 echo "${as_me:-configure}:13298: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13304 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13307 CFLAGS="$cf_save_CFLAGS"
13311 if test "x$cf_with_cxx" = xyes ; then
13315 if test "$GCC" = yes ; then
13318 echo "$as_me:13318: checking if this is really Intel C++ compiler" >&5
13319 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13320 cf_save_CFLAGS="$CXXFLAGS"
13321 CXXFLAGS="$CXXFLAGS -no-gcc"
13322 cat >conftest.$ac_ext <<_ACEOF
13323 #line 13323 "configure"
13324 #include "confdefs.h"
13330 #ifdef __INTEL_COMPILER
13339 rm -f conftest.$ac_objext
13340 if { (eval echo "$as_me:13340: \"$ac_compile\"") >&5
13341 (eval $ac_compile) 2>&5
13343 echo "$as_me:13343: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -s conftest.$ac_objext'
13346 { (eval echo "$as_me:13346: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:13349: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 INTEL_CPLUSPLUS=yes
13352 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13355 echo "$as_me: failed program was:" >&5
13356 cat conftest.$ac_ext >&5
13358 rm -f conftest.$ac_objext conftest.$ac_ext
13359 CXXFLAGS="$cf_save_CFLAGS"
13360 echo "$as_me:13360: result: $INTEL_CPLUSPLUS" >&5
13361 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13368 if test "$GCC" = yes ; then
13369 echo "$as_me:13369: checking if this is really Clang C++ compiler" >&5
13370 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13371 cf_save_CFLAGS="$CXXFLAGS"
13372 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13373 cat >conftest.$ac_ext <<_ACEOF
13374 #line 13374 "configure"
13375 #include "confdefs.h"
13390 rm -f conftest.$ac_objext
13391 if { (eval echo "$as_me:13391: \"$ac_compile\"") >&5
13392 (eval $ac_compile) 2>&5
13394 echo "$as_me:13394: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -s conftest.$ac_objext'
13397 { (eval echo "$as_me:13397: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:13400: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 CLANG_CPLUSPLUS=yes
13403 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13406 echo "$as_me: failed program was:" >&5
13407 cat conftest.$ac_ext >&5
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13410 CXXFLAGS="$cf_save_CFLAGS"
13411 echo "$as_me:13411: result: $CLANG_CPLUSPLUS" >&5
13412 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13416 ac_cpp='$CXXCPP $CPPFLAGS'
13417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13420 ac_main_return=return
13422 cat > conftest.$ac_ext <<EOF
13423 #line 13423 "configure"
13424 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13427 if test "$INTEL_CPLUSPLUS" = yes
13429 # The "-wdXXX" options suppress warnings:
13430 # remark #1419: external declaration in primary source file
13431 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13432 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13433 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13434 # remark #193: zero used for undefined preprocessing identifier
13435 # remark #593: variable "curs_sb_left_arrow" was set but never used
13436 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13437 # remark #869: parameter "tw" was never referenced
13438 # remark #981: operands are evaluated in unspecified order
13439 # warning #269: invalid format string conversion
13441 { echo "$as_me:13441: checking for $CC warning options..." >&5
13442 echo "$as_me: checking for $CC warning options..." >&6;}
13443 cf_save_CXXFLAGS="$CXXFLAGS"
13444 EXTRA_CXXFLAGS="-Wall"
13457 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13458 if { (eval echo "$as_me:13458: \"$ac_compile\"") >&5
13459 (eval $ac_compile) 2>&5
13461 echo "$as_me:13461: \$? = $ac_status" >&5
13462 (exit $ac_status); }; then
13463 test -n "$verbose" && echo "$as_me:13463: result: ... -$cf_opt" >&5
13464 echo "${ECHO_T}... -$cf_opt" >&6
13465 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13468 CXXFLAGS="$cf_save_CXXFLAGS"
13470 elif test "$GXX" = yes
13472 { echo "$as_me:13472: checking for $CXX warning options..." >&5
13473 echo "$as_me: checking for $CXX warning options..." >&6;}
13474 cf_save_CXXFLAGS="$CXXFLAGS"
13475 EXTRA_CXXFLAGS="-W -Wall"
13476 cf_gxx_extra_warnings=""
13477 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13478 case "$GCC_VERSION" in
13482 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13489 Wignored-qualifiers \
13491 Woverloaded-virtual \
13499 Wundef $cf_gxx_extra_warnings Wno-unused
13501 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13502 if { (eval echo "$as_me:13502: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>&5
13505 echo "$as_me:13505: \$? = $ac_status" >&5
13506 (exit $ac_status); }; then
13507 test -n "$verbose" && echo "$as_me:13507: result: ... -$cf_opt" >&5
13508 echo "${ECHO_T}... -$cf_opt" >&6
13509 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13511 test -n "$verbose" && echo "$as_me:13511: result: ... no -$cf_opt" >&5
13512 echo "${ECHO_T}... no -$cf_opt" >&6
13515 CXXFLAGS="$cf_save_CXXFLAGS"
13520 ac_cpp='$CPP $CPPFLAGS'
13521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13524 ac_main_return=return
13529 if test "$GCC" = yes
13531 cat > conftest.i <<EOF
13533 #define GCC_PRINTF 0
13536 #define GCC_SCANF 0
13538 #ifndef GCC_NORETURN
13539 #define GCC_NORETURN /* nothing */
13542 #define GCC_UNUSED /* nothing */
13545 if test "$GCC" = yes
13547 { echo "$as_me:13547: checking for $CC __attribute__ directives..." >&5
13548 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13550 "${as_me:-configure}"
13551 #include "confdefs.h"
13552 #include "conftest.h"
13553 #include "conftest.i"
13555 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13557 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
13560 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
13562 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
13564 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
13565 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
13566 extern void foo(void) GCC_NORETURN;
13567 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
13569 cf_printf_attribute=no
13570 cf_scanf_attribute=no
13571 for cf_attribute in scanf printf unused noreturn
13574 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13576 cf_directive="__attribute__(($cf_attribute))"
13577 echo "checking for $CC $cf_directive" 1>&5
13579 case $cf_attribute in
13581 cf_printf_attribute=yes
13582 cat >conftest.h <<EOF
13583 #define GCC_$cf_ATTRIBUTE 1
13587 cf_scanf_attribute=yes
13588 cat >conftest.h <<EOF
13589 #define GCC_$cf_ATTRIBUTE 1
13593 cat >conftest.h <<EOF
13594 #define GCC_$cf_ATTRIBUTE $cf_directive
13599 if { (eval echo "$as_me:13599: \"$ac_compile\"") >&5
13600 (eval $ac_compile) 2>&5
13602 echo "$as_me:13602: \$? = $ac_status" >&5
13603 (exit $ac_status); }; then
13604 test -n "$verbose" && echo "$as_me:13604: result: ... $cf_attribute" >&5
13605 echo "${ECHO_T}... $cf_attribute" >&6
13606 cat conftest.h >>confdefs.h
13607 case $cf_attribute in
13610 cat >>confdefs.h <<EOF
13611 #define GCC_NORETURN $cf_directive
13616 cf_value='/* nothing */'
13617 if test "$cf_printf_attribute" != no ; then
13618 cf_value='__attribute__((format(printf,fmt,var)))'
13620 cat >>confdefs.h <<\EOF
13621 #define GCC_PRINTF 1
13626 cat >>confdefs.h <<EOF
13627 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13632 cf_value='/* nothing */'
13633 if test "$cf_scanf_attribute" != no ; then
13634 cf_value='__attribute__((format(scanf,fmt,var)))'
13636 cat >>confdefs.h <<\EOF
13637 #define GCC_SCANF 1
13642 cat >>confdefs.h <<EOF
13643 #define GCC_SCANFLIKE(fmt,var) $cf_value
13649 cat >>confdefs.h <<EOF
13650 #define GCC_UNUSED $cf_directive
13658 fgrep define conftest.i >>confdefs.h
13663 echo "$as_me:13663: checking if you want to work around bogus compiler/loader warnings" >&5
13664 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13666 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13667 if test "${enable_string_hacks+set}" = set; then
13668 enableval="$enable_string_hacks"
13669 with_string_hacks=$enableval
13671 with_string_hacks=no
13673 echo "$as_me:13673: result: $with_string_hacks" >&5
13674 echo "${ECHO_T}$with_string_hacks" >&6
13676 if test "x$with_string_hacks" = "xyes"; then
13678 cat >>confdefs.h <<\EOF
13679 #define USE_STRING_HACKS 1
13682 { echo "$as_me:13682: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13683 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13685 for ac_func in strlcat strlcpy snprintf
13687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13688 echo "$as_me:13688: checking for $ac_func" >&5
13689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13690 if eval "test \"\${$as_ac_var+set}\" = set"; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 cat >conftest.$ac_ext <<_ACEOF
13694 #line 13694 "configure"
13695 #include "confdefs.h"
13696 /* System header to define __stub macros and hopefully few prototypes,
13697 which can conflict with char $ac_func (); below. */
13698 #include <assert.h>
13699 /* Override any gcc2 internal prototype to avoid an error. */
13703 /* We use char because int might match the return type of a gcc2
13704 builtin and then its argument prototype would still apply. */
13711 /* The GNU C library defines this for functions which it implements
13712 to always fail with ENOSYS. Some functions are actually named
13713 something starting with __ and the normal name is an alias. */
13714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13717 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13724 rm -f conftest.$ac_objext conftest$ac_exeext
13725 if { (eval echo "$as_me:13725: \"$ac_link\"") >&5
13726 (eval $ac_link) 2>&5
13728 echo "$as_me:13728: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -s conftest$ac_exeext'
13731 { (eval echo "$as_me:13731: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:13734: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 eval "$as_ac_var=yes"
13738 echo "$as_me: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 eval "$as_ac_var=no"
13742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13744 echo "$as_me:13744: result: `eval echo '${'$as_ac_var'}'`" >&5
13745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13746 if test `eval echo '${'$as_ac_var'}'` = yes; then
13747 cat >>confdefs.h <<EOF
13748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13756 ### use option --enable-assertions to turn on generation of assertion code
13757 echo "$as_me:13757: checking if you want to enable runtime assertions" >&5
13758 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
13760 # Check whether --enable-assertions or --disable-assertions was given.
13761 if test "${enable_assertions+set}" = set; then
13762 enableval="$enable_assertions"
13763 with_assertions=$enableval
13767 echo "$as_me:13767: result: $with_assertions" >&5
13768 echo "${ECHO_T}$with_assertions" >&6
13771 if test "$with_assertions" = no
13773 CPPFLAGS="$CPPFLAGS -DNDEBUG"
13776 ADAFLAGS="$ADAFLAGS -gnata"
13781 ### use option --disable-leaks to suppress "permanent" leaks, for testing
13783 echo "$as_me:13783: checking if you want to use dmalloc for testing" >&5
13784 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
13786 # Check whether --with-dmalloc or --without-dmalloc was given.
13787 if test "${with_dmalloc+set}" = set; then
13788 withval="$with_dmalloc"
13790 cat >>confdefs.h <<EOF
13791 #define USE_DMALLOC 1
13794 : ${with_cflags:=-g}
13795 : ${with_no_leaks:=yes}
13800 echo "$as_me:13800: result: ${with_dmalloc:-no}" >&5
13801 echo "${ECHO_T}${with_dmalloc:-no}" >&6
13803 case .$with_cflags in
13813 cf_new_extra_cppflags=
13815 for cf_add_cflags in -g
13817 case $cf_fix_cppflags in
13819 case $cf_add_cflags in
13820 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13821 case $cf_add_cflags in
13823 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13825 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13826 && test -z "${cf_tst_cflags}" \
13827 && cf_fix_cppflags=yes
13829 if test $cf_fix_cppflags = yes ; then
13830 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13832 elif test "${cf_tst_cflags}" = "\"'" ; then
13833 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13838 case "$CPPFLAGS" in
13842 case $cf_add_cflags in
13844 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13846 CPPFLAGS=`echo "$CPPFLAGS" | \
13847 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13848 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13852 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13857 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13862 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13864 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13866 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13867 && test -z "${cf_tst_cflags}" \
13868 && cf_fix_cppflags=no
13873 if test -n "$cf_new_cflags" ; then
13875 CFLAGS="$CFLAGS $cf_new_cflags"
13878 if test -n "$cf_new_cppflags" ; then
13880 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13883 if test -n "$cf_new_extra_cppflags" ; then
13885 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13893 if test "$with_dmalloc" = yes ; then
13894 echo "$as_me:13894: checking for dmalloc.h" >&5
13895 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13896 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 cat >conftest.$ac_ext <<_ACEOF
13900 #line 13900 "configure"
13901 #include "confdefs.h"
13902 #include <dmalloc.h>
13904 if { (eval echo "$as_me:13904: \"$ac_cpp conftest.$ac_ext\"") >&5
13905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13907 egrep -v '^ *\+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 echo "$as_me:13910: \$? = $ac_status" >&5
13911 (exit $ac_status); } >/dev/null; then
13912 if test -s conftest.err; then
13913 ac_cpp_err=$ac_c_preproc_warn_flag
13920 if test -z "$ac_cpp_err"; then
13921 ac_cv_header_dmalloc_h=yes
13923 echo "$as_me: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13925 ac_cv_header_dmalloc_h=no
13927 rm -f conftest.err conftest.$ac_ext
13929 echo "$as_me:13929: result: $ac_cv_header_dmalloc_h" >&5
13930 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13931 if test $ac_cv_header_dmalloc_h = yes; then
13933 echo "$as_me:13933: checking for dmalloc_debug in -ldmalloc" >&5
13934 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13935 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 ac_check_lib_save_LIBS=$LIBS
13939 LIBS="-ldmalloc $LIBS"
13940 cat >conftest.$ac_ext <<_ACEOF
13941 #line 13941 "configure"
13942 #include "confdefs.h"
13944 /* Override any gcc2 internal prototype to avoid an error. */
13948 /* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13950 char dmalloc_debug ();
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (eval echo "$as_me:13960: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>&5
13963 echo "$as_me:13963: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (eval echo "$as_me:13966: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:13969: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_cv_lib_dmalloc_dmalloc_debug=yes
13973 echo "$as_me: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13975 ac_cv_lib_dmalloc_dmalloc_debug=no
13977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13978 LIBS=$ac_check_lib_save_LIBS
13980 echo "$as_me:13980: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
13981 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
13982 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
13983 cat >>confdefs.h <<EOF
13984 #define HAVE_LIBDMALLOC 1
13987 LIBS="-ldmalloc $LIBS"
13995 echo "$as_me:13995: checking if you want to use dbmalloc for testing" >&5
13996 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
13998 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13999 if test "${with_dbmalloc+set}" = set; then
14000 withval="$with_dbmalloc"
14002 cat >>confdefs.h <<EOF
14003 #define USE_DBMALLOC 1
14006 : ${with_cflags:=-g}
14007 : ${with_no_leaks:=yes}
14012 echo "$as_me:14012: result: ${with_dbmalloc:-no}" >&5
14013 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
14015 case .$with_cflags in
14025 cf_new_extra_cppflags=
14027 for cf_add_cflags in -g
14029 case $cf_fix_cppflags in
14031 case $cf_add_cflags in
14032 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14033 case $cf_add_cflags in
14035 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14037 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14038 && test -z "${cf_tst_cflags}" \
14039 && cf_fix_cppflags=yes
14041 if test $cf_fix_cppflags = yes ; then
14042 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14044 elif test "${cf_tst_cflags}" = "\"'" ; then
14045 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14050 case "$CPPFLAGS" in
14054 case $cf_add_cflags in
14056 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14058 CPPFLAGS=`echo "$CPPFLAGS" | \
14059 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14060 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14064 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14069 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14074 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14078 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14079 && test -z "${cf_tst_cflags}" \
14080 && cf_fix_cppflags=no
14085 if test -n "$cf_new_cflags" ; then
14087 CFLAGS="$CFLAGS $cf_new_cflags"
14090 if test -n "$cf_new_cppflags" ; then
14092 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14095 if test -n "$cf_new_extra_cppflags" ; then
14097 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14105 if test "$with_dbmalloc" = yes ; then
14106 echo "$as_me:14106: checking for dbmalloc.h" >&5
14107 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
14108 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14112 #line 14112 "configure"
14113 #include "confdefs.h"
14114 #include <dbmalloc.h>
14116 if { (eval echo "$as_me:14116: \"$ac_cpp conftest.$ac_ext\"") >&5
14117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14119 egrep -v '^ *\+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 echo "$as_me:14122: \$? = $ac_status" >&5
14123 (exit $ac_status); } >/dev/null; then
14124 if test -s conftest.err; then
14125 ac_cpp_err=$ac_c_preproc_warn_flag
14132 if test -z "$ac_cpp_err"; then
14133 ac_cv_header_dbmalloc_h=yes
14135 echo "$as_me: failed program was:" >&5
14136 cat conftest.$ac_ext >&5
14137 ac_cv_header_dbmalloc_h=no
14139 rm -f conftest.err conftest.$ac_ext
14141 echo "$as_me:14141: result: $ac_cv_header_dbmalloc_h" >&5
14142 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
14143 if test $ac_cv_header_dbmalloc_h = yes; then
14145 echo "$as_me:14145: checking for debug_malloc in -ldbmalloc" >&5
14146 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14147 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 ac_check_lib_save_LIBS=$LIBS
14151 LIBS="-ldbmalloc $LIBS"
14152 cat >conftest.$ac_ext <<_ACEOF
14153 #line 14153 "configure"
14154 #include "confdefs.h"
14156 /* Override any gcc2 internal prototype to avoid an error. */
14160 /* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14162 char debug_malloc ();
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:14172: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>&5
14175 echo "$as_me:14175: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:14178: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:14181: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_lib_dbmalloc_debug_malloc=yes
14185 echo "$as_me: failed program was:" >&5
14186 cat conftest.$ac_ext >&5
14187 ac_cv_lib_dbmalloc_debug_malloc=no
14189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 echo "$as_me:14192: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14193 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14194 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14195 cat >>confdefs.h <<EOF
14196 #define HAVE_LIBDBMALLOC 1
14199 LIBS="-ldbmalloc $LIBS"
14207 echo "$as_me:14207: checking if you want to use valgrind for testing" >&5
14208 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14210 # Check whether --with-valgrind or --without-valgrind was given.
14211 if test "${with_valgrind+set}" = set; then
14212 withval="$with_valgrind"
14214 cat >>confdefs.h <<EOF
14215 #define USE_VALGRIND 1
14218 : ${with_cflags:=-g}
14219 : ${with_no_leaks:=yes}
14224 echo "$as_me:14224: result: ${with_valgrind:-no}" >&5
14225 echo "${ECHO_T}${with_valgrind:-no}" >&6
14227 case .$with_cflags in
14237 cf_new_extra_cppflags=
14239 for cf_add_cflags in -g
14241 case $cf_fix_cppflags in
14243 case $cf_add_cflags in
14244 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14245 case $cf_add_cflags in
14247 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14249 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14250 && test -z "${cf_tst_cflags}" \
14251 && cf_fix_cppflags=yes
14253 if test $cf_fix_cppflags = yes ; then
14254 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14256 elif test "${cf_tst_cflags}" = "\"'" ; then
14257 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14262 case "$CPPFLAGS" in
14266 case $cf_add_cflags in
14268 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14270 CPPFLAGS=`echo "$CPPFLAGS" | \
14271 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14272 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14276 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14281 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14286 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14288 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14290 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14291 && test -z "${cf_tst_cflags}" \
14292 && cf_fix_cppflags=no
14297 if test -n "$cf_new_cflags" ; then
14299 CFLAGS="$CFLAGS $cf_new_cflags"
14302 if test -n "$cf_new_cppflags" ; then
14304 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14307 if test -n "$cf_new_extra_cppflags" ; then
14309 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14317 echo "$as_me:14317: checking if you want to perform memory-leak testing" >&5
14318 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
14320 # Check whether --enable-leaks or --disable-leaks was given.
14321 if test "${enable_leaks+set}" = set; then
14322 enableval="$enable_leaks"
14323 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
14325 : ${with_no_leaks:=no}
14327 echo "$as_me:14327: result: $with_no_leaks" >&5
14328 echo "${ECHO_T}$with_no_leaks" >&6
14330 if test "$with_no_leaks" = yes ; then
14332 cat >>confdefs.h <<\EOF
14336 cat >>confdefs.h <<\EOF
14337 #define YY_NO_LEAKS 1
14342 cat >>confdefs.h <<\EOF
14343 #define HAVE_NC_ALLOC_H 1
14346 ### use option --enable-expanded to generate certain macros as functions
14348 # Check whether --enable-expanded or --disable-expanded was given.
14349 if test "${enable_expanded+set}" = set; then
14350 enableval="$enable_expanded"
14351 test "x$enableval" = xyes &&
14352 cat >>confdefs.h <<\EOF
14353 #define NCURSES_EXPANDED 1
14358 ### use option --disable-macros to suppress macros in favor of functions
14360 # Check whether --enable-macros or --disable-macros was given.
14361 if test "${enable_macros+set}" = set; then
14362 enableval="$enable_macros"
14363 test "$enableval" = no &&
14364 cat >>confdefs.h <<\EOF
14365 #define NCURSES_NOMACROS 1
14370 # Normally we only add trace() to the debug-library. Allow this to be
14371 # extended to all models of the ncurses library:
14373 case "$CFLAGS $CPPFLAGS" in
14379 echo "$as_me:14379: checking whether to add trace feature to all models" >&5
14380 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14382 # Check whether --with-trace or --without-trace was given.
14383 if test "${with_trace+set}" = set; then
14384 withval="$with_trace"
14385 cf_with_trace=$withval
14387 cf_with_trace=$cf_all_traces
14389 echo "$as_me:14389: result: $cf_with_trace" >&5
14390 echo "${ECHO_T}$cf_with_trace" >&6
14392 if test "x$cf_with_trace" = xyes ; then
14399 cf_new_extra_cppflags=
14401 for cf_add_cflags in -DTRACE
14403 case $cf_fix_cppflags in
14405 case $cf_add_cflags in
14406 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14407 case $cf_add_cflags in
14409 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14411 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14412 && test -z "${cf_tst_cflags}" \
14413 && cf_fix_cppflags=yes
14415 if test $cf_fix_cppflags = yes ; then
14416 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14418 elif test "${cf_tst_cflags}" = "\"'" ; then
14419 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14424 case "$CPPFLAGS" in
14428 case $cf_add_cflags in
14430 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14432 CPPFLAGS=`echo "$CPPFLAGS" | \
14433 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14434 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14438 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14443 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14448 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14450 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14452 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14453 && test -z "${cf_tst_cflags}" \
14454 && cf_fix_cppflags=no
14459 if test -n "$cf_new_cflags" ; then
14461 CFLAGS="$CFLAGS $cf_new_cflags"
14464 if test -n "$cf_new_cppflags" ; then
14466 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14469 if test -n "$cf_new_extra_cppflags" ; then
14471 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14479 echo "$as_me:14479: checking if we want to use GNAT projects" >&5
14480 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14482 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14483 if test "${enable_gnat_projects+set}" = set; then
14484 enableval="$enable_gnat_projects"
14485 test "$enableval" != no && enableval=yes
14486 if test "$enableval" != "yes" ; then
14487 enable_gnat_projects=no
14489 enable_gnat_projects=yes
14493 enable_gnat_projects=yes
14496 echo "$as_me:14496: result: $enable_gnat_projects" >&5
14497 echo "${ECHO_T}$enable_gnat_projects" >&6
14499 ### Checks for libraries.
14500 case $cf_cv_system_name in
14501 (*mingw32*|*mingw64*)
14502 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
14503 LIBS=" -lpsapi $LIBS"
14506 echo "$as_me:14506: checking for gettimeofday" >&5
14507 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14508 if test "${ac_cv_func_gettimeofday+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14512 #line 14512 "configure"
14513 #include "confdefs.h"
14514 /* System header to define __stub macros and hopefully few prototypes,
14515 which can conflict with char gettimeofday (); below. */
14516 #include <assert.h>
14517 /* Override any gcc2 internal prototype to avoid an error. */
14521 /* We use char because int might match the return type of a gcc2
14522 builtin and then its argument prototype would still apply. */
14523 char gettimeofday ();
14529 /* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14535 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14542 rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (eval echo "$as_me:14543: \"$ac_link\"") >&5
14544 (eval $ac_link) 2>&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -s conftest$ac_exeext'
14549 { (eval echo "$as_me:14549: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:14552: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_func_gettimeofday=yes
14556 echo "$as_me: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14558 ac_cv_func_gettimeofday=no
14560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14562 echo "$as_me:14562: result: $ac_cv_func_gettimeofday" >&5
14563 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14564 if test $ac_cv_func_gettimeofday = yes; then
14566 cat >>confdefs.h <<\EOF
14567 #define HAVE_GETTIMEOFDAY 1
14572 echo "$as_me:14572: checking for gettimeofday in -lbsd" >&5
14573 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14574 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 ac_check_lib_save_LIBS=$LIBS
14579 cat >conftest.$ac_ext <<_ACEOF
14580 #line 14580 "configure"
14581 #include "confdefs.h"
14583 /* Override any gcc2 internal prototype to avoid an error. */
14587 /* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14589 char gettimeofday ();
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:14599: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>&5
14602 echo "$as_me:14602: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -s conftest$ac_exeext'
14605 { (eval echo "$as_me:14605: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:14608: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_lib_bsd_gettimeofday=yes
14612 echo "$as_me: failed program was:" >&5
14613 cat conftest.$ac_ext >&5
14614 ac_cv_lib_bsd_gettimeofday=no
14616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14617 LIBS=$ac_check_lib_save_LIBS
14619 echo "$as_me:14619: result: $ac_cv_lib_bsd_gettimeofday" >&5
14620 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14621 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14623 cat >>confdefs.h <<\EOF
14624 #define HAVE_GETTIMEOFDAY 1
14627 cf_add_libs="-lbsd"
14628 # Filter out duplicates - this happens with badly-designed ".pc" files...
14629 for cf_add_1lib in $LIBS
14631 for cf_add_2lib in $cf_add_libs
14633 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14639 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14641 LIBS="$cf_add_libs"
14649 echo "$as_me:14649: checking if -lm needed for math functions" >&5
14650 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14651 if test "${cf_cv_need_libm+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 cat >conftest.$ac_ext <<_ACEOF
14656 #line 14656 "configure"
14657 #include "confdefs.h"
14665 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14670 rm -f conftest.$ac_objext conftest$ac_exeext
14671 if { (eval echo "$as_me:14671: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5
14674 echo "$as_me:14674: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:14677: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:14680: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14684 echo "$as_me: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14686 cf_cv_need_libm=yes
14688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14690 echo "$as_me:14690: result: $cf_cv_need_libm" >&5
14691 echo "${ECHO_T}$cf_cv_need_libm" >&6
14692 if test "$cf_cv_need_libm" = yes
14697 ### Checks for header files.
14698 echo "$as_me:14698: checking for ANSI C header files" >&5
14699 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14700 if test "${ac_cv_header_stdc+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 cat >conftest.$ac_ext <<_ACEOF
14704 #line 14704 "configure"
14705 #include "confdefs.h"
14706 #include <stdlib.h>
14707 #include <stdarg.h>
14708 #include <string.h>
14712 if { (eval echo "$as_me:14712: \"$ac_cpp conftest.$ac_ext\"") >&5
14713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14715 egrep -v '^ *\+' conftest.er1 >conftest.err
14717 cat conftest.err >&5
14718 echo "$as_me:14718: \$? = $ac_status" >&5
14719 (exit $ac_status); } >/dev/null; then
14720 if test -s conftest.err; then
14721 ac_cpp_err=$ac_c_preproc_warn_flag
14728 if test -z "$ac_cpp_err"; then
14729 ac_cv_header_stdc=yes
14731 echo "$as_me: failed program was:" >&5
14732 cat conftest.$ac_ext >&5
14733 ac_cv_header_stdc=no
14735 rm -f conftest.err conftest.$ac_ext
14737 if test $ac_cv_header_stdc = yes; then
14738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14739 cat >conftest.$ac_ext <<_ACEOF
14740 #line 14740 "configure"
14741 #include "confdefs.h"
14742 #include <string.h>
14745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14746 egrep "memchr" >/dev/null 2>&1; then
14749 ac_cv_header_stdc=no
14755 if test $ac_cv_header_stdc = yes; then
14756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14757 cat >conftest.$ac_ext <<_ACEOF
14758 #line 14758 "configure"
14759 #include "confdefs.h"
14760 #include <stdlib.h>
14763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14764 egrep "free" >/dev/null 2>&1; then
14767 ac_cv_header_stdc=no
14773 if test $ac_cv_header_stdc = yes; then
14774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14775 if test "$cross_compiling" = yes; then
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line 14779 "configure"
14780 #include "confdefs.h"
14782 #if ((' ' & 0x0FF) == 0x020)
14783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14786 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14787 || ('j' <= (c) && (c) <= 'r') \
14788 || ('s' <= (c) && (c) <= 'z'))
14789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14797 for (i = 0; i < 256; i++)
14798 if (XOR (islower (i), ISLOWER (i))
14799 || toupper (i) != TOUPPER (i))
14800 $ac_main_return(2);
14801 $ac_main_return (0);
14804 rm -f conftest$ac_exeext
14805 if { (eval echo "$as_me:14805: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>&5
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14810 { (eval echo "$as_me:14810: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:14813: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14817 echo "$as_me: program exited with status $ac_status" >&5
14818 echo "$as_me: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 ac_cv_header_stdc=no
14822 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14826 echo "$as_me:14826: result: $ac_cv_header_stdc" >&5
14827 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14828 if test $ac_cv_header_stdc = yes; then
14830 cat >>confdefs.h <<\EOF
14831 #define STDC_HEADERS 1
14836 ac_header_dirent=no
14837 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14838 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14839 echo "$as_me:14839: checking for $ac_hdr that defines DIR" >&5
14840 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 cat >conftest.$ac_ext <<_ACEOF
14845 #line 14845 "configure"
14846 #include "confdefs.h"
14847 #include <sys/types.h>
14859 rm -f conftest.$ac_objext
14860 if { (eval echo "$as_me:14860: \"$ac_compile\"") >&5
14861 (eval $ac_compile) 2>&5
14863 echo "$as_me:14863: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (eval echo "$as_me:14866: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14869 echo "$as_me:14869: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871 eval "$as_ac_Header=yes"
14873 echo "$as_me: failed program was:" >&5
14874 cat conftest.$ac_ext >&5
14875 eval "$as_ac_Header=no"
14877 rm -f conftest.$ac_objext conftest.$ac_ext
14879 echo "$as_me:14879: result: `eval echo '${'$as_ac_Header'}'`" >&5
14880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14882 cat >>confdefs.h <<EOF
14883 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14886 ac_header_dirent=$ac_hdr; break
14890 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14891 if test $ac_header_dirent = dirent.h; then
14892 echo "$as_me:14892: checking for opendir in -ldir" >&5
14893 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14894 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 ac_check_lib_save_LIBS=$LIBS
14899 cat >conftest.$ac_ext <<_ACEOF
14900 #line 14900 "configure"
14901 #include "confdefs.h"
14903 /* Override any gcc2 internal prototype to avoid an error. */
14907 /* We use char because int might match the return type of a gcc2
14908 builtin and then its argument prototype would still apply. */
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (eval echo "$as_me:14919: \"$ac_link\"") >&5
14920 (eval $ac_link) 2>&5
14922 echo "$as_me:14922: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -s conftest$ac_exeext'
14925 { (eval echo "$as_me:14925: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:14928: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_cv_lib_dir_opendir=yes
14932 echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 ac_cv_lib_dir_opendir=no
14936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14937 LIBS=$ac_check_lib_save_LIBS
14939 echo "$as_me:14939: result: $ac_cv_lib_dir_opendir" >&5
14940 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14941 if test $ac_cv_lib_dir_opendir = yes; then
14946 echo "$as_me:14946: checking for opendir in -lx" >&5
14947 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14948 if test "${ac_cv_lib_x_opendir+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 ac_check_lib_save_LIBS=$LIBS
14953 cat >conftest.$ac_ext <<_ACEOF
14954 #line 14954 "configure"
14955 #include "confdefs.h"
14957 /* Override any gcc2 internal prototype to avoid an error. */
14961 /* We use char because int might match the return type of a gcc2
14962 builtin and then its argument prototype would still apply. */
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (eval echo "$as_me:14973: \"$ac_link\"") >&5
14974 (eval $ac_link) 2>&5
14976 echo "$as_me:14976: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -s conftest$ac_exeext'
14979 { (eval echo "$as_me:14979: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:14982: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_cv_lib_x_opendir=yes
14986 echo "$as_me: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14988 ac_cv_lib_x_opendir=no
14990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14991 LIBS=$ac_check_lib_save_LIBS
14993 echo "$as_me:14993: result: $ac_cv_lib_x_opendir" >&5
14994 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14995 if test $ac_cv_lib_x_opendir = yes; then
15001 echo "$as_me:15001: checking whether time.h and sys/time.h may both be included" >&5
15002 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15003 if test "${ac_cv_header_time+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15007 #line 15007 "configure"
15008 #include "confdefs.h"
15009 #include <sys/types.h>
15010 #include <sys/time.h>
15016 if ((struct tm *) 0)
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:15023: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>&5
15026 echo "$as_me:15026: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -s conftest.$ac_objext'
15029 { (eval echo "$as_me:15029: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:15032: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_header_time=yes
15036 echo "$as_me: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15038 ac_cv_header_time=no
15040 rm -f conftest.$ac_objext conftest.$ac_ext
15042 echo "$as_me:15042: result: $ac_cv_header_time" >&5
15043 echo "${ECHO_T}$ac_cv_header_time" >&6
15044 if test $ac_cv_header_time = yes; then
15046 cat >>confdefs.h <<\EOF
15047 #define TIME_WITH_SYS_TIME 1
15054 cf_regex_libs="regex re"
15057 cf_regex_libs="gnurx $cf_regex_libs"
15061 echo "$as_me:15061: checking for regcomp" >&5
15062 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
15063 if test "${ac_cv_func_regcomp+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 cat >conftest.$ac_ext <<_ACEOF
15067 #line 15067 "configure"
15068 #include "confdefs.h"
15069 /* System header to define __stub macros and hopefully few prototypes,
15070 which can conflict with char regcomp (); below. */
15071 #include <assert.h>
15072 /* Override any gcc2 internal prototype to avoid an error. */
15076 /* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15084 /* The GNU C library defines this for functions which it implements
15085 to always fail with ENOSYS. Some functions are actually named
15086 something starting with __ and the normal name is an alias. */
15087 #if defined (__stub_regcomp) || defined (__stub___regcomp)
15090 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15097 rm -f conftest.$ac_objext conftest$ac_exeext
15098 if { (eval echo "$as_me:15098: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15101 echo "$as_me:15101: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:15104: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:15107: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_cv_func_regcomp=yes
15111 echo "$as_me: failed program was:" >&5
15112 cat conftest.$ac_ext >&5
15113 ac_cv_func_regcomp=no
15115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15117 echo "$as_me:15117: result: $ac_cv_func_regcomp" >&5
15118 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
15119 if test $ac_cv_func_regcomp = yes; then
15120 cf_regex_func=regcomp
15123 for cf_regex_lib in $cf_regex_libs
15125 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
15126 echo "$as_me:15126: checking for regcomp in -l$cf_regex_lib" >&5
15127 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
15128 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-l$cf_regex_lib $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line 15134 "configure"
15135 #include "confdefs.h"
15137 /* Override any gcc2 internal prototype to avoid an error. */
15141 /* We use char because int might match the return type of a gcc2
15142 builtin and then its argument prototype would still apply. */
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:15153: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>&5
15156 echo "$as_me:15156: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:15159: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:15162: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 eval "$as_ac_Lib=yes"
15166 echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 eval "$as_ac_Lib=no"
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15173 echo "$as_me:15173: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15174 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15175 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15177 cf_add_libs="-l$cf_regex_lib"
15178 # Filter out duplicates - this happens with badly-designed ".pc" files...
15179 for cf_add_1lib in $LIBS
15181 for cf_add_2lib in $cf_add_libs
15183 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15189 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15191 LIBS="$cf_add_libs"
15193 cf_regex_func=regcomp
15201 if test "$cf_regex_func" = no ; then
15202 echo "$as_me:15202: checking for compile" >&5
15203 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15204 if test "${ac_cv_func_compile+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15208 #line 15208 "configure"
15209 #include "confdefs.h"
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char compile (); below. */
15212 #include <assert.h>
15213 /* Override any gcc2 internal prototype to avoid an error. */
15217 /* We use char because int might match the return type of a gcc2
15218 builtin and then its argument prototype would still apply. */
15225 /* The GNU C library defines this for functions which it implements
15226 to always fail with ENOSYS. Some functions are actually named
15227 something starting with __ and the normal name is an alias. */
15228 #if defined (__stub_compile) || defined (__stub___compile)
15231 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15238 rm -f conftest.$ac_objext conftest$ac_exeext
15239 if { (eval echo "$as_me:15239: \"$ac_link\"") >&5
15240 (eval $ac_link) 2>&5
15242 echo "$as_me:15242: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -s conftest$ac_exeext'
15245 { (eval echo "$as_me:15245: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:15248: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_cv_func_compile=yes
15252 echo "$as_me: failed program was:" >&5
15253 cat conftest.$ac_ext >&5
15254 ac_cv_func_compile=no
15256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15258 echo "$as_me:15258: result: $ac_cv_func_compile" >&5
15259 echo "${ECHO_T}$ac_cv_func_compile" >&6
15260 if test $ac_cv_func_compile = yes; then
15261 cf_regex_func=compile
15264 echo "$as_me:15264: checking for compile in -lgen" >&5
15265 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
15266 if test "${ac_cv_lib_gen_compile+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 ac_check_lib_save_LIBS=$LIBS
15271 cat >conftest.$ac_ext <<_ACEOF
15272 #line 15272 "configure"
15273 #include "confdefs.h"
15275 /* Override any gcc2 internal prototype to avoid an error. */
15279 /* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (eval echo "$as_me:15291: \"$ac_link\"") >&5
15292 (eval $ac_link) 2>&5
15294 echo "$as_me:15294: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
15296 { ac_try='test -s conftest$ac_exeext'
15297 { (eval echo "$as_me:15297: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:15300: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_lib_gen_compile=yes
15304 echo "$as_me: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15306 ac_cv_lib_gen_compile=no
15308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15309 LIBS=$ac_check_lib_save_LIBS
15311 echo "$as_me:15311: result: $ac_cv_lib_gen_compile" >&5
15312 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
15313 if test $ac_cv_lib_gen_compile = yes; then
15315 cf_add_libs="-lgen"
15316 # Filter out duplicates - this happens with badly-designed ".pc" files...
15317 for cf_add_1lib in $LIBS
15319 for cf_add_2lib in $cf_add_libs
15321 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15327 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15329 LIBS="$cf_add_libs"
15331 cf_regex_func=compile
15338 if test "$cf_regex_func" = no ; then
15339 { echo "$as_me:15339: WARNING: cannot find regular expression library" >&5
15340 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
15343 echo "$as_me:15343: checking for regular-expression headers" >&5
15344 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
15345 if test "${cf_cv_regex_hdrs+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 cf_cv_regex_hdrs=no
15350 case $cf_regex_func in
15352 for cf_regex_hdr in regexp.h regexpr.h
15354 cat >conftest.$ac_ext <<_ACEOF
15355 #line 15355 "configure"
15356 #include "confdefs.h"
15357 #include <$cf_regex_hdr>
15362 char *p = compile("", "", "", 0);
15363 int x = step("", "");
15369 rm -f conftest.$ac_objext conftest$ac_exeext
15370 if { (eval echo "$as_me:15370: \"$ac_link\"") >&5
15371 (eval $ac_link) 2>&5
15373 echo "$as_me:15373: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (eval echo "$as_me:15376: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:15379: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15382 cf_cv_regex_hdrs=$cf_regex_hdr
15386 echo "$as_me: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15393 for cf_regex_hdr in regex.h
15395 cat >conftest.$ac_ext <<_ACEOF
15396 #line 15396 "configure"
15397 #include "confdefs.h"
15398 #include <sys/types.h>
15399 #include <$cf_regex_hdr>
15405 int x = regcomp(p, "", 0);
15406 int y = regexec(p, "", 0, 0, 0);
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (eval echo "$as_me:15414: \"$ac_link\"") >&5
15415 (eval $ac_link) 2>&5
15417 echo "$as_me:15417: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -s conftest$ac_exeext'
15420 { (eval echo "$as_me:15420: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15423 echo "$as_me:15423: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15426 cf_cv_regex_hdrs=$cf_regex_hdr
15430 echo "$as_me: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15439 echo "$as_me:15439: result: $cf_cv_regex_hdrs" >&5
15440 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
15442 case $cf_cv_regex_hdrs in
15443 (no) { echo "$as_me:15443: WARNING: no regular expression header found" >&5
15444 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
15446 cat >>confdefs.h <<\EOF
15447 #define HAVE_REGEX_H_FUNCS 1
15451 cat >>confdefs.h <<\EOF
15452 #define HAVE_REGEXP_H_FUNCS 1
15456 cat >>confdefs.h <<\EOF
15457 #define HAVE_REGEXPR_H_FUNCS 1
15481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15482 echo "$as_me:15482: checking for $ac_header" >&5
15483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15488 #line 15488 "configure"
15489 #include "confdefs.h"
15490 #include <$ac_header>
15492 if { (eval echo "$as_me:15492: \"$ac_cpp conftest.$ac_ext\"") >&5
15493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15495 egrep -v '^ *\+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:15498: \$? = $ac_status" >&5
15499 (exit $ac_status); } >/dev/null; then
15500 if test -s conftest.err; then
15501 ac_cpp_err=$ac_c_preproc_warn_flag
15508 if test -z "$ac_cpp_err"; then
15509 eval "$as_ac_Header=yes"
15511 echo "$as_me: failed program was:" >&5
15512 cat conftest.$ac_ext >&5
15513 eval "$as_ac_Header=no"
15515 rm -f conftest.err conftest.$ac_ext
15517 echo "$as_me:15517: result: `eval echo '${'$as_ac_Header'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15520 cat >>confdefs.h <<EOF
15521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15527 for ac_header in unistd.h getopt.h
15529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15530 echo "$as_me:15530: checking for $ac_header" >&5
15531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 cat >conftest.$ac_ext <<_ACEOF
15536 #line 15536 "configure"
15537 #include "confdefs.h"
15538 #include <$ac_header>
15540 if { (eval echo "$as_me:15540: \"$ac_cpp conftest.$ac_ext\"") >&5
15541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15543 egrep -v '^ *\+' conftest.er1 >conftest.err
15545 cat conftest.err >&5
15546 echo "$as_me:15546: \$? = $ac_status" >&5
15547 (exit $ac_status); } >/dev/null; then
15548 if test -s conftest.err; then
15549 ac_cpp_err=$ac_c_preproc_warn_flag
15556 if test -z "$ac_cpp_err"; then
15557 eval "$as_ac_Header=yes"
15559 echo "$as_me: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15561 eval "$as_ac_Header=no"
15563 rm -f conftest.err conftest.$ac_ext
15565 echo "$as_me:15565: result: `eval echo '${'$as_ac_Header'}'`" >&5
15566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15568 cat >>confdefs.h <<EOF
15569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15575 echo "$as_me:15575: checking for header declaring getopt variables" >&5
15576 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15577 if test "${cf_cv_getopt_header+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 cf_cv_getopt_header=none
15582 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15584 cat >conftest.$ac_ext <<_ACEOF
15585 #line 15585 "configure"
15586 #include "confdefs.h"
15588 #include <$cf_header>
15592 int x = optind; char *y = optarg
15597 rm -f conftest.$ac_objext
15598 if { (eval echo "$as_me:15598: \"$ac_compile\"") >&5
15599 (eval $ac_compile) 2>&5
15601 echo "$as_me:15601: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -s conftest.$ac_objext'
15604 { (eval echo "$as_me:15604: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:15607: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 cf_cv_getopt_header=$cf_header
15612 echo "$as_me: failed program was:" >&5
15613 cat conftest.$ac_ext >&5
15615 rm -f conftest.$ac_objext conftest.$ac_ext
15619 echo "$as_me:15619: result: $cf_cv_getopt_header" >&5
15620 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15621 if test $cf_cv_getopt_header != none ; then
15623 cat >>confdefs.h <<\EOF
15624 #define HAVE_GETOPT_HEADER 1
15628 if test $cf_cv_getopt_header = getopt.h ; then
15630 cat >>confdefs.h <<\EOF
15631 #define NEED_GETOPT_H 1
15636 # check for ISC (this may also define _POSIX_SOURCE)
15637 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15638 if test "x$ISC" = xyes ; then
15640 echo "$as_me:15640: checking for main in -lcposix" >&5
15641 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15642 if test "${ac_cv_lib_cposix_main+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 ac_check_lib_save_LIBS=$LIBS
15646 LIBS="-lcposix $LIBS"
15647 cat >conftest.$ac_ext <<_ACEOF
15648 #line 15648 "configure"
15649 #include "confdefs.h"
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (eval echo "$as_me:15660: \"$ac_link\"") >&5
15661 (eval $ac_link) 2>&5
15663 echo "$as_me:15663: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (eval echo "$as_me:15666: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:15669: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_lib_cposix_main=yes
15673 echo "$as_me: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15675 ac_cv_lib_cposix_main=no
15677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15680 echo "$as_me:15680: result: $ac_cv_lib_cposix_main" >&5
15681 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15682 if test $ac_cv_lib_cposix_main = yes; then
15683 cat >>confdefs.h <<EOF
15684 #define HAVE_LIBCPOSIX 1
15687 LIBS="-lcposix $LIBS"
15691 echo "$as_me:15691: checking for bzero in -linet" >&5
15692 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
15693 if test "${ac_cv_lib_inet_bzero+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 ac_check_lib_save_LIBS=$LIBS
15697 LIBS="-linet $LIBS"
15698 cat >conftest.$ac_ext <<_ACEOF
15699 #line 15699 "configure"
15700 #include "confdefs.h"
15702 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:15718: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>&5
15721 echo "$as_me:15721: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -s conftest$ac_exeext'
15724 { (eval echo "$as_me:15724: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:15727: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_cv_lib_inet_bzero=yes
15731 echo "$as_me: failed program was:" >&5
15732 cat conftest.$ac_ext >&5
15733 ac_cv_lib_inet_bzero=no
15735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15736 LIBS=$ac_check_lib_save_LIBS
15738 echo "$as_me:15738: result: $ac_cv_lib_inet_bzero" >&5
15739 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
15740 if test $ac_cv_lib_inet_bzero = yes; then
15742 cf_add_libs="-linet"
15743 # Filter out duplicates - this happens with badly-designed ".pc" files...
15744 for cf_add_1lib in $LIBS
15746 for cf_add_2lib in $cf_add_libs
15748 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15754 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15756 LIBS="$cf_add_libs"
15761 echo "$as_me:15761: checking if sys/time.h works with sys/select.h" >&5
15762 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15763 if test "${cf_cv_sys_time_select+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 cat >conftest.$ac_ext <<_ACEOF
15768 #line 15768 "configure"
15769 #include "confdefs.h"
15771 #include <sys/types.h>
15772 #ifdef HAVE_SYS_TIME_H
15773 #include <sys/time.h>
15775 #ifdef HAVE_SYS_SELECT_H
15776 #include <sys/select.h>
15787 rm -f conftest.$ac_objext
15788 if { (eval echo "$as_me:15788: \"$ac_compile\"") >&5
15789 (eval $ac_compile) 2>&5
15791 echo "$as_me:15791: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -s conftest.$ac_objext'
15794 { (eval echo "$as_me:15794: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:15797: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 cf_cv_sys_time_select=yes
15801 echo "$as_me: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15803 cf_cv_sys_time_select=no
15805 rm -f conftest.$ac_objext conftest.$ac_ext
15809 echo "$as_me:15809: result: $cf_cv_sys_time_select" >&5
15810 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15811 test "$cf_cv_sys_time_select" = yes &&
15812 cat >>confdefs.h <<\EOF
15813 #define HAVE_SYS_TIME_SELECT 1
15816 ### checks for compiler characteristics
15818 ac_cpp='$CPP $CPPFLAGS'
15819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15822 ac_main_return=return
15824 echo "$as_me:15824: checking for an ANSI C-conforming const" >&5
15825 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15826 if test "${ac_cv_c_const+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line 15830 "configure"
15831 #include "confdefs.h"
15836 /* FIXME: Include the comments suggested by Paul. */
15837 #ifndef __cplusplus
15838 /* Ultrix mips cc rejects this. */
15839 typedef int charset[2];
15841 /* SunOS 4.1.1 cc rejects this. */
15842 char const *const *ccp;
15844 /* NEC SVR4.0.2 mips cc rejects this. */
15845 struct point {int x, y;};
15846 static struct point const zero = {0,0};
15847 /* AIX XL C 1.02.0.0 rejects this.
15848 It does not let you subtract one const X* pointer from another in
15849 an arm of an if-expression whose if-part is not a constant
15851 const char *g = "string";
15852 ccp = &g + (g ? g-g : 0);
15853 /* HPUX 7.0 cc rejects these. */
15856 ccp = (char const *const *) p;
15857 { /* SCO 3.2v4 cc rejects this. */
15859 char const *s = 0 ? (char *) 0 : (char const *) 0;
15863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15864 int x[] = {25, 17};
15865 const int *foo = &x[0];
15868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15869 typedef const int *iptr;
15873 { /* AIX XL C 1.02.0.0 rejects this saying
15874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15875 struct s { int j; const int *ap[3]; };
15876 struct s *b; b->j = 5;
15878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15879 const int foo = 10;
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:15888: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>&5
15891 echo "$as_me:15891: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:15894: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:15897: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15901 echo "$as_me: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15905 rm -f conftest.$ac_objext conftest.$ac_ext
15907 echo "$as_me:15907: result: $ac_cv_c_const" >&5
15908 echo "${ECHO_T}$ac_cv_c_const" >&6
15909 if test $ac_cv_c_const = no; then
15911 cat >>confdefs.h <<\EOF
15917 echo "$as_me:15917: checking for inline" >&5
15918 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15919 if test "${ac_cv_c_inline+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 for ac_kw in inline __inline__ __inline; do
15924 cat >conftest.$ac_ext <<_ACEOF
15925 #line 15925 "configure"
15926 #include "confdefs.h"
15927 #ifndef __cplusplus
15928 static $ac_kw int static_foo () {return 0; }
15929 $ac_kw int foo () {return 0; }
15933 rm -f conftest.$ac_objext
15934 if { (eval echo "$as_me:15934: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>&5
15937 echo "$as_me:15937: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -s conftest.$ac_objext'
15940 { (eval echo "$as_me:15940: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15943 echo "$as_me:15943: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_cv_c_inline=$ac_kw; break
15947 echo "$as_me: failed program was:" >&5
15948 cat conftest.$ac_ext >&5
15950 rm -f conftest.$ac_objext conftest.$ac_ext
15954 echo "$as_me:15954: result: $ac_cv_c_inline" >&5
15955 echo "${ECHO_T}$ac_cv_c_inline" >&6
15956 case $ac_cv_c_inline in
15959 cat >>confdefs.h <<\EOF
15963 *) cat >>confdefs.h <<EOF
15964 #define inline $ac_cv_c_inline
15970 if test "$ac_cv_c_inline" != no ; then
15971 NCURSES_INLINE=inline
15972 if test "$INTEL_COMPILER" = yes
15975 elif test "$CLANG_COMPILER" = yes
15978 elif test "$GCC" = yes
15980 echo "$as_me:15980: checking if $CC supports options to tune inlining" >&5
15981 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
15982 if test "${cf_cv_gcc_inline+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 cf_save_CFLAGS=$CFLAGS
15987 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
15988 cat >conftest.$ac_ext <<_ACEOF
15989 #line 15989 "configure"
15990 #include "confdefs.h"
15991 inline int foo(void) { return 1; }
15995 ${cf_cv_main_return:-return} foo()
16000 rm -f conftest.$ac_objext
16001 if { (eval echo "$as_me:16001: \"$ac_compile\"") >&5
16002 (eval $ac_compile) 2>&5
16004 echo "$as_me:16004: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -s conftest.$ac_objext'
16007 { (eval echo "$as_me:16007: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16010 echo "$as_me:16010: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16012 cf_cv_gcc_inline=yes
16014 echo "$as_me: failed program was:" >&5
16015 cat conftest.$ac_ext >&5
16016 cf_cv_gcc_inline=no
16018 rm -f conftest.$ac_objext conftest.$ac_ext
16019 CFLAGS=$cf_save_CFLAGS
16022 echo "$as_me:16022: result: $cf_cv_gcc_inline" >&5
16023 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
16024 if test "$cf_cv_gcc_inline" = yes ; then
16029 cf_new_extra_cppflags=
16031 for cf_add_cflags in --param max-inline-insns-single=1200
16033 case $cf_fix_cppflags in
16035 case $cf_add_cflags in
16036 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16037 case $cf_add_cflags in
16039 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16041 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16042 && test -z "${cf_tst_cflags}" \
16043 && cf_fix_cppflags=yes
16045 if test $cf_fix_cppflags = yes ; then
16046 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16048 elif test "${cf_tst_cflags}" = "\"'" ; then
16049 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16054 case "$CPPFLAGS" in
16058 case $cf_add_cflags in
16060 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16062 CPPFLAGS=`echo "$CPPFLAGS" | \
16063 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16064 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16068 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16073 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16078 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16080 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16082 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16083 && test -z "${cf_tst_cflags}" \
16084 && cf_fix_cppflags=no
16089 if test -n "$cf_new_cflags" ; then
16091 CFLAGS="$CFLAGS $cf_new_cflags"
16094 if test -n "$cf_new_cppflags" ; then
16096 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16099 if test -n "$cf_new_extra_cppflags" ; then
16101 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16108 echo "$as_me:16108: checking for signal global datatype" >&5
16109 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
16110 if test "${cf_cv_sig_atomic_t+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 "volatile sig_atomic_t" \
16119 cat >conftest.$ac_ext <<_ACEOF
16120 #line 16120 "configure"
16121 #include "confdefs.h"
16123 #include <sys/types.h>
16124 #include <signal.h>
16129 static void handler(int sig)
16136 signal(SIGINT, handler);
16142 rm -f conftest.$ac_objext
16143 if { (eval echo "$as_me:16143: \"$ac_compile\"") >&5
16144 (eval $ac_compile) 2>&5
16146 echo "$as_me:16146: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (eval echo "$as_me:16149: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:16152: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 cf_cv_sig_atomic_t=$cf_type
16156 echo "$as_me: failed program was:" >&5
16157 cat conftest.$ac_ext >&5
16158 cf_cv_sig_atomic_t=no
16160 rm -f conftest.$ac_objext conftest.$ac_ext
16161 test "$cf_cv_sig_atomic_t" != no && break
16166 echo "$as_me:16166: result: $cf_cv_sig_atomic_t" >&5
16167 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16168 test "$cf_cv_sig_atomic_t" != no &&
16169 cat >>confdefs.h <<EOF
16170 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16173 if test $NCURSES_CHTYPE = auto ; then
16175 echo "$as_me:16175: checking for type of chtype" >&5
16176 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16177 if test "${cf_cv_typeof_chtype+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 if test "$cross_compiling" = yes; then
16182 cf_cv_typeof_chtype=long
16184 cat >conftest.$ac_ext <<_ACEOF
16185 #line 16185 "configure"
16186 #include "confdefs.h"
16188 #define WANT_BITS 31
16192 FILE *fp = fopen("cf_test.out", "w");
16194 char *result = "long";
16195 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16198 for (n = 0; n < WANT_BITS; n++) {
16201 if (y != 1 || x == 0) {
16207 * If x is nonzero, an int is big enough for the bits
16210 result = (x != 0) ? "int" : "long";
16215 ${cf_cv_main_return:-return}(0);
16219 rm -f conftest$ac_exeext
16220 if { (eval echo "$as_me:16220: \"$ac_link\"") >&5
16221 (eval $ac_link) 2>&5
16223 echo "$as_me:16223: \$? = $ac_status" >&5
16224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16225 { (eval echo "$as_me:16225: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16228 echo "$as_me:16228: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 cf_cv_typeof_chtype=`cat cf_test.out`
16232 echo "$as_me: program exited with status $ac_status" >&5
16233 echo "$as_me: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16235 cf_cv_typeof_chtype=long
16237 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16243 echo "$as_me:16243: result: $cf_cv_typeof_chtype" >&5
16244 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
16246 cat >>confdefs.h <<EOF
16247 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
16251 cf_cv_typeof_chtype=$NCURSES_CHTYPE
16253 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
16255 echo "$as_me:16255: checking if unsigned literals are legal" >&5
16256 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
16257 if test "${cf_cv_unsigned_literals+set}" = set; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 cat >conftest.$ac_ext <<_ACEOF
16262 #line 16262 "configure"
16263 #include "confdefs.h"
16268 long x = 1L + 1UL + 1U + 1
16273 rm -f conftest.$ac_objext
16274 if { (eval echo "$as_me:16274: \"$ac_compile\"") >&5
16275 (eval $ac_compile) 2>&5
16277 echo "$as_me:16277: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:16280: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:16283: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 cf_cv_unsigned_literals=yes
16287 echo "$as_me: failed program was:" >&5
16288 cat conftest.$ac_ext >&5
16289 cf_cv_unsigned_literals=no
16291 rm -f conftest.$ac_objext conftest.$ac_ext
16295 echo "$as_me:16295: result: $cf_cv_unsigned_literals" >&5
16296 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
16299 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
16300 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
16302 if test $NCURSES_MMASK_T = auto ; then
16303 cf_cv_typeof_mmask_t=long
16305 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
16307 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
16309 ### Checks for external-data
16311 echo "$as_me:16311: checking if external errno is declared" >&5
16312 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
16313 if test "${cf_cv_dcl_errno+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16318 #line 16318 "configure"
16319 #include "confdefs.h"
16321 #ifdef HAVE_STDLIB_H
16322 #include <stdlib.h>
16325 #include <sys/types.h>
16330 int x = (int) errno
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:16336: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>&5
16339 echo "$as_me:16339: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:16342: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:16345: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 cf_cv_dcl_errno=yes
16349 echo "$as_me: failed program was:" >&5
16350 cat conftest.$ac_ext >&5
16353 rm -f conftest.$ac_objext conftest.$ac_ext
16356 echo "$as_me:16356: result: $cf_cv_dcl_errno" >&5
16357 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
16359 if test "$cf_cv_dcl_errno" = no ; then
16361 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16363 cat >>confdefs.h <<EOF
16364 #define $cf_result 1
16369 # It's possible (for near-UNIX clones) that the data doesn't exist
16371 echo "$as_me:16371: checking if external errno exists" >&5
16372 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
16373 if test "${cf_cv_have_errno+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 cat >conftest.$ac_ext <<_ACEOF
16378 #line 16378 "configure"
16379 #include "confdefs.h"
16392 rm -f conftest.$ac_objext conftest$ac_exeext
16393 if { (eval echo "$as_me:16393: \"$ac_link\"") >&5
16394 (eval $ac_link) 2>&5
16396 echo "$as_me:16396: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -s conftest$ac_exeext'
16399 { (eval echo "$as_me:16399: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16402 echo "$as_me:16402: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 cf_cv_have_errno=yes
16406 echo "$as_me: failed program was:" >&5
16407 cat conftest.$ac_ext >&5
16408 cf_cv_have_errno=no
16410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16413 echo "$as_me:16413: result: $cf_cv_have_errno" >&5
16414 echo "${ECHO_T}$cf_cv_have_errno" >&6
16416 if test "$cf_cv_have_errno" = yes ; then
16418 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16420 cat >>confdefs.h <<EOF
16421 #define $cf_result 1
16426 echo "$as_me:16426: checking if data-only library module links" >&5
16427 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
16428 if test "${cf_cv_link_dataonly+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<EOF
16434 #line 16434 "configure"
16435 int testdata[3] = { 123, 456, 789 };
16437 if { (eval echo "$as_me:16437: \"$ac_compile\"") >&5
16438 (eval $ac_compile) 2>&5
16440 echo "$as_me:16440: \$? = $ac_status" >&5
16441 (exit $ac_status); } ; then
16442 mv conftest.o data.o && \
16443 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
16445 rm -f conftest.$ac_ext data.o
16446 cat >conftest.$ac_ext <<EOF
16447 #line 16447 "configure"
16451 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
16453 extern int testdata[3];
16454 return testdata[0] == 123
16455 && testdata[1] == 456
16456 && testdata[2] == 789;
16460 if { (eval echo "$as_me:16460: \"$ac_compile\"") >&5
16461 (eval $ac_compile) 2>&5
16463 echo "$as_me:16463: \$? = $ac_status" >&5
16464 (exit $ac_status); }; then
16465 mv conftest.o func.o && \
16466 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
16468 rm -f conftest.$ac_ext func.o
16469 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
16470 cf_saveLIBS="$LIBS"
16471 LIBS="conftest.a $LIBS"
16472 if test "$cross_compiling" = yes; then
16473 cf_cv_link_dataonly=unknown
16475 cat >conftest.$ac_ext <<_ACEOF
16476 #line 16476 "configure"
16477 #include "confdefs.h"
16481 extern int testfunc();
16482 ${cf_cv_main_return:-return} (!testfunc());
16486 rm -f conftest$ac_exeext
16487 if { (eval echo "$as_me:16487: \"$ac_link\"") >&5
16488 (eval $ac_link) 2>&5
16490 echo "$as_me:16490: \$? = $ac_status" >&5
16491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16492 { (eval echo "$as_me:16492: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16495 echo "$as_me:16495: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 cf_cv_link_dataonly=yes
16499 echo "$as_me: program exited with status $ac_status" >&5
16500 echo "$as_me: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16502 cf_cv_link_dataonly=no
16504 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16506 LIBS="$cf_saveLIBS"
16510 echo "$as_me:16510: result: $cf_cv_link_dataonly" >&5
16511 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
16513 if test "$cf_cv_link_dataonly" = no ; then
16515 cat >>confdefs.h <<\EOF
16516 #define BROKEN_LINKER 1
16522 ### Checks for library functions.
16548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16549 echo "$as_me:16549: checking for $ac_func" >&5
16550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16551 if eval "test \"\${$as_ac_var+set}\" = set"; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 cat >conftest.$ac_ext <<_ACEOF
16555 #line 16555 "configure"
16556 #include "confdefs.h"
16557 /* System header to define __stub macros and hopefully few prototypes,
16558 which can conflict with char $ac_func (); below. */
16559 #include <assert.h>
16560 /* Override any gcc2 internal prototype to avoid an error. */
16564 /* We use char because int might match the return type of a gcc2
16565 builtin and then its argument prototype would still apply. */
16572 /* The GNU C library defines this for functions which it implements
16573 to always fail with ENOSYS. Some functions are actually named
16574 something starting with __ and the normal name is an alias. */
16575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16578 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (eval echo "$as_me:16586: \"$ac_link\"") >&5
16587 (eval $ac_link) 2>&5
16589 echo "$as_me:16589: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
16591 { ac_try='test -s conftest$ac_exeext'
16592 { (eval echo "$as_me:16592: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 echo "$as_me:16595: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 eval "$as_ac_var=yes"
16599 echo "$as_me: failed program was:" >&5
16600 cat conftest.$ac_ext >&5
16601 eval "$as_ac_var=no"
16603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16605 echo "$as_me:16605: result: `eval echo '${'$as_ac_var'}'`" >&5
16606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16607 if test `eval echo '${'$as_ac_var'}'` = yes; then
16608 cat >>confdefs.h <<EOF
16609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16615 if test "x$ac_cv_func_getopt" = xno &&
16616 test "x$cf_with_progs$cf_with_tests" != xnono; then
16617 { { echo "$as_me:16617: error: getopt is required for building programs" >&5
16618 echo "$as_me: error: getopt is required for building programs" >&2;}
16619 { (exit 1); exit 1; }; }
16622 if test "x$with_getcap" = "xyes" ; then
16624 echo "$as_me:16624: checking for terminal-capability database functions" >&5
16625 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16626 if test "${cf_cv_cgetent+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 cat >conftest.$ac_ext <<_ACEOF
16631 #line 16631 "configure"
16632 #include "confdefs.h"
16634 #include <stdlib.h>
16641 char *db_array = temp;
16642 cgetent(&buf, &db_array, "vt100");
16643 cgetcap(buf, "tc", '=');
16644 cgetmatch(buf, "tc");
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (eval echo "$as_me:16651: \"$ac_link\"") >&5
16652 (eval $ac_link) 2>&5
16654 echo "$as_me:16654: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -s conftest$ac_exeext'
16657 { (eval echo "$as_me:16657: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:16660: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16664 echo "$as_me: failed program was:" >&5
16665 cat conftest.$ac_ext >&5
16668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16671 echo "$as_me:16671: result: $cf_cv_cgetent" >&5
16672 echo "${ECHO_T}$cf_cv_cgetent" >&6
16674 if test "$cf_cv_cgetent" = yes
16677 cat >>confdefs.h <<\EOF
16678 #define HAVE_BSD_CGETENT 1
16681 echo "$as_me:16681: checking if cgetent uses const parameter" >&5
16682 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16683 if test "${cf_cv_cgetent_const+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line 16688 "configure"
16689 #include "confdefs.h"
16691 #include <stdlib.h>
16698 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
16699 const char *db_array = temp;
16700 cgetent(&buf, &db_array, "vt100");
16702 cgetcap(buf, "tc", '=');
16703 cgetmatch(buf, "tc");
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (eval echo "$as_me:16710: \"$ac_link\"") >&5
16711 (eval $ac_link) 2>&5
16713 echo "$as_me:16713: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (eval echo "$as_me:16716: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:16719: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 cf_cv_cgetent_const=yes
16723 echo "$as_me: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16725 cf_cv_cgetent_const=no
16727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16730 echo "$as_me:16730: result: $cf_cv_cgetent_const" >&5
16731 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
16732 if test "$cf_cv_cgetent_const" = yes
16735 cat >>confdefs.h <<EOF
16736 #define CGETENT_CONST const
16744 echo "$as_me:16744: checking for isascii" >&5
16745 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
16746 if test "${cf_cv_have_isascii+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 cat >conftest.$ac_ext <<_ACEOF
16751 #line 16751 "configure"
16752 #include "confdefs.h"
16757 int x = isascii(' ')
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (eval echo "$as_me:16763: \"$ac_link\"") >&5
16764 (eval $ac_link) 2>&5
16766 echo "$as_me:16766: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try='test -s conftest$ac_exeext'
16769 { (eval echo "$as_me:16769: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16772 echo "$as_me:16772: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 cf_cv_have_isascii=yes
16776 echo "$as_me: failed program was:" >&5
16777 cat conftest.$ac_ext >&5
16778 cf_cv_have_isascii=no
16780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16783 echo "$as_me:16783: result: $cf_cv_have_isascii" >&5
16784 echo "${ECHO_T}$cf_cv_have_isascii" >&6
16785 test "$cf_cv_have_isascii" = yes &&
16786 cat >>confdefs.h <<\EOF
16787 #define HAVE_ISASCII 1
16790 if test "$ac_cv_func_sigaction" = yes; then
16791 echo "$as_me:16791: checking whether sigaction needs _POSIX_SOURCE" >&5
16792 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
16793 cat >conftest.$ac_ext <<_ACEOF
16794 #line 16794 "configure"
16795 #include "confdefs.h"
16797 #include <sys/types.h>
16798 #include <signal.h>
16802 struct sigaction act
16807 rm -f conftest.$ac_objext
16808 if { (eval echo "$as_me:16808: \"$ac_compile\"") >&5
16809 (eval $ac_compile) 2>&5
16811 echo "$as_me:16811: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -s conftest.$ac_objext'
16814 { (eval echo "$as_me:16814: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:16817: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16821 echo "$as_me: failed program was:" >&5
16822 cat conftest.$ac_ext >&5
16824 cat >conftest.$ac_ext <<_ACEOF
16825 #line 16825 "configure"
16826 #include "confdefs.h"
16828 #define _POSIX_SOURCE
16829 #include <sys/types.h>
16830 #include <signal.h>
16834 struct sigaction act
16839 rm -f conftest.$ac_objext
16840 if { (eval echo "$as_me:16840: \"$ac_compile\"") >&5
16841 (eval $ac_compile) 2>&5
16843 echo "$as_me:16843: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -s conftest.$ac_objext'
16846 { (eval echo "$as_me:16846: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:16849: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16853 cat >>confdefs.h <<\EOF
16854 #define _POSIX_SOURCE 1
16858 echo "$as_me: failed program was:" >&5
16859 cat conftest.$ac_ext >&5
16862 rm -f conftest.$ac_objext conftest.$ac_ext
16864 rm -f conftest.$ac_objext conftest.$ac_ext
16865 echo "$as_me:16865: result: $sigact_bad" >&5
16866 echo "${ECHO_T}$sigact_bad" >&6
16869 echo "$as_me:16869: checking if nanosleep really works" >&5
16870 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
16871 if test "${cf_cv_func_nanosleep+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 if test "$cross_compiling" = yes; then
16876 cf_cv_func_nanosleep=unknown
16878 cat >conftest.$ac_ext <<_ACEOF
16879 #line 16879 "configure"
16880 #include "confdefs.h"
16886 #ifdef HAVE_SYS_TIME_H
16887 #include <sys/time.h>
16891 struct timespec ts1, ts2;
16894 ts1.tv_nsec = 750000000;
16898 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16899 ${cf_cv_main_return:-return}(code != 0);
16903 rm -f conftest$ac_exeext
16904 if { (eval echo "$as_me:16904: \"$ac_link\"") >&5
16905 (eval $ac_link) 2>&5
16907 echo "$as_me:16907: \$? = $ac_status" >&5
16908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16909 { (eval echo "$as_me:16909: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:16912: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 cf_cv_func_nanosleep=yes
16916 echo "$as_me: program exited with status $ac_status" >&5
16917 echo "$as_me: failed program was:" >&5
16918 cat conftest.$ac_ext >&5
16919 cf_cv_func_nanosleep=no
16921 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16924 echo "$as_me:16924: result: $cf_cv_func_nanosleep" >&5
16925 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16927 test "$cf_cv_func_nanosleep" = "yes" &&
16928 cat >>confdefs.h <<\EOF
16929 #define HAVE_NANOSLEEP 1
16938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16939 echo "$as_me:16939: checking for $ac_header" >&5
16940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 cat >conftest.$ac_ext <<_ACEOF
16945 #line 16945 "configure"
16946 #include "confdefs.h"
16947 #include <$ac_header>
16949 if { (eval echo "$as_me:16949: \"$ac_cpp conftest.$ac_ext\"") >&5
16950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16952 egrep -v '^ *\+' conftest.er1 >conftest.err
16954 cat conftest.err >&5
16955 echo "$as_me:16955: \$? = $ac_status" >&5
16956 (exit $ac_status); } >/dev/null; then
16957 if test -s conftest.err; then
16958 ac_cpp_err=$ac_c_preproc_warn_flag
16965 if test -z "$ac_cpp_err"; then
16966 eval "$as_ac_Header=yes"
16968 echo "$as_me: failed program was:" >&5
16969 cat conftest.$ac_ext >&5
16970 eval "$as_ac_Header=no"
16972 rm -f conftest.err conftest.$ac_ext
16974 echo "$as_me:16974: result: `eval echo '${'$as_ac_Header'}'`" >&5
16975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16977 cat >>confdefs.h <<EOF
16978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16984 if test "$ISC" = yes ; then
16986 for ac_header in sys/termio.h
16988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16989 echo "$as_me:16989: checking for $ac_header" >&5
16990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cat >conftest.$ac_ext <<_ACEOF
16995 #line 16995 "configure"
16996 #include "confdefs.h"
16997 #include <$ac_header>
16999 if { (eval echo "$as_me:16999: \"$ac_cpp conftest.$ac_ext\"") >&5
17000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17002 egrep -v '^ *\+' conftest.er1 >conftest.err
17004 cat conftest.err >&5
17005 echo "$as_me:17005: \$? = $ac_status" >&5
17006 (exit $ac_status); } >/dev/null; then
17007 if test -s conftest.err; then
17008 ac_cpp_err=$ac_c_preproc_warn_flag
17015 if test -z "$ac_cpp_err"; then
17016 eval "$as_ac_Header=yes"
17018 echo "$as_me: failed program was:" >&5
17019 cat conftest.$ac_ext >&5
17020 eval "$as_ac_Header=no"
17022 rm -f conftest.err conftest.$ac_ext
17024 echo "$as_me:17024: result: `eval echo '${'$as_ac_Header'}'`" >&5
17025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17027 cat >>confdefs.h <<EOF
17028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17035 if test "$ac_cv_header_termios_h" = yes ; then
17036 case "$CFLAGS $CPPFLAGS" in
17037 (*-D_POSIX_SOURCE*)
17038 termios_bad=dunno ;;
17039 (*) termios_bad=maybe ;;
17041 if test "$termios_bad" = maybe ; then
17042 echo "$as_me:17042: checking whether termios.h needs _POSIX_SOURCE" >&5
17043 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
17044 cat >conftest.$ac_ext <<_ACEOF
17045 #line 17045 "configure"
17046 #include "confdefs.h"
17047 #include <termios.h>
17051 struct termios foo; int x = foo.c_iflag
17056 rm -f conftest.$ac_objext
17057 if { (eval echo "$as_me:17057: \"$ac_compile\"") >&5
17058 (eval $ac_compile) 2>&5
17060 echo "$as_me:17060: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -s conftest.$ac_objext'
17063 { (eval echo "$as_me:17063: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17066 echo "$as_me:17066: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17070 echo "$as_me: failed program was:" >&5
17071 cat conftest.$ac_ext >&5
17073 cat >conftest.$ac_ext <<_ACEOF
17074 #line 17074 "configure"
17075 #include "confdefs.h"
17077 #define _POSIX_SOURCE
17078 #include <termios.h>
17082 struct termios foo; int x = foo.c_iflag
17087 rm -f conftest.$ac_objext
17088 if { (eval echo "$as_me:17088: \"$ac_compile\"") >&5
17089 (eval $ac_compile) 2>&5
17091 echo "$as_me:17091: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (eval echo "$as_me:17094: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17097 echo "$as_me:17097: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 termios_bad=unknown
17101 echo "$as_me: failed program was:" >&5
17102 cat conftest.$ac_ext >&5
17104 cat >>confdefs.h <<\EOF
17105 #define _POSIX_SOURCE 1
17109 rm -f conftest.$ac_objext conftest.$ac_ext
17112 rm -f conftest.$ac_objext conftest.$ac_ext
17113 echo "$as_me:17113: result: $termios_bad" >&5
17114 echo "${ECHO_T}$termios_bad" >&6
17118 echo "$as_me:17118: checking for tcgetattr" >&5
17119 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
17120 if test "${cf_cv_have_tcgetattr+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 cat >conftest.$ac_ext <<_ACEOF
17125 #line 17125 "configure"
17126 #include "confdefs.h"
17128 #include <sys/types.h>
17129 #ifdef HAVE_UNISTD_H
17130 #include <unistd.h>
17132 #ifdef HAVE_TERMIOS_H
17133 #include <termios.h>
17134 #define TTY struct termios
17136 #ifdef HAVE_TERMIO_H
17137 #include <termio.h>
17138 #define TTY struct termio
17147 tcgetattr(1, &foo);
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (eval echo "$as_me:17153: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>&5
17156 echo "$as_me:17156: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (eval echo "$as_me:17159: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17162 echo "$as_me:17162: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 cf_cv_have_tcgetattr=yes
17166 echo "$as_me: failed program was:" >&5
17167 cat conftest.$ac_ext >&5
17168 cf_cv_have_tcgetattr=no
17170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17172 echo "$as_me:17172: result: $cf_cv_have_tcgetattr" >&5
17173 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17174 test "$cf_cv_have_tcgetattr" = yes &&
17175 cat >>confdefs.h <<\EOF
17176 #define HAVE_TCGETATTR 1
17179 echo "$as_me:17179: checking for vsscanf function or workaround" >&5
17180 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17181 if test "${cf_cv_func_vsscanf+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 cat >conftest.$ac_ext <<_ACEOF
17186 #line 17186 "configure"
17187 #include "confdefs.h"
17189 #include <stdarg.h>
17196 vsscanf("from", "%d", ap)
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (eval echo "$as_me:17202: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>&5
17205 echo "$as_me:17205: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -s conftest$ac_exeext'
17208 { (eval echo "$as_me:17208: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:17211: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 cf_cv_func_vsscanf=vsscanf
17215 echo "$as_me: failed program was:" >&5
17216 cat conftest.$ac_ext >&5
17218 cat >conftest.$ac_ext <<_ACEOF
17219 #line 17219 "configure"
17220 #include "confdefs.h"
17222 #include <stdarg.h>
17229 char *str = "from";
17231 strbuf._flag = _IOREAD;
17232 strbuf._ptr = strbuf._base = (unsigned char *) str;
17233 strbuf._cnt = strlen(str);
17234 strbuf._file = _NFILE;
17235 return (vfscanf(&strbuf, "%d", ap))
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (eval echo "$as_me:17241: \"$ac_link\"") >&5
17242 (eval $ac_link) 2>&5
17244 echo "$as_me:17244: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (eval echo "$as_me:17247: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:17250: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 cf_cv_func_vsscanf=vfscanf
17254 echo "$as_me: failed program was:" >&5
17255 cat conftest.$ac_ext >&5
17257 cat >conftest.$ac_ext <<_ACEOF
17258 #line 17258 "configure"
17259 #include "confdefs.h"
17261 #include <stdarg.h>
17268 char *str = "from";
17270 strbuf._flag = _IOREAD;
17271 strbuf._ptr = strbuf._base = (unsigned char *) str;
17272 strbuf._cnt = strlen(str);
17273 strbuf._file = _NFILE;
17274 return (_doscan(&strbuf, "%d", ap))
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (eval echo "$as_me:17280: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>&5
17283 echo "$as_me:17283: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -s conftest$ac_exeext'
17286 { (eval echo "$as_me:17286: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17289 echo "$as_me:17289: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 cf_cv_func_vsscanf=_doscan
17293 echo "$as_me: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17296 cf_cv_func_vsscanf=no
17298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17304 echo "$as_me:17304: result: $cf_cv_func_vsscanf" >&5
17305 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
17307 case $cf_cv_func_vsscanf in
17309 cat >>confdefs.h <<\EOF
17310 #define HAVE_VSSCANF 1
17314 cat >>confdefs.h <<\EOF
17315 #define HAVE_VFSCANF 1
17319 cat >>confdefs.h <<\EOF
17320 #define HAVE__DOSCAN 1
17325 echo "$as_me:17325: checking for working mkstemp" >&5
17326 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
17327 if test "${cf_cv_func_mkstemp+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 if test "$cross_compiling" = yes; then
17333 cf_cv_func_mkstemp=maybe
17335 cat >conftest.$ac_ext <<_ACEOF
17336 #line 17336 "configure"
17337 #include "confdefs.h"
17339 #include <sys/types.h>
17340 #include <stdlib.h>
17342 #include <string.h>
17343 #include <sys/stat.h>
17346 char *tmpl = "conftestXXXXXX";
17354 for (n = 0; n < 2; ++n) {
17355 strcpy(name[n], tmpl);
17356 if ((fd = mkstemp(name[n])) >= 0) {
17357 if (!strcmp(name[n], tmpl)
17358 || stat(name[n], &sb) != 0
17359 || (sb.st_mode & S_IFMT) != S_IFREG
17360 || (sb.st_mode & 077) != 0) {
17367 && !strcmp(name[0], name[1]))
17369 ${cf_cv_main_return:-return}(result);
17373 rm -f conftest$ac_exeext
17374 if { (eval echo "$as_me:17374: \"$ac_link\"") >&5
17375 (eval $ac_link) 2>&5
17377 echo "$as_me:17377: \$? = $ac_status" >&5
17378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17379 { (eval echo "$as_me:17379: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:17382: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 cf_cv_func_mkstemp=yes
17387 echo "$as_me: program exited with status $ac_status" >&5
17388 echo "$as_me: failed program was:" >&5
17389 cat conftest.$ac_ext >&5
17390 cf_cv_func_mkstemp=no
17393 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17397 echo "$as_me:17397: result: $cf_cv_func_mkstemp" >&5
17398 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
17399 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
17400 echo "$as_me:17400: checking for mkstemp" >&5
17401 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17402 if test "${ac_cv_func_mkstemp+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 cat >conftest.$ac_ext <<_ACEOF
17406 #line 17406 "configure"
17407 #include "confdefs.h"
17408 /* System header to define __stub macros and hopefully few prototypes,
17409 which can conflict with char mkstemp (); below. */
17410 #include <assert.h>
17411 /* Override any gcc2 internal prototype to avoid an error. */
17415 /* We use char because int might match the return type of a gcc2
17416 builtin and then its argument prototype would still apply. */
17423 /* The GNU C library defines this for functions which it implements
17424 to always fail with ENOSYS. Some functions are actually named
17425 something starting with __ and the normal name is an alias. */
17426 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17429 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (eval echo "$as_me:17437: \"$ac_link\"") >&5
17438 (eval $ac_link) 2>&5
17440 echo "$as_me:17440: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (eval echo "$as_me:17443: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17446 echo "$as_me:17446: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 ac_cv_func_mkstemp=yes
17450 echo "$as_me: failed program was:" >&5
17451 cat conftest.$ac_ext >&5
17452 ac_cv_func_mkstemp=no
17454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17456 echo "$as_me:17456: result: $ac_cv_func_mkstemp" >&5
17457 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17460 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
17462 cat >>confdefs.h <<\EOF
17463 #define HAVE_MKSTEMP 1
17468 # setup for prototype of fallback for vsscanf()
17470 if test "$cf_cv_func_vsscanf" = vsscanf ; then
17476 if test "x$cross_compiling" = xyes ; then
17477 { echo "$as_me:17477: WARNING: cross compiling: assume setvbuf params not reversed" >&5
17478 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
17480 echo "$as_me:17480: checking whether setvbuf arguments are reversed" >&5
17481 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
17482 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 if test "$cross_compiling" = yes; then
17486 { { echo "$as_me:17486: error: cannot run test program while cross compiling" >&5
17487 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17488 { (exit 1); exit 1; }; }
17490 cat >conftest.$ac_ext <<_ACEOF
17491 #line 17491 "configure"
17492 #include "confdefs.h"
17494 /* If setvbuf has the reversed format, exit 0. */
17498 /* This call has the arguments reversed.
17499 A reversed system may check and see that the address of main
17500 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
17501 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
17502 $ac_main_return(1);
17503 putc('\r', stdout);
17504 $ac_main_return(0); /* Non-reversed systems segv here. */
17507 rm -f conftest$ac_exeext
17508 if { (eval echo "$as_me:17508: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>&5
17511 echo "$as_me:17511: \$? = $ac_status" >&5
17512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17513 { (eval echo "$as_me:17513: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:17516: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_func_setvbuf_reversed=yes
17520 echo "$as_me: program exited with status $ac_status" >&5
17521 echo "$as_me: failed program was:" >&5
17522 cat conftest.$ac_ext >&5
17523 ac_cv_func_setvbuf_reversed=no
17525 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17527 rm -f core core.* *.core
17529 echo "$as_me:17529: result: $ac_cv_func_setvbuf_reversed" >&5
17530 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
17531 if test $ac_cv_func_setvbuf_reversed = yes; then
17533 cat >>confdefs.h <<\EOF
17534 #define SETVBUF_REVERSED 1
17540 echo "$as_me:17540: checking for intptr_t" >&5
17541 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
17542 if test "${ac_cv_type_intptr_t+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 cat >conftest.$ac_ext <<_ACEOF
17546 #line 17546 "configure"
17547 #include "confdefs.h"
17548 $ac_includes_default
17552 if ((intptr_t *) 0)
17554 if (sizeof (intptr_t))
17560 rm -f conftest.$ac_objext
17561 if { (eval echo "$as_me:17561: \"$ac_compile\"") >&5
17562 (eval $ac_compile) 2>&5
17564 echo "$as_me:17564: \$? = $ac_status" >&5
17565 (exit $ac_status); } &&
17566 { ac_try='test -s conftest.$ac_objext'
17567 { (eval echo "$as_me:17567: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17570 echo "$as_me:17570: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_cv_type_intptr_t=yes
17574 echo "$as_me: failed program was:" >&5
17575 cat conftest.$ac_ext >&5
17576 ac_cv_type_intptr_t=no
17578 rm -f conftest.$ac_objext conftest.$ac_ext
17580 echo "$as_me:17580: result: $ac_cv_type_intptr_t" >&5
17581 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
17582 if test $ac_cv_type_intptr_t = yes; then
17586 cat >>confdefs.h <<EOF
17587 #define intptr_t long
17592 echo "$as_me:17592: checking for ssize_t" >&5
17593 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17594 if test "${ac_cv_type_ssize_t+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 cat >conftest.$ac_ext <<_ACEOF
17598 #line 17598 "configure"
17599 #include "confdefs.h"
17600 $ac_includes_default
17606 if (sizeof (ssize_t))
17612 rm -f conftest.$ac_objext
17613 if { (eval echo "$as_me:17613: \"$ac_compile\"") >&5
17614 (eval $ac_compile) 2>&5
17616 echo "$as_me:17616: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -s conftest.$ac_objext'
17619 { (eval echo "$as_me:17619: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:17622: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_cv_type_ssize_t=yes
17626 echo "$as_me: failed program was:" >&5
17627 cat conftest.$ac_ext >&5
17628 ac_cv_type_ssize_t=no
17630 rm -f conftest.$ac_objext conftest.$ac_ext
17632 echo "$as_me:17632: result: $ac_cv_type_ssize_t" >&5
17633 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17634 if test $ac_cv_type_ssize_t = yes; then
17638 cat >>confdefs.h <<EOF
17639 #define ssize_t int
17644 echo "$as_me:17644: checking for type sigaction_t" >&5
17645 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17646 if test "${cf_cv_type_sigaction+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 cat >conftest.$ac_ext <<_ACEOF
17651 #line 17651 "configure"
17652 #include "confdefs.h"
17654 #include <signal.h>
17663 rm -f conftest.$ac_objext
17664 if { (eval echo "$as_me:17664: \"$ac_compile\"") >&5
17665 (eval $ac_compile) 2>&5
17667 echo "$as_me:17667: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (eval echo "$as_me:17670: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17673 echo "$as_me:17673: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 cf_cv_type_sigaction=yes
17677 echo "$as_me: failed program was:" >&5
17678 cat conftest.$ac_ext >&5
17679 cf_cv_type_sigaction=no
17681 rm -f conftest.$ac_objext conftest.$ac_ext
17684 echo "$as_me:17684: result: $cf_cv_type_sigaction" >&5
17685 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17686 test "$cf_cv_type_sigaction" = yes &&
17687 cat >>confdefs.h <<\EOF
17688 #define HAVE_TYPE_SIGACTION 1
17691 echo "$as_me:17691: checking declaration of size-change" >&5
17692 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
17693 if test "${cf_cv_sizechange+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 cf_cv_sizechange=unknown
17698 cf_save_CPPFLAGS="$CPPFLAGS"
17700 for cf_opts in "" "NEED_PTEM_H"
17703 CPPFLAGS="$cf_save_CPPFLAGS"
17704 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
17705 cat >conftest.$ac_ext <<_ACEOF
17706 #line 17706 "configure"
17707 #include "confdefs.h"
17708 #include <sys/types.h>
17709 #ifdef HAVE_TERMIOS_H
17710 #include <termios.h>
17712 #ifdef HAVE_TERMIO_H
17713 #include <termio.h>
17717 /* This is a workaround for SCO: they neglected to define struct winsize in
17718 * termios.h -- it's only in termio.h and ptem.h
17720 #include <sys/stream.h>
17721 #include <sys/ptem.h>
17723 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
17724 #include <sys/ioctl.h>
17732 struct ttysize win; /* FIXME: what system is this? */
17733 int y = win.ts_lines;
17734 int x = win.ts_cols;
17737 struct winsize win;
17738 int y = win.ws_row;
17739 int x = win.ws_col;
17741 no TIOCGSIZE or TIOCGWINSZ
17742 #endif /* TIOCGWINSZ */
17743 #endif /* TIOCGSIZE */
17749 rm -f conftest.$ac_objext
17750 if { (eval echo "$as_me:17750: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>&5
17753 echo "$as_me:17753: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (eval echo "$as_me:17756: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:17759: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 cf_cv_sizechange=yes
17763 echo "$as_me: failed program was:" >&5
17764 cat conftest.$ac_ext >&5
17765 cf_cv_sizechange=no
17767 rm -f conftest.$ac_objext conftest.$ac_ext
17769 CPPFLAGS="$cf_save_CPPFLAGS"
17770 if test "$cf_cv_sizechange" = yes ; then
17771 echo "size-change succeeded ($cf_opts)" >&5
17772 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
17778 echo "$as_me:17778: result: $cf_cv_sizechange" >&5
17779 echo "${ECHO_T}$cf_cv_sizechange" >&6
17780 if test "$cf_cv_sizechange" != no ; then
17782 cat >>confdefs.h <<\EOF
17783 #define HAVE_SIZECHANGE 1
17786 case $cf_cv_sizechange in
17788 cat >>confdefs.h <<EOF
17789 #define $cf_cv_sizechange 1
17796 echo "$as_me:17796: checking for memmove" >&5
17797 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17798 if test "${ac_cv_func_memmove+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 cat >conftest.$ac_ext <<_ACEOF
17802 #line 17802 "configure"
17803 #include "confdefs.h"
17804 /* System header to define __stub macros and hopefully few prototypes,
17805 which can conflict with char memmove (); below. */
17806 #include <assert.h>
17807 /* Override any gcc2 internal prototype to avoid an error. */
17811 /* We use char because int might match the return type of a gcc2
17812 builtin and then its argument prototype would still apply. */
17819 /* The GNU C library defines this for functions which it implements
17820 to always fail with ENOSYS. Some functions are actually named
17821 something starting with __ and the normal name is an alias. */
17822 #if defined (__stub_memmove) || defined (__stub___memmove)
17825 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (eval echo "$as_me:17833: \"$ac_link\"") >&5
17834 (eval $ac_link) 2>&5
17836 echo "$as_me:17836: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (eval echo "$as_me:17839: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:17842: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_func_memmove=yes
17846 echo "$as_me: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 ac_cv_func_memmove=no
17850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17852 echo "$as_me:17852: result: $ac_cv_func_memmove" >&5
17853 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17854 if test $ac_cv_func_memmove = yes; then
17858 echo "$as_me:17858: checking for bcopy" >&5
17859 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
17860 if test "${ac_cv_func_bcopy+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 cat >conftest.$ac_ext <<_ACEOF
17864 #line 17864 "configure"
17865 #include "confdefs.h"
17866 /* System header to define __stub macros and hopefully few prototypes,
17867 which can conflict with char bcopy (); below. */
17868 #include <assert.h>
17869 /* Override any gcc2 internal prototype to avoid an error. */
17873 /* We use char because int might match the return type of a gcc2
17874 builtin and then its argument prototype would still apply. */
17881 /* The GNU C library defines this for functions which it implements
17882 to always fail with ENOSYS. Some functions are actually named
17883 something starting with __ and the normal name is an alias. */
17884 #if defined (__stub_bcopy) || defined (__stub___bcopy)
17887 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (eval echo "$as_me:17895: \"$ac_link\"") >&5
17896 (eval $ac_link) 2>&5
17898 echo "$as_me:17898: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (eval echo "$as_me:17901: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:17904: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_cv_func_bcopy=yes
17908 echo "$as_me: failed program was:" >&5
17909 cat conftest.$ac_ext >&5
17910 ac_cv_func_bcopy=no
17912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17914 echo "$as_me:17914: result: $ac_cv_func_bcopy" >&5
17915 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
17916 if test $ac_cv_func_bcopy = yes; then
17918 echo "$as_me:17918: checking if bcopy does overlapping moves" >&5
17919 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
17920 if test "${cf_cv_good_bcopy+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 if test "$cross_compiling" = yes; then
17925 cf_cv_good_bcopy=unknown
17927 cat >conftest.$ac_ext <<_ACEOF
17928 #line 17928 "configure"
17929 #include "confdefs.h"
17932 static char data[] = "abcdefghijklmnopqrstuwwxyz";
17934 bcopy(data, temp, sizeof(data));
17935 bcopy(temp+10, temp, 15);
17936 bcopy(temp+5, temp+15, 10);
17937 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
17941 rm -f conftest$ac_exeext
17942 if { (eval echo "$as_me:17942: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>&5
17945 echo "$as_me:17945: \$? = $ac_status" >&5
17946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17947 { (eval echo "$as_me:17947: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:17950: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 cf_cv_good_bcopy=yes
17954 echo "$as_me: program exited with status $ac_status" >&5
17955 echo "$as_me: failed program was:" >&5
17956 cat conftest.$ac_ext >&5
17957 cf_cv_good_bcopy=no
17959 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17963 echo "$as_me:17963: result: $cf_cv_good_bcopy" >&5
17964 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
17967 cf_cv_good_bcopy=no
17970 if test "$cf_cv_good_bcopy" = yes ; then
17972 cat >>confdefs.h <<\EOF
17973 #define USE_OK_BCOPY 1
17978 cat >>confdefs.h <<\EOF
17979 #define USE_MY_MEMMOVE 1
17986 tty 2>&1 >/dev/null || {
17987 for ac_func in posix_openpt
17989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17990 echo "$as_me:17990: checking for $ac_func" >&5
17991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17992 if eval "test \"\${$as_ac_var+set}\" = set"; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 cat >conftest.$ac_ext <<_ACEOF
17996 #line 17996 "configure"
17997 #include "confdefs.h"
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below. */
18000 #include <assert.h>
18001 /* Override any gcc2 internal prototype to avoid an error. */
18005 /* We use char because int might match the return type of a gcc2
18006 builtin and then its argument prototype would still apply. */
18013 /* The GNU C library defines this for functions which it implements
18014 to always fail with ENOSYS. Some functions are actually named
18015 something starting with __ and the normal name is an alias. */
18016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18019 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (eval echo "$as_me:18027: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>&5
18030 echo "$as_me:18030: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
18032 { ac_try='test -s conftest$ac_exeext'
18033 { (eval echo "$as_me:18033: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:18036: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 eval "$as_ac_var=yes"
18040 echo "$as_me: failed program was:" >&5
18041 cat conftest.$ac_ext >&5
18042 eval "$as_ac_var=no"
18044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18046 echo "$as_me:18046: result: `eval echo '${'$as_ac_var'}'`" >&5
18047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18048 if test `eval echo '${'$as_ac_var'}'` = yes; then
18049 cat >>confdefs.h <<EOF
18050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18056 echo "$as_me:18056: checking if poll really works" >&5
18057 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
18058 if test "${cf_cv_working_poll+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 if test "$cross_compiling" = yes; then
18063 cf_cv_working_poll=unknown
18065 cat >conftest.$ac_ext <<_ACEOF
18066 #line 18066 "configure"
18067 #include "confdefs.h"
18069 #include <stdlib.h>
18071 #include <unistd.h>
18076 #include <sys/poll.h>
18079 struct pollfd myfds;
18082 /* check for Darwin bug with respect to "devices" */
18083 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
18086 myfds.events = POLLIN;
18089 ret = poll(&myfds, 1, 100);
18091 if (ret < 0 || (myfds.revents & POLLNVAL)) {
18096 fd = open("/dev/tty", 2); /* O_RDWR */
18098 #ifdef HAVE_POSIX_OPENPT
18100 fd = posix_openpt(O_RDWR);
18105 /* also check with standard input */
18107 myfds.events = POLLIN;
18109 ret = poll(&myfds, 1, 100);
18114 ${cf_cv_main_return:-return}(ret < 0);
18117 rm -f conftest$ac_exeext
18118 if { (eval echo "$as_me:18118: \"$ac_link\"") >&5
18119 (eval $ac_link) 2>&5
18121 echo "$as_me:18121: \$? = $ac_status" >&5
18122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18123 { (eval echo "$as_me:18123: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:18126: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 cf_cv_working_poll=yes
18130 echo "$as_me: program exited with status $ac_status" >&5
18131 echo "$as_me: failed program was:" >&5
18132 cat conftest.$ac_ext >&5
18133 cf_cv_working_poll=no
18135 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18138 echo "$as_me:18138: result: $cf_cv_working_poll" >&5
18139 echo "${ECHO_T}$cf_cv_working_poll" >&6
18140 test "$cf_cv_working_poll" = "yes" &&
18141 cat >>confdefs.h <<\EOF
18142 #define HAVE_WORKING_POLL 1
18145 echo "$as_me:18145: checking for va_copy" >&5
18146 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18147 if test "${cf_cv_have_va_copy+set}" = set; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 cat >conftest.$ac_ext <<_ACEOF
18152 #line 18152 "configure"
18153 #include "confdefs.h"
18155 #include <stdarg.h>
18161 static va_list dst;
18162 static va_list src;
18168 rm -f conftest.$ac_objext conftest$ac_exeext
18169 if { (eval echo "$as_me:18169: \"$ac_link\"") >&5
18170 (eval $ac_link) 2>&5
18172 echo "$as_me:18172: \$? = $ac_status" >&5
18173 (exit $ac_status); } &&
18174 { ac_try='test -s conftest$ac_exeext'
18175 { (eval echo "$as_me:18175: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18178 echo "$as_me:18178: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 cf_cv_have_va_copy=yes
18182 echo "$as_me: failed program was:" >&5
18183 cat conftest.$ac_ext >&5
18184 cf_cv_have_va_copy=no
18186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18188 echo "$as_me:18188: result: $cf_cv_have_va_copy" >&5
18189 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
18191 test "$cf_cv_have_va_copy" = yes &&
18192 cat >>confdefs.h <<\EOF
18193 #define HAVE_VA_COPY 1
18196 echo "$as_me:18196: checking for __va_copy" >&5
18197 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
18198 if test "${cf_cv_have___va_copy+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 cat >conftest.$ac_ext <<_ACEOF
18203 #line 18203 "configure"
18204 #include "confdefs.h"
18206 #include <stdarg.h>
18212 static va_list dst;
18213 static va_list src;
18214 __va_copy(dst, src)
18219 rm -f conftest.$ac_objext conftest$ac_exeext
18220 if { (eval echo "$as_me:18220: \"$ac_link\"") >&5
18221 (eval $ac_link) 2>&5
18223 echo "$as_me:18223: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
18225 { ac_try='test -s conftest$ac_exeext'
18226 { (eval echo "$as_me:18226: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18229 echo "$as_me:18229: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 cf_cv_have___va_copy=yes
18233 echo "$as_me: failed program was:" >&5
18234 cat conftest.$ac_ext >&5
18235 cf_cv_have___va_copy=no
18237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18239 echo "$as_me:18239: result: $cf_cv_have___va_copy" >&5
18240 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
18242 test "$cf_cv_have___va_copy" = yes &&
18243 cat >>confdefs.h <<\EOF
18244 #define HAVE___VA_COPY 1
18247 echo "$as_me:18247: checking for pid_t" >&5
18248 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18249 if test "${ac_cv_type_pid_t+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 cat >conftest.$ac_ext <<_ACEOF
18253 #line 18253 "configure"
18254 #include "confdefs.h"
18255 $ac_includes_default
18261 if (sizeof (pid_t))
18267 rm -f conftest.$ac_objext
18268 if { (eval echo "$as_me:18268: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>&5
18271 echo "$as_me:18271: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:18274: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18277 echo "$as_me:18277: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_cv_type_pid_t=yes
18281 echo "$as_me: failed program was:" >&5
18282 cat conftest.$ac_ext >&5
18283 ac_cv_type_pid_t=no
18285 rm -f conftest.$ac_objext conftest.$ac_ext
18287 echo "$as_me:18287: result: $ac_cv_type_pid_t" >&5
18288 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18289 if test $ac_cv_type_pid_t = yes; then
18293 cat >>confdefs.h <<EOF
18299 for ac_header in unistd.h vfork.h
18301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18302 echo "$as_me:18302: checking for $ac_header" >&5
18303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line 18308 "configure"
18309 #include "confdefs.h"
18310 #include <$ac_header>
18312 if { (eval echo "$as_me:18312: \"$ac_cpp conftest.$ac_ext\"") >&5
18313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18315 egrep -v '^ *\+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:18318: \$? = $ac_status" >&5
18319 (exit $ac_status); } >/dev/null; then
18320 if test -s conftest.err; then
18321 ac_cpp_err=$ac_c_preproc_warn_flag
18328 if test -z "$ac_cpp_err"; then
18329 eval "$as_ac_Header=yes"
18331 echo "$as_me: failed program was:" >&5
18332 cat conftest.$ac_ext >&5
18333 eval "$as_ac_Header=no"
18335 rm -f conftest.err conftest.$ac_ext
18337 echo "$as_me:18337: result: `eval echo '${'$as_ac_Header'}'`" >&5
18338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18340 cat >>confdefs.h <<EOF
18341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18347 for ac_func in fork vfork
18349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18350 echo "$as_me:18350: checking for $ac_func" >&5
18351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18352 if eval "test \"\${$as_ac_var+set}\" = set"; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line 18356 "configure"
18357 #include "confdefs.h"
18358 /* System header to define __stub macros and hopefully few prototypes,
18359 which can conflict with char $ac_func (); below. */
18360 #include <assert.h>
18361 /* Override any gcc2 internal prototype to avoid an error. */
18365 /* We use char because int might match the return type of a gcc2
18366 builtin and then its argument prototype would still apply. */
18373 /* The GNU C library defines this for functions which it implements
18374 to always fail with ENOSYS. Some functions are actually named
18375 something starting with __ and the normal name is an alias. */
18376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18379 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:18387: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>&5
18390 echo "$as_me:18390: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -s conftest$ac_exeext'
18393 { (eval echo "$as_me:18393: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18396 echo "$as_me:18396: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 eval "$as_ac_var=yes"
18400 echo "$as_me: failed program was:" >&5
18401 cat conftest.$ac_ext >&5
18402 eval "$as_ac_var=no"
18404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18406 echo "$as_me:18406: result: `eval echo '${'$as_ac_var'}'`" >&5
18407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18408 if test `eval echo '${'$as_ac_var'}'` = yes; then
18409 cat >>confdefs.h <<EOF
18410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18416 ac_cv_func_fork_works=$ac_cv_func_fork
18417 if test "x$ac_cv_func_fork" = xyes; then
18418 echo "$as_me:18418: checking for working fork" >&5
18419 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18420 if test "${ac_cv_func_fork_works+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 if test "$cross_compiling" = yes; then
18424 ac_cv_func_fork_works=cross
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* By Rüdiger Kuhlmann. */
18428 #include <sys/types.h>
18430 # include <unistd.h>
18432 /* Some systems only have a dummy stub for fork() */
18436 $ac_main_return (1);
18437 $ac_main_return (0);
18440 rm -f conftest$ac_exeext
18441 if { (eval echo "$as_me:18441: \"$ac_link\"") >&5
18442 (eval $ac_link) 2>&5
18444 echo "$as_me:18444: \$? = $ac_status" >&5
18445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18446 { (eval echo "$as_me:18446: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18449 echo "$as_me:18449: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_func_fork_works=yes
18453 echo "$as_me: program exited with status $ac_status" >&5
18454 echo "$as_me: failed program was:" >&5
18455 cat conftest.$ac_ext >&5
18456 ac_cv_func_fork_works=no
18458 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18461 echo "$as_me:18461: result: $ac_cv_func_fork_works" >&5
18462 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18465 if test "x$ac_cv_func_fork_works" = xcross; then
18467 *-*-amigaos* | *-*-msdosdjgpp*)
18468 # Override, as these systems have only a dummy fork() stub
18469 ac_cv_func_fork_works=no
18472 ac_cv_func_fork_works=yes
18475 { echo "$as_me:18475: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
18476 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
18478 ac_cv_func_vfork_works=$ac_cv_func_vfork
18479 if test "x$ac_cv_func_vfork" = xyes; then
18480 echo "$as_me:18480: checking for working vfork" >&5
18481 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18482 if test "${ac_cv_func_vfork_works+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 if test "$cross_compiling" = yes; then
18486 ac_cv_func_vfork_works=cross
18488 cat >conftest.$ac_ext <<_ACEOF
18489 #line 18489 "configure"
18490 #include "confdefs.h"
18491 /* Thanks to Paul Eggert for this test. */
18493 #include <sys/types.h>
18494 #include <sys/stat.h>
18496 # include <unistd.h>
18499 # include <vfork.h>
18501 /* On some sparc systems, changes by the child to local and incoming
18502 argument registers are propagated back to the parent. The compiler
18503 is told about this with #include <vfork.h>, but some compilers
18504 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18505 static variable whose address is put into a register that is
18506 clobbered by the vfork. */
18509 sparc_address_test (int arg)
18511 sparc_address_test (arg) int arg;
18514 static pid_t child;
18532 pid_t parent = getpid ();
18535 sparc_address_test ();
18540 /* Here is another test for sparc vfork register problems. This
18541 test uses lots of local variables, at least as many local
18542 variables as main has allocated so far including compiler
18543 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18544 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18545 reuse the register of parent for one of the local variables,
18546 since it will think that parent can't possibly be used any more
18547 in this routine. Assigning to the local variable will thus
18548 munge parent in the parent process. */
18550 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18551 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18552 /* Convince the compiler that p..p7 are live; otherwise, it might
18553 use the same hardware register for all 8 local variables. */
18554 if (p != p1 || p != p2 || p != p3 || p != p4
18555 || p != p5 || p != p6 || p != p7)
18558 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18559 from child file descriptors. If the child closes a descriptor
18560 before it execs or exits, this munges the parent's descriptor
18561 as well. Test for this by closing stdout in the child. */
18562 _exit(close(fileno(stdout)) != 0);
18567 while (wait(&status) != child)
18570 /* Was there some problem with vforking? */
18573 /* Did the child fail? (This shouldn't happen.) */
18576 /* Did the vfork/compiler bug occur? */
18577 || parent != getpid()
18579 /* Did the file descriptor bug occur? */
18580 || fstat(fileno(stdout), &st) != 0
18585 rm -f conftest$ac_exeext
18586 if { (eval echo "$as_me:18586: \"$ac_link\"") >&5
18587 (eval $ac_link) 2>&5
18589 echo "$as_me:18589: \$? = $ac_status" >&5
18590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18591 { (eval echo "$as_me:18591: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18594 echo "$as_me:18594: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 ac_cv_func_vfork_works=yes
18598 echo "$as_me: program exited with status $ac_status" >&5
18599 echo "$as_me: failed program was:" >&5
18600 cat conftest.$ac_ext >&5
18601 ac_cv_func_vfork_works=no
18603 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18606 echo "$as_me:18606: result: $ac_cv_func_vfork_works" >&5
18607 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18610 if test "x$ac_cv_func_fork_works" = xcross; then
18611 ac_cv_func_vfork_works=ac_cv_func_vfork
18612 { echo "$as_me:18612: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
18613 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
18616 if test "x$ac_cv_func_vfork_works" = xyes; then
18618 cat >>confdefs.h <<\EOF
18619 #define HAVE_WORKING_VFORK 1
18624 cat >>confdefs.h <<\EOF
18629 if test "x$ac_cv_func_fork_works" = xyes; then
18631 cat >>confdefs.h <<\EOF
18632 #define HAVE_WORKING_FORK 1
18637 # special check for test/ditto.c
18639 echo "$as_me:18639: checking for openpty in -lutil" >&5
18640 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18641 if test "${ac_cv_lib_util_openpty+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 ac_check_lib_save_LIBS=$LIBS
18645 LIBS="-lutil $LIBS"
18646 cat >conftest.$ac_ext <<_ACEOF
18647 #line 18647 "configure"
18648 #include "confdefs.h"
18650 /* Override any gcc2 internal prototype to avoid an error. */
18654 /* We use char because int might match the return type of a gcc2
18655 builtin and then its argument prototype would still apply. */
18665 rm -f conftest.$ac_objext conftest$ac_exeext
18666 if { (eval echo "$as_me:18666: \"$ac_link\"") >&5
18667 (eval $ac_link) 2>&5
18669 echo "$as_me:18669: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -s conftest$ac_exeext'
18672 { (eval echo "$as_me:18672: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18675 echo "$as_me:18675: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18677 ac_cv_lib_util_openpty=yes
18679 echo "$as_me: failed program was:" >&5
18680 cat conftest.$ac_ext >&5
18681 ac_cv_lib_util_openpty=no
18683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18686 echo "$as_me:18686: result: $ac_cv_lib_util_openpty" >&5
18687 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18688 if test $ac_cv_lib_util_openpty = yes; then
18694 echo "$as_me:18694: checking for openpty header" >&5
18695 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18696 if test "${cf_cv_func_openpty+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18700 cf_save_LIBS="$LIBS"
18701 test $cf_cv_lib_util = yes && {
18702 cf_add_libs="-lutil"
18703 # Filter out duplicates - this happens with badly-designed ".pc" files...
18704 for cf_add_1lib in $LIBS
18706 for cf_add_2lib in $cf_add_libs
18708 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18714 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18716 LIBS="$cf_add_libs"
18718 for cf_header in pty.h libutil.h util.h
18720 cat >conftest.$ac_ext <<_ACEOF
18721 #line 18721 "configure"
18722 #include "confdefs.h"
18724 #include <$cf_header>
18730 int x = openpty((int *)0, (int *)0, (char *)0,
18731 (struct termios *)0, (struct winsize *)0);
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (eval echo "$as_me:18738: \"$ac_link\"") >&5
18739 (eval $ac_link) 2>&5
18741 echo "$as_me:18741: \$? = $ac_status" >&5
18742 (exit $ac_status); } &&
18743 { ac_try='test -s conftest$ac_exeext'
18744 { (eval echo "$as_me:18744: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18747 echo "$as_me:18747: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18750 cf_cv_func_openpty=$cf_header
18754 echo "$as_me: failed program was:" >&5
18755 cat conftest.$ac_ext >&5
18757 cf_cv_func_openpty=no
18760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18762 LIBS="$cf_save_LIBS"
18765 echo "$as_me:18765: result: $cf_cv_func_openpty" >&5
18766 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18768 if test "$cf_cv_func_openpty" != no ; then
18770 cat >>confdefs.h <<EOF
18771 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18774 cat >>confdefs.h <<\EOF
18775 #define USE_XTERM_PTY 1
18778 if test "x$cf_cv_lib_util" = xyes ; then
18780 cf_add_libs="-lutil"
18781 # Filter out duplicates - this happens with badly-designed ".pc" files...
18782 for cf_add_1lib in $TEST_LIBS
18784 for cf_add_2lib in $cf_add_libs
18786 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18792 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18794 TEST_LIBS="$cf_add_libs"
18799 if test "$with_hashed_db" != no ; then
18801 cat >>confdefs.h <<\EOF
18802 #define USE_HASHED_DB 1
18805 case $with_hashed_db in
18809 if test -d "$with_hashed_db" ; then
18811 if test -n "$with_hashed_db/include" ; then
18812 for cf_add_incdir in $with_hashed_db/include
18814 while test $cf_add_incdir != /usr/include
18816 if test -d $cf_add_incdir
18819 if test -n "$CFLAGS$CPPFLAGS" ; then
18820 # a loop is needed to ensure we can add subdirs of existing dirs
18821 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18822 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18823 cf_have_incdir=yes; break
18828 if test "$cf_have_incdir" = no ; then
18829 if test "$cf_add_incdir" = /usr/local/include ; then
18830 if test "$GCC" = yes
18832 cf_save_CPPFLAGS=$CPPFLAGS
18833 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18834 cat >conftest.$ac_ext <<_ACEOF
18835 #line 18835 "configure"
18836 #include "confdefs.h"
18846 rm -f conftest.$ac_objext
18847 if { (eval echo "$as_me:18847: \"$ac_compile\"") >&5
18848 (eval $ac_compile) 2>&5
18850 echo "$as_me:18850: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -s conftest.$ac_objext'
18853 { (eval echo "$as_me:18853: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18856 echo "$as_me:18856: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18860 echo "$as_me: failed program was:" >&5
18861 cat conftest.$ac_ext >&5
18864 rm -f conftest.$ac_objext conftest.$ac_ext
18865 CPPFLAGS=$cf_save_CPPFLAGS
18870 if test "$cf_have_incdir" = no ; then
18871 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18873 echo "${as_me:-configure}:18873: testing adding $cf_add_incdir to include-path ..." 1>&5
18875 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18877 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18878 test "$cf_top_incdir" = "$cf_add_incdir" && break
18879 cf_add_incdir="$cf_top_incdir"
18890 if test -n "$with_hashed_db/lib" ; then
18891 for cf_add_libdir in $with_hashed_db/lib
18893 if test $cf_add_libdir = /usr/lib ; then
18895 elif test -d $cf_add_libdir
18898 if test -n "$LDFLAGS$LIBS" ; then
18899 # a loop is needed to ensure we can add subdirs of existing dirs
18900 for cf_test_libdir in $LDFLAGS $LIBS ; do
18901 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18902 cf_have_libdir=yes; break
18906 if test "$cf_have_libdir" = no ; then
18907 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18909 echo "${as_me:-configure}:18909: testing adding $cf_add_libdir to library-path ..." 1>&5
18911 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18918 case "$with_hashed_db" in
18920 { echo "$as_me:18920: WARNING: no such directory $with_hashed_db" >&5
18921 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
18927 test "x$prefix" != "xNONE" && \
18928 test -d "$prefix" && \
18930 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
18931 test -d $prefix/include && cf_search="$cf_search $prefix/include"
18932 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
18933 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
18934 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
18935 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
18938 for cf_subdir_prefix in \
18947 test "x$cf_subdir_prefix" != "x$prefix" && \
18948 test -d "$cf_subdir_prefix" && \
18949 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18950 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
18951 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
18952 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
18953 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
18954 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
18955 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"
18960 for cf_item in $cf_search
18963 (*/$with_hashed_db)
18965 if test -n "$cf_item" ; then
18966 for cf_add_incdir in $cf_item
18968 while test $cf_add_incdir != /usr/include
18970 if test -d $cf_add_incdir
18973 if test -n "$CFLAGS$CPPFLAGS" ; then
18974 # a loop is needed to ensure we can add subdirs of existing dirs
18975 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18976 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18977 cf_have_incdir=yes; break
18982 if test "$cf_have_incdir" = no ; then
18983 if test "$cf_add_incdir" = /usr/local/include ; then
18984 if test "$GCC" = yes
18986 cf_save_CPPFLAGS=$CPPFLAGS
18987 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18988 cat >conftest.$ac_ext <<_ACEOF
18989 #line 18989 "configure"
18990 #include "confdefs.h"
19000 rm -f conftest.$ac_objext
19001 if { (eval echo "$as_me:19001: \"$ac_compile\"") >&5
19002 (eval $ac_compile) 2>&5
19004 echo "$as_me:19004: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -s conftest.$ac_objext'
19007 { (eval echo "$as_me:19007: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:19010: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19014 echo "$as_me: failed program was:" >&5
19015 cat conftest.$ac_ext >&5
19018 rm -f conftest.$ac_objext conftest.$ac_ext
19019 CPPFLAGS=$cf_save_CPPFLAGS
19024 if test "$cf_have_incdir" = no ; then
19025 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19027 echo "${as_me:-configure}:19027: testing adding $cf_add_incdir to include-path ..." 1>&5
19029 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19031 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19032 test "$cf_top_incdir" = "$cf_add_incdir" && break
19033 cf_add_incdir="$cf_top_incdir"
19050 test "x$prefix" != "xNONE" && \
19051 test -d "$prefix" && \
19053 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
19054 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
19055 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
19056 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
19057 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
19058 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
19061 for cf_subdir_prefix in \
19070 test "x$cf_subdir_prefix" != "x$prefix" && \
19071 test -d "$cf_subdir_prefix" && \
19072 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19073 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
19074 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
19075 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
19076 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
19077 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
19078 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"
19083 for cf_item in $cf_search
19086 (*/$with_hashed_db)
19088 if test -n "$cf_item" ; then
19089 for cf_add_libdir in $cf_item
19091 if test $cf_add_libdir = /usr/lib ; then
19093 elif test -d $cf_add_libdir
19096 if test -n "$LDFLAGS$LIBS" ; then
19097 # a loop is needed to ensure we can add subdirs of existing dirs
19098 for cf_test_libdir in $LDFLAGS $LIBS ; do
19099 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19100 cf_have_libdir=yes; break
19104 if test "$cf_have_libdir" = no ; then
19105 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19107 echo "${as_me:-configure}:19107: testing adding $cf_add_libdir to library-path ..." 1>&5
19109 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19124 echo "$as_me:19124: checking for db.h" >&5
19125 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
19126 if test "${ac_cv_header_db_h+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19130 #line 19130 "configure"
19131 #include "confdefs.h"
19134 if { (eval echo "$as_me:19134: \"$ac_cpp conftest.$ac_ext\"") >&5
19135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19137 egrep -v '^ *\+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:19140: \$? = $ac_status" >&5
19141 (exit $ac_status); } >/dev/null; then
19142 if test -s conftest.err; then
19143 ac_cpp_err=$ac_c_preproc_warn_flag
19150 if test -z "$ac_cpp_err"; then
19151 ac_cv_header_db_h=yes
19153 echo "$as_me: failed program was:" >&5
19154 cat conftest.$ac_ext >&5
19155 ac_cv_header_db_h=no
19157 rm -f conftest.err conftest.$ac_ext
19159 echo "$as_me:19159: result: $ac_cv_header_db_h" >&5
19160 echo "${ECHO_T}$ac_cv_header_db_h" >&6
19161 if test $ac_cv_header_db_h = yes; then
19163 echo "$as_me:19163: checking for version of db" >&5
19164 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
19165 if test "${cf_cv_hashed_db_version+set}" = set; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 cf_cv_hashed_db_version=unknown
19171 for cf_db_version in 1 2 3 4 5 6
19174 echo "${as_me:-configure}:19174: testing checking for db version $cf_db_version ..." 1>&5
19176 cat >conftest.$ac_ext <<_ACEOF
19177 #line 19177 "configure"
19178 #include "confdefs.h"
19180 $ac_includes_default
19183 #ifdef DB_VERSION_MAJOR
19184 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
19185 #if $cf_db_version == DB_VERSION_MAJOR
19191 #if $cf_db_version == 1
19192 /* ok: assuming this is DB 1.8.5 */
19206 rm -f conftest.$ac_objext
19207 if { (eval echo "$as_me:19207: \"$ac_compile\"") >&5
19208 (eval $ac_compile) 2>&5
19210 echo "$as_me:19210: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:19213: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:19216: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19219 cf_cv_hashed_db_version=$cf_db_version
19223 echo "$as_me: failed program was:" >&5
19224 cat conftest.$ac_ext >&5
19226 rm -f conftest.$ac_objext conftest.$ac_ext
19230 echo "$as_me:19230: result: $cf_cv_hashed_db_version" >&5
19231 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
19233 if test "$cf_cv_hashed_db_version" = unknown ; then
19234 { { echo "$as_me:19234: error: Cannot determine version of db" >&5
19235 echo "$as_me: error: Cannot determine version of db" >&2;}
19236 { (exit 1); exit 1; }; }
19239 echo "$as_me:19239: checking for db libraries" >&5
19240 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
19241 if test "${cf_cv_hashed_db_libs+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 cf_cv_hashed_db_libs=unknown
19246 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
19248 cf_save_libs="$LIBS"
19249 if test -n "$cf_db_libs"; then
19251 cf_add_libs="-l$cf_db_libs"
19252 # Filter out duplicates - this happens with badly-designed ".pc" files...
19253 for cf_add_1lib in $LIBS
19255 for cf_add_2lib in $cf_add_libs
19257 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19263 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19265 LIBS="$cf_add_libs"
19269 echo "${as_me:-configure}:19269: testing checking for library "$cf_db_libs" ..." 1>&5
19271 cat >conftest.$ac_ext <<_ACEOF
19272 #line 19272 "configure"
19273 #include "confdefs.h"
19275 $ac_includes_default
19282 char *path = "/tmp/foo";
19283 #ifdef DB_VERSION_MAJOR
19284 #if DB_VERSION_MAJOR >= 4
19286 db_create(&result, NULL, 0);
19287 result->open(result,
19294 #elif DB_VERSION_MAJOR >= 3
19296 db_create(&result, NULL, 0);
19297 result->open(result,
19303 #elif DB_VERSION_MAJOR >= 2
19312 #endif /* DB_VERSION_MAJOR */
19314 DB *result = dbopen(path,
19320 ${cf_cv_main_return:-return}(result != 0)
19326 rm -f conftest.$ac_objext conftest$ac_exeext
19327 if { (eval echo "$as_me:19327: \"$ac_link\"") >&5
19328 (eval $ac_link) 2>&5
19330 echo "$as_me:19330: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -s conftest$ac_exeext'
19333 { (eval echo "$as_me:19333: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:19336: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19339 if test -n "$cf_db_libs" ; then
19340 cf_cv_hashed_db_libs=$cf_db_libs
19342 cf_cv_hashed_db_libs=default
19344 LIBS="$cf_save_libs"
19348 echo "$as_me: failed program was:" >&5
19349 cat conftest.$ac_ext >&5
19351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19352 LIBS="$cf_save_libs"
19356 echo "$as_me:19356: result: $cf_cv_hashed_db_libs" >&5
19357 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
19359 if test "$cf_cv_hashed_db_libs" = unknown ; then
19360 { { echo "$as_me:19360: error: Cannot determine library for db" >&5
19361 echo "$as_me: error: Cannot determine library for db" >&2;}
19362 { (exit 1); exit 1; }; }
19363 elif test "$cf_cv_hashed_db_libs" != default ; then
19365 cf_add_libs="-l$cf_cv_hashed_db_libs"
19366 # Filter out duplicates - this happens with badly-designed ".pc" files...
19367 for cf_add_1lib in $LIBS
19369 for cf_add_2lib in $cf_add_libs
19371 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19377 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19379 LIBS="$cf_add_libs"
19386 { { echo "$as_me:19386: error: Cannot find db.h" >&5
19387 echo "$as_me: error: Cannot find db.h" >&2;}
19388 { (exit 1); exit 1; }; }
19394 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
19395 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19396 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19399 # Just in case, check if the C compiler has a bool type.
19401 echo "$as_me:19401: checking if we should include stdbool.h" >&5
19402 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19404 if test "${cf_cv_header_stdbool_h+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 cat >conftest.$ac_ext <<_ACEOF
19409 #line 19409 "configure"
19410 #include "confdefs.h"
19420 rm -f conftest.$ac_objext
19421 if { (eval echo "$as_me:19421: \"$ac_compile\"") >&5
19422 (eval $ac_compile) 2>&5
19424 echo "$as_me:19424: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -s conftest.$ac_objext'
19427 { (eval echo "$as_me:19427: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:19430: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 cf_cv_header_stdbool_h=0
19434 echo "$as_me: failed program was:" >&5
19435 cat conftest.$ac_ext >&5
19436 cat >conftest.$ac_ext <<_ACEOF
19437 #line 19437 "configure"
19438 #include "confdefs.h"
19441 #include <stdbool.h>
19452 rm -f conftest.$ac_objext
19453 if { (eval echo "$as_me:19453: \"$ac_compile\"") >&5
19454 (eval $ac_compile) 2>&5
19456 echo "$as_me:19456: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (eval echo "$as_me:19459: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19462 echo "$as_me:19462: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 cf_cv_header_stdbool_h=1
19466 echo "$as_me: failed program was:" >&5
19467 cat conftest.$ac_ext >&5
19468 cf_cv_header_stdbool_h=0
19470 rm -f conftest.$ac_objext conftest.$ac_ext
19472 rm -f conftest.$ac_objext conftest.$ac_ext
19475 if test "$cf_cv_header_stdbool_h" = 1
19476 then echo "$as_me:19476: result: yes" >&5
19477 echo "${ECHO_T}yes" >&6
19478 else echo "$as_me:19478: result: no" >&5
19479 echo "${ECHO_T}no" >&6
19482 echo "$as_me:19482: checking for builtin bool type" >&5
19483 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19485 if test "${cf_cv_cc_bool_type+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 cat >conftest.$ac_ext <<_ACEOF
19490 #line 19490 "configure"
19491 #include "confdefs.h"
19494 #include <sys/types.h>
19504 rm -f conftest.$ac_objext
19505 if { (eval echo "$as_me:19505: \"$ac_compile\"") >&5
19506 (eval $ac_compile) 2>&5
19508 echo "$as_me:19508: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -s conftest.$ac_objext'
19511 { (eval echo "$as_me:19511: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19514 echo "$as_me:19514: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 cf_cv_cc_bool_type=1
19518 echo "$as_me: failed program was:" >&5
19519 cat conftest.$ac_ext >&5
19520 cf_cv_cc_bool_type=0
19522 rm -f conftest.$ac_objext conftest.$ac_ext
19526 if test "$cf_cv_cc_bool_type" = 1
19527 then echo "$as_me:19527: result: yes" >&5
19528 echo "${ECHO_T}yes" >&6
19529 else echo "$as_me:19529: result: no" >&5
19530 echo "${ECHO_T}no" >&6
19533 # Check for C++ compiler characteristics (and ensure that it's there!)
19534 if test -n "$CXX" ; then
19536 ac_cpp='$CXXCPP $CPPFLAGS'
19537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19540 ac_main_return=return
19542 if test -n "$GXX" ; then
19545 LIBS="$LIBS $CXXLIBS"
19546 echo "$as_me:19546: checking if we already have C++ library" >&5
19547 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19549 #line 19549 "configure"
19550 #include "confdefs.h"
19552 #include <iostream>
19557 std::cout << "Hello World!" << std::endl;
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (eval echo "$as_me:19563: \"$ac_link\"") >&5
19564 (eval $ac_link) 2>&5
19566 echo "$as_me:19566: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try='test -s conftest$ac_exeext'
19569 { (eval echo "$as_me:19569: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:19572: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19574 cf_have_libstdcpp=yes
19576 echo "$as_me: failed program was:" >&5
19577 cat conftest.$ac_ext >&5
19578 cf_have_libstdcpp=no
19580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19581 echo "$as_me:19581: result: $cf_have_libstdcpp" >&5
19582 echo "${ECHO_T}$cf_have_libstdcpp" >&6
19585 if test $cf_have_libstdcpp != yes
19587 case $cf_cv_system_name in
19589 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
19590 cf_stdcpp_libname=stdcpp
19592 cf_stdcpp_libname=stdc++
19596 cf_stdcpp_libname=stdc++
19600 echo "$as_me:19600: checking for library $cf_stdcpp_libname" >&5
19601 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
19602 if test "${cf_cv_libstdcpp+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 LIBS="$LIBS $CXXLIBS"
19609 cf_add_libs="-l$cf_stdcpp_libname"
19610 # Filter out duplicates - this happens with badly-designed ".pc" files...
19611 for cf_add_1lib in $LIBS
19613 for cf_add_2lib in $cf_add_libs
19615 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19621 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19623 LIBS="$cf_add_libs"
19625 cat >conftest.$ac_ext <<_ACEOF
19626 #line 19626 "configure"
19627 #include "confdefs.h"
19629 #include <iostream>
19634 std::cout << "Hello World!" << std::endl;
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (eval echo "$as_me:19640: \"$ac_link\"") >&5
19641 (eval $ac_link) 2>&5
19643 echo "$as_me:19643: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:19646: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:19649: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 cf_cv_libstdcpp=yes
19653 echo "$as_me: failed program was:" >&5
19654 cat conftest.$ac_ext >&5
19657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19661 echo "$as_me:19661: result: $cf_cv_libstdcpp" >&5
19662 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
19663 test "$cf_cv_libstdcpp" = yes && {
19664 cf_add_libs="-l$cf_stdcpp_libname"
19665 # Filter out duplicates - this happens with badly-designed ".pc" files...
19666 for cf_add_1lib in $CXXLIBS
19668 for cf_add_2lib in $cf_add_libs
19670 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19676 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19678 CXXLIBS="$cf_add_libs"
19683 echo "$as_me:19683: checking whether $CXX understands -c and -o together" >&5
19684 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
19685 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 cat > conftest.$ac_ext <<CF_EOF
19693 ${cf_cv_main_return:-return}(0);
19696 # We do the test twice because some compilers refuse to overwrite an
19697 # existing .o file with -o, though they will create one.
19698 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19699 if { (eval echo "$as_me:19699: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19702 echo "$as_me:19702: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 test -f conftest2.$ac_objext && { (eval echo "$as_me:19704: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 echo "$as_me:19707: \$? = $ac_status" >&5
19708 (exit $ac_status); };
19710 eval cf_cv_prog_CXX_c_o=yes
19712 eval cf_cv_prog_CXX_c_o=no
19717 if test $cf_cv_prog_CXX_c_o = yes; then
19718 echo "$as_me:19718: result: yes" >&5
19719 echo "${ECHO_T}yes" >&6
19721 echo "$as_me:19721: result: no" >&5
19722 echo "${ECHO_T}no" >&6
19725 case $GXX_VERSION in
19731 cf_cxx_library=unknown
19732 case $cf_cv_system_name in
19740 if test "$GXX" = yes; then
19741 echo "$as_me:19741: checking for lib$cf_gpp_libname" >&5
19742 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
19745 cf_add_libs="-l$cf_gpp_libname"
19746 # Filter out duplicates - this happens with badly-designed ".pc" files...
19747 for cf_add_1lib in $LIBS
19749 for cf_add_2lib in $cf_add_libs
19751 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19757 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19759 LIBS="$cf_add_libs"
19761 cat >conftest.$ac_ext <<_ACEOF
19762 #line 19762 "configure"
19763 #include "confdefs.h"
19765 #include <$cf_gpp_libname/builtin.h>
19770 two_arg_error_handler_t foo2 = lib_error_handler
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (eval echo "$as_me:19776: \"$ac_link\"") >&5
19777 (eval $ac_link) 2>&5
19779 echo "$as_me:19779: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -s conftest$ac_exeext'
19782 { (eval echo "$as_me:19782: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:19785: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19789 cf_add_libs="-l$cf_gpp_libname"
19790 # Filter out duplicates - this happens with badly-designed ".pc" files...
19791 for cf_add_1lib in $CXXLIBS
19793 for cf_add_2lib in $cf_add_libs
19795 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19801 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19803 CXXLIBS="$cf_add_libs"
19805 if test "$cf_gpp_libname" = cpp ; then
19807 cat >>confdefs.h <<\EOF
19808 #define HAVE_GPP_BUILTIN_H 1
19813 cat >>confdefs.h <<\EOF
19814 #define HAVE_GXX_BUILTIN_H 1
19819 echo "$as_me: failed program was:" >&5
19820 cat conftest.$ac_ext >&5
19821 cat >conftest.$ac_ext <<_ACEOF
19822 #line 19822 "configure"
19823 #include "confdefs.h"
19825 #include <builtin.h>
19830 two_arg_error_handler_t foo2 = lib_error_handler
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (eval echo "$as_me:19836: \"$ac_link\"") >&5
19837 (eval $ac_link) 2>&5
19839 echo "$as_me:19839: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -s conftest$ac_exeext'
19842 { (eval echo "$as_me:19842: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19845 echo "$as_me:19845: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19849 cf_add_libs="-l$cf_gpp_libname"
19850 # Filter out duplicates - this happens with badly-designed ".pc" files...
19851 for cf_add_1lib in $CXXLIBS
19853 for cf_add_2lib in $cf_add_libs
19855 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19861 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19863 CXXLIBS="$cf_add_libs"
19865 cat >>confdefs.h <<\EOF
19866 #define HAVE_BUILTIN_H 1
19870 echo "$as_me: failed program was:" >&5
19871 cat conftest.$ac_ext >&5
19874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19878 echo "$as_me:19878: result: $cf_cxx_library" >&5
19879 echo "${ECHO_T}$cf_cxx_library" >&6
19889 ac_cpp='$CXXCPP $CPPFLAGS'
19890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19893 ac_main_return=return
19894 echo "$as_me:19894: checking how to run the C++ preprocessor" >&5
19895 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19896 if test -z "$CXXCPP"; then
19897 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 # Double quotes because CXXCPP needs to be expanded
19901 for CXXCPP in "$CXX -E" "/lib/cpp"
19903 ac_preproc_ok=false
19904 for ac_cxx_preproc_warn_flag in '' yes
19906 # Use a header file that comes with gcc, so configuring glibc
19907 # with a fresh cross-compiler works.
19908 # On the NeXT, cc -E runs the code through the compiler's parser,
19909 # not just through cpp. "Syntax error" is here to catch this case.
19910 cat >conftest.$ac_ext <<_ACEOF
19911 #line 19911 "configure"
19912 #include "confdefs.h"
19913 #include <assert.h>
19916 if { (eval echo "$as_me:19916: \"$ac_cpp conftest.$ac_ext\"") >&5
19917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19919 egrep -v '^ *\+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:19922: \$? = $ac_status" >&5
19923 (exit $ac_status); } >/dev/null; then
19924 if test -s conftest.err; then
19925 ac_cpp_err=$ac_cxx_preproc_warn_flag
19932 if test -z "$ac_cpp_err"; then
19935 echo "$as_me: failed program was:" >&5
19936 cat conftest.$ac_ext >&5
19937 # Broken: fails on valid input.
19940 rm -f conftest.err conftest.$ac_ext
19942 # OK, works on sane cases. Now check whether non-existent headers
19943 # can be detected and how.
19944 cat >conftest.$ac_ext <<_ACEOF
19945 #line 19945 "configure"
19946 #include "confdefs.h"
19947 #include <ac_nonexistent.h>
19949 if { (eval echo "$as_me:19949: \"$ac_cpp conftest.$ac_ext\"") >&5
19950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19952 egrep -v '^ *\+' conftest.er1 >conftest.err
19954 cat conftest.err >&5
19955 echo "$as_me:19955: \$? = $ac_status" >&5
19956 (exit $ac_status); } >/dev/null; then
19957 if test -s conftest.err; then
19958 ac_cpp_err=$ac_cxx_preproc_warn_flag
19965 if test -z "$ac_cpp_err"; then
19966 # Broken: success on invalid input.
19969 echo "$as_me: failed program was:" >&5
19970 cat conftest.$ac_ext >&5
19971 # Passes both tests.
19975 rm -f conftest.err conftest.$ac_ext
19978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19979 rm -f conftest.err conftest.$ac_ext
19980 if $ac_preproc_ok; then
19985 ac_cv_prog_CXXCPP=$CXXCPP
19988 CXXCPP=$ac_cv_prog_CXXCPP
19990 ac_cv_prog_CXXCPP=$CXXCPP
19992 echo "$as_me:19992: result: $CXXCPP" >&5
19993 echo "${ECHO_T}$CXXCPP" >&6
19994 ac_preproc_ok=false
19995 for ac_cxx_preproc_warn_flag in '' yes
19997 # Use a header file that comes with gcc, so configuring glibc
19998 # with a fresh cross-compiler works.
19999 # On the NeXT, cc -E runs the code through the compiler's parser,
20000 # not just through cpp. "Syntax error" is here to catch this case.
20001 cat >conftest.$ac_ext <<_ACEOF
20002 #line 20002 "configure"
20003 #include "confdefs.h"
20004 #include <assert.h>
20007 if { (eval echo "$as_me:20007: \"$ac_cpp conftest.$ac_ext\"") >&5
20008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20010 egrep -v '^ *\+' conftest.er1 >conftest.err
20012 cat conftest.err >&5
20013 echo "$as_me:20013: \$? = $ac_status" >&5
20014 (exit $ac_status); } >/dev/null; then
20015 if test -s conftest.err; then
20016 ac_cpp_err=$ac_cxx_preproc_warn_flag
20023 if test -z "$ac_cpp_err"; then
20026 echo "$as_me: failed program was:" >&5
20027 cat conftest.$ac_ext >&5
20028 # Broken: fails on valid input.
20031 rm -f conftest.err conftest.$ac_ext
20033 # OK, works on sane cases. Now check whether non-existent headers
20034 # can be detected and how.
20035 cat >conftest.$ac_ext <<_ACEOF
20036 #line 20036 "configure"
20037 #include "confdefs.h"
20038 #include <ac_nonexistent.h>
20040 if { (eval echo "$as_me:20040: \"$ac_cpp conftest.$ac_ext\"") >&5
20041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20043 egrep -v '^ *\+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:20046: \$? = $ac_status" >&5
20047 (exit $ac_status); } >/dev/null; then
20048 if test -s conftest.err; then
20049 ac_cpp_err=$ac_cxx_preproc_warn_flag
20056 if test -z "$ac_cpp_err"; then
20057 # Broken: success on invalid input.
20060 echo "$as_me: failed program was:" >&5
20061 cat conftest.$ac_ext >&5
20062 # Passes both tests.
20066 rm -f conftest.err conftest.$ac_ext
20069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20070 rm -f conftest.err conftest.$ac_ext
20071 if $ac_preproc_ok; then
20074 { { echo "$as_me:20074: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
20075 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
20076 { (exit 1); exit 1; }; }
20080 ac_cpp='$CXXCPP $CPPFLAGS'
20081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20084 ac_main_return=return
20086 for ac_header in typeinfo
20088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20089 echo "$as_me:20089: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 cat >conftest.$ac_ext <<_ACEOF
20095 #line 20095 "configure"
20096 #include "confdefs.h"
20097 #include <$ac_header>
20099 if { (eval echo "$as_me:20099: \"$ac_cpp conftest.$ac_ext\"") >&5
20100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20102 egrep -v '^ *\+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:20105: \$? = $ac_status" >&5
20106 (exit $ac_status); } >/dev/null; then
20107 if test -s conftest.err; then
20108 ac_cpp_err=$ac_cxx_preproc_warn_flag
20115 if test -z "$ac_cpp_err"; then
20116 eval "$as_ac_Header=yes"
20118 echo "$as_me: failed program was:" >&5
20119 cat conftest.$ac_ext >&5
20120 eval "$as_ac_Header=no"
20122 rm -f conftest.err conftest.$ac_ext
20124 echo "$as_me:20124: result: `eval echo '${'$as_ac_Header'}'`" >&5
20125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20127 cat >>confdefs.h <<EOF
20128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20134 for ac_header in iostream
20136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20137 echo "$as_me:20137: checking for $ac_header" >&5
20138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 cat >conftest.$ac_ext <<_ACEOF
20143 #line 20143 "configure"
20144 #include "confdefs.h"
20145 #include <$ac_header>
20147 if { (eval echo "$as_me:20147: \"$ac_cpp conftest.$ac_ext\"") >&5
20148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20150 egrep -v '^ *\+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:20153: \$? = $ac_status" >&5
20154 (exit $ac_status); } >/dev/null; then
20155 if test -s conftest.err; then
20156 ac_cpp_err=$ac_cxx_preproc_warn_flag
20163 if test -z "$ac_cpp_err"; then
20164 eval "$as_ac_Header=yes"
20166 echo "$as_me: failed program was:" >&5
20167 cat conftest.$ac_ext >&5
20168 eval "$as_ac_Header=no"
20170 rm -f conftest.err conftest.$ac_ext
20172 echo "$as_me:20172: result: `eval echo '${'$as_ac_Header'}'`" >&5
20173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20175 cat >>confdefs.h <<EOF
20176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20182 if test x"$ac_cv_header_iostream" = xyes ; then
20183 echo "$as_me:20183: checking if iostream uses std-namespace" >&5
20184 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20186 #line 20186 "configure"
20187 #include "confdefs.h"
20189 #include <iostream>
20196 cerr << "testing" << endl;
20202 rm -f conftest.$ac_objext
20203 if { (eval echo "$as_me:20203: \"$ac_compile\"") >&5
20204 (eval $ac_compile) 2>&5
20206 echo "$as_me:20206: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try='test -s conftest.$ac_objext'
20209 { (eval echo "$as_me:20209: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20212 echo "$as_me:20212: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 cf_iostream_namespace=yes
20216 echo "$as_me: failed program was:" >&5
20217 cat conftest.$ac_ext >&5
20218 cf_iostream_namespace=no
20220 rm -f conftest.$ac_objext conftest.$ac_ext
20221 echo "$as_me:20221: result: $cf_iostream_namespace" >&5
20222 echo "${ECHO_T}$cf_iostream_namespace" >&6
20223 if test "$cf_iostream_namespace" = yes ; then
20225 cat >>confdefs.h <<\EOF
20226 #define IOSTREAM_NAMESPACE 1
20232 echo "$as_me:20232: checking if we should include stdbool.h" >&5
20233 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20235 if test "${cf_cv_header_stdbool_h+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 cat >conftest.$ac_ext <<_ACEOF
20240 #line 20240 "configure"
20241 #include "confdefs.h"
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:20252: \"$ac_compile\"") >&5
20253 (eval $ac_compile) 2>&5
20255 echo "$as_me:20255: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
20257 { ac_try='test -s conftest.$ac_objext'
20258 { (eval echo "$as_me:20258: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 echo "$as_me:20261: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 cf_cv_header_stdbool_h=0
20265 echo "$as_me: failed program was:" >&5
20266 cat conftest.$ac_ext >&5
20267 cat >conftest.$ac_ext <<_ACEOF
20268 #line 20268 "configure"
20269 #include "confdefs.h"
20272 #include <stdbool.h>
20283 rm -f conftest.$ac_objext
20284 if { (eval echo "$as_me:20284: \"$ac_compile\"") >&5
20285 (eval $ac_compile) 2>&5
20287 echo "$as_me:20287: \$? = $ac_status" >&5
20288 (exit $ac_status); } &&
20289 { ac_try='test -s conftest.$ac_objext'
20290 { (eval echo "$as_me:20290: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20293 echo "$as_me:20293: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20295 cf_cv_header_stdbool_h=1
20297 echo "$as_me: failed program was:" >&5
20298 cat conftest.$ac_ext >&5
20299 cf_cv_header_stdbool_h=0
20301 rm -f conftest.$ac_objext conftest.$ac_ext
20303 rm -f conftest.$ac_objext conftest.$ac_ext
20306 if test "$cf_cv_header_stdbool_h" = 1
20307 then echo "$as_me:20307: result: yes" >&5
20308 echo "${ECHO_T}yes" >&6
20309 else echo "$as_me:20309: result: no" >&5
20310 echo "${ECHO_T}no" >&6
20313 echo "$as_me:20313: checking for builtin bool type" >&5
20314 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20316 if test "${cf_cv_builtin_bool+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 cat >conftest.$ac_ext <<_ACEOF
20321 #line 20321 "configure"
20322 #include "confdefs.h"
20325 #include <sys/types.h>
20335 rm -f conftest.$ac_objext
20336 if { (eval echo "$as_me:20336: \"$ac_compile\"") >&5
20337 (eval $ac_compile) 2>&5
20339 echo "$as_me:20339: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -s conftest.$ac_objext'
20342 { (eval echo "$as_me:20342: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20345 echo "$as_me:20345: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 cf_cv_builtin_bool=1
20349 echo "$as_me: failed program was:" >&5
20350 cat conftest.$ac_ext >&5
20351 cf_cv_builtin_bool=0
20353 rm -f conftest.$ac_objext conftest.$ac_ext
20357 if test "$cf_cv_builtin_bool" = 1
20358 then echo "$as_me:20358: result: yes" >&5
20359 echo "${ECHO_T}yes" >&6
20360 else echo "$as_me:20360: result: no" >&5
20361 echo "${ECHO_T}no" >&6
20364 echo "$as_me:20364: checking for size of bool" >&5
20365 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20366 if test "${cf_cv_type_of_bool+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 if test "$cross_compiling" = yes; then
20372 cf_cv_type_of_bool=unknown
20374 cat >conftest.$ac_ext <<_ACEOF
20375 #line 20375 "configure"
20376 #include "confdefs.h"
20378 #include <stdlib.h>
20381 #if defined(__cplusplus)
20383 #ifdef HAVE_GXX_BUILTIN_H
20384 #include <g++/builtin.h>
20385 #elif HAVE_GPP_BUILTIN_H
20386 #include <gpp/builtin.h>
20387 #elif HAVE_BUILTIN_H
20388 #include <builtin.h>
20393 #if $cf_cv_header_stdbool_h
20394 #include <stdbool.h>
20401 FILE *fp = fopen("cf_test.out", "w");
20404 if ((bool)(-x) >= 0)
20405 fputs("unsigned ", fp);
20406 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20407 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20408 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20409 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20412 ${cf_cv_main_return:-return}(0);
20416 rm -f conftest$ac_exeext
20417 if { (eval echo "$as_me:20417: \"$ac_link\"") >&5
20418 (eval $ac_link) 2>&5
20420 echo "$as_me:20420: \$? = $ac_status" >&5
20421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20422 { (eval echo "$as_me:20422: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:20425: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 cf_cv_type_of_bool=`cat cf_test.out`
20428 if test -z "$cf_cv_type_of_bool"; then
20429 cf_cv_type_of_bool=unknown
20432 echo "$as_me: program exited with status $ac_status" >&5
20433 echo "$as_me: failed program was:" >&5
20434 cat conftest.$ac_ext >&5
20435 cf_cv_type_of_bool=unknown
20437 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20443 echo "$as_me:20443: result: $cf_cv_type_of_bool" >&5
20444 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20445 if test "$cf_cv_type_of_bool" = unknown ; then
20446 case .$NCURSES_BOOL in
20447 (.auto|.) NCURSES_BOOL=unsigned;;
20449 { echo "$as_me:20449: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20450 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20451 cf_cv_type_of_bool=$NCURSES_BOOL
20454 echo "$as_me:20454: checking for special defines needed for etip.h" >&5
20455 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
20456 cf_save_CXXFLAGS="$CXXFLAGS"
20459 # etip.h includes ncurses.h which includes ncurses_dll.h
20460 # But ncurses_dll.h is generated - fix here.
20461 test -d include || mkdir include
20462 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
20464 for cf_math in "" MATH_H
20466 for cf_excp in "" MATH_EXCEPTION
20468 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
20469 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
20470 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
20471 cat >conftest.$ac_ext <<_ACEOF
20472 #line 20472 "configure"
20473 #include "confdefs.h"
20475 #include <etip.h.in>
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:20486: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>&5
20489 echo "$as_me:20489: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -s conftest.$ac_objext'
20492 { (eval echo "$as_me:20492: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:20495: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20498 test -n "$cf_math" && cat >>confdefs.h <<EOF
20499 #define ETIP_NEEDS_${cf_math} 1
20502 test -n "$cf_excp" && cat >>confdefs.h <<EOF
20503 #define ETIP_NEEDS_${cf_excp} 1
20506 cf_result="$cf_math $cf_excp"
20510 echo "$as_me: failed program was:" >&5
20511 cat conftest.$ac_ext >&5
20513 rm -f conftest.$ac_objext conftest.$ac_ext
20516 echo "$as_me:20516: result: $cf_result" >&5
20517 echo "${ECHO_T}$cf_result" >&6
20518 CXXFLAGS="$cf_save_CXXFLAGS"
20520 if test -n "$CXX"; then
20521 echo "$as_me:20521: checking if $CXX accepts parameter initialization" >&5
20522 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
20523 if test "${cf_cv_cpp_param_init+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 ac_cpp='$CXXCPP $CPPFLAGS'
20529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20532 ac_main_return=return
20534 if test "$cross_compiling" = yes; then
20535 cf_cv_cpp_param_init=unknown
20537 cat >conftest.$ac_ext <<_ACEOF
20538 #line 20538 "configure"
20539 #include "confdefs.h"
20549 TEST::TEST(int x = 1) // some compilers do not like second initializer
20556 rm -f conftest$ac_exeext
20557 if { (eval echo "$as_me:20557: \"$ac_link\"") >&5
20558 (eval $ac_link) 2>&5
20560 echo "$as_me:20560: \$? = $ac_status" >&5
20561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20562 { (eval echo "$as_me:20562: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:20565: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 cf_cv_cpp_param_init=yes
20569 echo "$as_me: program exited with status $ac_status" >&5
20570 echo "$as_me: failed program was:" >&5
20571 cat conftest.$ac_ext >&5
20572 cf_cv_cpp_param_init=no
20574 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20577 ac_cpp='$CXXCPP $CPPFLAGS'
20578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20581 ac_main_return=return
20584 echo "$as_me:20584: result: $cf_cv_cpp_param_init" >&5
20585 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
20587 test "$cf_cv_cpp_param_init" = yes &&
20588 cat >>confdefs.h <<\EOF
20589 #define CPP_HAS_PARAM_INIT 1
20592 if test -n "$CXX"; then
20594 echo "$as_me:20594: checking if $CXX accepts static_cast" >&5
20595 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
20596 if test "${cf_cv_cpp_static_cast+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 ac_cpp='$CXXCPP $CPPFLAGS'
20602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20605 ac_main_return=return
20607 cat >conftest.$ac_ext <<_ACEOF
20608 #line 20608 "configure"
20609 #include "confdefs.h"
20614 NCursesPanel(int nlines,
20624 template<class T> class NCursesUserPanel : public NCursesPanel
20627 NCursesUserPanel (int nlines,
20631 const T* p_UserData = static_cast<T*>(0))
20632 : NCursesPanel (nlines, ncols, begin_y, begin_x)
20635 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
20639 virtual ~NCursesUserPanel() {};
20646 const char* p_UserData = static_cast<char*>(0)
20651 rm -f conftest.$ac_objext
20652 if { (eval echo "$as_me:20652: \"$ac_compile\"") >&5
20653 (eval $ac_compile) 2>&5
20655 echo "$as_me:20655: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -s conftest.$ac_objext'
20658 { (eval echo "$as_me:20658: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:20661: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 cf_cv_cpp_static_cast=yes
20665 echo "$as_me: failed program was:" >&5
20666 cat conftest.$ac_ext >&5
20667 cf_cv_cpp_static_cast=no
20669 rm -f conftest.$ac_objext conftest.$ac_ext
20672 ac_cpp='$CXXCPP $CPPFLAGS'
20673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20676 ac_main_return=return
20679 echo "$as_me:20679: result: $cf_cv_cpp_static_cast" >&5
20680 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
20684 test "$cf_cv_cpp_static_cast" = yes &&
20685 cat >>confdefs.h <<\EOF
20686 #define CPP_HAS_STATIC_CAST 1
20690 CXX_ARFLAGS='$(ARFLAGS)'
20691 case $cf_cv_system_name in
20693 if test "$GXX" != yes ; then
20695 CXX_ARFLAGS='-ar -o'
20699 CXXLDFLAGS="-u main"
20702 if test "$GXX" != yes ; then
20704 CXX_ARFLAGS='-xar -o'
20711 cf_cv_builtin_bool=1
20713 # Just because we are not configuring against C++ right now does not
20714 # mean that a user will not want to use C++. Some distributors disable
20715 # the C++ portion of this configuration as a shortcut (or just to avoid
20716 # compiling the demo in the c++ directory). So we need a reasonable
20717 # default for the 'bool' type.
20719 # Caveat: since the storage of the bool type is not standardized, it
20722 if test "$NCURSES_BOOL" != auto ; then
20723 cf_cv_type_of_bool=$NCURSES_BOOL
20724 cf_cv_header_stdbool_h=0
20726 if test "$cf_cv_header_stdbool_h" = 1 ; then
20728 echo "$as_me:20728: checking for size of bool" >&5
20729 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20730 if test "${cf_cv_type_of_bool+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 if test "$cross_compiling" = yes; then
20736 cf_cv_type_of_bool=unknown
20738 cat >conftest.$ac_ext <<_ACEOF
20739 #line 20739 "configure"
20740 #include "confdefs.h"
20742 #include <stdlib.h>
20745 #if defined(__cplusplus)
20747 #ifdef HAVE_GXX_BUILTIN_H
20748 #include <g++/builtin.h>
20749 #elif HAVE_GPP_BUILTIN_H
20750 #include <gpp/builtin.h>
20751 #elif HAVE_BUILTIN_H
20752 #include <builtin.h>
20757 #if $cf_cv_header_stdbool_h
20758 #include <stdbool.h>
20765 FILE *fp = fopen("cf_test.out", "w");
20768 if ((bool)(-x) >= 0)
20769 fputs("unsigned ", fp);
20770 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20771 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20772 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20773 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20776 ${cf_cv_main_return:-return}(0);
20780 rm -f conftest$ac_exeext
20781 if { (eval echo "$as_me:20781: \"$ac_link\"") >&5
20782 (eval $ac_link) 2>&5
20784 echo "$as_me:20784: \$? = $ac_status" >&5
20785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20786 { (eval echo "$as_me:20786: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20789 echo "$as_me:20789: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 cf_cv_type_of_bool=`cat cf_test.out`
20792 if test -z "$cf_cv_type_of_bool"; then
20793 cf_cv_type_of_bool=unknown
20796 echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 cat conftest.$ac_ext >&5
20799 cf_cv_type_of_bool=unknown
20801 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20807 echo "$as_me:20807: result: $cf_cv_type_of_bool" >&5
20808 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20809 if test "$cf_cv_type_of_bool" = unknown ; then
20810 case .$NCURSES_BOOL in
20811 (.auto|.) NCURSES_BOOL=unsigned;;
20813 { echo "$as_me:20813: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20814 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20815 cf_cv_type_of_bool=$NCURSES_BOOL
20819 echo "$as_me:20819: checking for fallback type of bool" >&5
20820 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
20821 case "$host_cpu" in
20822 (i?86) cf_cv_type_of_bool=char ;;
20823 (*) cf_cv_type_of_bool=int ;;
20825 echo "$as_me:20825: result: $cf_cv_type_of_bool" >&5
20826 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20831 # If the C compiler did not declare bool, and we did not determine that the C++
20832 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
20833 # ncurses library use the same type as C++ bool. Note that this allows one to
20834 # specify the type of bool in a configure-script option and postpone
20835 # integration with the C++ compiler provided that the types are compatible.
20837 if test $cf_cv_cc_bool_type = 1
20839 # oops: C has a bool. Unlikely, but C++ could differ.
20841 elif test $cf_cv_builtin_bool = 0
20846 # this is the normal case
20847 USE_CXX_BOOL='defined(__cplusplus)'
20850 if test -f "${srcdir}/Ada95/Makefile.in" ; then
20852 if test "$cf_with_ada" != "no" ; then
20853 if test "$with_libtool" != "no"; then
20854 { echo "$as_me:20854: WARNING: libtool does not support Ada - disabling feature" >&5
20855 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
20860 if test "$cf_with_ada" != "no" ; then
20862 cf_ada_make=gnatmake
20863 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
20864 set dummy $cf_ada_make; ac_word=$2
20865 echo "$as_me:20865: checking for $ac_word" >&5
20866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20867 if test "${ac_cv_prog_gnat_exists+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20870 if test -n "$gnat_exists"; then
20871 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
20873 ac_save_IFS=$IFS; IFS=$ac_path_separator
20875 for ac_dir in $ac_dummy; do
20877 test -z "$ac_dir" && ac_dir=.
20878 $as_executable_p "$ac_dir/$ac_word" || continue
20879 ac_cv_prog_gnat_exists="yes"
20880 echo "$as_me:20880: found $ac_dir/$ac_word" >&5
20884 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
20887 gnat_exists=$ac_cv_prog_gnat_exists
20888 if test -n "$gnat_exists"; then
20889 echo "$as_me:20889: result: $gnat_exists" >&5
20890 echo "${ECHO_T}$gnat_exists" >&6
20892 echo "$as_me:20892: result: no" >&5
20893 echo "${ECHO_T}no" >&6
20896 if test "$ac_cv_prog_gnat_exists" = no; then
20898 cf_cv_prog_gnat_correct=no
20901 echo "$as_me:20901: checking for gnat version" >&5
20902 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
20903 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
20904 grep '[0-9].[0-9][0-9]*' |\
20905 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
20906 echo "$as_me:20906: result: $cf_gnat_version" >&5
20907 echo "${ECHO_T}$cf_gnat_version" >&6
20909 case $cf_gnat_version in
20910 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
20911 cf_cv_prog_gnat_correct=yes
20914 { echo "$as_me:20914: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
20915 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
20916 cf_cv_prog_gnat_correct=no
20920 # Extract the first word of "m4", so it can be a program name with args.
20921 set dummy m4; ac_word=$2
20922 echo "$as_me:20922: checking for $ac_word" >&5
20923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20924 if test "${ac_cv_prog_M4_exists+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 if test -n "$M4_exists"; then
20928 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
20930 ac_save_IFS=$IFS; IFS=$ac_path_separator
20932 for ac_dir in $ac_dummy; do
20934 test -z "$ac_dir" && ac_dir=.
20935 $as_executable_p "$ac_dir/$ac_word" || continue
20936 ac_cv_prog_M4_exists="yes"
20937 echo "$as_me:20937: found $ac_dir/$ac_word" >&5
20941 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
20944 M4_exists=$ac_cv_prog_M4_exists
20945 if test -n "$M4_exists"; then
20946 echo "$as_me:20946: result: $M4_exists" >&5
20947 echo "${ECHO_T}$M4_exists" >&6
20949 echo "$as_me:20949: result: no" >&5
20950 echo "${ECHO_T}no" >&6
20953 if test "$ac_cv_prog_M4_exists" = no; then
20954 cf_cv_prog_gnat_correct=no
20955 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
20957 if test "$cf_cv_prog_gnat_correct" = yes; then
20958 echo "$as_me:20958: checking if GNAT works" >&5
20959 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
20961 rm -rf conftest* *~conftest*
20962 cat >>conftest.ads <<CF_EOF
20963 procedure conftest;
20965 cat >>conftest.adb <<CF_EOF
20968 procedure conftest is
20970 Text_IO.Put ("Hello World");
20972 GNAT.OS_Lib.OS_Exit (0);
20975 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20976 if ( ./conftest 1>&5 2>&1 ) ; then
20977 cf_cv_prog_gnat_correct=yes
20979 cf_cv_prog_gnat_correct=no
20982 cf_cv_prog_gnat_correct=no
20984 rm -rf conftest* *~conftest*
20986 echo "$as_me:20986: result: $cf_cv_prog_gnat_correct" >&5
20987 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
20991 if test "x$cf_cv_prog_gnat_correct" = xyes; then
20993 ADAFLAGS="$ADAFLAGS -gnatpn"
20995 echo "$as_me:20995: checking optimization options for ADAFLAGS" >&5
20996 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
21000 ADAFLAGS="$ADAFLAGS -g"
21006 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
21008 ADAFLAGS="$ADAFLAGS $cf_O_flag"
21012 echo "$as_me:21012: result: $ADAFLAGS" >&5
21013 echo "${ECHO_T}$ADAFLAGS" >&6
21015 echo "$as_me:21015: checking if GNATPREP supports -T option" >&5
21016 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
21017 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 cf_cv_gnatprep_opt_t=no
21022 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
21025 echo "$as_me:21025: result: $cf_cv_gnatprep_opt_t" >&5
21026 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
21027 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
21029 echo "$as_me:21029: checking if GNAT supports generics" >&5
21030 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
21031 case $cf_gnat_version in
21033 cf_gnat_generics=yes
21036 cf_gnat_generics=no
21039 echo "$as_me:21039: result: $cf_gnat_generics" >&5
21040 echo "${ECHO_T}$cf_gnat_generics" >&6
21042 if test "$cf_gnat_generics" = yes
21044 cf_compile_generics=generics
21045 cf_generic_objects="\${GENOBJS}"
21047 cf_compile_generics=
21048 cf_generic_objects=
21051 echo "$as_me:21051: checking if GNAT supports SIGINT" >&5
21052 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
21053 if test "${cf_cv_gnat_sigint+set}" = set; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 rm -rf conftest* *~conftest*
21058 cat >>conftest.ads <<CF_EOF
21059 with Ada.Interrupts.Names;
21061 package ConfTest is
21063 pragma Warnings (Off); -- the next pragma exists since 3.11p
21064 pragma Unreserve_All_Interrupts;
21065 pragma Warnings (On);
21067 protected Process is
21069 function Continue return Boolean;
21070 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
21072 Done : Boolean := False;
21077 cat >>conftest.adb <<CF_EOF
21078 package body ConfTest is
21079 protected body Process is
21084 function Continue return Boolean is
21091 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21092 cf_cv_gnat_sigint=yes
21094 cf_cv_gnat_sigint=no
21096 rm -rf conftest* *~conftest*
21099 echo "$as_me:21099: result: $cf_cv_gnat_sigint" >&5
21100 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
21102 if test $cf_cv_gnat_sigint = yes ; then
21105 USE_GNAT_SIGINT="#"
21108 cf_gnat_libraries=no
21109 cf_gnat_projects=no
21111 if test "$enable_gnat_projects" != no ; then
21112 echo "$as_me:21112: checking if GNAT supports project files" >&5
21113 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
21114 case $cf_gnat_version in
21118 case $cf_cv_system_name in
21122 mkdir conftest.src conftest.bin conftest.lib
21124 rm -rf conftest* *~conftest*
21125 cat >>library.gpr <<CF_EOF
21127 Kind := External ("LIB_KIND");
21128 for Library_Name use "ConfTest";
21129 for Object_Dir use ".";
21130 for Library_ALI_Dir use External("LIBRARY_DIR");
21131 for Library_Version use External ("SONAME");
21132 for Library_Kind use Kind;
21133 for Library_Dir use External("BUILD_DIR");
21134 Source_Dir := External ("SOURCE_DIR");
21135 for Source_Dirs use (Source_Dir);
21138 cat >>confpackage.ads <<CF_EOF
21139 package ConfPackage is
21140 procedure conftest;
21143 cat >>confpackage.adb <<CF_EOF
21145 package body ConfPackage is
21146 procedure conftest is
21148 Text_IO.Put ("Hello World");
21153 if ( $cf_ada_make $ADAFLAGS \
21155 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
21156 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
21157 -XSOURCE_DIR=`pwd` \
21158 -XSONAME=libConfTest.so.1 \
21159 -XLIB_KIND=static 1>&5 2>&1 ) ; then
21160 cf_gnat_projects=yes
21163 if test -f conftest.lib/confpackage.ali
21165 cf_gnat_libraries=yes
21167 rm -rf conftest* *~conftest*
21172 echo "$as_me:21172: result: $cf_gnat_projects" >&5
21173 echo "${ECHO_T}$cf_gnat_projects" >&6
21174 fi # enable_gnat_projects
21176 if test $cf_gnat_projects = yes
21178 echo "$as_me:21178: checking if GNAT supports libraries" >&5
21179 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
21180 echo "$as_me:21180: result: $cf_gnat_libraries" >&5
21181 echo "${ECHO_T}$cf_gnat_libraries" >&6
21184 if test "$cf_gnat_projects" = yes
21186 USE_OLD_MAKERULES="#"
21187 USE_GNAT_PROJECTS=""
21189 USE_OLD_MAKERULES=""
21190 USE_GNAT_PROJECTS="#"
21193 if test "$cf_gnat_libraries" = yes
21195 USE_GNAT_LIBRARIES=""
21197 USE_GNAT_LIBRARIES="#"
21200 echo "$as_me:21200: checking for ada-compiler" >&5
21201 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
21203 # Check whether --with-ada-compiler or --without-ada-compiler was given.
21204 if test "${with_ada_compiler+set}" = set; then
21205 withval="$with_ada_compiler"
21206 cf_ada_compiler=$withval
21208 cf_ada_compiler=gnatmake
21211 echo "$as_me:21211: result: $cf_ada_compiler" >&5
21212 echo "${ECHO_T}$cf_ada_compiler" >&6
21214 cf_ada_package=terminal_interface
21216 echo "$as_me:21216: checking for ada-include" >&5
21217 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
21219 # Check whether --with-ada-include or --without-ada-include was given.
21220 if test "${with_ada_include+set}" = set; then
21221 withval="$with_ada_include"
21224 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
21225 fi; if test -n "$prefix/share/ada/adainclude" ; then
21227 if test "x$prefix" != xNONE; then
21228 cf_path_syntax="$prefix"
21230 cf_path_syntax="$ac_default_prefix"
21233 case ".$withval" in
21234 (.\$\(*\)*|.\'*\'*)
21238 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21240 (.\${*prefix}*|.\${*dir}*)
21241 eval withval="$withval"
21242 case ".$withval" in
21244 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21249 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21252 { { echo "$as_me:21252: error: expected a pathname, not \"$withval\"" >&5
21253 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21254 { (exit 1); exit 1; }; }
21259 eval ADA_INCLUDE="$withval"
21261 echo "$as_me:21261: result: $ADA_INCLUDE" >&5
21262 echo "${ECHO_T}$ADA_INCLUDE" >&6
21264 echo "$as_me:21264: checking for ada-objects" >&5
21265 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
21267 # Check whether --with-ada-objects or --without-ada-objects was given.
21268 if test "${with_ada_objects+set}" = set; then
21269 withval="$with_ada_objects"
21272 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
21273 fi; if test -n "$prefix/lib/ada/adalib" ; then
21275 if test "x$prefix" != xNONE; then
21276 cf_path_syntax="$prefix"
21278 cf_path_syntax="$ac_default_prefix"
21281 case ".$withval" in
21282 (.\$\(*\)*|.\'*\'*)
21286 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21288 (.\${*prefix}*|.\${*dir}*)
21289 eval withval="$withval"
21290 case ".$withval" in
21292 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21297 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21300 { { echo "$as_me:21300: error: expected a pathname, not \"$withval\"" >&5
21301 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21302 { (exit 1); exit 1; }; }
21307 eval ADA_OBJECTS="$withval"
21309 echo "$as_me:21309: result: $ADA_OBJECTS" >&5
21310 echo "${ECHO_T}$ADA_OBJECTS" >&6
21312 echo "$as_me:21312: checking if an Ada95 shared-library should be built" >&5
21313 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
21315 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
21316 if test "${with_ada_sharedlib+set}" = set; then
21317 withval="$with_ada_sharedlib"
21318 with_ada_sharedlib=$withval
21320 with_ada_sharedlib=no
21322 echo "$as_me:21322: result: $with_ada_sharedlib" >&5
21323 echo "${ECHO_T}$with_ada_sharedlib" >&6
21325 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
21326 MAKE_ADA_SHAREDLIB="#"
21328 if test "x$with_ada_sharedlib" != xno
21330 MAKE_ADA_SHAREDLIB=
21331 if test "x$with_ada_sharedlib" != xyes
21333 ADA_SHAREDLIB="$with_ada_sharedlib"
21343 # do this "late" to avoid conflict with header-checks
21344 if test "x$with_widec" = xyes ; then
21345 echo "$as_me:21345: checking for wchar_t" >&5
21346 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21347 if test "${ac_cv_type_wchar_t+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 cat >conftest.$ac_ext <<_ACEOF
21351 #line 21351 "configure"
21352 #include "confdefs.h"
21353 $ac_includes_default
21359 if (sizeof (wchar_t))
21365 rm -f conftest.$ac_objext
21366 if { (eval echo "$as_me:21366: \"$ac_compile\"") >&5
21367 (eval $ac_compile) 2>&5
21369 echo "$as_me:21369: \$? = $ac_status" >&5
21370 (exit $ac_status); } &&
21371 { ac_try='test -s conftest.$ac_objext'
21372 { (eval echo "$as_me:21372: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21375 echo "$as_me:21375: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_type_wchar_t=yes
21379 echo "$as_me: failed program was:" >&5
21380 cat conftest.$ac_ext >&5
21381 ac_cv_type_wchar_t=no
21383 rm -f conftest.$ac_objext conftest.$ac_ext
21385 echo "$as_me:21385: result: $ac_cv_type_wchar_t" >&5
21386 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21388 echo "$as_me:21388: checking size of wchar_t" >&5
21389 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21390 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 if test "$ac_cv_type_wchar_t" = yes; then
21394 if test "$cross_compiling" = yes; then
21395 # Depending upon the size, compute the lo and hi bounds.
21396 cat >conftest.$ac_ext <<_ACEOF
21397 #line 21397 "configure"
21398 #include "confdefs.h"
21399 $ac_includes_default
21403 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
21408 rm -f conftest.$ac_objext
21409 if { (eval echo "$as_me:21409: \"$ac_compile\"") >&5
21410 (eval $ac_compile) 2>&5
21412 echo "$as_me:21412: \$? = $ac_status" >&5
21413 (exit $ac_status); } &&
21414 { ac_try='test -s conftest.$ac_objext'
21415 { (eval echo "$as_me:21415: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21418 echo "$as_me:21418: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21422 cat >conftest.$ac_ext <<_ACEOF
21423 #line 21423 "configure"
21424 #include "confdefs.h"
21425 $ac_includes_default
21429 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21434 rm -f conftest.$ac_objext
21435 if { (eval echo "$as_me:21435: \"$ac_compile\"") >&5
21436 (eval $ac_compile) 2>&5
21438 echo "$as_me:21438: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
21440 { ac_try='test -s conftest.$ac_objext'
21441 { (eval echo "$as_me:21441: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21444 echo "$as_me:21444: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446 ac_hi=$ac_mid; break
21448 echo "$as_me: failed program was:" >&5
21449 cat conftest.$ac_ext >&5
21450 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
21452 rm -f conftest.$ac_objext conftest.$ac_ext
21455 echo "$as_me: failed program was:" >&5
21456 cat conftest.$ac_ext >&5
21459 cat >conftest.$ac_ext <<_ACEOF
21460 #line 21460 "configure"
21461 #include "confdefs.h"
21462 $ac_includes_default
21466 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
21471 rm -f conftest.$ac_objext
21472 if { (eval echo "$as_me:21472: \"$ac_compile\"") >&5
21473 (eval $ac_compile) 2>&5
21475 echo "$as_me:21475: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -s conftest.$ac_objext'
21478 { (eval echo "$as_me:21478: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21481 echo "$as_me:21481: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_lo=$ac_mid; break
21485 echo "$as_me: failed program was:" >&5
21486 cat conftest.$ac_ext >&5
21487 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
21489 rm -f conftest.$ac_objext conftest.$ac_ext
21492 rm -f conftest.$ac_objext conftest.$ac_ext
21493 # Binary search between lo and hi bounds.
21494 while test "x$ac_lo" != "x$ac_hi"; do
21495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21496 cat >conftest.$ac_ext <<_ACEOF
21497 #line 21497 "configure"
21498 #include "confdefs.h"
21499 $ac_includes_default
21503 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:21509: \"$ac_compile\"") >&5
21510 (eval $ac_compile) 2>&5
21512 echo "$as_me:21512: \$? = $ac_status" >&5
21513 (exit $ac_status); } &&
21514 { ac_try='test -s conftest.$ac_objext'
21515 { (eval echo "$as_me:21515: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21518 echo "$as_me:21518: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21522 echo "$as_me: failed program was:" >&5
21523 cat conftest.$ac_ext >&5
21524 ac_lo=`expr $ac_mid + 1`
21526 rm -f conftest.$ac_objext conftest.$ac_ext
21528 ac_cv_sizeof_wchar_t=$ac_lo
21530 if test "$cross_compiling" = yes; then
21531 { { echo "$as_me:21531: error: cannot run test program while cross compiling" >&5
21532 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21533 { (exit 1); exit 1; }; }
21535 cat >conftest.$ac_ext <<_ACEOF
21536 #line 21536 "configure"
21537 #include "confdefs.h"
21538 $ac_includes_default
21542 FILE *f = fopen ("conftest.val", "w");
21544 $ac_main_return (1);
21545 fprintf (f, "%d", (sizeof (wchar_t)));
21551 rm -f conftest$ac_exeext
21552 if { (eval echo "$as_me:21552: \"$ac_link\"") >&5
21553 (eval $ac_link) 2>&5
21555 echo "$as_me:21555: \$? = $ac_status" >&5
21556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21557 { (eval echo "$as_me:21557: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21560 echo "$as_me:21560: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_cv_sizeof_wchar_t=`cat conftest.val`
21564 echo "$as_me: program exited with status $ac_status" >&5
21565 echo "$as_me: failed program was:" >&5
21566 cat conftest.$ac_ext >&5
21568 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21573 ac_cv_sizeof_wchar_t=0
21576 echo "$as_me:21576: result: $ac_cv_sizeof_wchar_t" >&5
21577 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21578 cat >>confdefs.h <<EOF
21579 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21584 ### Construct the ncurses library-subsets, if any, from this set of keywords:
21585 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
21587 ### ticlib modules may be a separate library, otherwise contained in termlib.
21588 ### termlib modules may be a separate library, otherwise contained in ncurses.
21590 ### The of "+" or " " between the tokens controls the way the script
21591 ### chooses to split module lists into libraries.
21593 ### (see CF_LIB_RULES).
21594 echo "$as_me:21594: checking for library subsets" >&5
21595 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
21598 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
21599 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
21600 if test "$with_ticlib" != no ; then
21601 LIB_SUBSETS="${LIB_SUBSETS} "
21603 LIB_SUBSETS="${LIB_SUBSETS}+"
21607 LIB_SUBSETS="${LIB_SUBSETS}termlib"
21608 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
21610 if test "$with_termlib" != no ; then
21611 LIB_SUBSETS="${LIB_SUBSETS} "
21613 LIB_SUBSETS="${LIB_SUBSETS}+"
21616 LIB_SUBSETS="${LIB_SUBSETS}base"
21618 # Most term-driver calls are to tinfo, but some like init_pair are to the
21619 # base library (so it resides in base).
21620 if test "$with_term_driver" != no ; then
21621 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
21622 case $cf_cv_system_name in
21623 (*mingw32*|*mingw64*)
21624 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
21625 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
21628 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
21633 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
21634 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
21636 echo "$as_me:21636: result: $LIB_SUBSETS" >&5
21637 echo "${ECHO_T}$LIB_SUBSETS" >&6
21639 ### Construct the list of include-directories to be generated
21641 if test "$srcdir" != "."; then
21642 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
21644 CPPFLAGS="-I../include $CPPFLAGS"
21645 if test "$srcdir" != "."; then
21646 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
21648 CPPFLAGS="-I. $CPPFLAGS"
21650 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
21651 if test "$srcdir" != "."; then
21652 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
21654 if test "$GCC" != yes; then
21655 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21656 elif test "$includedir" != "/usr/include"; then
21657 if test "$includedir" = '${prefix}/include' ; then
21658 if test x$prefix != x/usr ; then
21659 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21662 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21666 ### Build up pieces for makefile rules
21667 echo "$as_me:21667: checking default library suffix" >&5
21668 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
21670 case $DFT_LWR_MODEL in
21671 (libtool) DFT_ARG_SUFFIX='' ;;
21672 (normal) DFT_ARG_SUFFIX='' ;;
21673 (debug) DFT_ARG_SUFFIX='_g' ;;
21674 (profile) DFT_ARG_SUFFIX='_p' ;;
21675 (shared) DFT_ARG_SUFFIX='' ;;
21677 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
21678 echo "$as_me:21678: result: $DFT_ARG_SUFFIX" >&5
21679 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
21681 echo "$as_me:21681: checking default library-dependency suffix" >&5
21682 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
21684 case X$DFT_LWR_MODEL in
21686 DFT_LIB_SUFFIX='.la'
21687 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21690 DFT_LIB_SUFFIX='_g.a'
21691 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21694 DFT_LIB_SUFFIX='_p.a'
21695 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21698 case $cf_cv_system_name in
21700 DFT_LIB_SUFFIX='.so'
21701 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21703 (cygwin*|msys*|mingw*)
21704 DFT_LIB_SUFFIX='.dll'
21705 DFT_DEP_SUFFIX='.dll.a'
21708 DFT_LIB_SUFFIX='.dylib'
21709 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21714 DFT_LIB_SUFFIX='.so'
21715 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21718 DFT_LIB_SUFFIX='.sl'
21719 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21724 DFT_LIB_SUFFIX='.so'
21725 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21730 DFT_LIB_SUFFIX='.a'
21731 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21734 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21736 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
21737 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
21739 echo "$as_me:21739: result: $DFT_DEP_SUFFIX" >&5
21740 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
21742 echo "$as_me:21742: checking default object directory" >&5
21743 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
21745 case $DFT_LWR_MODEL in
21746 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
21747 (normal) DFT_OBJ_SUBDIR='objects' ;;
21748 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
21749 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
21751 case $cf_cv_system_name in
21753 DFT_OBJ_SUBDIR='objects' ;;
21755 DFT_OBJ_SUBDIR='obj_s' ;;
21758 echo "$as_me:21758: result: $DFT_OBJ_SUBDIR" >&5
21759 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
21761 if test "x$cf_with_cxx" = xyes ; then
21762 echo "$as_me:21762: checking c++ library-dependency suffix" >&5
21763 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
21764 if test "$with_libtool" != "no"; then
21765 # libtool thinks it can make c++ shared libraries (perhaps only g++)
21766 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21767 elif test "$with_shared_cxx" != "no"; then
21768 # also for g++ users...
21769 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21771 # we normally make a static library because C/C++ library rules differ
21775 CXX_LIB_SUFFIX='.la'
21776 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21779 CXX_LIB_SUFFIX='_g.a'
21780 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21783 CXX_LIB_SUFFIX='_p.a'
21784 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21787 case $cf_cv_system_name in
21789 CXX_LIB_SUFFIX='.so'
21790 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21792 (cygwin*|msys*|mingw*)
21793 CXX_LIB_SUFFIX='.dll'
21794 CXX_DEP_SUFFIX='.dll.a'
21797 CXX_LIB_SUFFIX='.dylib'
21798 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21803 CXX_LIB_SUFFIX='.so'
21804 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21807 CXX_LIB_SUFFIX='.sl'
21808 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21813 CXX_LIB_SUFFIX='.so'
21814 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21819 CXX_LIB_SUFFIX='.a'
21820 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21823 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21825 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
21826 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
21830 echo "$as_me:21830: result: $CXX_LIB_SUFFIX" >&5
21831 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
21835 # do not want -ldl in build except as needed for -lncurses dependency
21836 if test "x$with_dlsym" = xyes ; then
21837 if test $DFT_LWR_MODEL = shared || \
21838 test $DFT_LWR_MODEL = libtool ; then
21840 # remove dl library from $LIBS
21841 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21845 ### Set up low-level terminfo dependencies for makefiles.
21847 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
21848 # do not need libdl
21850 if test "x$with_dlsym" = xyes ; then
21852 # remove dl library from $SHLIB_LIST
21853 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21857 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
21858 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
21859 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
21860 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
21862 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
21865 if test "$with_ticlib" != no ; then
21867 if test "x$with_ticlib" != xyes ; then
21868 TICS_NAME=$with_ticlib
21869 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21870 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21871 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21872 TICS_LIB_SUFFIX="${with_ticlib}"
21874 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21875 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
21876 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
21877 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
21879 TICS_LDFLAGS="-L${LIB_DIR}"
21880 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
21882 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21883 TICS_LDFLAGS="-L${LIB_DIR}"
21884 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21887 if test "$with_termlib" != no ; then
21889 if test "x$with_termlib" != xyes ; then
21890 TINFO_NAME=$with_termlib
21891 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21892 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21893 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21894 TINFO_LIB_SUFFIX="${with_termlib}"
21896 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21897 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
21898 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
21899 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
21902 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21903 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21904 if test "$DFT_LWR_MODEL" = "libtool"; then
21905 TEST_ARGS="${TEST_DEPS}"
21906 TEST_ARG2="${TEST_DEP2}"
21907 TINFO_LDFLAGS="-L${LIB_DIR}"
21908 TINFO_LIBS="$TEST_ARGS"
21909 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
21910 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
21912 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
21913 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
21914 if test "x$with_term_driver" != xno ; then
21915 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21916 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
21917 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
21919 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21920 TINFO_LIBS="$TEST_ARGS"
21922 TINFO_LDFLAGS="-L${LIB_DIR}"
21923 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21926 # the next lines are needed for linking libtic over libncurses
21927 TINFO_NAME=${LIB_NAME}
21928 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21929 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
21930 if test "x$with_tic_depends" = xyes ; then
21931 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21933 TICS_LIST="$SHLIB_LIST"
21936 TINFO_LDFLAGS="-L${LIB_DIR}"
21937 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21940 if test "$DFT_LWR_MODEL" = shared ; then
21941 case $cf_cv_system_name in
21943 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
21949 if test "x$with_dlsym" = xyes ; then
21951 # remove dl library from $TICS_LIST
21952 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21956 if test "$DFT_LWR_MODEL" = "libtool"; then
21961 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
21963 case $DFT_LWR_MODEL in
21964 (normal|debug|profile)
21966 if test "$GCC" = yes ; then
21967 case $cf_cv_system_name in
21968 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
21972 (*) # normally, except when broken
21973 LDFLAGS_STATIC=-static
21974 LDFLAGS_SHARED=-dynamic
21978 case $cf_cv_system_name in
21979 (aix[4-7]*) # from ld manpage
21980 LDFLAGS_STATIC=-bstatic
21981 LDFLAGS_SHARED=-bdynamic
21983 (hpux*) # from ld manpage for hpux10.20, hpux11.11
21984 # We could also use just "archive" and "shared".
21985 LDFLAGS_STATIC=-Wl,-a,archive_shared
21986 LDFLAGS_SHARED=-Wl,-a,shared_archive
21988 (irix*) # from ld manpage IRIX64
21989 LDFLAGS_STATIC=-Bstatic
21990 LDFLAGS_SHARED=-Bdynamic
21992 (osf[45]*) # from ld manpage osf4.0d, osf5.1
21993 # alternative "-oldstyle_liblookup" (not in cc manpage)
21994 LDFLAGS_STATIC=-noso
21995 LDFLAGS_SHARED=-so_archive
21998 LDFLAGS_STATIC=-Bstatic
21999 LDFLAGS_SHARED=-Bdynamic
22004 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
22006 echo "$as_me:22006: checking if linker supports switching between static/dynamic" >&5
22007 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
22009 rm -f libconftest.a
22010 cat >conftest.$ac_ext <<EOF
22011 #line 22011 "configure"
22013 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
22015 if { (eval echo "$as_me:22015: \"$ac_compile\"") >&5
22016 (eval $ac_compile) 2>&5
22018 echo "$as_me:22018: \$? = $ac_status" >&5
22019 (exit $ac_status); } ; then
22020 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
22021 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
22025 cf_save_LIBS="$LIBS"
22027 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
22028 cat >conftest.$ac_ext <<_ACEOF
22029 #line 22029 "configure"
22030 #include "confdefs.h"
22032 #line 22032 "configure"
22034 int cf_ldflags_static(FILE *fp);
22040 return cf_ldflags_static(stdin);
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (eval echo "$as_me:22047: \"$ac_link\"") >&5
22048 (eval $ac_link) 2>&5
22050 echo "$as_me:22050: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try='test -s conftest$ac_exeext'
22053 { (eval echo "$as_me:22053: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:22056: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22059 # some linkers simply ignore the -dynamic
22060 case x`file conftest$ac_exeext 2>/dev/null` in
22062 cf_ldflags_static=no
22065 cf_ldflags_static=yes
22070 echo "$as_me: failed program was:" >&5
22071 cat conftest.$ac_ext >&5
22072 cf_ldflags_static=no
22074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22076 rm -f libconftest.*
22077 LIBS="$cf_save_LIBS"
22079 echo "$as_me:22079: result: $cf_ldflags_static" >&5
22080 echo "${ECHO_T}$cf_ldflags_static" >&6
22082 if test $cf_ldflags_static != yes
22095 echo "$as_me:22095: checking where we will install curses.h" >&5
22096 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
22099 if test "$with_overwrite" = no && \
22100 ( test "x$includedir" = 'x${prefix}/include' || \
22101 test "x$includedir" = "x${prefix}/include" )
22103 includesubdir="/ncurses${USE_LIB_SUFFIX}"
22105 echo "$as_me:22105: result: ${includedir}${includesubdir}" >&5
22106 echo "${ECHO_T}${includedir}${includesubdir}" >&6
22108 ### Resolve a conflict between normal and wide-curses by forcing applications
22109 ### that will need libutf8 to add it to their configure script.
22110 if test "$with_overwrite" != no ; then
22111 if test "$NCURSES_LIBUTF8" = 1 ; then
22112 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
22113 { echo "$as_me:22113: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
22114 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
22117 WITH_OVERWRITE=$with_overwrite
22119 # used to separate tack out of the tree
22122 ### predefined stuff for the test programs
22124 cat >>confdefs.h <<\EOF
22125 #define HAVE_SLK_COLOR 1
22128 ### Construct the list of subdirectories for which we'll customize makefiles
22129 ### with the appropriate compile-rules.
22131 echo "$as_me:22131: checking for src modules" >&5
22132 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
22134 # dependencies and linker-arguments for test-programs
22135 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
22136 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
22137 if test "$DFT_LWR_MODEL" = "libtool"; then
22138 TEST_ARGS="${TEST_DEPS}"
22139 TEST_ARG2="${TEST_DEP2}"
22141 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22142 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
22145 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
22147 for cf_dir in $modules_to_build
22149 if test -f $srcdir/$cf_dir/modules; then
22151 # We may/may not have tack in the distribution, though the
22153 if test $cf_dir = tack ; then
22154 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
22159 if test -z "$cf_cv_src_modules"; then
22160 cf_cv_src_modules=$cf_dir
22162 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
22165 # Make the ncurses_cfg.h file record the library interface files as
22166 # well. These are header files that are the same name as their
22167 # directory. Ncurses is the only library that does not follow
22169 if test $cf_dir = tack ; then
22171 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
22173 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22175 cat >>confdefs.h <<EOF
22176 #define HAVE_${cf_have_include}_H 1
22179 cat >>confdefs.h <<EOF
22180 #define HAVE_LIB${cf_have_include} 1
22183 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
22184 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
22185 if test "$DFT_LWR_MODEL" = "libtool"; then
22186 TEST_ARGS="${TEST_DEPS}"
22187 TEST_ARG2="${TEST_DEP2}"
22189 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
22190 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
22192 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
22196 echo "$as_me:22196: result: $cf_cv_src_modules" >&5
22197 echo "${ECHO_T}$cf_cv_src_modules" >&6
22199 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
22200 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
22203 if test "x$cf_with_manpages" != xno ; then
22204 SRC_SUBDIRS="$SRC_SUBDIRS man"
22206 SRC_SUBDIRS="$SRC_SUBDIRS include"
22207 for cf_dir in $cf_cv_src_modules
22209 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
22211 if test "x$cf_with_tests" != "xno" ; then
22212 SRC_SUBDIRS="$SRC_SUBDIRS test"
22214 # always make this, to install the ncurses-config script
22215 SRC_SUBDIRS="$SRC_SUBDIRS misc"
22216 if test "$cf_with_cxx_binding" != no; then
22217 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
22218 SRC_SUBDIRS="$SRC_SUBDIRS c++"
22221 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
22222 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
22225 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
22226 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
22227 ADA_SUBDIRS="gen src"
22228 if test "x$cf_with_tests" != "xno" ; then
22229 ADA_SUBDIRS="$ADA_SUBDIRS samples"
22234 for cf_dir in $SRC_SUBDIRS
22236 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
22239 if test -n "$ADA_SUBDIRS"; then
22240 for cf_dir in $ADA_SUBDIRS
22242 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
22247 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22248 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
22249 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
22253 for cf_item in $cf_list_models
22257 (libtool) cf_subdir='obj_lo' ;;
22258 (normal) cf_subdir='objects' ;;
22259 (debug) cf_subdir='obj_g' ;;
22260 (profile) cf_subdir='obj_p' ;;
22262 case $cf_cv_system_name in
22264 cf_subdir='objects' ;;
22266 cf_subdir='obj_s' ;;
22270 for cf_item2 in $DIRS_TO_MAKE
22272 test $cf_item2 = $cf_subdir && break
22274 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
22276 for cf_dir in $DIRS_TO_MAKE
22278 test ! -d $cf_dir && mkdir $cf_dir
22281 # symbols that differ when compiling Ada95 by itself.
22282 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
22284 # values to use as strings
22286 cat >>confdefs.h <<EOF
22287 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
22290 cat >>confdefs.h <<EOF
22291 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
22294 ### Now that we're done running tests, add the compiler-warnings, if any
22299 cf_new_extra_cppflags=
22301 for cf_add_cflags in $EXTRA_CFLAGS
22303 case $cf_fix_cppflags in
22305 case $cf_add_cflags in
22306 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22307 case $cf_add_cflags in
22309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22311 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22312 && test -z "${cf_tst_cflags}" \
22313 && cf_fix_cppflags=yes
22315 if test $cf_fix_cppflags = yes ; then
22316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22318 elif test "${cf_tst_cflags}" = "\"'" ; then
22319 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22324 case "$CPPFLAGS" in
22328 case $cf_add_cflags in
22330 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22332 CPPFLAGS=`echo "$CPPFLAGS" | \
22333 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22334 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22338 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
22343 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
22348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
22352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22353 && test -z "${cf_tst_cflags}" \
22354 && cf_fix_cppflags=no
22359 if test -n "$cf_new_cflags" ; then
22361 CFLAGS="$CFLAGS $cf_new_cflags"
22364 if test -n "$cf_new_cppflags" ; then
22366 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
22369 if test -n "$cf_new_extra_cppflags" ; then
22371 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
22374 ### Define substitutions for header files to avoid name-pollution
22376 if test "x$cf_cv_have_tcgetattr" = xyes ; then
22382 if test "x$ac_cv_header_stdint_h" = xyes ; then
22388 if test "x$ac_cv_header_termio_h" = xyes ; then
22394 if test "x$ac_cv_header_termios_h" = xyes ; then
22400 ################################################################################
22401 test "x$use_database" = xyes && \
22402 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
22404 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
22405 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
22407 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
22408 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
22411 # Extract the first word of "tic", so it can be a program name with args.
22412 set dummy tic; ac_word=$2
22413 echo "$as_me:22413: checking for $ac_word" >&5
22414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22415 if test "${ac_cv_path_TIC_PATH+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22420 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
22423 ac_save_IFS=$IFS; IFS=$ac_path_separator
22424 ac_dummy="$PATH:/usr/local/ncurses/bin"
22425 for ac_dir in $ac_dummy; do
22427 test -z "$ac_dir" && ac_dir=.
22428 if $as_executable_p "$ac_dir/$ac_word"; then
22429 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
22430 echo "$as_me:22430: found $ac_dir/$ac_word" >&5
22435 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
22439 TIC_PATH=$ac_cv_path_TIC_PATH
22441 if test -n "$TIC_PATH"; then
22442 echo "$as_me:22442: result: $TIC_PATH" >&5
22443 echo "${ECHO_T}$TIC_PATH" >&6
22445 echo "$as_me:22445: result: no" >&5
22446 echo "${ECHO_T}no" >&6
22449 if test -n "$FALLBACK_LIST"
22451 if test "$TIC_PATH" = unknown
22453 { echo "$as_me:22453: WARNING: no tic program found for fallbacks" >&5
22454 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
22458 if test "x$cf_with_tests" != xno ; then
22464 ADAHTML_DIR=../../doc/html/ada
22466 # these could be configurable, but are not currently
22472 # workaround for OS/2 (20151017)
22473 case $cf_cv_system_name in
22475 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
22482 # workaround for g++ versus Solaris (20131116)
22483 case $cf_cv_system_name in
22485 case "x$CPPFLAGS" in
22486 (*-D_XOPEN_SOURCE_EXTENDED*)
22487 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
22489 echo "${as_me:-configure}:22489: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
22491 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
22492 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
22498 # Help to automatically enable the extended curses features when using either
22499 # the *-config or the ".pc" files by adding defines.
22500 echo "$as_me:22500: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
22501 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
22503 for cf_loop1 in $CPPFLAGS_after_XOPEN
22506 for cf_loop2 in $CPPFLAGS_before_XOPEN
22508 if test "x$cf_loop1" = "x$cf_loop2"
22514 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
22516 echo "$as_me:22516: result: $PKG_CFLAGS" >&5
22517 echo "${ECHO_T}$PKG_CFLAGS" >&6
22519 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
22520 case "x$NCURSES_OSPEED" in
22529 cat >>confdefs.h <<EOF
22530 #define NCURSES_OSPEED_COMPAT $cf_compatible
22533 case "x$cf_cv_typeof_chtype" in
22534 (xshort|xint|xlong)
22535 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
22539 case "x$cf_cv_typeof_mmask_t" in
22540 (xshort|xint|xlong)
22541 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
22545 # substitute into misc/Makefile to suppress
22546 # (un)install.data from the
22547 # (un)install rules.
22548 if test "x$cf_with_db_install" = "xno"; then
22550 MISC_UNINSTALL_DATA=
22552 MISC_INSTALL_DATA=install.data
22553 MISC_UNINSTALL_DATA=uninstall.data
22558 if test -n "$PACKAGE"
22560 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
22562 echo "package: $PACKAGE"
22568 if test -n "$RESULTING_SYMS"
22570 cf_filter_syms=$cf_dft_filter_syms
22571 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
22573 echo "${as_me:-configure}:22573: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
22577 if test "x$WILDCARD_SYMS" = xno
22582 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
22583 if test $cf_filter_syms = yes
22585 RESULTING_SYMS=resulting.map
22588 if test "x$cross_compiling" = xyes ; then
22589 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
22591 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
22594 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"
22595 ac_config_commands="$ac_config_commands default"
22596 cat >confcache <<\_ACEOF
22597 # This file is a shell script that caches the results of configure
22598 # tests run on this system so they can be shared between configure
22599 # scripts and configure runs, see configure's option --config-cache.
22600 # It is not useful on other systems. If it contains results you don't
22601 # want to keep, you may remove or edit it.
22603 # config.status only pays attention to the cache file if you give it
22604 # the --recheck option to rerun configure.
22606 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22608 # following values.
22612 # The following way of writing the cache mishandles newlines in values,
22613 # but we know of no workaround that is simple, portable, and efficient.
22614 # So, don't put newlines in cache variables' values.
22615 # Ultrix sh set writes to stderr and can't be redirected directly,
22616 # and sets the high bit in the cache file unless we assign to the vars.
22619 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22621 # `set' does not quote correctly, so add quotes (double-quote
22622 # substitution turns \\\\ into \\, and sed turns \\ into \).
22625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22628 # `set' quotes correctly as required by POSIX, so do not add quotes.
22630 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22639 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22641 if cmp -s $cache_file confcache; then :; else
22642 if test -w $cache_file; then
22643 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22644 cat confcache >$cache_file
22646 echo "not updating unwritable cache $cache_file"
22651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22652 # Let make expand exec_prefix.
22653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22657 # trailing colons and then remove the whole line if VPATH becomes empty
22658 # (actually we leave an empty line to preserve line numbers).
22659 if test "x$srcdir" = x.; then
22660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22661 s/:*\$(srcdir):*/:/;
22662 s/:*\${srcdir}:*/:/;
22664 s/^\([^=]*=[ ]*\):*/\1/;
22670 DEFS=-DHAVE_CONFIG_H
22672 : ${CONFIG_STATUS=./config.status}
22673 ac_clean_files_save=$ac_clean_files
22674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22675 { echo "$as_me:22675: creating $CONFIG_STATUS" >&5
22676 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22677 cat >$CONFIG_STATUS <<_ACEOF
22679 # Generated automatically by configure.
22680 # Run this file to recreate the current configuration.
22681 # Compiler output produced by configure, useful for debugging
22682 # configure, is in config.log if it exists.
22685 SHELL=\${CONFIG_SHELL-$SHELL}
22686 ac_cs_invocation="\$0 \$@"
22690 cat >>$CONFIG_STATUS <<\_ACEOF
22691 # Be Bourne compatible
22692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22695 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22699 # Name of the executable.
22700 as_me=`echo "$0" |sed 's,.*[\\/],,'`
22702 if expr a : '\(a\)' >/dev/null 2>&1; then
22708 rm -f conf$$ conf$$.exe conf$$.file
22710 if ln -s conf$$.file conf$$ 2>/dev/null; then
22711 # We could just check for DJGPP; but this test a) works b) is more generic
22712 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22713 if test -f conf$$.exe; then
22714 # Don't use ln at all; we don't have any links
22719 elif ln conf$$.file conf$$ 2>/dev/null; then
22724 rm -f conf$$ conf$$.exe conf$$.file
22726 as_executable_p="test -f"
22728 # Support unset when possible.
22729 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22736 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
22737 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
22738 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
22739 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
22740 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
22741 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
22742 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
22743 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
22746 # We need space, tab and new line, in precisely that order.
22752 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
22758 # Files that config.status was made for.
22759 if test -n "$ac_config_files"; then
22760 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22763 if test -n "$ac_config_headers"; then
22764 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22767 if test -n "$ac_config_links"; then
22768 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22771 if test -n "$ac_config_commands"; then
22772 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22775 cat >>$CONFIG_STATUS <<\EOF
22778 \`$as_me' instantiates files from templates according to the
22779 current configuration.
22781 Usage: $0 [OPTIONS] [FILE]...
22783 -h, --help print this help, then exit
22784 -V, --version print version number, then exit
22785 -d, --debug don't remove temporary files
22786 --recheck update $as_me by reconfiguring in the same conditions
22787 --file=FILE[:TEMPLATE]
22788 instantiate the configuration file FILE
22789 --header=FILE[:TEMPLATE]
22790 instantiate the configuration header FILE
22792 Configuration files:
22795 Configuration headers:
22798 Configuration commands:
22801 Report bugs to <dickey@invisible-island.net>."
22804 cat >>$CONFIG_STATUS <<EOF
22807 configured by $0, generated by GNU Autoconf 2.52.20150926,
22808 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22810 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22811 Free Software Foundation, Inc.
22812 This config.status script is free software; the Free Software Foundation
22813 gives unlimited permission to copy, distribute and modify it."
22818 cat >>$CONFIG_STATUS <<\EOF
22819 # If no file are specified by the user, then we need to provide default
22820 # value. By we need to know if files were specified by the user.
22826 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22827 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22829 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22833 *) # This is not an option, so the user has probably given explicit
22835 ac_need_defaults=false;;
22839 # Handling of the options.
22841 cat >>$CONFIG_STATUS <<EOF
22842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22843 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22844 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22846 cat >>$CONFIG_STATUS <<\EOF
22847 --version | --vers* | -V )
22848 echo "$ac_cs_version"; exit 0 ;;
22850 # Conflict between --help and --header
22851 { { echo "$as_me:22851: error: ambiguous option: $1
22852 Try \`$0 --help' for more information." >&5
22853 echo "$as_me: error: ambiguous option: $1
22854 Try \`$0 --help' for more information." >&2;}
22855 { (exit 1); exit 1; }; };;
22856 --help | --hel | -h )
22857 echo "$ac_cs_usage"; exit 0 ;;
22858 --debug | --d* | -d )
22860 --file | --fil | --fi | --f )
22862 CONFIG_FILES="$CONFIG_FILES $1"
22863 ac_need_defaults=false;;
22864 --header | --heade | --head | --hea )
22866 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22867 ac_need_defaults=false;;
22869 # This is an error.
22870 -*) { { echo "$as_me:22870: error: unrecognized option: $1
22871 Try \`$0 --help' for more information." >&5
22872 echo "$as_me: error: unrecognized option: $1
22873 Try \`$0 --help' for more information." >&2;}
22874 { (exit 1); exit 1; }; } ;;
22876 *) ac_config_targets="$ac_config_targets $1" ;;
22885 ## ----------------------- ##
22886 ## Running config.status. ##
22887 ## ----------------------- ##
22889 This file was extended by $as_me 2.52.20150926, executed with
22890 CONFIG_FILES = $CONFIG_FILES
22891 CONFIG_HEADERS = $CONFIG_HEADERS
22892 CONFIG_LINKS = $CONFIG_LINKS
22893 CONFIG_COMMANDS = $CONFIG_COMMANDS
22894 > $ac_cs_invocation
22895 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22900 cat >>$CONFIG_STATUS <<EOF
22902 # INIT-COMMANDS section.
22905 ### Special initialization commands, used to pass information from the
22906 ### configuration-run into config.status
22909 ALTERNATE_SYMS="$ALTERNATE_SYMS"
22910 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
22911 DFT_LWR_MODEL="$DFT_LWR_MODEL"
22913 EXTRA_SUFFIX="$EXTRA_SUFFIX"
22914 LDCONFIG="$LDCONFIG"
22915 LIBTOOL_VERSION="$LIBTOOL_VERSION"
22916 LIB_NAME="$LIB_NAME"
22917 LIB_PREFIX="$LIB_PREFIX"
22918 LIB_SUBSETS="$LIB_SUBSETS"
22919 LIB_SUFFIX="$LIB_SUFFIX"
22920 LIB_TRACING="$LIB_TRACING"
22922 MAKE_TERMINFO="$MAKE_TERMINFO"
22923 NCURSES_MAJOR="$NCURSES_MAJOR"
22924 NCURSES_MINOR="$NCURSES_MINOR"
22925 NCURSES_OSPEED="$NCURSES_OSPEED"
22926 NCURSES_PATCH="$NCURSES_PATCH"
22927 SRC_SUBDIRS="$SRC_SUBDIRS"
22928 TERMINFO="$TERMINFO"
22929 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
22930 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
22931 TICS_NAME="$TICS_NAME"
22932 TICS_SUFFIX="$TICS_SUFFIX"
22933 TIC_PATH="$TIC_PATH"
22934 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
22935 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
22936 TINFO_NAME="$TINFO_NAME"
22937 TINFO_SUFFIX="$TINFO_SUFFIX"
22938 UNALTERED_SYMS="$UNALTERED_SYMS"
22939 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
22940 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
22941 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
22942 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
22943 WILDCARD_SYMS="$WILDCARD_SYMS"
22944 WITH_CURSES_H="$with_curses_h"
22945 WITH_ECHO="${enable_echo:=yes}"
22946 WITH_OVERWRITE="$with_overwrite"
22947 cf_LIST_MODELS="$cf_list_models"
22948 cf_cv_abi_version="$cf_cv_abi_version"
22949 cf_cv_do_relink="$cf_cv_do_relink"
22950 cf_cv_do_symlinks="$cf_cv_do_symlinks"
22951 cf_cv_enable_lp64="$cf_cv_enable_lp64"
22952 cf_cv_enable_opaque="$cf_cv_enable_opaque"
22953 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
22954 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
22955 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
22956 cf_cv_rel_version="$cf_cv_rel_version"
22957 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
22958 cf_cv_shared_soname='$cf_cv_shared_soname'
22959 cf_cv_shlib_version="$cf_cv_shlib_version"
22960 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
22961 cf_cv_system_name="$cf_cv_system_name"
22962 cf_cv_term_driver="$with_term_driver"
22963 cf_with_ada="$cf_with_ada"
22964 cf_with_cxx_binding="$cf_with_cxx_binding"
22965 cf_with_db_install="$cf_with_db_install"
22966 cf_with_manpages="$cf_with_manpages"
22967 cf_with_tests="$cf_with_tests"
22970 with_shared_cxx="$with_shared_cxx"
22974 cat >>$CONFIG_STATUS <<\EOF
22975 for ac_config_target in $ac_config_targets
22977 case "$ac_config_target" in
22978 # Handling of arguments.
22979 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
22980 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
22981 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
22982 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
22983 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
22984 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
22985 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
22986 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22987 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22988 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
22989 *) { { echo "$as_me:22989: error: invalid argument: $ac_config_target" >&5
22990 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22991 { (exit 1); exit 1; }; };;
22995 # If the user did not use the arguments to specify the items to instantiate,
22996 # then the envvar interface is used. Set only those that are not.
22997 # We use the long form for the default assignment because of an extremely
22998 # bizarre bug on SunOS 4.1.3.
22999 if $ac_need_defaults; then
23000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23005 # Create a temporary directory, and hook for its removal unless debugging.
23008 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23009 trap '{ (exit 1); exit 1; }' 1 2 13 15
23012 # Create a (secure) tmp directory for tmp files.
23015 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23016 test -n "$tmp" && test -d "$tmp"
23019 tmp=$TMPDIR/cs$$-$RANDOM
23020 (umask 077 && mkdir $tmp)
23023 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23024 { (exit 1); exit 1; }
23029 cat >>$CONFIG_STATUS <<EOF
23032 # CONFIG_FILES section.
23035 # No need to generate the scripts if there are no CONFIG_FILES.
23036 # This happens for instance when ./config.status config.h
23037 if test -n "\$CONFIG_FILES"; then
23038 # Protect against being on the right side of a sed subst in config.status.
23039 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23040 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23041 s,@SHELL@,$SHELL,;t t
23042 s,@exec_prefix@,$exec_prefix,;t t
23043 s,@prefix@,$prefix,;t t
23044 s,@program_transform_name@,$program_transform_name,;t t
23045 s,@bindir@,$bindir,;t t
23046 s,@sbindir@,$sbindir,;t t
23047 s,@libexecdir@,$libexecdir,;t t
23048 s,@datarootdir@,$datarootdir,;t t
23049 s,@datadir@,$datadir,;t t
23050 s,@sysconfdir@,$sysconfdir,;t t
23051 s,@sharedstatedir@,$sharedstatedir,;t t
23052 s,@localstatedir@,$localstatedir,;t t
23053 s,@libdir@,$libdir,;t t
23054 s,@includedir@,$includedir,;t t
23055 s,@oldincludedir@,$oldincludedir,;t t
23056 s,@infodir@,$infodir,;t t
23057 s,@mandir@,$mandir,;t t
23058 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23059 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23060 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23061 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23062 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23063 s,@build_alias@,$build_alias,;t t
23064 s,@host_alias@,$host_alias,;t t
23065 s,@target_alias@,$target_alias,;t t
23066 s,@ECHO_C@,$ECHO_C,;t t
23067 s,@ECHO_N@,$ECHO_N,;t t
23068 s,@ECHO_T@,$ECHO_T,;t t
23069 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23070 s,@DEFS@,$DEFS,;t t
23071 s,@LIBS@,$LIBS,;t t
23072 s,@top_builddir@,$top_builddir,;t t
23073 s,@EGREP@,$EGREP,;t t
23074 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
23075 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
23076 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
23077 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23078 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23079 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
23080 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
23081 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
23082 s,@VERSION@,$VERSION,;t t
23083 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
23084 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
23085 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
23086 s,@PACKAGE@,$PACKAGE,;t t
23087 s,@build@,$build,;t t
23088 s,@build_cpu@,$build_cpu,;t t
23089 s,@build_vendor@,$build_vendor,;t t
23090 s,@build_os@,$build_os,;t t
23091 s,@host@,$host,;t t
23092 s,@host_cpu@,$host_cpu,;t t
23093 s,@host_vendor@,$host_vendor,;t t
23094 s,@host_os@,$host_os,;t t
23095 s,@target@,$target,;t t
23096 s,@target_cpu@,$target_cpu,;t t
23097 s,@target_vendor@,$target_vendor,;t t
23098 s,@target_os@,$target_os,;t t
23100 s,@CFLAGS@,$CFLAGS,;t t
23101 s,@LDFLAGS@,$LDFLAGS,;t t
23102 s,@CPPFLAGS@,$CPPFLAGS,;t t
23103 s,@ac_ct_CC@,$ac_ct_CC,;t t
23104 s,@EXEEXT@,$EXEEXT,;t t
23105 s,@OBJEXT@,$OBJEXT,;t t
23106 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23108 s,@LDCONFIG@,$LDCONFIG,;t t
23110 s,@CXXFLAGS@,$CXXFLAGS,;t t
23111 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23113 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23114 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23115 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23116 s,@LINT@,$LINT,;t t
23117 s,@LINT_OPTS@,$LINT_OPTS,;t t
23118 s,@LN_S@,$LN_S,;t t
23119 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23120 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23121 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
23122 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
23123 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
23124 s,@SET_MAKE@,$SET_MAKE,;t t
23125 s,@CTAGS@,$CTAGS,;t t
23126 s,@ETAGS@,$ETAGS,;t t
23127 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
23128 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
23129 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
23130 s,@RANLIB@,$RANLIB,;t t
23131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23133 s,@ac_ct_LD@,$ac_ct_LD,;t t
23135 s,@ac_ct_AR@,$ac_ct_AR,;t t
23137 s,@ac_ct_NM@,$ac_ct_NM,;t t
23138 s,@ARFLAGS@,$ARFLAGS,;t t
23139 s,@DESTDIR@,$DESTDIR,;t t
23140 s,@BUILD_CC@,$BUILD_CC,;t t
23141 s,@BUILD_CPP@,$BUILD_CPP,;t t
23142 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
23143 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
23144 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
23145 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
23146 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
23147 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
23148 s,@cf_list_models@,$cf_list_models,;t t
23149 s,@ABI_VERSION@,$ABI_VERSION,;t t
23150 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
23151 s,@LIBTOOL@,$LIBTOOL,;t t
23152 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
23153 s,@LT_UNDEF@,$LT_UNDEF,;t t
23154 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
23155 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
23156 s,@LIB_CREATE@,$LIB_CREATE,;t t
23157 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
23158 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
23159 s,@LIB_PREP@,$LIB_PREP,;t t
23160 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
23161 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
23162 s,@LIB_LINK@,$LIB_LINK,;t t
23163 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
23164 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
23165 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
23166 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
23167 s,@TICS_NAME@,$TICS_NAME,;t t
23168 s,@TINFO_NAME@,$TINFO_NAME,;t t
23169 s,@LIB_NAME@,$LIB_NAME,;t t
23170 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
23171 s,@CC_G_OPT@,$CC_G_OPT,;t t
23172 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
23173 s,@LD_MODEL@,$LD_MODEL,;t t
23174 s,@shlibdir@,$shlibdir,;t t
23175 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
23176 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
23177 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
23178 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
23179 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
23180 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
23181 s,@LINK_PROGS@,$LINK_PROGS,;t t
23182 s,@LINK_TESTS@,$LINK_TESTS,;t t
23183 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
23184 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
23185 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
23186 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
23187 s,@RPATH_LIST@,$RPATH_LIST,;t t
23188 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
23189 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
23190 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
23191 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
23192 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
23193 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
23194 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
23195 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
23196 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
23197 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
23198 s,@XTERM_KBS@,$XTERM_KBS,;t t
23199 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
23200 s,@TERMINFO@,$TERMINFO,;t t
23201 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
23202 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
23203 s,@TERMPATH@,$TERMPATH,;t t
23204 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
23205 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
23206 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
23207 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
23208 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
23209 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
23210 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
23211 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
23212 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
23213 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
23214 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
23215 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
23216 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
23217 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
23218 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
23219 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
23220 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
23221 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
23222 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
23223 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
23224 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
23225 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
23226 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
23227 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
23228 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
23229 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
23230 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
23231 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
23232 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
23233 s,@PTHREAD@,$PTHREAD,;t t
23234 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
23235 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
23236 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
23237 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
23238 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
23239 s,@ECHO_LT@,$ECHO_LT,;t t
23240 s,@ECHO_LD@,$ECHO_LD,;t t
23241 s,@RULE_CC@,$RULE_CC,;t t
23242 s,@SHOW_CC@,$SHOW_CC,;t t
23243 s,@ECHO_CC@,$ECHO_CC,;t t
23244 s,@ECHO_LINK@,$ECHO_LINK,;t t
23245 s,@ADAFLAGS@,$ADAFLAGS,;t t
23246 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
23247 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
23248 s,@ADA_TRACE@,$ADA_TRACE,;t t
23249 s,@MATH_LIB@,$MATH_LIB,;t t
23250 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
23251 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
23252 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
23253 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
23254 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
23255 s,@TEST_LIBS@,$TEST_LIBS,;t t
23256 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
23257 s,@CXXCPP@,$CXXCPP,;t t
23258 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
23259 s,@CXX_AR@,$CXX_AR,;t t
23260 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
23261 s,@CXXLIBS@,$CXXLIBS,;t t
23262 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
23263 s,@gnat_exists@,$gnat_exists,;t t
23264 s,@M4_exists@,$M4_exists,;t t
23265 s,@cf_ada_make@,$cf_ada_make,;t t
23266 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
23267 s,@cf_compile_generics@,$cf_compile_generics,;t t
23268 s,@cf_generic_objects@,$cf_generic_objects,;t t
23269 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
23270 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
23271 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
23272 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
23273 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
23274 s,@cf_ada_package@,$cf_ada_package,;t t
23275 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
23276 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
23277 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
23278 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
23279 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
23280 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
23281 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
23282 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
23283 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
23284 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
23285 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
23286 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
23287 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
23288 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
23289 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
23290 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
23291 s,@TICS_LIBS@,$TICS_LIBS,;t t
23292 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
23293 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
23294 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
23295 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23296 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23297 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
23298 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23299 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23300 s,@includesubdir@,$includesubdir,;t t
23301 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
23302 s,@TICS_LIST@,$TICS_LIST,;t t
23303 s,@TINFO_LIST@,$TINFO_LIST,;t t
23304 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
23305 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
23306 s,@TEST_ARGS@,$TEST_ARGS,;t t
23307 s,@TEST_DEPS@,$TEST_DEPS,;t t
23308 s,@TEST_ARG2@,$TEST_ARG2,;t t
23309 s,@TEST_DEP2@,$TEST_DEP2,;t t
23310 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
23311 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
23312 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
23313 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
23314 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
23315 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
23316 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
23317 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
23318 s,@cross_compiling@,$cross_compiling,;t t
23319 s,@TIC_PATH@,$TIC_PATH,;t t
23320 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
23321 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
23322 s,@PANEL_NAME@,$PANEL_NAME,;t t
23323 s,@MENU_NAME@,$MENU_NAME,;t t
23324 s,@FORM_NAME@,$FORM_NAME,;t t
23325 s,@CXX_NAME@,$CXX_NAME,;t t
23326 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
23327 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
23328 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
23329 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
23330 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
23331 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
23336 cat >>$CONFIG_STATUS <<\EOF
23337 # Split the substitutions into bite-sized pieces for seds with
23338 # small command number limits, like on Digital OSF/1 and HP-UX.
23339 ac_max_sed_lines=48
23340 ac_sed_frag=1 # Number of current file.
23341 ac_beg=1 # First line for current file.
23342 ac_end=$ac_max_sed_lines # Line after last line for current file.
23345 while $ac_more_lines; do
23346 if test $ac_beg -gt 1; then
23347 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23349 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23351 if test ! -s $tmp/subs.frag; then
23352 ac_more_lines=false
23354 # The purpose of the label and of the branching condition is to
23355 # speed up the sed processing (if there are no `@' at all, there
23356 # is no need to browse any of the substitutions).
23357 # These are the two extra sed commands mentioned above.
23359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23360 # It is possible to make a multiline substitution using escaped newlines.
23361 # Ensure that we do not split the substitution between script fragments.
23363 ac_END=`expr $ac_end + $ac_max_sed_lines`
23364 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
23365 if test -s $tmp/subs.next; then
23366 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
23367 if test ! -s $tmp/subs.edit; then
23368 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
23369 if test ! -s $tmp/subs.edit; then
23370 if test $ac_beg -gt 1; then
23371 ac_end=`expr $ac_end - 1`
23378 if test -z "$ac_sed_cmds"; then
23379 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23381 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23383 ac_sed_frag=`expr $ac_sed_frag + 1`
23385 ac_end=`expr $ac_end + $ac_max_sed_lines`
23388 if test -z "$ac_sed_cmds"; then
23391 fi # test -n "$CONFIG_FILES"
23394 cat >>$CONFIG_STATUS <<\EOF
23395 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23398 - | *:- | *:-:* ) # input from stdin
23400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23404 * ) ac_file_in=$ac_file.in ;;
23407 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23408 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23409 X"$ac_file" : 'X\(//\)[^/]' \| \
23410 X"$ac_file" : 'X\(//\)$' \| \
23411 X"$ac_file" : 'X\(/\)' \| \
23412 . : '\(.\)' 2>/dev/null ||
23414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23416 /^X\(\/\/\)$/{ s//\1/; q; }
23417 /^X\(\/\).*/{ s//\1/; q; }
23419 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23420 { case "$ac_dir" in
23421 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23425 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23426 case $as_mkdir_dir in
23427 # Skip DOS drivespec
23428 ?:) as_incr_dir=$as_mkdir_dir ;;
23430 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23431 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23436 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
23437 # A "../" for each directory in $ac_dir_suffix.
23438 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
23440 ac_dir_suffix= ac_dots=
23445 if test -z "$ac_dots"; then
23448 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
23450 [\\/]* | ?:[\\/]* )
23451 ac_srcdir=$srcdir$ac_dir_suffix;
23452 ac_top_srcdir=$srcdir ;;
23453 *) # Relative path.
23454 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
23455 ac_top_srcdir=$ac_dots$srcdir ;;
23459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23460 *) ac_INSTALL=$ac_dots$INSTALL ;;
23463 if test x"$ac_file" != x-; then
23464 { echo "$as_me:23464: creating $ac_file" >&5
23465 echo "$as_me: creating $ac_file" >&6;}
23468 # Let's still pretend it is `configure' which instantiates (i.e., don't
23469 # use $as_me), people would be surprised to read:
23470 # /* config.h. Generated automatically by config.status. */
23471 configure_input="Generated automatically from `echo $ac_file_in |
23472 sed 's,.*/,,'` by configure."
23474 # First look for the input files in the build tree, otherwise in the
23476 ac_file_inputs=`IFS=:
23477 for f in $ac_file_in; do
23479 -) echo $tmp/stdin ;;
23481 # Absolute (can't be DOS-style, as IFS=:)
23482 test -f "$f" || { { echo "$as_me:23482: error: cannot find input file: $f" >&5
23483 echo "$as_me: error: cannot find input file: $f" >&2;}
23484 { (exit 1); exit 1; }; }
23487 if test -f "$f"; then
23490 elif test -f "$srcdir/$f"; then
23495 { { echo "$as_me:23495: error: cannot find input file: $f" >&5
23496 echo "$as_me: error: cannot find input file: $f" >&2;}
23497 { (exit 1); exit 1; }; }
23500 done` || { (exit 1); exit 1; }
23502 cat >>$CONFIG_STATUS <<\EOF
23503 ac_warn_datarootdir=no
23504 if test x"$ac_file" != x-; then
23505 for ac_item in $ac_file_inputs
23507 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
23508 if test -n "$ac_seen"; then
23509 ac_used=`grep '@datarootdir@' $ac_item`
23510 if test -z "$ac_used"; then
23511 { echo "$as_me:23511: WARNING: datarootdir was used implicitly but not set:
23513 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
23515 ac_warn_datarootdir=yes
23518 ac_seen=`grep '${datarootdir}' $ac_item`
23519 if test -n "$ac_seen"; then
23520 { echo "$as_me:23520: WARNING: datarootdir was used explicitly but not set:
23522 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
23524 ac_warn_datarootdir=yes
23529 if test "x$ac_warn_datarootdir" = xyes; then
23530 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
23534 cat >>$CONFIG_STATUS <<EOF
23538 cat >>$CONFIG_STATUS <<\EOF
23540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23541 s,@configure_input@,$configure_input,;t t
23542 s,@srcdir@,$ac_srcdir,;t t
23543 s,@top_srcdir@,$ac_top_srcdir,;t t
23544 s,@INSTALL@,$ac_INSTALL,;t t
23545 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23547 if test x"$ac_file" != x-; then
23548 cp $tmp/out $ac_file
23550 for ac_name in prefix exec_prefix datarootdir
23552 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
23553 if test -n "$ac_seen"; then
23554 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
23555 if test -z "$ac_init"; then
23556 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
23557 { echo "$as_me:23557: WARNING: Variable $ac_name is used but was not set:
23559 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
23564 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
23565 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
23566 if test -s $tmp/out; then
23567 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
23568 { echo "$as_me:23568: WARNING: Some variables may not be substituted:
23570 echo "$as_me: WARNING: Some variables may not be substituted:
23580 cat >>$CONFIG_STATUS <<\EOF
23583 # CONFIG_HEADER section.
23586 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23587 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23589 # ac_d sets the value in "#define NAME VALUE" lines.
23590 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23591 ac_dB='[ ].*$,\1#\2'
23594 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23595 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23596 ac_iB='\([ ]\),\1#\2define\3'
23599 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23600 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23601 ac_uB='$,\1#\2define\3'
23605 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23608 - | *:- | *:-:* ) # input from stdin
23610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23614 * ) ac_file_in=$ac_file.in ;;
23617 test x"$ac_file" != x- && { echo "$as_me:23617: creating $ac_file" >&5
23618 echo "$as_me: creating $ac_file" >&6;}
23620 # First look for the input files in the build tree, otherwise in the
23622 ac_file_inputs=`IFS=:
23623 for f in $ac_file_in; do
23625 -) echo $tmp/stdin ;;
23627 # Absolute (can't be DOS-style, as IFS=:)
23628 test -f "$f" || { { echo "$as_me:23628: error: cannot find input file: $f" >&5
23629 echo "$as_me: error: cannot find input file: $f" >&2;}
23630 { (exit 1); exit 1; }; }
23633 if test -f "$f"; then
23636 elif test -f "$srcdir/$f"; then
23641 { { echo "$as_me:23641: error: cannot find input file: $f" >&5
23642 echo "$as_me: error: cannot find input file: $f" >&2;}
23643 { (exit 1); exit 1; }; }
23646 done` || { (exit 1); exit 1; }
23647 # Remove the trailing spaces.
23648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23652 # Transform confdefs.h into a list of #define's. We won't use it as a sed
23653 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
23654 # be either 'cat' or 'sort'.
23655 cat confdefs.h | uniq >conftest.vals
23657 # Break up conftest.vals because some shells have a limit on
23658 # the size of here documents, and old seds have small limits too.
23660 rm -f conftest.tail
23661 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
23662 while grep . conftest.vals >/dev/null
23664 # Write chunks of a limited-size here document to conftest.frag.
23665 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
23666 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
23667 echo 'CEOF' >> $CONFIG_STATUS
23668 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23669 rm -f conftest.vals
23670 mv conftest.tail conftest.vals
23672 rm -f conftest.vals
23674 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
23676 echo ' cat >> conftest.edit <<CEOF
23677 /@DEFS@/r conftest.frag
23680 sed -f conftest.edit $tmp/in > $tmp/out
23682 mv $tmp/out $tmp/in
23683 rm -f conftest.edit conftest.frag
23684 ' >> $CONFIG_STATUS
23686 cat >>$CONFIG_STATUS <<\EOF
23687 # Let's still pretend it is `configure' which instantiates (i.e., don't
23688 # use $as_me), people would be surprised to read:
23689 # /* config.h. Generated automatically by config.status. */
23690 if test x"$ac_file" = x-; then
23691 echo "/* Generated automatically by configure. */" >$tmp/config.h
23693 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
23695 cat $tmp/in >>$tmp/config.h
23697 if test x"$ac_file" != x-; then
23698 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
23699 { echo "$as_me:23699: $ac_file is unchanged" >&5
23700 echo "$as_me: $ac_file is unchanged" >&6;}
23702 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703 X"$ac_file" : 'X\(//\)[^/]' \| \
23704 X"$ac_file" : 'X\(//\)$' \| \
23705 X"$ac_file" : 'X\(/\)' \| \
23706 . : '\(.\)' 2>/dev/null ||
23708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23710 /^X\(\/\/\)$/{ s//\1/; q; }
23711 /^X\(\/\).*/{ s//\1/; q; }
23713 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23714 { case "$ac_dir" in
23715 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23719 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23720 case $as_mkdir_dir in
23721 # Skip DOS drivespec
23722 ?:) as_incr_dir=$as_mkdir_dir ;;
23724 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23725 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23732 mv $tmp/config.h $ac_file
23736 rm -f $tmp/config.h
23740 cat >>$CONFIG_STATUS <<\EOF
23742 # CONFIG_COMMANDS section.
23744 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23745 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23746 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23750 if test "x$cf_with_tests" != xno ; then
23754 if test ! -d $srcdir/$cf_dir; then
23756 elif test -f $srcdir/$cf_dir/programs; then
23757 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
23763 cf_prefix=$LIB_PREFIX
23765 case $cf_cv_shlib_version in
23766 (cygdll|msysdll|mingw)
23767 TINFO_NAME=$TINFO_ARG_SUFFIX
23772 if test -n "$TINFO_SUFFIX" ; then
23773 case $TINFO_SUFFIX in
23775 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
23776 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
23779 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
23780 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
23783 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
23784 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
23789 for cf_dir in $SRC_SUBDIRS
23791 if test ! -d $srcdir/$cf_dir ; then
23793 elif test -f $srcdir/$cf_dir/modules; then
23798 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
23800 cf_awk_program="$cf_awk_program\
23801 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
23802 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
23806 if test "x$WILDCARD_SYMS" = xno
23808 cf_awk_program="$cf_awk_program\
23809 /[ ]_\\*;/ { skip=1; next; }\
23813 if test "x$cf_awk_program" != "x"
23815 cat >>$cf_dir/Makefile <<CF_EOF
23817 # Generated by CF_LIB_RULES
23818 resulting.map: $UNALTERED_SYMS
23819 $AWK 'BEGIN { skip = 1; last=""; } \
23821 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
23822 skip = 0; last = \$\$0; } \
23823 END { print last; }' < $UNALTERED_SYMS >\$@
23826 rm -f resulting.map
23830 for cf_item in $cf_LIST_MODELS
23836 cf_depsuf=$cf_suffix
23840 cf_depsuf=$cf_suffix
23844 cf_depsuf=$cf_suffix
23847 case $cf_cv_system_name in
23850 cf_depsuf=$cf_suffix
23852 (cygwin*|msys*|mingw*)
23858 cf_depsuf=$cf_suffix
23864 cf_depsuf=$cf_suffix
23868 cf_depsuf=$cf_suffix
23874 cf_depsuf=$cf_suffix
23880 cf_depsuf=$cf_suffix
23883 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23885 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
23886 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
23890 test "$cf_dir" = c++ && cf_libname=ncurses++
23891 if test $cf_item = shared ; then
23892 if test -n "${LIB_SUFFIX}"
23894 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23896 cf_shared_suffix="$cf_suffix"
23898 if test "$cf_cv_do_symlinks" = yes ; then
23901 case "$cf_cv_shlib_version" in
23903 cf_version_name=REL_VERSION
23906 cf_version_name=ABI_VERSION
23910 if test -n "$cf_version_name"
23912 case "$cf_cv_system_name" in
23915 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
23918 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
23922 if test -n "${USE_LIB_SUFFIX}"
23924 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23926 cf_shared_suffix="$cf_suffix"
23929 # cygwin needs import library, and has unique naming convention
23930 # use autodetected ${cf_prefix} for import lib and static lib, but
23931 # use 'cyg' prefix for shared lib.
23932 case $cf_cv_shlib_version in
23934 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23935 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
23938 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23939 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
23942 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23943 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
23949 if test -n "$cf_add_lib"
23951 Libs_To_Make="$Libs_To_Make $cf_add_lib"
23955 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
23956 Libs_To_Make="$Libs_To_Make $cf_add_lib"
23959 if test $cf_dir = ncurses ; then
23960 cf_subsets="$LIB_SUBSETS"
23961 cf_r_parts="$cf_subsets"
23962 cf_liblist="$Libs_To_Make"
23964 while test -n "$cf_r_parts"
23966 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
23967 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
23968 if test "$cf_l_parts" != "$cf_r_parts" ; then
23970 case $cf_l_parts in
23972 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
23975 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
23981 if test -n "$cf_add_lib"; then
23982 Libs_To_Make="$cf_add_lib $Libs_To_Make"
23989 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
23992 if test $cf_dir = c++; then
23993 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
23995 for cf_item in $Libs_To_Make
24001 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
24004 for cf_test in $cf_list
24006 if test "$cf_test" = "$cf_item"
24008 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
24013 test -n "$cf_item" && cf_list="$cf_list $cf_item"
24015 Libs_To_Make="$cf_list"
24019 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
24020 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
24021 $cf_dir/Makefile >$cf_dir/Makefile.out
24022 mv $cf_dir/Makefile.out $cf_dir/Makefile
24024 $AWK -f $srcdir/mk-0th.awk \
24025 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
24026 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24028 for cf_subset in $cf_subsets
24031 for cf_item in $cf_LIST_MODELS
24034 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
24036 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24039 if test "$CXX_MODEL" = SHARED; then
24040 case $cf_cv_shlib_version in
24041 (cygdll|msysdll|mingw)
24042 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
24044 echo "${as_me:-configure}:24044: testing overriding CXX_MODEL to SHARED ..." 1>&5
24046 with_shared_cxx=yes
24049 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
24057 cf_depsuf=$cf_suffix
24061 cf_depsuf=$cf_suffix
24065 cf_depsuf=$cf_suffix
24068 case $cf_cv_system_name in
24071 cf_depsuf=$cf_suffix
24073 (cygwin*|msys*|mingw*)
24079 cf_depsuf=$cf_suffix
24085 cf_depsuf=$cf_suffix
24089 cf_depsuf=$cf_suffix
24095 cf_depsuf=$cf_suffix
24101 cf_depsuf=$cf_suffix
24104 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24106 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24107 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24111 (libtool) cf_subdir='obj_lo' ;;
24112 (normal) cf_subdir='objects' ;;
24113 (debug) cf_subdir='obj_g' ;;
24114 (profile) cf_subdir='obj_p' ;;
24116 case $cf_cv_system_name in
24118 cf_subdir='objects' ;;
24120 cf_subdir='obj_s' ;;
24124 # Test for case where we build libtinfo with a different name.
24126 if test $cf_dir = ncurses ; then
24129 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24132 cf_libname=$TINFO_LIB_SUFFIX
24135 cf_libname=$TICS_LIB_SUFFIX
24138 elif test $cf_dir = c++ ; then
24139 cf_libname=ncurses++$USE_LIB_SUFFIX
24141 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24143 if test -n "${USE_ARG_SUFFIX}" ; then
24144 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
24145 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
24148 # These dependencies really are for development, not
24149 # builds, but they are useful in porting, too.
24150 cf_depend="../include/ncurses_cfg.h"
24151 if test "$srcdir" = "."; then
24154 cf_reldir="\${srcdir}"
24157 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
24158 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
24159 elif test -f $srcdir/$cf_dir/curses.priv.h; then
24160 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
24164 old_cf_suffix="$cf_suffix"
24165 if test "$cf_cv_shlib_version_infix" = yes ; then
24166 if test -n "$USE_LIB_SUFFIX" ; then
24167 case $USE_LIB_SUFFIX in
24169 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
24170 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
24171 cf_dir_suffix=tw$EXTRA_SUFFIX
24174 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
24175 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
24176 cf_dir_suffix=t$EXTRA_SUFFIX
24179 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
24180 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
24181 cf_dir_suffix=w$EXTRA_SUFFIX
24184 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
24185 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
24186 cf_dir_suffix=$EXTRA_SUFFIX
24192 $AWK -f $srcdir/mk-1st.awk \
24193 name=${cf_libname}${cf_dir_suffix} \
24194 traces=$LIB_TRACING \
24196 CXX_MODEL=$CXX_MODEL \
24198 prefix=$cf_prefix \
24199 suffix=$cf_suffix \
24200 subset=$cf_subset \
24201 driver=$cf_cv_term_driver \
24203 TermlibRoot=$TINFO_NAME \
24204 TermlibSuffix=$TINFO_SUFFIX \
24205 ShlibVer=$cf_cv_shlib_version \
24206 ShlibVerInfix=$cf_cv_shlib_version_infix \
24207 ReLink=${cf_cv_do_relink:-no} \
24208 DoLinks=$cf_cv_do_symlinks \
24209 rmSoLocs=$cf_cv_rm_so_locs \
24210 ldconfig="$LDCONFIG" \
24211 overwrite=$WITH_OVERWRITE \
24212 depend="$cf_depend" \
24214 libtool_version="$LIBTOOL_VERSION" \
24215 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24217 cf_suffix="$old_cf_suffix"
24219 for cf_subdir2 in $cf_subdirs lib
24221 test $cf_subdir = $cf_subdir2 && break
24223 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
24224 $AWK -f $srcdir/mk-2nd.awk \
24226 traces=$LIB_TRACING \
24229 subset=$cf_subset \
24232 crenames=$cf_cv_prog_CC_c_o \
24233 cxxrenames=$cf_cv_prog_CXX_c_o \
24234 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24235 cf_subdirs="$cf_subdirs $cf_subdir"
24240 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
24243 for cf_dir in $SRC_SUBDIRS
24245 if test ! -d $srcdir/$cf_dir ; then
24249 if test -f $cf_dir/Makefile ; then
24252 echo 'libs \' >> Makefile
24253 echo 'install.libs \' >> Makefile
24254 echo 'uninstall.libs ::' >> Makefile
24255 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
24260 if test -f $srcdir/$cf_dir/modules; then
24262 if test -f $srcdir/$cf_dir/headers; then
24263 cat >> Makefile <<CF_EOF
24264 install.includes \\
24265 uninstall.includes \\
24268 if test "$cf_dir" != "c++" ; then
24269 echo 'lint \' >> Makefile
24271 cat >> Makefile <<CF_EOF
24277 uninstall.$cf_dir ::
24278 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24280 elif test -f $srcdir/$cf_dir/headers; then
24281 cat >> Makefile <<CF_EOF
24286 install.includes \\
24287 uninstall.includes ::
24288 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24293 if test "x$cf_with_db_install" = xyes; then
24294 cat >> Makefile <<CF_EOF
24296 install.libs uninstall.libs \\
24297 install.data uninstall.data ::
24298 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24301 cat >> Makefile <<CF_EOF
24303 install.libs uninstall.libs ::
24304 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24308 if test "x$cf_with_manpages" = xyes; then
24309 cat >> Makefile <<CF_EOF
24313 cd man && \${MAKE} \${TOP_MFLAGS} \$@
24317 cat >> Makefile <<CF_EOF
24320 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
24321 rm -f headers.sh headers.sed mk_shared_lib.sh
24322 rm -f edit_man.* man_alias.*
24323 rm -rf \${DIRS_TO_MAKE}
24326 # Special case: tack's manpage lives in its own directory.
24327 if test "x$cf_with_manpages" = xyes; then
24328 if test -d tack ; then
24329 if test -f $srcdir/$tack.h; then
24330 cat >> Makefile <<CF_EOF
24334 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
24340 rm -f headers.sed headers.sh
24342 echo creating headers.sh
24343 cat >headers.sh <<CF_EOF
24345 # This shell script is generated by the 'configure' script. It is invoked in a
24346 # subdirectory of the build tree. It generates a sed-script in the parent
24347 # directory that is used to adjust includes for header files that reside in a
24348 # subdirectory of /usr/include, etc.
24350 while test \$# != 3
24352 PRG="\$PRG \$1"; shift
24357 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
24358 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
24359 echo installing \$SRC in \$DST
24362 if test $WITH_CURSES_H = yes; then
24363 cat >>headers.sh <<CF_EOF
24366 END=\`basename \$DST\`
24367 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24369 NAME=\`basename \$i\`
24370 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24374 echo "" >> \$TMPSED
24380 cat >>headers.sh <<CF_EOF
24383 END=\`basename \$DST\`
24384 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24386 NAME=\`basename \$i\`
24387 if test "\$NAME" = "curses.h"
24389 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24392 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24396 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24401 cat >>headers.sh <<CF_EOF
24403 sed -f \$TMPSED \$SRC > \$TMPSRC
24404 NAME=\`basename \$SRC\`
24406 if test $WITH_CURSES_H != yes; then
24407 cat >>headers.sh <<CF_EOF
24408 test "\$NAME" = "curses.h" && NAME=ncurses.h
24411 cat >>headers.sh <<CF_EOF
24412 # Just in case someone gzip'd manpages, remove the conflicting copy.
24413 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
24415 eval \$PRG \$TMPSRC \$DST/\$NAME
24416 rm -f \$TMPSRC \$TMPSED
24419 chmod 0755 headers.sh
24421 for cf_dir in $SRC_SUBDIRS
24423 if test ! -d $srcdir/$cf_dir ; then
24427 if test -f $srcdir/$cf_dir/headers; then
24428 $AWK -f $srcdir/mk-hdr.awk \
24429 subset="$LIB_SUBSETS" \
24430 compat="$WITH_CURSES_H" \
24431 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
24434 if test -f $srcdir/$cf_dir/modules; then
24435 if test "$cf_dir" != "c++" ; then
24436 cat >>$cf_dir/Makefile <<"CF_EOF"
24437 depend : ${AUTO_SRC}
24438 makedepend -- ${CPPFLAGS} -- ${C_SRC}
24440 # DO NOT DELETE THIS LINE -- make depend depends on it.
24446 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24447 if test -z "$USE_OLD_MAKERULES" ; then
24448 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
24456 cat >>$CONFIG_STATUS <<\EOF
24458 { (exit 0); exit 0; }
24460 chmod +x $CONFIG_STATUS
24461 ac_clean_files=$ac_clean_files_save
24463 # configure is writing to config.log, and then calls config.status.
24464 # config.status does its own redirection, appending to config.log.
24465 # Unfortunately, on DOS this fails, as config.log is still kept open
24466 # by configure, so config.status won't be able to write to it; its
24467 # output is simply discarded. So we exec the FD to /dev/null,
24468 # effectively closing config.log, so it can be properly (re)opened and
24469 # appended to by config.status. When coming back to configure, we
24470 # need to make the FD available again.
24471 if test "$no_create" != yes; then
24474 $SHELL $CONFIG_STATUS || ac_cs_success=false
24476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24477 # would make configure fail if this is the last instruction.
24478 $ac_cs_success || { (exit 1); exit 1; }
24480 ${MAKE:-make} preinstall