2 # From configure.in Revision: 1.498 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100530.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-curses-h install curses.h as ncurses.h only
703 --with-pkg-config{=path} enable/disable use of pkg-config
704 --enable-pc-files generate and install .pc files for pkg-config
705 --enable-mixed-case tic should assume mixed-case filenames
706 --with-install-prefix prefixes actual install-location ($DESTDIR)
707 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
708 --with-build-cc=XXX the build C compiler ($BUILD_CC)
709 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
710 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
714 Options to Specify the Libraries Built/Used:
715 --disable-libtool-version enable to use libtool's incompatible naming scheme
716 --with-libtool generate libraries with libtool
717 --with-shared generate shared-libraries
718 --with-normal generate normal-libraries (default)
719 --with-debug generate debug-libraries (default)
720 --with-profile generate profile-libraries
721 --with-termlib generate separate terminfo library
722 --with-ticlib generate separate tic library
723 --with-gpm use Alessandro Rubini's GPM library
724 --without-dlsym do not use dlsym() to load GPM dynamically
725 --with-sysmouse use sysmouse (FreeBSD console)
726 --enable-rpath use rpath option when generating shared libraries
727 --disable-relink relink shared libraries during install
728 --with-shlib-version=X Specify rel or abi version for shared libs
729 --disable-rpath-hack don't add rpath options for additional libraries
730 Fine-Tuning Your Configuration:
731 --disable-overwrite leave out the link to -lcurses
732 --disable-database do not use terminfo, only fallbacks/termcap
733 --with-database=XXX specify terminfo source to install
734 --with-hashed-db specify hashed-database library
735 --with-fallbacks=XXX specify list of fallback terminal descriptions
736 --without-xterm-new specify if xterm terminfo should be old version
737 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
738 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
739 --disable-big-core assume machine has little memory
740 --disable-big-strings assume compiler has only standard-size strings
741 --enable-termcap compile in termcap fallback support
742 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
743 --enable-getcap fast termcap load, no xrefs to terminfo
744 --enable-getcap-cache cache translated termcaps in ~/.terminfo
745 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
746 --disable-root-environ restrict environment when running as root
747 --enable-symlinks make tic use symbolic links not hard links
748 --enable-broken_linker compile with broken-linker support code
749 --enable-bsdpad recognize BSD-style prefix padding
750 --enable-widec compile with wide-char/UTF-8 code
751 --disable-lp64 allow chtype to be long (ignore _LP64)
752 --disable-largefile omit support for large files
753 --disable-tparm-varargs compile tparm() without varargs interface
754 --disable-tic-depends link tic library without explicit dependency on ncurses library
755 --with-bool=TYPE override fallback type of bool variable
756 --with-caps=alt compile with alternate Caps file
757 --with-chtype=TYPE override type of chtype
758 --with-ospeed=TYPE override type of ospeed variable
759 --with-mmask-t=TYPE override type of mmask_t
760 --with-ccharw-max=XXX override size CCHARW_MAX
761 --with-rcs-ids compile-in RCS identifiers
762 Options to Specify How Manpages are Installed:
763 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
764 optionally formatted/catonly, e.g., gzip,formatted
765 --with-manpage-renames specify manpage-renaming
766 --with-manpage-aliases specify manpage-aliases using .so
767 --with-manpage-symlinks specify manpage-aliases using symlinks
768 --with-manpage-tbl specify manpage processing with tbl
770 --disable-ext-funcs disable function-extensions
771 --enable-sp-funcs enable experimental SCREEN-extensions
772 --enable-term-driver enable experimental terminal-driver
773 --enable-const compile with extra/non-standard const
774 --enable-ext-colors compile for 256-color support
775 --enable-ext-mouse compile for extended mouse-encoding
776 --enable-no-padding compile with $NCURSES_NO_PADDING code
777 --enable-signed-char compile using signed Boolean's in term.h
778 --enable-sigwinch compile with SIGWINCH handler
779 --enable-tcap-names compile with user-definable terminal capabilities
781 --without-develop disable development options
782 --enable-hard-tabs compile with hard-tabs code
783 --enable-xmc-glitch compile with support for xmc (magic-cookie)
785 --disable-assumed-color do not assume anything about default-colors
786 --disable-hashmap compile without hashmap scrolling-optimization
787 --enable-colorfgbg compile-in experimental $COLORFGBG code
788 --enable-interop compile-in experimental interop bindings
789 --with-pthread use POSIX thread library
790 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
791 --enable-weak-symbols enable weak-symbols for pthreads
792 --enable-reentrant compile with experimental reentrant code
793 --with-wrap-prefix=XXX override prefix used for public variables
794 --enable-safe-sprintf compile with experimental safe-sprintf code
795 --disable-scroll-hints compile without scroll-hints code
796 --enable-wgetch-events compile with experimental wgetch-events code
797 Testing/development Options:
798 --enable-echo build: display "compiling" commands (default)
799 --enable-warnings build: turn on GCC compiler warnings
800 --enable-assertions test: turn on generation of assertion code
801 --with-dmalloc test: use Gray Watson's dmalloc library
802 --with-dbmalloc test: use Conor Cahill's dbmalloc library
803 --with-valgrind test: use valgrind
804 --disable-leaks test: free permanent memory, analyze leaks
805 --enable-expanded test: generate functions for certain macros
806 --disable-macros test: use functions rather than macros
807 --with-trace test: add trace() function to all models of ncurses
808 Ada95 Binding Options:
809 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
810 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
811 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
812 --with-ada-sharedlib=XX build Ada95 shared-library
814 Some influential environment variables:
815 CC C compiler command
816 CFLAGS C compiler flags
817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
818 nonstandard directory <lib dir>
819 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
820 headers in a nonstandard directory <include dir>
822 CXX C++ compiler command
823 CXXFLAGS C++ compiler flags
824 CXXCPP C++ preprocessor
826 Use these variables to override the choices made by `configure' or to help
827 it to find libraries and programs with nonstandard names/locations.
832 if test "$ac_init_help" = "recursive"; then
833 # If there are subdirs, report their specific --help.
835 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
837 # A "../" for each directory in /$ac_subdir.
838 ac_dots=`echo $ac_subdir |
839 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
842 .) # No --srcdir option. We are building in place.
843 ac_sub_srcdir=$srcdir ;;
844 [\\/]* | ?:[\\/]* ) # Absolute path.
845 ac_sub_srcdir=$srcdir/$ac_subdir ;;
847 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
850 # Check for guested configure; otherwise get Cygnus style configure.
851 if test -f $ac_sub_srcdir/configure.gnu; then
853 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
854 elif test -f $ac_sub_srcdir/configure; then
856 $SHELL $ac_sub_srcdir/configure --help=recursive
857 elif test -f $ac_sub_srcdir/configure.ac ||
858 test -f $ac_sub_srcdir/configure.in; then
862 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
868 test -n "$ac_init_help" && exit 0
869 if $ac_init_version; then
872 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
873 Free Software Foundation, Inc.
874 This configure script is free software; the Free Software Foundation
875 gives unlimited permission to copy, distribute and modify it.
881 This file contains any messages produced by compilers while
882 running configure, to aid debugging if configure makes a mistake.
884 It was created by $as_me, which was
885 generated by GNU Autoconf 2.52.20100530. Invocation command line was
896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
908 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
925 # Keep a trace of the command line.
926 # Strip out --no-create and --no-recursion so they do not pile up.
927 # Also quote any args containing shell meta-characters.
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c) ;;
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
937 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
938 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
939 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
941 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
944 # Get rid of the leading space.
947 # When interrupted or exit'd, cleanup temporary files, and complete
948 # config.log. We remove comments because anyway the quotes in there
949 # would cause problems or look ugly.
951 # Save into config.log some information that might help in debugging.
953 echo "## ----------------- ##" >&5
954 echo "## Cache variables. ##" >&5
955 echo "## ----------------- ##" >&5
957 # The following way of writing the cache mishandles newlines in values,
960 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
963 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
968 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
972 sed "/^$/d" confdefs.h >conftest.log
973 if test -s conftest.log; then
975 echo "## ------------ ##" >&5
976 echo "## confdefs.h. ##" >&5
977 echo "## ------------ ##" >&5
982 test "$ac_signal" != 0 &&
983 echo "$as_me: caught signal $ac_signal" >&5
984 echo "$as_me: exit $exit_status" >&5
985 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
988 for ac_signal in 1 2 13 15; do
989 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
994 rm -rf conftest* confdefs.h
995 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
998 # Let the site file select an alternate cache file if it wants to.
999 # Prefer explicitly selected file to automatically selected ones.
1000 if test -z "$CONFIG_SITE"; then
1001 if test "x$prefix" != xNONE; then
1002 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1004 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1007 for ac_site_file in $CONFIG_SITE; do
1008 if test -r "$ac_site_file"; then
1009 { echo "$as_me:1009: loading site script $ac_site_file" >&5
1010 echo "$as_me: loading site script $ac_site_file" >&6;}
1011 cat "$ac_site_file" >&5
1016 if test -r "$cache_file"; then
1017 # Some versions of bash will fail to source /dev/null (special
1018 # files actually), so we avoid doing that.
1019 if test -f "$cache_file"; then
1020 { echo "$as_me:1020: loading cache $cache_file" >&5
1021 echo "$as_me: loading cache $cache_file" >&6;}
1023 [\\/]* | ?:[\\/]* ) . $cache_file;;
1024 *) . ./$cache_file;;
1028 { echo "$as_me:1028: creating cache $cache_file" >&5
1029 echo "$as_me: creating cache $cache_file" >&6;}
1033 # Check that the precious variables saved in the cache have kept the same
1035 ac_cache_corrupted=false
1036 for ac_var in `(set) 2>&1 |
1037 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1038 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1039 eval ac_new_set=\$ac_env_${ac_var}_set
1040 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1041 eval ac_new_val="\$ac_env_${ac_var}_value"
1042 case $ac_old_set,$ac_new_set in
1044 { echo "$as_me:1044: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1046 ac_cache_corrupted=: ;;
1048 { echo "$as_me:1048: error: \`$ac_var' was not set in the previous run" >&5
1049 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1050 ac_cache_corrupted=: ;;
1053 if test "x$ac_old_val" != "x$ac_new_val"; then
1054 { echo "$as_me:1054: error: \`$ac_var' has changed since the previous run:" >&5
1055 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1056 { echo "$as_me:1056: former value: $ac_old_val" >&5
1057 echo "$as_me: former value: $ac_old_val" >&2;}
1058 { echo "$as_me:1058: current value: $ac_new_val" >&5
1059 echo "$as_me: current value: $ac_new_val" >&2;}
1060 ac_cache_corrupted=:
1063 # Pass precious variables to config.status. It doesn't matter if
1064 # we pass some twice (in addition to the command line arguments).
1065 if test "$ac_new_set" = set; then
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1069 ac_configure_args="$ac_configure_args '$ac_arg'"
1071 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1076 if $ac_cache_corrupted; then
1077 { echo "$as_me:1077: error: changes in the environment can compromise the build" >&5
1078 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1079 { { echo "$as_me:1079: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1080 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1081 { (exit 1); exit 1; }; }
1085 ac_cpp='$CPP $CPPFLAGS'
1086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1089 ac_main_return=return
1091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1092 *c*,-n*) ECHO_N= ECHO_C='
1094 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1095 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1097 echo "#! $SHELL" >conftest.sh
1098 echo "exit 0" >>conftest.sh
1099 chmod +x conftest.sh
1100 if { (echo "$as_me:1100: PATH=\".;.\"; conftest.sh") >&5
1101 (PATH=".;."; conftest.sh) 2>&5
1103 echo "$as_me:1103: \$? = $ac_status" >&5
1104 (exit $ac_status); }; then
1105 ac_path_separator=';'
1109 PATH_SEPARATOR="$ac_path_separator"
1112 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1116 echo "$as_me:1116: checking for egrep" >&5
1117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1118 if test "${ac_cv_prog_egrep+set}" = set; then
1119 echo $ECHO_N "(cached) $ECHO_C" >&6
1121 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1122 then ac_cv_prog_egrep='grep -E'
1123 else ac_cv_prog_egrep='egrep'
1126 echo "$as_me:1126: result: $ac_cv_prog_egrep" >&5
1127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1128 EGREP=$ac_cv_prog_egrep
1130 test -z "$EGREP" && { { echo "$as_me:1130: error: No egrep program found" >&5
1131 echo "$as_me: error: No egrep program found" >&2;}
1132 { (exit 1); exit 1; }; }
1134 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1135 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1136 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 cf_cv_abi_version=${NCURSES_MAJOR}
1138 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1139 cf_cv_timestamp=`date`
1140 echo "$as_me:1140: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1141 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1143 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1145 # Check whether --with-rel-version or --without-rel-version was given.
1146 if test "${with_rel_version+set}" = set; then
1147 withval="$with_rel_version"
1148 { echo "$as_me:1148: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1149 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1150 cf_cv_rel_version=$withval
1153 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1154 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1156 if test -n "$NCURSES_MAJOR" ; then
1157 case $NCURSES_MAJOR in #(vi
1161 { { echo "$as_me:1161: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1162 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1163 { (exit 1); exit 1; }; }
1167 { { echo "$as_me:1167: error: Release major-version value is empty" >&5
1168 echo "$as_me: error: Release major-version value is empty" >&2;}
1169 { (exit 1); exit 1; }; }
1172 if test -n "$NCURSES_MINOR" ; then
1173 case $NCURSES_MINOR in #(vi
1177 { { echo "$as_me:1177: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1178 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1179 { (exit 1); exit 1; }; }
1183 { { echo "$as_me:1183: error: Release minor-version value is empty" >&5
1184 echo "$as_me: error: Release minor-version value is empty" >&2;}
1185 { (exit 1); exit 1; }; }
1188 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1190 # Check whether --with-abi-version or --without-abi-version was given.
1191 if test "${with_abi_version+set}" = set; then
1192 withval="$with_abi_version"
1193 { echo "$as_me:1193: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1194 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1195 cf_cv_abi_version=$withval
1198 if test -n "$cf_cv_abi_version" ; then
1199 case $cf_cv_abi_version in #(vi
1203 { { echo "$as_me:1203: error: ABI version is not a number: $cf_cv_abi_version" >&5
1204 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1205 { (exit 1); exit 1; }; }
1209 { { echo "$as_me:1209: error: ABI version value is empty" >&5
1210 echo "$as_me: error: ABI version value is empty" >&2;}
1211 { (exit 1); exit 1; }; }
1215 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1216 if test -f $ac_dir/install-sh; then
1218 ac_install_sh="$ac_aux_dir/install-sh -c"
1220 elif test -f $ac_dir/install.sh; then
1222 ac_install_sh="$ac_aux_dir/install.sh -c"
1224 elif test -f $ac_dir/shtool; then
1226 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 if test -z "$ac_aux_dir"; then
1231 { { echo "$as_me:1231: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1232 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1233 { (exit 1); exit 1; }; }
1235 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1236 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1237 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1239 # Make sure we can run config.sub.
1240 $ac_config_sub sun4 >/dev/null 2>&1 ||
1241 { { echo "$as_me:1241: error: cannot run $ac_config_sub" >&5
1242 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1243 { (exit 1); exit 1; }; }
1245 echo "$as_me:1245: checking build system type" >&5
1246 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1247 if test "${ac_cv_build+set}" = set; then
1248 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 ac_cv_build_alias=$build_alias
1251 test -z "$ac_cv_build_alias" &&
1252 ac_cv_build_alias=`$ac_config_guess`
1253 test -z "$ac_cv_build_alias" &&
1254 { { echo "$as_me:1254: error: cannot guess build type; you must specify one" >&5
1255 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1256 { (exit 1); exit 1; }; }
1257 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1258 { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1259 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1260 { (exit 1); exit 1; }; }
1263 echo "$as_me:1263: result: $ac_cv_build" >&5
1264 echo "${ECHO_T}$ac_cv_build" >&6
1266 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1270 echo "$as_me:1270: checking host system type" >&5
1271 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1272 if test "${ac_cv_host+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 ac_cv_host_alias=$host_alias
1276 test -z "$ac_cv_host_alias" &&
1277 ac_cv_host_alias=$ac_cv_build_alias
1278 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1279 { { echo "$as_me:1279: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1280 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1281 { (exit 1); exit 1; }; }
1284 echo "$as_me:1284: result: $ac_cv_host" >&5
1285 echo "${ECHO_T}$ac_cv_host" >&6
1287 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1288 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1289 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1291 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1292 echo "$as_me:1292: checking target system type" >&5
1293 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1294 if test "${ac_cv_target+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 ac_cv_target_alias=$target_alias
1298 test "x$ac_cv_target_alias" = "x" &&
1299 ac_cv_target_alias=$ac_cv_host_alias
1300 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1301 { { echo "$as_me:1301: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1302 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1303 { (exit 1); exit 1; }; }
1306 echo "$as_me:1306: result: $ac_cv_target" >&5
1307 echo "${ECHO_T}$ac_cv_target" >&6
1308 target=$ac_cv_target
1309 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1310 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1311 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1313 # The aliases save the names the user supplied, while $host etc.
1314 # will get canonicalized.
1315 test -n "$target_alias" &&
1316 test "$program_prefix$program_suffix$program_transform_name" = \
1318 program_prefix=${target_alias}-
1319 system_name="$host_os"
1321 system_name="`(uname -s -r) 2>/dev/null`"
1322 if test -z "$system_name" ; then
1323 system_name="`(hostname) 2>/dev/null`"
1326 test -n "$system_name" && cat >>confdefs.h <<EOF
1327 #define SYSTEM_NAME "$system_name"
1330 if test "${cf_cv_system_name+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 cf_cv_system_name="$system_name"
1336 test -z "$system_name" && system_name="$cf_cv_system_name"
1337 test -n "$cf_cv_system_name" && echo "$as_me:1337: result: Configuring for $cf_cv_system_name" >&5
1338 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1340 if test ".$system_name" != ".$cf_cv_system_name" ; then
1341 echo "$as_me:1341: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1342 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1343 { { echo "$as_me:1343: error: \"Please remove config.cache and try again.\"" >&5
1344 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1345 { (exit 1); exit 1; }; }
1348 # Check whether --with-system-type or --without-system-type was given.
1349 if test "${with_system_type+set}" = set; then
1350 withval="$with_system_type"
1351 { echo "$as_me:1351: WARNING: overriding system type to $withval" >&5
1352 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1353 cf_cv_system_name=$withval
1356 ### Save the given $CFLAGS to allow user-override.
1357 cf_user_CFLAGS="$CFLAGS"
1359 ### Default install-location
1361 echo "$as_me:1361: checking for prefix" >&5
1362 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1363 if test "x$prefix" = "xNONE" ; then
1364 case "$cf_cv_system_name" in
1365 # non-vendor systems don't have a conflict
1366 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1369 *) prefix=$ac_default_prefix
1373 echo "$as_me:1373: result: $prefix" >&5
1374 echo "${ECHO_T}$prefix" >&6
1376 if test "x$prefix" = "xNONE" ; then
1377 echo "$as_me:1377: checking for default include-directory" >&5
1378 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1379 test -n "$verbose" && echo 1>&6
1382 $includedir/ncurses \
1384 $prefix/include/ncurses \
1385 /usr/local/include \
1386 /usr/local/include/ncurses \
1388 /usr/include/ncurses
1390 cf_dir=`eval echo $cf_symbol`
1391 if test -f $cf_dir/curses.h ; then
1392 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1393 includedir="$cf_symbol"
1394 test -n "$verbose" && echo $ac_n " found " 1>&6
1398 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1400 echo "$as_me:1400: result: $includedir" >&5
1401 echo "${ECHO_T}$includedir" >&6
1404 ### Checks for programs.
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1410 ac_main_return=return
1411 if test -n "$ac_tool_prefix"; then
1412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1414 echo "$as_me:1414: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$CC"; then
1420 ac_cv_prog_CC="$CC" # Let the user override the test.
1422 ac_save_IFS=$IFS; IFS=$ac_path_separator
1424 for ac_dir in $ac_dummy; do
1426 test -z "$ac_dir" && ac_dir=.
1427 $as_executable_p "$ac_dir/$ac_word" || continue
1428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1429 echo "$as_me:1429: found $ac_dir/$ac_word" >&5
1436 if test -n "$CC"; then
1437 echo "$as_me:1437: result: $CC" >&5
1438 echo "${ECHO_T}$CC" >&6
1440 echo "$as_me:1440: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1445 if test -z "$ac_cv_prog_CC"; then
1447 # Extract the first word of "gcc", so it can be a program name with args.
1448 set dummy gcc; ac_word=$2
1449 echo "$as_me:1449: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1457 ac_save_IFS=$IFS; IFS=$ac_path_separator
1459 for ac_dir in $ac_dummy; do
1461 test -z "$ac_dir" && ac_dir=.
1462 $as_executable_p "$ac_dir/$ac_word" || continue
1463 ac_cv_prog_ac_ct_CC="gcc"
1464 echo "$as_me:1464: found $ac_dir/$ac_word" >&5
1470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1471 if test -n "$ac_ct_CC"; then
1472 echo "$as_me:1472: result: $ac_ct_CC" >&5
1473 echo "${ECHO_T}$ac_ct_CC" >&6
1475 echo "$as_me:1475: result: no" >&5
1476 echo "${ECHO_T}no" >&6
1484 if test -z "$CC"; then
1485 if test -n "$ac_tool_prefix"; then
1486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}cc; ac_word=$2
1488 echo "$as_me:1488: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_CC+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 if test -n "$CC"; then
1494 ac_cv_prog_CC="$CC" # Let the user override the test.
1496 ac_save_IFS=$IFS; IFS=$ac_path_separator
1498 for ac_dir in $ac_dummy; do
1500 test -z "$ac_dir" && ac_dir=.
1501 $as_executable_p "$ac_dir/$ac_word" || continue
1502 ac_cv_prog_CC="${ac_tool_prefix}cc"
1503 echo "$as_me:1503: found $ac_dir/$ac_word" >&5
1510 if test -n "$CC"; then
1511 echo "$as_me:1511: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1514 echo "$as_me:1514: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$ac_cv_prog_CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:1523: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 ac_save_IFS=$IFS; IFS=$ac_path_separator
1533 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 $as_executable_p "$ac_dir/$ac_word" || continue
1537 ac_cv_prog_ac_ct_CC="cc"
1538 echo "$as_me:1538: found $ac_dir/$ac_word" >&5
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:1546: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1549 echo "$as_me:1549: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:1562: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1571 ac_save_IFS=$IFS; IFS=$ac_path_separator
1573 for ac_dir in $ac_dummy; do
1575 test -z "$ac_dir" && ac_dir=.
1576 $as_executable_p "$ac_dir/$ac_word" || continue
1577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1578 ac_prog_rejected=yes
1582 echo "$as_me:1582: found $ac_dir/$ac_word" >&5
1586 if test $ac_prog_rejected = yes; then
1587 # We found a bogon in the path, so make sure we never use it.
1588 set dummy $ac_cv_prog_CC
1590 if test $# != 0; then
1591 # We chose a different compiler from the bogus one.
1592 # However, it has the same basename, so the bogon will be chosen
1593 # first if we set CC to just the basename; use the full file name.
1595 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1603 if test -n "$CC"; then
1604 echo "$as_me:1604: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1607 echo "$as_me:1607: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1612 if test -z "$CC"; then
1613 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1618 echo "$as_me:1618: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 ac_save_IFS=$IFS; IFS=$ac_path_separator
1628 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 $as_executable_p "$ac_dir/$ac_word" || continue
1632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1633 echo "$as_me:1633: found $ac_dir/$ac_word" >&5
1640 if test -n "$CC"; then
1641 echo "$as_me:1641: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1644 echo "$as_me:1644: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1648 test -n "$CC" && break
1651 if test -z "$CC"; then
1655 # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo "$as_me:1657: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 if test -n "$ac_ct_CC"; then
1663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 ac_save_IFS=$IFS; IFS=$ac_path_separator
1667 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 $as_executable_p "$ac_dir/$ac_word" || continue
1671 ac_cv_prog_ac_ct_CC="$ac_prog"
1672 echo "$as_me:1672: found $ac_dir/$ac_word" >&5
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:1680: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1683 echo "$as_me:1683: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$ac_ct_CC" && break
1695 test -z "$CC" && { { echo "$as_me:1695: error: no acceptable cc found in \$PATH" >&5
1696 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1697 { (exit 1); exit 1; }; }
1699 # Provide some information about the compiler.
1700 echo "$as_me:1700:" \
1701 "checking for C compiler version" >&5
1702 ac_compiler=`set X $ac_compile; echo $2`
1703 { (eval echo "$as_me:1703: \"$ac_compiler --version </dev/null >&5\"") >&5
1704 (eval $ac_compiler --version </dev/null >&5) 2>&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708 { (eval echo "$as_me:1708: \"$ac_compiler -v </dev/null >&5\"") >&5
1709 (eval $ac_compiler -v </dev/null >&5) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713 { (eval echo "$as_me:1713: \"$ac_compiler -V </dev/null >&5\"") >&5
1714 (eval $ac_compiler -V </dev/null >&5) 2>&5
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line 1720 "configure"
1721 #include "confdefs.h"
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1736 echo "$as_me:1736: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:1739: \"$ac_link_default\"") >&5
1740 (eval $ac_link_default) 2>&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); }; then
1744 # Find the output, starting from the most likely. This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1748 ls a.out conftest 2>/dev/null;
1749 ls a.* conftest.* 2>/dev/null`; do
1751 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1752 a.out ) # We found the default executable, but exeext='' is most
1755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1763 echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 { { echo "$as_me:1765: error: C compiler cannot create executables" >&5
1766 echo "$as_me: error: C compiler cannot create executables" >&2;}
1767 { (exit 77); exit 77; }; }
1770 ac_exeext=$ac_cv_exeext
1771 echo "$as_me:1771: result: $ac_file" >&5
1772 echo "${ECHO_T}$ac_file" >&6
1774 # Check the compiler produces executables we can run. If not, either
1775 # the compiler is broken, or we cross compile.
1776 echo "$as_me:1776: checking whether the C compiler works" >&5
1777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779 # If not cross compiling, check that we can run a simple program.
1780 if test "$cross_compiling" != yes; then
1781 if { ac_try='./$ac_file'
1782 { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1789 if test "$cross_compiling" = maybe; then
1792 { { echo "$as_me:1792: error: cannot run C compiled programs.
1793 If you meant to cross compile, use \`--host'." >&5
1794 echo "$as_me: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&2;}
1796 { (exit 1); exit 1; }; }
1800 echo "$as_me:1800: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1803 rm -f a.out a.exe conftest$ac_cv_exeext
1804 ac_clean_files=$ac_clean_files_save
1805 # Check the compiler produces executables we can run. If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:1807: checking whether we are cross compiling" >&5
1808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809 echo "$as_me:1809: result: $cross_compiling" >&5
1810 echo "${ECHO_T}$cross_compiling" >&6
1812 echo "$as_me:1812: checking for executable suffix" >&5
1813 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1814 if { (eval echo "$as_me:1814: \"$ac_link\"") >&5
1815 (eval $ac_link) 2>&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1821 # work properly (i.e., refer to `conftest.exe'), while it won't with
1823 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1826 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 { { echo "$as_me:1833: error: cannot compute EXEEXT: cannot compile and link" >&5
1834 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1835 { (exit 1); exit 1; }; }
1838 rm -f conftest$ac_cv_exeext
1839 echo "$as_me:1839: result: $ac_cv_exeext" >&5
1840 echo "${ECHO_T}$ac_cv_exeext" >&6
1842 rm -f conftest.$ac_ext
1843 EXEEXT=$ac_cv_exeext
1845 echo "$as_me:1845: checking for object suffix" >&5
1846 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1847 if test "${ac_cv_objext+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1862 rm -f conftest.o conftest.obj
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); }; then
1868 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1870 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 { { echo "$as_me:1878: error: cannot compute OBJEXT: cannot compile" >&5
1879 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1880 { (exit 1); exit 1; }; }
1883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1885 echo "$as_me:1885: result: $ac_cv_objext" >&5
1886 echo "${ECHO_T}$ac_cv_objext" >&6
1887 OBJEXT=$ac_cv_objext
1889 echo "$as_me:1889: checking whether we are using the GNU C compiler" >&5
1890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 cat >conftest.$ac_ext <<_ACEOF
1895 #line 1895 "configure"
1896 #include "confdefs.h"
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:1910: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -s conftest.$ac_objext'
1916 { (eval echo "$as_me:1916: \"$ac_try\"") >&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1923 echo "$as_me: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1927 rm -f conftest.$ac_objext conftest.$ac_ext
1928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1931 echo "$as_me:1931: result: $ac_cv_c_compiler_gnu" >&5
1932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1933 GCC=`test $ac_compiler_gnu = yes && echo yes`
1934 ac_test_CFLAGS=${CFLAGS+set}
1935 ac_save_CFLAGS=$CFLAGS
1937 echo "$as_me:1937: checking whether $CC accepts -g" >&5
1938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1939 if test "${ac_cv_prog_cc_g+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:1955: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -s conftest.$ac_objext'
1961 { (eval echo "$as_me:1961: \"$ac_try\"") >&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1968 echo "$as_me: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1974 echo "$as_me:1974: result: $ac_cv_prog_cc_g" >&5
1975 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1976 if test "$ac_test_CFLAGS" = set; then
1977 CFLAGS=$ac_save_CFLAGS
1978 elif test $ac_cv_prog_cc_g = yes; then
1979 if test "$GCC" = yes; then
1985 if test "$GCC" = yes; then
1991 # Some people use a C++ compiler to compile C. Since we use `exit',
1992 # in C++ we need to declare it. In case someone uses the same compiler
1993 # for both compiling C and C++ we need to have the C++ compiler decide
1994 # the declaration of exit, since it's the most demanding environment.
1995 cat >conftest.$ac_ext <<_ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:2001: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit $ac_status); } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:2007: \"$ac_try\"") >&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 for ac_declaration in \
2014 '#include <stdlib.h>' \
2015 'extern "C" void std::exit (int) throw (); using std::exit;' \
2016 'extern "C" void std::exit (int); using std::exit;' \
2017 'extern "C" void exit (int) throw ();' \
2018 'extern "C" void exit (int);' \
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line 2022 "configure"
2023 #include "confdefs.h"
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:2035: \"$ac_compile\"") >&5
2036 (eval $ac_compile) 2>&5
2038 echo "$as_me:2038: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:2041: \"$ac_try\"") >&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:2066: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -s conftest.$ac_objext'
2072 { (eval echo "$as_me:2072: \"$ac_try\"") >&5
2075 echo "$as_me:2075: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2079 echo "$as_me: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2085 if test -n "$ac_declaration"; then
2086 echo '#ifdef __cplusplus' >>confdefs.h
2087 echo $ac_declaration >>confdefs.h
2088 echo '#endif' >>confdefs.h
2092 echo "$as_me: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 ac_main_return=return
2104 if test "$GCC" = yes ; then
2105 echo "$as_me:2105: checking version of $CC" >&5
2106 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2107 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2108 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2109 echo "$as_me:2109: result: $GCC_VERSION" >&5
2110 echo "${ECHO_T}$GCC_VERSION" >&6
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 ac_main_return=return
2119 echo "$as_me:2119: checking how to run the C preprocessor" >&5
2120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2121 # On Suns, sometimes $CPP names a directory.
2122 if test -n "$CPP" && test -d "$CPP"; then
2125 if test -z "$CPP"; then
2126 if test "${ac_cv_prog_CPP+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 # Double quotes because CPP needs to be expanded
2130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2133 for ac_c_preproc_warn_flag in '' yes
2135 # Use a header file that comes with gcc, so configuring glibc
2136 # with a fresh cross-compiler works.
2137 # On the NeXT, cc -E runs the code through the compiler's parser,
2138 # not just through cpp. "Syntax error" is here to catch this case.
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line 2140 "configure"
2141 #include "confdefs.h"
2145 if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5
2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2148 egrep -v '^ *\+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); } >/dev/null; then
2153 if test -s conftest.err; then
2154 ac_cpp_err=$ac_c_preproc_warn_flag
2161 if test -z "$ac_cpp_err"; then
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 # Broken: fails on valid input.
2169 rm -f conftest.err conftest.$ac_ext
2171 # OK, works on sane cases. Now check whether non-existent headers
2172 # can be detected and how.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2176 #include <ac_nonexistent.h>
2178 if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2181 egrep -v '^ *\+' conftest.er1 >conftest.err
2183 cat conftest.err >&5
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } >/dev/null; then
2186 if test -s conftest.err; then
2187 ac_cpp_err=$ac_c_preproc_warn_flag
2194 if test -z "$ac_cpp_err"; then
2195 # Broken: success on invalid input.
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 # Passes both tests.
2204 rm -f conftest.err conftest.$ac_ext
2207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2208 rm -f conftest.err conftest.$ac_ext
2209 if $ac_preproc_ok; then
2221 echo "$as_me:2221: result: $CPP" >&5
2222 echo "${ECHO_T}$CPP" >&6
2224 for ac_c_preproc_warn_flag in '' yes
2226 # Use a header file that comes with gcc, so configuring glibc
2227 # with a fresh cross-compiler works.
2228 # On the NeXT, cc -E runs the code through the compiler's parser,
2229 # not just through cpp. "Syntax error" is here to catch this case.
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2236 if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5
2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2239 egrep -v '^ *\+' conftest.er1 >conftest.err
2241 cat conftest.err >&5
2242 echo "$as_me:2242: \$? = $ac_status" >&5
2243 (exit $ac_status); } >/dev/null; then
2244 if test -s conftest.err; then
2245 ac_cpp_err=$ac_c_preproc_warn_flag
2252 if test -z "$ac_cpp_err"; then
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 # Broken: fails on valid input.
2260 rm -f conftest.err conftest.$ac_ext
2262 # OK, works on sane cases. Now check whether non-existent headers
2263 # can be detected and how.
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line 2265 "configure"
2266 #include "confdefs.h"
2267 #include <ac_nonexistent.h>
2269 if { (eval echo "$as_me:2269: \"$ac_cpp conftest.$ac_ext\"") >&5
2270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2272 egrep -v '^ *\+' conftest.er1 >conftest.err
2274 cat conftest.err >&5
2275 echo "$as_me:2275: \$? = $ac_status" >&5
2276 (exit $ac_status); } >/dev/null; then
2277 if test -s conftest.err; then
2278 ac_cpp_err=$ac_c_preproc_warn_flag
2285 if test -z "$ac_cpp_err"; then
2286 # Broken: success on invalid input.
2289 echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 # Passes both tests.
2295 rm -f conftest.err conftest.$ac_ext
2298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2299 rm -f conftest.err conftest.$ac_ext
2300 if $ac_preproc_ok; then
2303 { { echo "$as_me:2303: error: C preprocessor \"$CPP\" fails sanity check" >&5
2304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2305 { (exit 1); exit 1; }; }
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 ac_main_return=return
2315 if test $ac_cv_c_compiler_gnu = yes; then
2316 echo "$as_me:2316: checking whether $CC needs -traditional" >&5
2317 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2318 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 ac_pattern="Autoconf.*'x'"
2322 cat >conftest.$ac_ext <<_ACEOF
2323 #line 2323 "configure"
2324 #include "confdefs.h"
2326 int Autoconf = TIOCGETP;
2328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2329 egrep "$ac_pattern" >/dev/null 2>&1; then
2330 ac_cv_prog_gcc_traditional=yes
2332 ac_cv_prog_gcc_traditional=no
2336 if test $ac_cv_prog_gcc_traditional = no; then
2337 cat >conftest.$ac_ext <<_ACEOF
2338 #line 2338 "configure"
2339 #include "confdefs.h"
2341 int Autoconf = TCGETA;
2343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344 egrep "$ac_pattern" >/dev/null 2>&1; then
2345 ac_cv_prog_gcc_traditional=yes
2351 echo "$as_me:2351: result: $ac_cv_prog_gcc_traditional" >&5
2352 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2353 if test $ac_cv_prog_gcc_traditional = yes; then
2354 CC="$CC -traditional"
2358 echo "$as_me:2358: checking whether $CC understands -c and -o together" >&5
2359 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2360 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat > conftest.$ac_ext <<CF_EOF
2368 ${cf_cv_main_return:-return}(0);
2371 # We do the test twice because some compilers refuse to overwrite an
2372 # existing .o file with -o, though they will create one.
2373 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2374 if { (eval echo "$as_me:2374: \"$ac_try\"") >&5
2377 echo "$as_me:2377: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 test -f conftest2.$ac_objext && { (eval echo "$as_me:2379: \"$ac_try\"") >&5
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); };
2385 eval cf_cv_prog_CC_c_o=yes
2387 eval cf_cv_prog_CC_c_o=no
2392 if test $cf_cv_prog_CC_c_o = yes; then
2393 echo "$as_me:2393: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2396 echo "$as_me:2396: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 echo "$as_me:2400: checking for POSIXized ISC" >&5
2401 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2402 if test -d /etc/conf/kconfig.d &&
2403 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2405 echo "$as_me:2405: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407 ISC=yes # If later tests want to check for ISC.
2409 cat >>confdefs.h <<\EOF
2410 #define _POSIX_SOURCE 1
2413 if test "$GCC" = yes; then
2419 echo "$as_me:2419: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2424 echo "$as_me:2424: checking for ${CC-cc} option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2426 if test "${cf_cv_ansi_cc+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 cf_save_CFLAGS="$CFLAGS"
2432 cf_save_CPPFLAGS="$CPPFLAGS"
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX -qlanglvl=ansi
2436 # Ultrix and OSF/1 -std1
2437 # HP-UX -Aa -D_HPUX_SOURCE
2439 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2440 for cf_arg in "-DCC_HAS_PROTOS" \
2445 "-Aa -D_HPUX_SOURCE" \
2452 cf_new_extra_cppflags=
2454 for cf_add_cflags in $cf_arg
2456 case $cf_fix_cppflags in
2458 case $cf_add_cflags in #(vi
2459 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2460 case $cf_add_cflags in
2462 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2464 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2465 && test -z "${cf_tst_cflags}" \
2466 && cf_fix_cppflags=yes
2468 if test $cf_fix_cppflags = yes ; then
2469 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2471 elif test "${cf_tst_cflags}" = "\"'" ; then
2472 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2478 *$cf_add_cflags) #(vi
2481 case $cf_add_cflags in #(vi
2483 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2485 CPPFLAGS=`echo "$CPPFLAGS" | \
2486 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2487 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2491 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2496 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2501 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2503 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2505 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2506 && test -z "${cf_tst_cflags}" \
2507 && cf_fix_cppflags=no
2512 if test -n "$cf_new_cflags" ; then
2514 CFLAGS="$CFLAGS $cf_new_cflags"
2517 if test -n "$cf_new_cppflags" ; then
2519 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2522 if test -n "$cf_new_extra_cppflags" ; then
2524 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line 2528 "configure"
2529 #include "confdefs.h"
2531 #ifndef CC_HAS_PROTOS
2532 #if !defined(__STDC__) || (__STDC__ != 1)
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:2549: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:2555: \"$ac_try\"") >&5
2558 echo "$as_me:2558: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cf_cv_ansi_cc="$cf_arg"; break
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 rm -f conftest.$ac_objext conftest.$ac_ext
2567 CFLAGS="$cf_save_CFLAGS"
2568 CPPFLAGS="$cf_save_CPPFLAGS"
2571 echo "$as_me:2571: result: $cf_cv_ansi_cc" >&5
2572 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2574 if test "$cf_cv_ansi_cc" != "no"; then
2575 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2580 cf_new_extra_cppflags=
2582 for cf_add_cflags in $cf_cv_ansi_cc
2584 case $cf_fix_cppflags in
2586 case $cf_add_cflags in #(vi
2587 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2588 case $cf_add_cflags in
2590 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2592 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2593 && test -z "${cf_tst_cflags}" \
2594 && cf_fix_cppflags=yes
2596 if test $cf_fix_cppflags = yes ; then
2597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2599 elif test "${cf_tst_cflags}" = "\"'" ; then
2600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2606 *$cf_add_cflags) #(vi
2609 case $cf_add_cflags in #(vi
2611 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2613 CPPFLAGS=`echo "$CPPFLAGS" | \
2614 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2615 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2619 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2624 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2629 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2631 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2633 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2634 && test -z "${cf_tst_cflags}" \
2635 && cf_fix_cppflags=no
2640 if test -n "$cf_new_cflags" ; then
2642 CFLAGS="$CFLAGS $cf_new_cflags"
2645 if test -n "$cf_new_cppflags" ; then
2647 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2650 if test -n "$cf_new_extra_cppflags" ; then
2652 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2656 cat >>confdefs.h <<\EOF
2657 #define CC_HAS_PROTOS 1
2663 if test "$cf_cv_ansi_cc" = "no"; then
2664 { { echo "$as_me:2664: error: Your compiler does not appear to recognize prototypes.
2665 You have the following choices:
2666 a. adjust your compiler options
2667 b. get an up-to-date compiler
2668 c. use a wrapper such as unproto" >&5
2669 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2670 You have the following choices:
2671 a. adjust your compiler options
2672 b. get an up-to-date compiler
2673 c. use a wrapper such as unproto" >&2;}
2674 { (exit 1); exit 1; }; }
2677 case $cf_cv_system_name in
2679 CFLAGS="$CFLAGS -Zmt"
2680 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2681 CXXFLAGS="$CXXFLAGS -Zmt"
2682 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2683 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2690 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2691 #define PROG_EXT "$PROG_EXT"
2694 if test "$cross_compiling" = yes ; then
2697 case "$cf_cv_system_name" in #(vi
2698 dragonfly*|freebsd*) #(vi
2699 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2701 *) LDPATH=$PATH:/sbin:/usr/sbin
2702 # Extract the first word of "ldconfig", so it can be a program name with args.
2703 set dummy ldconfig; ac_word=$2
2704 echo "$as_me:2704: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2714 ac_save_IFS=$IFS; IFS=$ac_path_separator
2716 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if $as_executable_p "$ac_dir/$ac_word"; then
2720 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2721 echo "$as_me:2721: found $ac_dir/$ac_word" >&5
2729 LDCONFIG=$ac_cv_path_LDCONFIG
2731 if test -n "$LDCONFIG"; then
2732 echo "$as_me:2732: result: $LDCONFIG" >&5
2733 echo "${ECHO_T}$LDCONFIG" >&6
2735 echo "$as_me:2735: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2743 echo "$as_me:2743: checking if you want to ensure bool is consistent with C++" >&5
2744 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2746 # Check whether --with-cxx or --without-cxx was given.
2747 if test "${with_cxx+set}" = set; then
2749 cf_with_cxx=$withval
2753 echo "$as_me:2753: result: $cf_with_cxx" >&5
2754 echo "${ECHO_T}$cf_with_cxx" >&6
2755 if test "X$cf_with_cxx" = Xno ; then
2759 # with autoconf 2.13, we can change the error to a warning:
2761 ac_cpp='$CXXCPP $CPPFLAGS'
2762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2765 ac_main_return=return
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 echo "$as_me:2771: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CXX+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$CXX"; then
2777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779 ac_save_IFS=$IFS; IFS=$ac_path_separator
2781 for ac_dir in $ac_dummy; do
2783 test -z "$ac_dir" && ac_dir=.
2784 $as_executable_p "$ac_dir/$ac_word" || continue
2785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2786 echo "$as_me:2786: found $ac_dir/$ac_word" >&5
2793 if test -n "$CXX"; then
2794 echo "$as_me:2794: result: $CXX" >&5
2795 echo "${ECHO_T}$CXX" >&6
2797 echo "$as_me:2797: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2801 test -n "$CXX" && break
2804 if test -z "$CXX"; then
2806 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 echo "$as_me:2810: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$ac_ct_CXX"; then
2816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2818 ac_save_IFS=$IFS; IFS=$ac_path_separator
2820 for ac_dir in $ac_dummy; do
2822 test -z "$ac_dir" && ac_dir=.
2823 $as_executable_p "$ac_dir/$ac_word" || continue
2824 ac_cv_prog_ac_ct_CXX="$ac_prog"
2825 echo "$as_me:2825: found $ac_dir/$ac_word" >&5
2831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2832 if test -n "$ac_ct_CXX"; then
2833 echo "$as_me:2833: result: $ac_ct_CXX" >&5
2834 echo "${ECHO_T}$ac_ct_CXX" >&6
2836 echo "$as_me:2836: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2840 test -n "$ac_ct_CXX" && break
2842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2847 # Provide some information about the compiler.
2848 echo "$as_me:2848:" \
2849 "checking for C++ compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (eval echo "$as_me:2851: \"$ac_compiler --version </dev/null >&5\"") >&5
2852 (eval $ac_compiler --version </dev/null >&5) 2>&5
2854 echo "$as_me:2854: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (eval echo "$as_me:2856: \"$ac_compiler -v </dev/null >&5\"") >&5
2857 (eval $ac_compiler -v </dev/null >&5) 2>&5
2859 echo "$as_me:2859: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861 { (eval echo "$as_me:2861: \"$ac_compiler -V </dev/null >&5\"") >&5
2862 (eval $ac_compiler -V </dev/null >&5) 2>&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2867 echo "$as_me:2867: checking whether we are using the GNU C++ compiler" >&5
2868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2906 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2909 echo "$as_me:2909: result: $ac_cv_cxx_compiler_gnu" >&5
2910 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2911 GXX=`test $ac_compiler_gnu = yes && echo yes`
2912 ac_test_CXXFLAGS=${CXXFLAGS+set}
2913 ac_save_CXXFLAGS=$CXXFLAGS
2915 echo "$as_me:2915: checking whether $CXX accepts -g" >&5
2916 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2917 if test "${ac_cv_prog_cxx_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:2933: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>&5
2936 echo "$as_me:2936: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:2939: \"$ac_try\"") >&5
2942 echo "$as_me:2942: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_prog_cxx_g=yes
2946 echo "$as_me: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2950 rm -f conftest.$ac_objext conftest.$ac_ext
2952 echo "$as_me:2952: result: $ac_cv_prog_cxx_g" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2954 if test "$ac_test_CXXFLAGS" = set; then
2955 CXXFLAGS=$ac_save_CXXFLAGS
2956 elif test $ac_cv_prog_cxx_g = yes; then
2957 if test "$GXX" = yes; then
2963 if test "$GXX" = yes; then
2969 for ac_declaration in \
2971 '#include <stdlib.h>' \
2972 'extern "C" void std::exit (int) throw (); using std::exit;' \
2973 'extern "C" void std::exit (int); using std::exit;' \
2974 'extern "C" void exit (int) throw ();' \
2975 'extern "C" void exit (int);' \
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3009 rm -f conftest.$ac_objext conftest.$ac_ext
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line 3011 "configure"
3012 #include "confdefs.h"
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:3029: \"$ac_try\"") >&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 rm -f conftest.$ac_objext conftest.$ac_ext
3042 if test -n "$ac_declaration"; then
3043 echo '#ifdef __cplusplus' >>confdefs.h
3044 echo $ac_declaration >>confdefs.h
3045 echo '#endif' >>confdefs.h
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_main_return=return
3055 # autoconf 2.5x removed the error - by hardcoding it to g++.
3056 if test "$CXX" = "g++" ; then
3057 # Extract the first word of "g++", so it can be a program name with args.
3058 set dummy g++; ac_word=$2
3059 echo "$as_me:3059: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_path_CXX+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3069 ac_save_IFS=$IFS; IFS=$ac_path_separator
3071 for ac_dir in $ac_dummy; do
3073 test -z "$ac_dir" && ac_dir=.
3074 if $as_executable_p "$ac_dir/$ac_word"; then
3075 ac_cv_path_CXX="$ac_dir/$ac_word"
3076 echo "$as_me:3076: found $ac_dir/$ac_word" >&5
3086 if test -n "$CXX"; then
3087 echo "$as_me:3087: result: $CXX" >&5
3088 echo "${ECHO_T}$CXX" >&6
3090 echo "$as_me:3090: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test "$CXX" = "g++" ; then
3096 { echo "$as_me:3096: WARNING: ignoring hardcoded g++" >&5
3097 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3098 cf_with_cxx=no; CXX=""; GXX="";
3103 if test "$GXX" = yes; then
3104 echo "$as_me:3104: checking version of g++" >&5
3105 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3106 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3107 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3108 echo "$as_me:3108: result: $GXX_VERSION" >&5
3109 echo "${ECHO_T}$GXX_VERSION" >&6
3112 case $GXX_VERSION in
3114 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3116 { echo "$as_me:3116: WARNING: templates do not work" >&5
3117 echo "$as_me: WARNING: templates do not work" >&2;}
3121 echo "$as_me:3121: checking if you want to build C++ binding and demo" >&5
3122 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3124 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3125 if test "${with_cxx_binding+set}" = set; then
3126 withval="$with_cxx_binding"
3127 cf_with_cxx_binding=$withval
3129 cf_with_cxx_binding=$cf_with_cxx
3131 echo "$as_me:3131: result: $cf_with_cxx_binding" >&5
3132 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3134 echo "$as_me:3134: checking if you want to build with Ada95" >&5
3135 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3137 # Check whether --with-ada or --without-ada was given.
3138 if test "${with_ada+set}" = set; then
3140 cf_with_ada=$withval
3144 echo "$as_me:3144: result: $cf_with_ada" >&5
3145 echo "${ECHO_T}$cf_with_ada" >&6
3147 echo "$as_me:3147: checking if you want to install manpages" >&5
3148 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3150 # Check whether --with-manpages or --without-manpages was given.
3151 if test "${with_manpages+set}" = set; then
3152 withval="$with_manpages"
3153 cf_with_manpages=$withval
3155 cf_with_manpages=yes
3157 echo "$as_me:3157: result: $cf_with_manpages" >&5
3158 echo "${ECHO_T}$cf_with_manpages" >&6
3160 echo "$as_me:3160: checking if you want to build programs such as tic" >&5
3161 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3163 # Check whether --with-progs or --without-progs was given.
3164 if test "${with_progs+set}" = set; then
3165 withval="$with_progs"
3166 cf_with_progs=$withval
3170 echo "$as_me:3170: result: $cf_with_progs" >&5
3171 echo "${ECHO_T}$cf_with_progs" >&6
3173 echo "$as_me:3173: checking if you wish to install curses.h" >&5
3174 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3176 # Check whether --with-curses-h or --without-curses-h was given.
3177 if test "${with_curses_h+set}" = set; then
3178 withval="$with_curses_h"
3179 with_curses_h=$withval
3183 echo "$as_me:3183: result: $with_curses_h" >&5
3184 echo "${ECHO_T}$with_curses_h" >&6
3186 modules_to_build="ncurses"
3187 if test "X$cf_with_progs" != Xno ; then
3188 modules_to_build="$modules_to_build progs tack"
3190 modules_to_build="$modules_to_build panel menu form"
3192 test "$program_prefix" != NONE &&
3193 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3194 # Use a double $ so make ignores it.
3195 test "$program_suffix" != NONE &&
3196 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3197 # Double any \ or $. echo might interpret backslashes.
3198 # By default was `s,x,x', remove it if useless.
3199 cat <<\_ACEOF >conftest.sed
3200 s/[\\$]/&&/g;s/;s,x,x,$//
3202 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3205 for ac_prog in mawk gawk nawk awk
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 echo "$as_me:3209: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211 if test "${ac_cv_prog_AWK+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3217 ac_save_IFS=$IFS; IFS=$ac_path_separator
3219 for ac_dir in $ac_dummy; do
3221 test -z "$ac_dir" && ac_dir=.
3222 $as_executable_p "$ac_dir/$ac_word" || continue
3223 ac_cv_prog_AWK="$ac_prog"
3224 echo "$as_me:3224: found $ac_dir/$ac_word" >&5
3231 if test -n "$AWK"; then
3232 echo "$as_me:3232: result: $AWK" >&5
3233 echo "${ECHO_T}$AWK" >&6
3235 echo "$as_me:3235: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3239 test -n "$AWK" && break
3242 test -z "$AWK" && { { echo "$as_me:3242: error: No awk program found" >&5
3243 echo "$as_me: error: No awk program found" >&2;}
3244 { (exit 1); exit 1; }; }
3246 echo "$as_me:3246: checking for egrep" >&5
3247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3248 if test "${ac_cv_prog_egrep+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3252 then ac_cv_prog_egrep='grep -E'
3253 else ac_cv_prog_egrep='egrep'
3256 echo "$as_me:3256: result: $ac_cv_prog_egrep" >&5
3257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3258 EGREP=$ac_cv_prog_egrep
3260 test -z "$EGREP" && { { echo "$as_me:3260: error: No egrep program found" >&5
3261 echo "$as_me: error: No egrep program found" >&2;}
3262 { (exit 1); exit 1; }; }
3264 # Find a good install program. We prefer a C program (faster),
3265 # so one script is as good as another. But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # ./install, which can be erroneously created by make from ./install.sh.
3276 echo "$as_me:3276: checking for a BSD compatible install" >&5
3277 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3278 if test -z "$INSTALL"; then
3279 if test "${ac_cv_path_install+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_save_IFS=$IFS; IFS=$ac_path_separator
3283 for ac_dir in $PATH; do
3285 # Account for people who put trailing slashes in PATH elements.
3287 / | ./ | .// | /cC/* \
3288 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3291 # OSF1 and SCO ODT 3.0 have their own names for install.
3292 # Don't use installbsd from OSF since it installs stuff as root
3294 for ac_prog in ginstall scoinst install; do
3295 if $as_executable_p "$ac_dir/$ac_prog"; then
3296 if test $ac_prog = install &&
3297 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3298 # AIX install. It has an incompatible calling convention.
3300 elif test $ac_prog = install &&
3301 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3302 # program-specific install script used by HP pwplus--don't use.
3305 ac_cv_path_install="$ac_dir/$ac_prog -c"
3315 if test "${ac_cv_path_install+set}" = set; then
3316 INSTALL=$ac_cv_path_install
3318 # As a last resort, use the slow shell script. We don't cache a
3319 # path for INSTALL within a source directory, because that will
3320 # break other packages using the cache if that directory is
3321 # removed, or if the path is relative.
3322 INSTALL=$ac_install_sh
3325 echo "$as_me:3325: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3340 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3341 test -z "$cf_dir" && cf_dir=.
3342 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3346 for ac_prog in tdlint lint alint splint lclint
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 echo "$as_me:3350: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_prog_LINT+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 if test -n "$LINT"; then
3356 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3358 ac_save_IFS=$IFS; IFS=$ac_path_separator
3360 for ac_dir in $ac_dummy; do
3362 test -z "$ac_dir" && ac_dir=.
3363 $as_executable_p "$ac_dir/$ac_word" || continue
3364 ac_cv_prog_LINT="$ac_prog"
3365 echo "$as_me:3365: found $ac_dir/$ac_word" >&5
3371 LINT=$ac_cv_prog_LINT
3372 if test -n "$LINT"; then
3373 echo "$as_me:3373: result: $LINT" >&5
3374 echo "${ECHO_T}$LINT" >&6
3376 echo "$as_me:3376: result: no" >&5
3377 echo "${ECHO_T}no" >&6
3380 test -n "$LINT" && break
3383 echo "$as_me:3383: checking whether ln -s works" >&5
3384 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3386 if test "$LN_S" = "ln -s"; then
3387 echo "$as_me:3387: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6
3390 echo "$as_me:3390: result: no, using $LN_S" >&5
3391 echo "${ECHO_T}no, using $LN_S" >&6
3394 echo "$as_me:3394: checking for long file names" >&5
3395 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3396 if test "${ac_cv_sys_long_file_names+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 ac_cv_sys_long_file_names=yes
3400 # Test for long file names in all the places we know might matter:
3401 # . the current directory, where building will happen
3402 # $prefix/lib where we will be installing things
3403 # $exec_prefix/lib likewise
3404 # eval it to expand exec_prefix.
3405 # $TMPDIR if set, where it might want to write temporary files
3406 # if $TMPDIR is not set:
3407 # /tmp where it might want to write temporary files
3410 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3413 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3415 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3416 test -d $ac_dir || continue
3417 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3418 ac_xdir=$ac_dir/cf$$
3419 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3420 ac_tf1=$ac_xdir/conftest9012345
3421 ac_tf2=$ac_xdir/conftest9012346
3422 (echo 1 >$ac_tf1) 2>/dev/null
3423 (echo 2 >$ac_tf2) 2>/dev/null
3424 ac_val=`cat $ac_tf1 2>/dev/null`
3425 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3426 ac_cv_sys_long_file_names=no
3427 rm -rf $ac_xdir 2>/dev/null
3430 rm -rf $ac_xdir 2>/dev/null
3433 echo "$as_me:3433: result: $ac_cv_sys_long_file_names" >&5
3434 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3435 if test $ac_cv_sys_long_file_names = yes; then
3437 cat >>confdefs.h <<\EOF
3438 #define HAVE_LONG_FILE_NAMES 1
3443 # if we find pkg-config, check if we should install the ".pc" files.
3445 echo "$as_me:3445: checking if you want to use pkg-config" >&5
3446 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3448 # Check whether --with-pkg-config or --without-pkg-config was given.
3449 if test "${with_pkg_config+set}" = set; then
3450 withval="$with_pkg_config"
3451 cf_pkg_config=$withval
3455 echo "$as_me:3455: result: $cf_pkg_config" >&5
3456 echo "${ECHO_T}$cf_pkg_config" >&6
3458 case $cf_pkg_config in #(vi
3463 # Extract the first word of "pkg-config", so it can be a program name with args.
3464 set dummy pkg-config; ac_word=$2
3465 echo "$as_me:3465: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3475 ac_save_IFS=$IFS; IFS=$ac_path_separator
3477 for ac_dir in $ac_dummy; do
3479 test -z "$ac_dir" && ac_dir=.
3480 if $as_executable_p "$ac_dir/$ac_word"; then
3481 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3482 echo "$as_me:3482: found $ac_dir/$ac_word" >&5
3487 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3491 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3493 if test -n "$PKG_CONFIG"; then
3494 echo "$as_me:3494: result: $PKG_CONFIG" >&5
3495 echo "${ECHO_T}$PKG_CONFIG" >&6
3497 echo "$as_me:3497: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3507 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3508 if test "$PKG_CONFIG" != none ; then
3510 if test "x$prefix" != xNONE; then
3511 cf_path_syntax="$prefix"
3513 cf_path_syntax="$ac_default_prefix"
3516 case ".$PKG_CONFIG" in #(vi
3517 .\$\(*\)*|.\'*\'*) #(vi
3521 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3524 eval PKG_CONFIG="$PKG_CONFIG"
3525 case ".$PKG_CONFIG" in #(vi
3527 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3532 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3535 { { echo "$as_me:3535: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3536 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3537 { (exit 1); exit 1; }; }
3543 if test "$PKG_CONFIG" != no ; then
3544 echo "$as_me:3544: checking if we should install .pc files for $PKG_CONFIG" >&5
3545 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3547 # Leave this as something that can be overridden in the environment.
3548 if test -z "$PKG_CONFIG_LIBDIR" ; then
3549 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3551 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3552 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3554 # Check whether --enable-pc-files or --disable-pc-files was given.
3555 if test "${enable_pc_files+set}" = set; then
3556 enableval="$enable_pc_files"
3557 enable_pc_files=$enableval
3561 echo "$as_me:3561: result: $enable_pc_files" >&5
3562 echo "${ECHO_T}$enable_pc_files" >&6
3564 echo "$as_me:3564: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 { echo "$as_me:3566: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3567 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3572 echo "$as_me:3572: checking if we should assume mixed-case filenames" >&5
3573 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3575 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3576 if test "${enable_mixed_case+set}" = set; then
3577 enableval="$enable_mixed_case"
3578 enable_mixedcase=$enableval
3580 enable_mixedcase=auto
3582 echo "$as_me:3582: result: $enable_mixedcase" >&5
3583 echo "${ECHO_T}$enable_mixedcase" >&6
3584 if test "$enable_mixedcase" = "auto" ; then
3586 echo "$as_me:3586: checking if filesystem supports mixed-case filenames" >&5
3587 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3588 if test "${cf_cv_mixedcase+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test "$cross_compiling" = yes ; then
3593 case $target_alias in #(vi
3594 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3602 rm -f conftest CONFTEST
3604 if test -f CONFTEST ; then
3609 rm -f conftest CONFTEST
3613 echo "$as_me:3613: result: $cf_cv_mixedcase" >&5
3614 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3615 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3616 #define MIXEDCASE_FILENAMES 1
3620 cf_cv_mixedcase=$enable_mixedcase
3621 if test "$enable_mixedcase" = "yes" ; then
3622 cat >>confdefs.h <<\EOF
3623 #define MIXEDCASE_FILENAMES 1
3629 # do this after mixed-case option (tags/TAGS is not as important as tic).
3630 echo "$as_me:3630: checking whether ${MAKE-make} sets \${MAKE}" >&5
3631 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3632 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3633 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 cat >conftest.make <<\EOF
3638 @echo 'ac_maketemp="${MAKE}"'
3640 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3641 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3642 if test -n "$ac_maketemp"; then
3643 eval ac_cv_prog_make_${ac_make}_set=yes
3645 eval ac_cv_prog_make_${ac_make}_set=no
3649 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3650 echo "$as_me:3650: result: yes" >&5
3651 echo "${ECHO_T}yes" >&6
3654 echo "$as_me:3654: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 SET_MAKE="MAKE=${MAKE-make}"
3659 for ac_prog in exctags ctags
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 echo "$as_me:3663: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665 if test "${ac_cv_prog_CTAGS+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 if test -n "$CTAGS"; then
3669 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3671 ac_save_IFS=$IFS; IFS=$ac_path_separator
3673 for ac_dir in $ac_dummy; do
3675 test -z "$ac_dir" && ac_dir=.
3676 $as_executable_p "$ac_dir/$ac_word" || continue
3677 ac_cv_prog_CTAGS="$ac_prog"
3678 echo "$as_me:3678: found $ac_dir/$ac_word" >&5
3684 CTAGS=$ac_cv_prog_CTAGS
3685 if test -n "$CTAGS"; then
3686 echo "$as_me:3686: result: $CTAGS" >&5
3687 echo "${ECHO_T}$CTAGS" >&6
3689 echo "$as_me:3689: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3693 test -n "$CTAGS" && break
3696 for ac_prog in exetags etags
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 echo "$as_me:3700: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_prog_ETAGS+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if test -n "$ETAGS"; then
3706 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3708 ac_save_IFS=$IFS; IFS=$ac_path_separator
3710 for ac_dir in $ac_dummy; do
3712 test -z "$ac_dir" && ac_dir=.
3713 $as_executable_p "$ac_dir/$ac_word" || continue
3714 ac_cv_prog_ETAGS="$ac_prog"
3715 echo "$as_me:3715: found $ac_dir/$ac_word" >&5
3721 ETAGS=$ac_cv_prog_ETAGS
3722 if test -n "$ETAGS"; then
3723 echo "$as_me:3723: result: $ETAGS" >&5
3724 echo "${ECHO_T}$ETAGS" >&6
3726 echo "$as_me:3726: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3730 test -n "$ETAGS" && break
3733 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
3734 set dummy ${CTAGS-ctags}; ac_word=$2
3735 echo "$as_me:3735: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$MAKE_LOWER_TAGS"; then
3741 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3743 ac_save_IFS=$IFS; IFS=$ac_path_separator
3745 for ac_dir in $ac_dummy; do
3747 test -z "$ac_dir" && ac_dir=.
3748 $as_executable_p "$ac_dir/$ac_word" || continue
3749 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3750 echo "$as_me:3750: found $ac_dir/$ac_word" >&5
3754 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3757 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3758 if test -n "$MAKE_LOWER_TAGS"; then
3759 echo "$as_me:3759: result: $MAKE_LOWER_TAGS" >&5
3760 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3762 echo "$as_me:3762: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3766 if test "$cf_cv_mixedcase" = yes ; then
3767 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
3768 set dummy ${ETAGS-etags}; ac_word=$2
3769 echo "$as_me:3769: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if test -n "$MAKE_UPPER_TAGS"; then
3775 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3777 ac_save_IFS=$IFS; IFS=$ac_path_separator
3779 for ac_dir in $ac_dummy; do
3781 test -z "$ac_dir" && ac_dir=.
3782 $as_executable_p "$ac_dir/$ac_word" || continue
3783 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3784 echo "$as_me:3784: found $ac_dir/$ac_word" >&5
3788 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3791 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3792 if test -n "$MAKE_UPPER_TAGS"; then
3793 echo "$as_me:3793: result: $MAKE_UPPER_TAGS" >&5
3794 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3796 echo "$as_me:3796: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3804 if test "$MAKE_UPPER_TAGS" = yes ; then
3810 if test "$MAKE_LOWER_TAGS" = yes ; then
3816 echo "$as_me:3816: checking for makeflags variable" >&5
3817 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3818 if test "${cf_cv_makeflags+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3825 cat >cf_makeflags.tmp <<CF_EOF
3828 @ echo '.$cf_option'
3830 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3831 case "$cf_result" in
3833 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3834 case "$cf_result" in
3835 .*CC=*) cf_cv_makeflags=
3837 *) cf_cv_makeflags=$cf_option
3843 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3847 rm -f cf_makeflags.tmp
3850 echo "$as_me:3850: result: $cf_cv_makeflags" >&5
3851 echo "${ECHO_T}$cf_cv_makeflags" >&6
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3856 echo "$as_me:3856: checking for $ac_word" >&5
3857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858 if test "${ac_cv_prog_RANLIB+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 if test -n "$RANLIB"; then
3862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3864 ac_save_IFS=$IFS; IFS=$ac_path_separator
3866 for ac_dir in $ac_dummy; do
3868 test -z "$ac_dir" && ac_dir=.
3869 $as_executable_p "$ac_dir/$ac_word" || continue
3870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3871 echo "$as_me:3871: found $ac_dir/$ac_word" >&5
3877 RANLIB=$ac_cv_prog_RANLIB
3878 if test -n "$RANLIB"; then
3879 echo "$as_me:3879: result: $RANLIB" >&5
3880 echo "${ECHO_T}$RANLIB" >&6
3882 echo "$as_me:3882: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3887 if test -z "$ac_cv_prog_RANLIB"; then
3888 ac_ct_RANLIB=$RANLIB
3889 # Extract the first word of "ranlib", so it can be a program name with args.
3890 set dummy ranlib; ac_word=$2
3891 echo "$as_me:3891: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test -n "$ac_ct_RANLIB"; then
3897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3899 ac_save_IFS=$IFS; IFS=$ac_path_separator
3901 for ac_dir in $ac_dummy; do
3903 test -z "$ac_dir" && ac_dir=.
3904 $as_executable_p "$ac_dir/$ac_word" || continue
3905 ac_cv_prog_ac_ct_RANLIB="ranlib"
3906 echo "$as_me:3906: found $ac_dir/$ac_word" >&5
3910 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3914 if test -n "$ac_ct_RANLIB"; then
3915 echo "$as_me:3915: result: $ac_ct_RANLIB" >&5
3916 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3918 echo "$as_me:3918: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3922 RANLIB=$ac_ct_RANLIB
3924 RANLIB="$ac_cv_prog_RANLIB"
3927 if test -n "$ac_tool_prefix"; then
3928 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3929 set dummy ${ac_tool_prefix}ld; ac_word=$2
3930 echo "$as_me:3930: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_LD+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 if test -n "$LD"; then
3936 ac_cv_prog_LD="$LD" # Let the user override the test.
3938 ac_save_IFS=$IFS; IFS=$ac_path_separator
3940 for ac_dir in $ac_dummy; do
3942 test -z "$ac_dir" && ac_dir=.
3943 $as_executable_p "$ac_dir/$ac_word" || continue
3944 ac_cv_prog_LD="${ac_tool_prefix}ld"
3945 echo "$as_me:3945: found $ac_dir/$ac_word" >&5
3952 if test -n "$LD"; then
3953 echo "$as_me:3953: result: $LD" >&5
3954 echo "${ECHO_T}$LD" >&6
3956 echo "$as_me:3956: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3961 if test -z "$ac_cv_prog_LD"; then
3963 # Extract the first word of "ld", so it can be a program name with args.
3964 set dummy ld; ac_word=$2
3965 echo "$as_me:3965: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 if test -n "$ac_ct_LD"; then
3971 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3973 ac_save_IFS=$IFS; IFS=$ac_path_separator
3975 for ac_dir in $ac_dummy; do
3977 test -z "$ac_dir" && ac_dir=.
3978 $as_executable_p "$ac_dir/$ac_word" || continue
3979 ac_cv_prog_ac_ct_LD="ld"
3980 echo "$as_me:3980: found $ac_dir/$ac_word" >&5
3984 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3987 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3988 if test -n "$ac_ct_LD"; then
3989 echo "$as_me:3989: result: $ac_ct_LD" >&5
3990 echo "${ECHO_T}$ac_ct_LD" >&6
3992 echo "$as_me:3992: result: no" >&5
3993 echo "${ECHO_T}no" >&6
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}ar; ac_word=$2
4004 echo "$as_me:4004: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_AR+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$AR"; then
4010 ac_cv_prog_AR="$AR" # Let the user override the test.
4012 ac_save_IFS=$IFS; IFS=$ac_path_separator
4014 for ac_dir in $ac_dummy; do
4016 test -z "$ac_dir" && ac_dir=.
4017 $as_executable_p "$ac_dir/$ac_word" || continue
4018 ac_cv_prog_AR="${ac_tool_prefix}ar"
4019 echo "$as_me:4019: found $ac_dir/$ac_word" >&5
4026 if test -n "$AR"; then
4027 echo "$as_me:4027: result: $AR" >&5
4028 echo "${ECHO_T}$AR" >&6
4030 echo "$as_me:4030: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4035 if test -z "$ac_cv_prog_AR"; then
4037 # Extract the first word of "ar", so it can be a program name with args.
4038 set dummy ar; ac_word=$2
4039 echo "$as_me:4039: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 if test -n "$ac_ct_AR"; then
4045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4047 ac_save_IFS=$IFS; IFS=$ac_path_separator
4049 for ac_dir in $ac_dummy; do
4051 test -z "$ac_dir" && ac_dir=.
4052 $as_executable_p "$ac_dir/$ac_word" || continue
4053 ac_cv_prog_ac_ct_AR="ar"
4054 echo "$as_me:4054: found $ac_dir/$ac_word" >&5
4058 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4061 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4062 if test -n "$ac_ct_AR"; then
4063 echo "$as_me:4063: result: $ac_ct_AR" >&5
4064 echo "${ECHO_T}$ac_ct_AR" >&6
4066 echo "$as_me:4066: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}ar; ac_word=$2
4078 echo "$as_me:4078: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_AR+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 if test -n "$AR"; then
4084 ac_cv_prog_AR="$AR" # Let the user override the test.
4086 ac_save_IFS=$IFS; IFS=$ac_path_separator
4088 for ac_dir in $ac_dummy; do
4090 test -z "$ac_dir" && ac_dir=.
4091 $as_executable_p "$ac_dir/$ac_word" || continue
4092 ac_cv_prog_AR="${ac_tool_prefix}ar"
4093 echo "$as_me:4093: found $ac_dir/$ac_word" >&5
4100 if test -n "$AR"; then
4101 echo "$as_me:4101: result: $AR" >&5
4102 echo "${ECHO_T}$AR" >&6
4104 echo "$as_me:4104: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4109 if test -z "$ac_cv_prog_AR"; then
4111 # Extract the first word of "ar", so it can be a program name with args.
4112 set dummy ar; ac_word=$2
4113 echo "$as_me:4113: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$ac_ct_AR"; then
4119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4121 ac_save_IFS=$IFS; IFS=$ac_path_separator
4123 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 $as_executable_p "$ac_dir/$ac_word" || continue
4127 ac_cv_prog_ac_ct_AR="ar"
4128 echo "$as_me:4128: found $ac_dir/$ac_word" >&5
4132 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4136 if test -n "$ac_ct_AR"; then
4137 echo "$as_me:4137: result: $ac_ct_AR" >&5
4138 echo "${ECHO_T}$ac_ct_AR" >&6
4140 echo "$as_me:4140: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4149 echo "$as_me:4149: checking for options to update archives" >&5
4150 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4151 if test "${cf_cv_ar_flags+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cf_cv_ar_flags=unknown
4156 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4159 # check if $ARFLAGS already contains this choice
4160 if test "x$ARFLAGS" != "x" ; then
4161 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4162 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4168 rm -f conftest.$ac_cv_objext
4171 cat >conftest.$ac_ext <<EOF
4172 #line 4172 "configure"
4173 int testdata[3] = { 123, 456, 789 };
4175 if { (eval echo "$as_me:4175: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4178 echo "$as_me:4178: \$? = $ac_status" >&5
4179 (exit $ac_status); } ; then
4180 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4181 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4182 if test -f conftest.a ; then
4183 cf_cv_ar_flags=$cf_ar_flags
4187 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4189 echo "${as_me-configure}:4189: testing cannot compile test-program ..." 1>&5
4194 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4197 echo "$as_me:4197: result: $cf_cv_ar_flags" >&5
4198 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4200 if test -n "$ARFLAGS" ; then
4201 if test -n "$cf_cv_ar_flags" ; then
4202 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4205 ARFLAGS=$cf_cv_ar_flags
4208 echo "$as_me:4208: checking if you have specified an install-prefix" >&5
4209 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4211 # Check whether --with-install-prefix or --without-install-prefix was given.
4212 if test "${with_install_prefix+set}" = set; then
4213 withval="$with_install_prefix"
4214 case "$withval" in #(vi
4217 *) DESTDIR="$withval"
4221 echo "$as_me:4221: result: $DESTDIR" >&5
4222 echo "${ECHO_T}$DESTDIR" >&6
4224 ###############################################################################
4226 # If we're cross-compiling, allow the user to override the tools and their
4227 # options. The configure script is oriented toward identifying the host
4228 # compiler, etc., but we need a build compiler to generate parts of the source.
4230 if test "$cross_compiling" = yes ; then
4232 # defaults that we might want to override
4233 : ${BUILD_CFLAGS:=''}
4234 : ${BUILD_CPPFLAGS:=''}
4235 : ${BUILD_LDFLAGS:=''}
4237 : ${BUILD_EXEEXT:='$x'}
4238 : ${BUILD_OBJEXT:='o'}
4240 # Check whether --with-build-cc or --without-build-cc was given.
4241 if test "${with_build_cc+set}" = set; then
4242 withval="$with_build_cc"
4245 for ac_prog in gcc cc cl
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 echo "$as_me:4249: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$BUILD_CC"; then
4255 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4257 ac_save_IFS=$IFS; IFS=$ac_path_separator
4259 for ac_dir in $ac_dummy; do
4261 test -z "$ac_dir" && ac_dir=.
4262 $as_executable_p "$ac_dir/$ac_word" || continue
4263 ac_cv_prog_BUILD_CC="$ac_prog"
4264 echo "$as_me:4264: found $ac_dir/$ac_word" >&5
4270 BUILD_CC=$ac_cv_prog_BUILD_CC
4271 if test -n "$BUILD_CC"; then
4272 echo "$as_me:4272: result: $BUILD_CC" >&5
4273 echo "${ECHO_T}$BUILD_CC" >&6
4275 echo "$as_me:4275: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4279 test -n "$BUILD_CC" && break
4283 echo "$as_me:4283: checking for native build C compiler" >&5
4284 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4285 echo "$as_me:4285: result: $BUILD_CC" >&5
4286 echo "${ECHO_T}$BUILD_CC" >&6
4288 echo "$as_me:4288: checking for native build C preprocessor" >&5
4289 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4291 # Check whether --with-build-cpp or --without-build-cpp was given.
4292 if test "${with_build_cpp+set}" = set; then
4293 withval="$with_build_cpp"
4294 BUILD_CPP="$withval"
4296 BUILD_CPP='${BUILD_CC} -E'
4298 echo "$as_me:4298: result: $BUILD_CPP" >&5
4299 echo "${ECHO_T}$BUILD_CPP" >&6
4301 echo "$as_me:4301: checking for native build C flags" >&5
4302 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4304 # Check whether --with-build-cflags or --without-build-cflags was given.
4305 if test "${with_build_cflags+set}" = set; then
4306 withval="$with_build_cflags"
4307 BUILD_CFLAGS="$withval"
4309 echo "$as_me:4309: result: $BUILD_CFLAGS" >&5
4310 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4312 echo "$as_me:4312: checking for native build C preprocessor-flags" >&5
4313 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4315 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4316 if test "${with_build_cppflags+set}" = set; then
4317 withval="$with_build_cppflags"
4318 BUILD_CPPFLAGS="$withval"
4320 echo "$as_me:4320: result: $BUILD_CPPFLAGS" >&5
4321 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4323 echo "$as_me:4323: checking for native build linker-flags" >&5
4324 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4326 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4327 if test "${with_build_ldflags+set}" = set; then
4328 withval="$with_build_ldflags"
4329 BUILD_LDFLAGS="$withval"
4331 echo "$as_me:4331: result: $BUILD_LDFLAGS" >&5
4332 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4334 echo "$as_me:4334: checking for native build linker-libraries" >&5
4335 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4337 # Check whether --with-build-libs or --without-build-libs was given.
4338 if test "${with_build_libs+set}" = set; then
4339 withval="$with_build_libs"
4340 BUILD_LIBS="$withval"
4342 echo "$as_me:4342: result: $BUILD_LIBS" >&5
4343 echo "${ECHO_T}$BUILD_LIBS" >&6
4345 # this assumes we're on Unix.
4349 : ${BUILD_CC:='${CC}'}
4351 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4352 { { echo "$as_me:4352: error: Cross-build requires two compilers.
4353 Use --with-build-cc to specify the native compiler." >&5
4354 echo "$as_me: error: Cross-build requires two compilers.
4355 Use --with-build-cc to specify the native compiler." >&2;}
4356 { (exit 1); exit 1; }; }
4360 : ${BUILD_CC:='${CC}'}
4361 : ${BUILD_CPP:='${CPP}'}
4362 : ${BUILD_CFLAGS:='${CFLAGS}'}
4363 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4364 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4365 : ${BUILD_LIBS:='${LIBS}'}
4366 : ${BUILD_EXEEXT:='$x'}
4367 : ${BUILD_OBJEXT:='o'}
4370 ###############################################################################
4372 ### Options to allow the user to specify the set of libraries which are used.
4373 ### Use "--without-normal --with-shared" to allow the default model to be
4374 ### shared, for example.
4377 echo "$as_me:4377: checking if libtool -version-number should be used" >&5
4378 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4380 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4381 if test "${enable_libtool_version+set}" = set; then
4382 enableval="$enable_libtool_version"
4383 test "$enableval" != no && enableval=yes
4384 if test "$enableval" != "yes" ; then
4385 cf_libtool_version=no
4387 cf_libtool_version=yes
4391 cf_libtool_version=yes
4394 echo "$as_me:4394: result: $cf_libtool_version" >&5
4395 echo "${ECHO_T}$cf_libtool_version" >&6
4397 if test "$cf_libtool_version" = yes ; then
4398 LIBTOOL_VERSION="-version-number"
4400 LIBTOOL_VERSION="-version-info"
4405 # common library maintenance symbols that are convenient for libtool scripts:
4406 LIB_CREATE='${AR} -cr'
4407 LIB_OBJECT='${OBJECTS}'
4411 # symbols used to prop libtool up to enable it to determine what it should be
4419 echo "$as_me:4419: checking if you want to build libraries with libtool" >&5
4420 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4422 # Check whether --with-libtool or --without-libtool was given.
4423 if test "${with_libtool+set}" = set; then
4424 withval="$with_libtool"
4425 with_libtool=$withval
4429 echo "$as_me:4429: result: $with_libtool" >&5
4430 echo "${ECHO_T}$with_libtool" >&6
4431 if test "$with_libtool" != "no"; then
4433 if test "$with_libtool" != "yes" ; then
4435 if test "x$prefix" != xNONE; then
4436 cf_path_syntax="$prefix"
4438 cf_path_syntax="$ac_default_prefix"
4441 case ".$with_libtool" in #(vi
4442 .\$\(*\)*|.\'*\'*) #(vi
4446 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4449 eval with_libtool="$with_libtool"
4450 case ".$with_libtool" in #(vi
4452 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4457 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4460 { { echo "$as_me:4460: error: expected a pathname, not \"$with_libtool\"" >&5
4461 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4462 { (exit 1); exit 1; }; }
4466 LIBTOOL=$with_libtool
4468 # Extract the first word of "libtool", so it can be a program name with args.
4469 set dummy libtool; ac_word=$2
4470 echo "$as_me:4470: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4480 ac_save_IFS=$IFS; IFS=$ac_path_separator
4482 for ac_dir in $ac_dummy; do
4484 test -z "$ac_dir" && ac_dir=.
4485 if $as_executable_p "$ac_dir/$ac_word"; then
4486 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4487 echo "$as_me:4487: found $ac_dir/$ac_word" >&5
4495 LIBTOOL=$ac_cv_path_LIBTOOL
4497 if test -n "$LIBTOOL"; then
4498 echo "$as_me:4498: result: $LIBTOOL" >&5
4499 echo "${ECHO_T}$LIBTOOL" >&6
4501 echo "$as_me:4501: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4506 if test -z "$LIBTOOL" ; then
4507 { { echo "$as_me:4507: error: Cannot find libtool" >&5
4508 echo "$as_me: error: Cannot find libtool" >&2;}
4509 { (exit 1); exit 1; }; }
4511 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4512 LIB_OBJECT='${OBJECTS:.o=.lo}'
4514 LIB_CLEAN='${LIBTOOL} --mode=clean'
4515 LIB_COMPILE='${LIBTOOL} --mode=compile'
4516 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4517 LIB_INSTALL='${LIBTOOL} --mode=install'
4518 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4521 # Show the version of libtool
4522 echo "$as_me:4522: checking version of libtool" >&5
4523 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4525 # Save the version in a cache variable - this is not entirely a good
4526 # thing, but the version string from libtool is very ugly, and for
4527 # bug reports it might be useful to have the original string. "("
4528 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.].*//'`
4529 echo "$as_me:4529: result: $cf_cv_libtool_version" >&5
4530 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4531 if test -z "$cf_cv_libtool_version" ; then
4532 { { echo "$as_me:4532: error: This is not GNU libtool" >&5
4533 echo "$as_me: error: This is not GNU libtool" >&2;}
4534 { (exit 1); exit 1; }; }
4537 # special hack to add -no-undefined (which libtool should do for itself)
4539 case "$cf_cv_system_name" in #(vi
4540 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4541 LT_UNDEF=-no-undefined
4545 # special hack to add --tag option for C++ compiler
4546 case $cf_cv_libtool_version in #(vi
4547 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4548 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4549 LIBTOOL="$LIBTOOL --tag=CC"
4552 LIBTOOL_CXX="$LIBTOOL"
4560 test -z "$LIBTOOL" && ECHO_LT=
4562 if test "$with_libtool" != "no" ; then
4564 cf_list_models="$cf_list_models libtool"
4568 echo "$as_me:4568: checking if you want to build shared libraries" >&5
4569 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4571 # Check whether --with-shared or --without-shared was given.
4572 if test "${with_shared+set}" = set; then
4573 withval="$with_shared"
4574 with_shared=$withval
4578 echo "$as_me:4578: result: $with_shared" >&5
4579 echo "${ECHO_T}$with_shared" >&6
4580 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4582 echo "$as_me:4582: checking if you want to build static libraries" >&5
4583 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4585 # Check whether --with-normal or --without-normal was given.
4586 if test "${with_normal+set}" = set; then
4587 withval="$with_normal"
4588 with_normal=$withval
4592 echo "$as_me:4592: result: $with_normal" >&5
4593 echo "${ECHO_T}$with_normal" >&6
4594 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4596 echo "$as_me:4596: checking if you want to build debug libraries" >&5
4597 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4599 # Check whether --with-debug or --without-debug was given.
4600 if test "${with_debug+set}" = set; then
4601 withval="$with_debug"
4606 echo "$as_me:4606: result: $with_debug" >&5
4607 echo "${ECHO_T}$with_debug" >&6
4608 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4610 echo "$as_me:4610: checking if you want to build profiling libraries" >&5
4611 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4613 # Check whether --with-profile or --without-profile was given.
4614 if test "${with_profile+set}" = set; then
4615 withval="$with_profile"
4616 with_profile=$withval
4620 echo "$as_me:4620: result: $with_profile" >&5
4621 echo "${ECHO_T}$with_profile" >&6
4622 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4626 ###############################################################################
4628 echo "$as_me:4628: checking for specified models" >&5
4629 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4630 test -z "$cf_list_models" && cf_list_models=normal
4631 test "$with_libtool" != "no" && cf_list_models=libtool
4632 echo "$as_me:4632: result: $cf_list_models" >&5
4633 echo "${ECHO_T}$cf_list_models" >&6
4635 ### Use the first model as the default, and save its suffix for use in building
4636 ### up test-applications.
4637 echo "$as_me:4637: checking for default model" >&5
4638 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4639 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4640 echo "$as_me:4640: result: $DFT_LWR_MODEL" >&5
4641 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4643 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4654 case $cf_cv_system_name in #(vi
4661 cf_prefix=$LIB_PREFIX
4663 LIB_PREFIX=$cf_prefix
4667 ###############################################################################
4669 echo "$as_me:4669: checking if you want to build a separate terminfo library" >&5
4670 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4672 # Check whether --with-termlib or --without-termlib was given.
4673 if test "${with_termlib+set}" = set; then
4674 withval="$with_termlib"
4675 with_termlib=$withval
4679 echo "$as_me:4679: result: $with_termlib" >&5
4680 echo "${ECHO_T}$with_termlib" >&6
4682 echo "$as_me:4682: checking if you want to build a separate tic library" >&5
4683 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4685 # Check whether --with-ticlib or --without-ticlib was given.
4686 if test "${with_ticlib+set}" = set; then
4687 withval="$with_ticlib"
4688 with_ticlib=$withval
4692 echo "$as_me:4692: result: $with_ticlib" >&5
4693 echo "${ECHO_T}$with_ticlib" >&6
4695 ### Checks for special libraries, must be done up-front.
4698 echo "$as_me:4698: checking if you want to link with the GPM mouse library" >&5
4699 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4701 # Check whether --with-gpm or --without-gpm was given.
4702 if test "${with_gpm+set}" = set; then
4708 echo "$as_me:4708: result: $with_gpm" >&5
4709 echo "${ECHO_T}$with_gpm" >&6
4711 if test "$with_gpm" != no ; then
4712 echo "$as_me:4712: checking for gpm.h" >&5
4713 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4714 if test "${ac_cv_header_gpm_h+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line 4718 "configure"
4719 #include "confdefs.h"
4722 if { (eval echo "$as_me:4722: \"$ac_cpp conftest.$ac_ext\"") >&5
4723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4725 egrep -v '^ *\+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:4728: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null; then
4730 if test -s conftest.err; then
4731 ac_cpp_err=$ac_c_preproc_warn_flag
4738 if test -z "$ac_cpp_err"; then
4739 ac_cv_header_gpm_h=yes
4741 echo "$as_me: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4743 ac_cv_header_gpm_h=no
4745 rm -f conftest.err conftest.$ac_ext
4747 echo "$as_me:4747: result: $ac_cv_header_gpm_h" >&5
4748 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4749 if test $ac_cv_header_gpm_h = yes; then
4751 cat >>confdefs.h <<\EOF
4752 #define HAVE_GPM_H 1
4755 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4756 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4758 echo "${as_me-configure}:4758: testing assuming we really have GPM library ..." 1>&5
4760 cat >>confdefs.h <<\EOF
4761 #define HAVE_LIBGPM 1
4765 echo "$as_me:4765: checking for Gpm_Open in -lgpm" >&5
4766 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4767 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 ac_check_lib_save_LIBS=$LIBS
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line 4773 "configure"
4774 #include "confdefs.h"
4776 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (eval echo "$as_me:4792: \"$ac_link\"") >&5
4793 (eval $ac_link) 2>&5
4795 echo "$as_me:4795: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:4798: \"$ac_try\"") >&5
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_lib_gpm_Gpm_Open=yes
4805 echo "$as_me: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4807 ac_cv_lib_gpm_Gpm_Open=no
4809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4810 LIBS=$ac_check_lib_save_LIBS
4812 echo "$as_me:4812: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4813 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4814 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4818 { { echo "$as_me:4818: error: Cannot link with GPM library" >&5
4819 echo "$as_me: error: Cannot link with GPM library" >&2;}
4820 { (exit 1); exit 1; }; }
4828 test "$with_gpm" != maybe && { echo "$as_me:4828: WARNING: Cannot find GPM header" >&5
4829 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4836 if test "$with_gpm" != no ; then
4837 echo "$as_me:4837: checking if you want to load GPM dynamically" >&5
4838 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4840 # Check whether --with-dlsym or --without-dlsym was given.
4841 if test "${with_dlsym+set}" = set; then
4842 withval="$with_dlsym"
4847 echo "$as_me:4847: result: $with_dlsym" >&5
4848 echo "${ECHO_T}$with_dlsym" >&6
4849 if test "$with_dlsym" = yes ; then
4852 echo "$as_me:4852: checking for dlsym" >&5
4853 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4854 if test "${ac_cv_func_dlsym+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4858 #line 4858 "configure"
4859 #include "confdefs.h"
4860 /* System header to define __stub macros and hopefully few prototypes,
4861 which can conflict with char dlsym (); below. */
4863 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */
4875 /* The GNU C library defines this for functions which it implements
4876 to always fail with ENOSYS. Some functions are actually named
4877 something starting with __ and the normal name is an alias. */
4878 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4888 rm -f conftest.$ac_objext conftest$ac_exeext
4889 if { (eval echo "$as_me:4889: \"$ac_link\"") >&5
4890 (eval $ac_link) 2>&5
4892 echo "$as_me:4892: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:4895: \"$ac_try\"") >&5
4898 echo "$as_me:4898: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_func_dlsym=yes
4902 echo "$as_me: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4908 echo "$as_me:4908: result: $ac_cv_func_dlsym" >&5
4909 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4910 if test $ac_cv_func_dlsym = yes; then
4915 echo "$as_me:4915: checking for dlsym in -ldl" >&5
4916 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4917 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 ac_check_lib_save_LIBS=$LIBS
4922 cat >conftest.$ac_ext <<_ACEOF
4923 #line 4923 "configure"
4924 #include "confdefs.h"
4926 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4941 rm -f conftest.$ac_objext conftest$ac_exeext
4942 if { (eval echo "$as_me:4942: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>&5
4945 echo "$as_me:4945: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try='test -s conftest$ac_exeext'
4948 { (eval echo "$as_me:4948: \"$ac_try\"") >&5
4951 echo "$as_me:4951: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_lib_dl_dlsym=yes
4955 echo "$as_me: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4957 ac_cv_lib_dl_dlsym=no
4959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4960 LIBS=$ac_check_lib_save_LIBS
4962 echo "$as_me:4962: result: $ac_cv_lib_dl_dlsym" >&5
4963 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4964 if test $ac_cv_lib_dl_dlsym = yes; then
4972 if test "$cf_have_dlsym" = yes ; then
4973 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4975 echo "$as_me:4975: checking whether able to link to dl*() functions" >&5
4976 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line 4978 "configure"
4979 #include "confdefs.h"
4986 if ((obj = dlopen("filename", 0)) != 0) {
4987 if (dlsym(obj, "symbolname") == 0) {
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (eval echo "$as_me:4996: \"$ac_link\"") >&5
4997 (eval $ac_link) 2>&5
4999 echo "$as_me:4999: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -s conftest$ac_exeext'
5002 { (eval echo "$as_me:5002: \"$ac_try\"") >&5
5005 echo "$as_me:5005: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5008 cat >>confdefs.h <<\EOF
5009 #define HAVE_LIBDL 1
5013 echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5016 { { echo "$as_me:5016: error: Cannot link test program for libdl" >&5
5017 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5018 { (exit 1); exit 1; }; }
5020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5021 echo "$as_me:5021: result: ok" >&5
5022 echo "${ECHO_T}ok" >&6
5024 { { echo "$as_me:5024: error: Cannot find dlsym function" >&5
5025 echo "$as_me: error: Cannot find dlsym function" >&2;}
5026 { (exit 1); exit 1; }; }
5029 if test "$with_gpm" != yes ; then
5030 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5032 echo "${as_me-configure}:5032: testing assuming soname for gpm is $with_gpm ..." 1>&5
5034 cf_cv_gpm_soname="$with_gpm"
5037 echo "$as_me:5037: checking for soname of gpm library" >&5
5038 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5039 if test "${cf_cv_gpm_soname+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 cf_cv_gpm_soname=unknown
5044 if test "$cross_compiling" != yes ; then
5045 cat >conftest.$ac_ext <<CF_EOF
5049 if (Gpm_Open(0,0)) Gpm_Close();
5050 ${cf_cv_main_return:-return}(0);
5053 cf_save_LIBS="$LIBS"
5055 if { (eval echo "$as_me:5055: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5058 echo "$as_me:5058: \$? = $ac_status" >&5
5059 (exit $ac_status); } ; then
5060 if { (eval echo "$as_me:5060: \"$ac_link\"") >&5
5061 (eval $ac_link) 2>&5
5063 echo "$as_me:5063: \$? = $ac_status" >&5
5064 (exit $ac_status); } ; then
5065 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5066 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5070 LIBS="$cf_save_LIBS"
5074 echo "$as_me:5074: result: $cf_cv_gpm_soname" >&5
5075 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5078 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5079 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5082 SHLIB_LIST="-ldl $SHLIB_LIST"
5084 SHLIB_LIST="-lgpm $SHLIB_LIST"
5085 TEST_LIBS="-lgpm $TEST_LIBS"
5087 cat >>confdefs.h <<\EOF
5088 #define HAVE_LIBGPM 1
5091 echo "$as_me:5091: checking for Gpm_Wgetch in -lgpm" >&5
5092 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5093 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 ac_check_lib_save_LIBS=$LIBS
5098 cat >conftest.$ac_ext <<_ACEOF
5099 #line 5099 "configure"
5100 #include "confdefs.h"
5102 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:5118: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>&5
5121 echo "$as_me:5121: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -s conftest$ac_exeext'
5124 { (eval echo "$as_me:5124: \"$ac_try\"") >&5
5127 echo "$as_me:5127: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_lib_gpm_Gpm_Wgetch=yes
5131 echo "$as_me: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5133 ac_cv_lib_gpm_Gpm_Wgetch=no
5135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5136 LIBS=$ac_check_lib_save_LIBS
5138 echo "$as_me:5138: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5139 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5140 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5142 echo "$as_me:5142: checking if GPM is weakly bound to curses library" >&5
5143 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5144 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 cf_cv_check_gpm_wgetch=unknown
5149 if test "$cross_compiling" != yes ; then
5151 cat >conftest.$ac_ext <<CF_EOF
5156 ${cf_cv_main_return:-return}(0);
5160 cf_save_LIBS="$LIBS"
5161 # This only works if we can look at the symbol table. If a shared
5162 # library is stripped for install, we cannot use that. So we're forced
5163 # to rely on the static library, noting that some packagers may not
5165 LIBS="-static -lgpm -dynamic $LIBS"
5166 if { (eval echo "$as_me:5166: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>&5
5169 echo "$as_me:5169: \$? = $ac_status" >&5
5170 (exit $ac_status); } ; then
5171 if { (eval echo "$as_me:5171: \"$ac_link\"") >&5
5172 (eval $ac_link) 2>&5
5174 echo "$as_me:5174: \$? = $ac_status" >&5
5175 (exit $ac_status); } ; then
5176 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5177 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5178 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5182 LIBS="$cf_save_LIBS"
5186 echo "$as_me:5186: result: $cf_cv_check_gpm_wgetch" >&5
5187 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5189 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5190 { echo "$as_me:5190: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5191 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5198 # not everyone has "test -c"
5199 if test -c /dev/sysmouse 2>/dev/null ; then
5200 echo "$as_me:5200: checking if you want to use sysmouse" >&5
5201 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5203 # Check whether --with-sysmouse or --without-sysmouse was given.
5204 if test "${with_sysmouse+set}" = set; then
5205 withval="$with_sysmouse"
5206 cf_with_sysmouse=$withval
5208 cf_with_sysmouse=maybe
5210 if test "$cf_with_sysmouse" != no ; then
5211 cat >conftest.$ac_ext <<_ACEOF
5212 #line 5212 "configure"
5213 #include "confdefs.h"
5215 #include <osreldate.h>
5216 #if (__FreeBSD_version >= 400017)
5217 #include <sys/consio.h>
5218 #include <sys/fbio.h>
5220 #include <machine/console.h>
5227 struct mouse_info the_mouse;
5228 ioctl(0, CONS_MOUSECTL, &the_mouse);
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:5235: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>&5
5238 echo "$as_me:5238: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -s conftest.$ac_objext'
5241 { (eval echo "$as_me:5241: \"$ac_try\"") >&5
5244 echo "$as_me:5244: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 cf_with_sysmouse=yes
5248 echo "$as_me: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5252 rm -f conftest.$ac_objext conftest.$ac_ext
5254 echo "$as_me:5254: result: $cf_with_sysmouse" >&5
5255 echo "${ECHO_T}$cf_with_sysmouse" >&6
5256 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5257 #define USE_SYSMOUSE 1
5262 if test X"$CC_G_OPT" = X"" ; then
5264 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5267 if test X"$CXX_G_OPT" = X"" ; then
5269 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5272 echo "$as_me:5272: checking for default loader flags" >&5
5273 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5274 case $DFT_LWR_MODEL in
5275 libtool) LD_MODEL='' ;;
5276 normal) LD_MODEL='' ;;
5277 debug) LD_MODEL=$CC_G_OPT ;;
5278 profile) LD_MODEL='-pg';;
5279 shared) LD_MODEL='' ;;
5281 echo "$as_me:5281: result: $LD_MODEL" >&5
5282 echo "${ECHO_T}$LD_MODEL" >&6
5284 case $DFT_LWR_MODEL in
5287 echo "$as_me:5287: checking if rpath option should be used" >&5
5288 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5290 # Check whether --enable-rpath or --disable-rpath was given.
5291 if test "${enable_rpath+set}" = set; then
5292 enableval="$enable_rpath"
5293 cf_cv_enable_rpath=$enableval
5295 cf_cv_enable_rpath=no
5297 echo "$as_me:5297: result: $cf_cv_enable_rpath" >&5
5298 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5300 echo "$as_me:5300: checking if shared libraries should be relinked during install" >&5
5301 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5303 # Check whether --enable-relink or --disable-relink was given.
5304 if test "${enable_relink+set}" = set; then
5305 enableval="$enable_relink"
5306 cf_cv_do_relink=$enableval
5310 echo "$as_me:5310: result: $cf_cv_do_relink" >&5
5311 echo "${ECHO_T}$cf_cv_do_relink" >&6
5316 echo "$as_me:5316: checking for an rpath option" >&5
5317 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5318 case $cf_cv_system_name in #(vi
5320 if test "$GCC" = yes; then
5321 LD_RPATH_OPT="-Wl,-rpath,"
5323 LD_RPATH_OPT="-rpath "
5326 linux*|gnu*|k*bsd*-gnu) #(vi
5327 LD_RPATH_OPT="-Wl,-rpath,"
5329 openbsd[2-9].*) #(vi
5330 LD_RPATH_OPT="-Wl,-rpath,"
5333 LD_RPATH_OPT="-rpath "
5336 LD_RPATH_OPT="-Wl,-rpath,"
5339 LD_RPATH_OPT="-rpath "
5347 echo "$as_me:5347: result: $LD_RPATH_OPT" >&5
5348 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5350 case "x$LD_RPATH_OPT" in #(vi
5352 echo "$as_me:5352: checking if we need a space after rpath option" >&5
5353 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5354 cf_save_LIBS="$LIBS"
5355 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5356 cat >conftest.$ac_ext <<_ACEOF
5357 #line 5357 "configure"
5358 #include "confdefs.h"
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:5369: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5372 echo "$as_me:5372: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -s conftest$ac_exeext'
5375 { (eval echo "$as_me:5375: \"$ac_try\"") >&5
5378 echo "$as_me:5378: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5387 LIBS="$cf_save_LIBS"
5388 echo "$as_me:5388: result: $cf_rpath_space" >&5
5389 echo "${ECHO_T}$cf_rpath_space" >&6
5390 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5397 INSTALL_LIB="-m 644"
5399 cf_cv_do_symlinks=no
5401 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5403 echo "$as_me:5403: checking if release/abi version should be used for shared libs" >&5
5404 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5406 # Check whether --with-shlib-version or --without-shlib-version was given.
5407 if test "${with_shlib_version+set}" = set; then
5408 withval="$with_shlib_version"
5409 test -z "$withval" && withval=auto
5410 case $withval in #(vi
5412 cf_cv_shlib_version=auto
5414 rel|abi|auto|no) #(vi
5415 cf_cv_shlib_version=$withval
5418 { { echo "$as_me:5418: error: option value must be one of: rel, abi, auto or no" >&5
5419 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5420 { (exit 1); exit 1; }; }
5425 cf_cv_shlib_version=auto
5427 echo "$as_me:5427: result: $cf_cv_shlib_version" >&5
5428 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5432 # Some less-capable ports of gcc support only -fpic
5434 if test "$GCC" = yes
5436 echo "$as_me:5436: checking which $CC option to use" >&5
5437 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5438 cf_save_CFLAGS="$CFLAGS"
5439 for CC_SHARED_OPTS in -fPIC -fpic ''
5441 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5442 cat >conftest.$ac_ext <<_ACEOF
5443 #line 5443 "configure"
5444 #include "confdefs.h"
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:5455: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>&5
5458 echo "$as_me:5458: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -s conftest.$ac_objext'
5461 { (eval echo "$as_me:5461: \"$ac_try\"") >&5
5464 echo "$as_me:5464: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5468 echo "$as_me: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 rm -f conftest.$ac_objext conftest.$ac_ext
5473 echo "$as_me:5473: result: $CC_SHARED_OPTS" >&5
5474 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5475 CFLAGS="$cf_save_CFLAGS"
5478 cf_cv_shlib_version_infix=no
5480 case $cf_cv_system_name in #(vi
5482 if test "$GCC" = yes; then
5484 MK_SHARED_LIB='$(CC) -shared'
5488 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5492 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5493 cf_cv_shlib_version=cygdll
5494 cf_cv_shlib_version_infix=cygdll
5495 cat >mk_shared_lib.sh <<-CF_EOF
5498 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5501 Linking shared library
5502 ** SHARED_LIB \$SHARED_LIB
5503 ** IMPORT_LIB \$IMPORT_LIB
5505 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5507 chmod +x mk_shared_lib.sh
5510 EXTRA_CFLAGS="-no-cpp-precomp"
5511 CC_SHARED_OPTS="-dynamic"
5512 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5513 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5514 cf_cv_shlib_version_infix=yes
5515 echo "$as_me:5515: checking if ld -search_paths_first works" >&5
5516 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5517 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cf_save_LDFLAGS=$LDFLAGS
5522 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5523 cat >conftest.$ac_ext <<_ACEOF
5524 #line 5524 "configure"
5525 #include "confdefs.h"
5535 rm -f conftest.$ac_objext conftest$ac_exeext
5536 if { (eval echo "$as_me:5536: \"$ac_link\"") >&5
5537 (eval $ac_link) 2>&5
5539 echo "$as_me:5539: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -s conftest$ac_exeext'
5542 { (eval echo "$as_me:5542: \"$ac_try\"") >&5
5545 echo "$as_me:5545: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 cf_cv_ldflags_search_paths_first=yes
5549 echo "$as_me: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5551 cf_cv_ldflags_search_paths_first=no
5553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5554 LDFLAGS=$cf_save_LDFLAGS
5556 echo "$as_me:5556: result: $cf_cv_ldflags_search_paths_first" >&5
5557 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5558 if test $cf_cv_ldflags_search_paths_first = yes; then
5559 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5563 # (tested with gcc 2.7.2 -- I don't have c89)
5564 if test "$GCC" = yes; then
5565 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5568 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5570 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5571 # HP-UX shared libraries must be executable, and should be
5572 # readonly to exploit a quirk in the memory manager.
5573 INSTALL_LIB="-m 555"
5576 if test "$cf_cv_enable_rpath" = yes ; then
5577 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5579 # tested with IRIX 5.2 and 'cc'.
5580 if test "$GCC" != yes; then
5581 CC_SHARED_OPTS='-KPIC'
5582 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5584 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5586 cf_cv_rm_so_locs=yes
5588 linux*|gnu*|k*bsd*-gnu) #(vi
5589 if test "$DFT_LWR_MODEL" = "shared" ; then
5590 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5591 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5593 if test "$cf_cv_enable_rpath" = yes ; then
5594 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5597 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5598 if test "$cf_cv_shlib_version" = rel; then
5599 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5601 cf_cv_shared_soname='`basename $@`'
5604 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5606 openbsd[2-9].*) #(vi
5607 if test "$DFT_LWR_MODEL" = "shared" ; then
5608 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5609 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5611 if test "$cf_cv_enable_rpath" = yes ; then
5612 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5614 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5616 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5617 if test "$cf_cv_shlib_version" = rel; then
5618 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5620 cf_cv_shared_soname='`basename $@`'
5623 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5625 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5626 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5627 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5628 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5631 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5632 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5633 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5634 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
5635 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5638 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5639 if test "$cf_cv_shlib_version" = rel; then
5640 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5642 cf_cv_shared_soname='`basename $@`'
5645 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5648 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5649 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5650 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5651 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5652 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5653 if test "$cf_cv_shlib_version" = auto; then
5654 if test -f /usr/libexec/ld.elf_so; then
5655 cf_cv_shlib_version=abi
5657 cf_cv_shlib_version=rel
5661 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5662 if test "$cf_cv_shlib_version" = rel; then
5663 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5665 cf_cv_shared_soname='`basename $@`'
5668 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5670 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5674 # tested with OSF/1 V3.2 and 'cc'
5675 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5676 # link with shared libs).
5677 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5678 case $host_os in #(vi
5680 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5683 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5684 if test "$DFT_LWR_MODEL" = "shared" ; then
5685 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5686 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5688 cf_cv_rm_so_locs=yes
5690 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5691 # tested with osr5.0.5
5692 if test "$GCC" != yes; then
5693 CC_SHARED_OPTS='-belf -KPIC'
5695 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5696 if test "$cf_cv_enable_rpath" = yes ; then
5697 # only way is to set LD_RUN_PATH but no switch for it
5700 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5701 LINK_PROGS='LD_RUN_PATH=${libdir}'
5702 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5705 # tested with SunOS 4.1.1 and gcc 2.7.0
5706 if test "$GCC" != yes; then
5707 CC_SHARED_OPTS='-KPIC'
5709 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5710 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5713 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5714 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5715 if test "$DFT_LWR_MODEL" = "shared" ; then
5716 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5717 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5719 if test "$cf_cv_enable_rpath" = yes ; then
5720 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5723 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5724 if test "$cf_cv_shlib_version" = rel; then
5725 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5727 cf_cv_shared_soname='`basename $@`'
5730 if test "$GCC" != yes; then
5731 cf_save_CFLAGS="$CFLAGS"
5732 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5734 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line 5736 "configure"
5737 #include "confdefs.h"
5747 rm -f conftest.$ac_objext
5748 if { (eval echo "$as_me:5748: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5751 echo "$as_me:5751: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:5754: \"$ac_try\"") >&5
5757 echo "$as_me:5757: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5761 echo "$as_me: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5764 rm -f conftest.$ac_objext conftest.$ac_ext
5766 CFLAGS="$cf_save_CFLAGS"
5767 CC_SHARED_OPTS=$cf_shared_opts
5768 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5770 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5773 sysv5uw7*|unix_sv*) #(vi
5774 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5775 if test "$GCC" != yes; then
5776 CC_SHARED_OPTS='-KPIC'
5778 MK_SHARED_LIB='${LD} -d y -G -o $@'
5781 CC_SHARED_OPTS='unknown'
5782 MK_SHARED_LIB='echo unknown'
5786 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5787 case "$cf_cv_shlib_version" in #(vi
5789 case "$MK_SHARED_LIB" in #(vi
5791 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5794 { echo "$as_me:5794: WARNING: ignored --with-shlib-version" >&5
5795 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5801 if test -n "$cf_ld_rpath_opt" ; then
5802 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5805 if test "$CC_SHARED_OPTS" = "unknown"; then
5806 for model in $cf_list_models; do
5807 if test "$model" = "shared"; then
5808 { { echo "$as_me:5808: error: Shared libraries are not supported in this version" >&5
5809 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5810 { (exit 1); exit 1; }; }
5815 ### If we're building with rpath, try to link non-standard libs that way too.
5816 if test "$DFT_LWR_MODEL" = "shared"; then
5818 echo "$as_me:5818: checking if rpath should be not be set" >&5
5819 echo $ECHO_N "checking if rpath should be not be set... $ECHO_C" >&6
5821 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
5822 if test "${enable_rpath_hack+set}" = set; then
5823 enableval="$enable_rpath_hack"
5824 test "$enableval" != no && enableval=yes
5825 if test "$enableval" != "yes" ; then
5826 cf_disable_rpath_hack=yes
5828 cf_disable_rpath_hack=no
5832 cf_disable_rpath_hack=no
5835 echo "$as_me:5835: result: $cf_disable_rpath_hack" >&5
5836 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
5837 if test "$cf_disable_rpath_hack" = no ; then
5839 echo "$as_me:5839: checking for updated LDFLAGS" >&5
5840 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
5841 if test -n "$LD_RPATH_OPT" ; then
5842 echo "$as_me:5842: result: maybe" >&5
5843 echo "${ECHO_T}maybe" >&6
5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 echo "$as_me:5849: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$cf_ldd_prog"; then
5855 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
5857 ac_save_IFS=$IFS; IFS=$ac_path_separator
5859 for ac_dir in $ac_dummy; do
5861 test -z "$ac_dir" && ac_dir=.
5862 $as_executable_p "$ac_dir/$ac_word" || continue
5863 ac_cv_prog_cf_ldd_prog="$ac_prog"
5864 echo "$as_me:5864: found $ac_dir/$ac_word" >&5
5870 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
5871 if test -n "$cf_ldd_prog"; then
5872 echo "$as_me:5872: result: $cf_ldd_prog" >&5
5873 echo "${ECHO_T}$cf_ldd_prog" >&6
5875 echo "$as_me:5875: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5879 test -n "$cf_ldd_prog" && break
5881 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
5883 cf_rpath_list="/usr/lib /lib"
5884 if test "$cf_ldd_prog" != no
5886 cat >conftest.$ac_ext <<_ACEOF
5887 #line 5887 "configure"
5888 #include "confdefs.h"
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:5899: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>&5
5902 echo "$as_me:5902: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -s conftest$ac_exeext'
5905 { (eval echo "$as_me:5905: \"$ac_try\"") >&5
5908 echo "$as_me:5908: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
5912 echo "$as_me: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5918 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
5920 echo "${as_me-configure}:5920: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
5922 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
5924 echo "${as_me-configure}:5924: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
5927 for cf_rpath_src in $LDFLAGS
5929 case $cf_rpath_src in #(vi
5932 # check if this refers to a directory which we will ignore
5934 if test -n "$cf_rpath_list"
5936 for cf_rpath_item in $cf_rpath_list
5938 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
5946 if test "$cf_rpath_skip" = no
5948 # transform the option
5949 if test "$LD_RPATH_OPT" = "-R " ; then
5950 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
5952 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
5955 # if we have not already added this, add it now
5956 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
5957 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
5959 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
5961 echo "${as_me-configure}:5961: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
5963 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
5968 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
5970 LDFLAGS=$cf_rpath_dst
5972 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
5974 echo "${as_me-configure}:5974: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
5976 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
5978 echo "${as_me-configure}:5978: testing ...checking LIBS $LIBS ..." 1>&5
5981 for cf_rpath_src in $LIBS
5983 case $cf_rpath_src in #(vi
5986 # check if this refers to a directory which we will ignore
5988 if test -n "$cf_rpath_list"
5990 for cf_rpath_item in $cf_rpath_list
5992 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6000 if test "$cf_rpath_skip" = no
6002 # transform the option
6003 if test "$LD_RPATH_OPT" = "-R " ; then
6004 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6006 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6009 # if we have not already added this, add it now
6010 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6011 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6013 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6015 echo "${as_me-configure}:6015: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6017 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6022 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6026 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6028 echo "${as_me-configure}:6028: testing ...checked LIBS $LIBS ..." 1>&5
6030 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6032 echo "${as_me-configure}:6032: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6040 ###############################################################################
6042 ### use option --disable-overwrite to leave out the link to -lcurses
6043 echo "$as_me:6043: checking if you wish to install ncurses overwriting curses" >&5
6044 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6046 # Check whether --enable-overwrite or --disable-overwrite was given.
6047 if test "${enable_overwrite+set}" = set; then
6048 enableval="$enable_overwrite"
6049 with_overwrite=$enableval
6051 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6053 echo "$as_me:6053: result: $with_overwrite" >&5
6054 echo "${ECHO_T}$with_overwrite" >&6
6056 echo "$as_me:6056: checking if external terminfo-database is used" >&5
6057 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6059 # Check whether --enable-database or --disable-database was given.
6060 if test "${enable_database+set}" = set; then
6061 enableval="$enable_database"
6062 use_database=$enableval
6066 echo "$as_me:6066: result: $use_database" >&5
6067 echo "${ECHO_T}$use_database" >&6
6069 case $host_os in #(vi
6071 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6074 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6078 case $cf_cv_system_name in
6079 os2*) PATH_SEPARATOR=';' ;;
6080 *) PATH_SEPARATOR=':' ;;
6083 if test "$use_database" != no ; then
6084 cat >>confdefs.h <<\EOF
6085 #define USE_DATABASE 1
6088 echo "$as_me:6088: checking which terminfo source-file will be installed" >&5
6089 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6091 # Check whether --with-database or --without-database was given.
6092 if test "${with_database+set}" = set; then
6093 withval="$with_database"
6094 TERMINFO_SRC=$withval
6096 echo "$as_me:6096: result: $TERMINFO_SRC" >&5
6097 echo "${ECHO_T}$TERMINFO_SRC" >&6
6099 echo "$as_me:6099: checking whether to use hashed database instead of directory/tree" >&5
6100 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6102 # Check whether --with-hashed-db or --without-hashed-db was given.
6103 if test "${with_hashed_db+set}" = set; then
6104 withval="$with_hashed_db"
6109 echo "$as_me:6109: result: $with_hashed_db" >&5
6110 echo "${ECHO_T}$with_hashed_db" >&6
6115 echo "$as_me:6115: checking for list of fallback descriptions" >&5
6116 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6118 # Check whether --with-fallbacks or --without-fallbacks was given.
6119 if test "${with_fallbacks+set}" = set; then
6120 withval="$with_fallbacks"
6121 with_fallback=$withval
6125 echo "$as_me:6125: result: $with_fallback" >&5
6126 echo "${ECHO_T}$with_fallback" >&6
6127 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6129 echo "$as_me:6129: checking if you want modern xterm or antique" >&5
6130 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6132 # Check whether --with-xterm-new or --without-xterm-new was given.
6133 if test "${with_xterm_new+set}" = set; then
6134 withval="$with_xterm_new"
6135 with_xterm_new=$withval
6139 case $with_xterm_new in
6140 no) with_xterm_new=xterm-old;;
6141 *) with_xterm_new=xterm-new;;
6143 echo "$as_me:6143: result: $with_xterm_new" >&5
6144 echo "${ECHO_T}$with_xterm_new" >&6
6145 WHICH_XTERM=$with_xterm_new
6148 if test "$use_database" = no ; then
6149 TERMINFO="${datadir}/terminfo"
6153 echo "$as_me:6153: checking for list of terminfo directories" >&5
6154 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6156 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6157 if test "${with_terminfo_dirs+set}" = set; then
6158 withval="$with_terminfo_dirs"
6161 withval=${TERMINFO_DIRS-${datadir}/terminfo}
6163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6165 for cf_src_path in $withval
6168 if test "x$prefix" != xNONE; then
6169 cf_path_syntax="$prefix"
6171 cf_path_syntax="$ac_default_prefix"
6174 case ".$cf_src_path" in #(vi
6175 .\$\(*\)*|.\'*\'*) #(vi
6179 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6182 eval cf_src_path="$cf_src_path"
6183 case ".$cf_src_path" in #(vi
6185 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6190 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6193 { { echo "$as_me:6193: error: expected a pathname, not \"$cf_src_path\"" >&5
6194 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6195 { (exit 1); exit 1; }; }
6199 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6200 cf_dst_path="${cf_dst_path}${cf_src_path}"
6204 eval 'TERMINFO_DIRS="$cf_dst_path"'
6206 echo "$as_me:6206: result: $TERMINFO_DIRS" >&5
6207 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6208 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6209 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6212 echo "$as_me:6212: checking for default terminfo directory" >&5
6213 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6215 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6216 if test "${with_default_terminfo_dir+set}" = set; then
6217 withval="$with_default_terminfo_dir"
6220 withval="${TERMINFO-${datadir}/terminfo}"
6221 fi; if test -n "${datadir}/terminfo" ; then
6223 if test "x$prefix" != xNONE; then
6224 cf_path_syntax="$prefix"
6226 cf_path_syntax="$ac_default_prefix"
6229 case ".$withval" in #(vi
6230 .\$\(*\)*|.\'*\'*) #(vi
6234 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6237 eval withval="$withval"
6238 case ".$withval" in #(vi
6240 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6245 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6248 { { echo "$as_me:6248: error: expected a pathname, not \"$withval\"" >&5
6249 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6250 { (exit 1); exit 1; }; }
6257 echo "$as_me:6257: result: $TERMINFO" >&5
6258 echo "${ECHO_T}$TERMINFO" >&6
6259 cat >>confdefs.h <<EOF
6260 #define TERMINFO "$TERMINFO"
6265 ### use option --disable-big-core to make tic run on small machines
6266 ### We need 4Mb, check if we can allocate 50% more than that.
6267 echo "$as_me:6267: checking if big-core option selected" >&5
6268 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6270 # Check whether --enable-big-core or --disable-big-core was given.
6271 if test "${enable_big_core+set}" = set; then
6272 enableval="$enable_big_core"
6273 with_big_core=$enableval
6275 if test "$cross_compiling" = yes; then
6278 cat >conftest.$ac_ext <<_ACEOF
6279 #line 6279 "configure"
6280 #include "confdefs.h"
6285 unsigned long n = 6000000L;
6286 char *s = malloc(n);
6289 ${cf_cv_main_return:-return}(s == 0);
6292 rm -f conftest$ac_exeext
6293 if { (eval echo "$as_me:6293: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>&5
6296 echo "$as_me:6296: \$? = $ac_status" >&5
6297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6298 { (eval echo "$as_me:6298: \"$ac_try\"") >&5
6301 echo "$as_me:6301: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6305 echo "$as_me: program exited with status $ac_status" >&5
6306 echo "$as_me: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6310 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6313 echo "$as_me:6313: result: $with_big_core" >&5
6314 echo "${ECHO_T}$with_big_core" >&6
6315 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6316 #define HAVE_BIG_CORE 1
6319 ### ISO C only guarantees 512-char strings, we have tables which load faster
6320 ### when constructed using "big" strings. More than the C compiler, the awk
6321 ### program is a limit on most vendor UNIX systems. Check that we can build.
6322 echo "$as_me:6322: checking if big-strings option selected" >&5
6323 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6325 # Check whether --enable-big-strings or --disable-big-strings was given.
6326 if test "${enable_big_strings+set}" = set; then
6327 enableval="$enable_big_strings"
6328 with_big_strings=$enableval
6333 eval with_big_strings=no
6336 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
6337 | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
6338 eval with_big_strings=yes
6340 eval with_big_strings=no
6346 echo "$as_me:6346: result: $with_big_strings" >&5
6347 echo "${ECHO_T}$with_big_strings" >&6
6350 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6352 ### use option --enable-termcap to compile in the termcap fallback support
6353 echo "$as_me:6353: checking if you want termcap-fallback support" >&5
6354 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6356 # Check whether --enable-termcap or --disable-termcap was given.
6357 if test "${enable_termcap+set}" = set; then
6358 enableval="$enable_termcap"
6359 with_termcap=$enableval
6363 echo "$as_me:6363: result: $with_termcap" >&5
6364 echo "${ECHO_T}$with_termcap" >&6
6366 if test "$with_termcap" != "yes" ; then
6367 if test "$use_database" = no ; then
6368 if test -z "$with_fallback" ; then
6369 { { echo "$as_me:6369: error: You have disabled the database w/o specifying fallbacks" >&5
6370 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6371 { (exit 1); exit 1; }; }
6374 cat >>confdefs.h <<\EOF
6375 #define PURE_TERMINFO 1
6380 if test "$with_ticlib" != no ; then
6381 { { echo "$as_me:6381: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6382 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6383 { (exit 1); exit 1; }; }
6386 cat >>confdefs.h <<\EOF
6387 #define USE_TERMCAP 1
6390 echo "$as_me:6390: checking for list of termcap files" >&5
6391 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6393 # Check whether --with-termpath or --without-termpath was given.
6394 if test "${with_termpath+set}" = set; then
6395 withval="$with_termpath"
6398 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
6400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6402 for cf_src_path in $withval
6405 if test "x$prefix" != xNONE; then
6406 cf_path_syntax="$prefix"
6408 cf_path_syntax="$ac_default_prefix"
6411 case ".$cf_src_path" in #(vi
6412 .\$\(*\)*|.\'*\'*) #(vi
6416 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6419 eval cf_src_path="$cf_src_path"
6420 case ".$cf_src_path" in #(vi
6422 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6427 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6430 { { echo "$as_me:6430: error: expected a pathname, not \"$cf_src_path\"" >&5
6431 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6432 { (exit 1); exit 1; }; }
6436 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6437 cf_dst_path="${cf_dst_path}${cf_src_path}"
6441 eval 'TERMPATH="$cf_dst_path"'
6443 echo "$as_me:6443: result: $TERMPATH" >&5
6444 echo "${ECHO_T}$TERMPATH" >&6
6445 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6446 #define TERMPATH "$TERMPATH"
6449 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6450 echo "$as_me:6450: checking if fast termcap-loader is needed" >&5
6451 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6453 # Check whether --enable-getcap or --disable-getcap was given.
6454 if test "${enable_getcap+set}" = set; then
6455 enableval="$enable_getcap"
6456 with_getcap=$enableval
6460 echo "$as_me:6460: result: $with_getcap" >&5
6461 echo "${ECHO_T}$with_getcap" >&6
6462 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6463 #define USE_GETCAP 1
6466 echo "$as_me:6466: checking if translated termcaps will be cached in ~/.terminfo" >&5
6467 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6469 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6470 if test "${enable_getcap_cache+set}" = set; then
6471 enableval="$enable_getcap_cache"
6472 with_getcap_cache=$enableval
6474 with_getcap_cache=no
6476 echo "$as_me:6476: result: $with_getcap_cache" >&5
6477 echo "${ECHO_T}$with_getcap_cache" >&6
6478 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6479 #define USE_GETCAP_CACHE 1
6484 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6485 echo "$as_me:6485: checking if ~/.terminfo is wanted" >&5
6486 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6488 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6489 if test "${enable_home_terminfo+set}" = set; then
6490 enableval="$enable_home_terminfo"
6491 with_home_terminfo=$enableval
6493 with_home_terminfo=yes
6495 echo "$as_me:6495: result: $with_home_terminfo" >&5
6496 echo "${ECHO_T}$with_home_terminfo" >&6
6497 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6498 #define USE_HOME_TERMINFO 1
6501 echo "$as_me:6501: checking if you want to use restricted environment when running as root" >&5
6502 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6504 # Check whether --enable-root-environ or --disable-root-environ was given.
6505 if test "${enable_root_environ+set}" = set; then
6506 enableval="$enable_root_environ"
6507 with_root_environ=$enableval
6509 with_root_environ=yes
6511 echo "$as_me:6511: result: $with_root_environ" >&5
6512 echo "${ECHO_T}$with_root_environ" >&6
6513 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6514 #define USE_ROOT_ENVIRON 1
6517 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6518 ### to reduce storage requirements for the terminfo database.
6524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6525 echo "$as_me:6525: checking for $ac_func" >&5
6526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6527 if eval "test \"\${$as_ac_var+set}\" = set"; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6531 #line 6531 "configure"
6532 #include "confdefs.h"
6533 /* System header to define __stub macros and hopefully few prototypes,
6534 which can conflict with char $ac_func (); below. */
6536 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6548 /* The GNU C library defines this for functions which it implements
6549 to always fail with ENOSYS. Some functions are actually named
6550 something starting with __ and the normal name is an alias. */
6551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (eval echo "$as_me:6562: \"$ac_link\"") >&5
6563 (eval $ac_link) 2>&5
6565 echo "$as_me:6565: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:6568: \"$ac_try\"") >&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 eval "$as_ac_var=yes"
6575 echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6577 eval "$as_ac_var=no"
6579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6581 echo "$as_me:6581: result: `eval echo '${'$as_ac_var'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6583 if test `eval echo '${'$as_ac_var'}'` = yes; then
6584 cat >>confdefs.h <<EOF
6585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6591 if test "$cross_compiling" = yes ; then
6597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6598 echo "$as_me:6598: checking for $ac_func" >&5
6599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6600 if eval "test \"\${$as_ac_var+set}\" = set"; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line 6604 "configure"
6605 #include "confdefs.h"
6606 /* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char $ac_func (); below. */
6609 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6621 /* The GNU C library defines this for functions which it implements
6622 to always fail with ENOSYS. Some functions are actually named
6623 something starting with __ and the normal name is an alias. */
6624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:6635: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6638 echo "$as_me:6638: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:6641: \"$ac_try\"") >&5
6644 echo "$as_me:6644: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 eval "$as_ac_var=yes"
6648 echo "$as_me: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6650 eval "$as_ac_var=no"
6652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6654 echo "$as_me:6654: result: `eval echo '${'$as_ac_var'}'`" >&5
6655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6656 if test `eval echo '${'$as_ac_var'}'` = yes; then
6657 cat >>confdefs.h <<EOF
6658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6665 echo "$as_me:6665: checking if link/symlink functions work" >&5
6666 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6667 if test "${cf_cv_link_funcs+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 for cf_func in link symlink ; do
6673 if test "$cross_compiling" = yes; then
6675 eval 'ac_cv_func_'$cf_func'=error'
6677 cat >conftest.$ac_ext <<_ACEOF
6678 #line 6678 "configure"
6679 #include "confdefs.h"
6681 #include <sys/types.h>
6682 #include <sys/stat.h>
6683 #ifdef HAVE_UNISTD_H
6689 char *src = "config.log";
6690 char *dst = "conftest.chk";
6695 fail = ($cf_func("config.log", "conftest.chk") < 0)
6696 || (stat(dst, &dst_sb) < 0)
6697 || (dst_sb.st_mtime != src_sb.st_mtime);
6703 ${cf_cv_main_return:-return} (fail);
6707 rm -f conftest$ac_exeext
6708 if { (eval echo "$as_me:6708: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>&5
6711 echo "$as_me:6711: \$? = $ac_status" >&5
6712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6713 { (eval echo "$as_me:6713: \"$ac_try\"") >&5
6716 echo "$as_me:6716: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6719 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6720 eval 'ac_cv_func_'$cf_func'=yes'
6722 echo "$as_me: program exited with status $ac_status" >&5
6723 echo "$as_me: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval 'ac_cv_func_'$cf_func'=no'
6728 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6731 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6734 echo "$as_me:6734: result: $cf_cv_link_funcs" >&5
6735 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6736 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6740 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6741 #define HAVE_SYMLINK 1
6749 # soft links (symbolic links) are useful for some systems where hard links do
6750 # not work, or to make it simpler to copy terminfo trees around.
6751 if test "$ac_cv_func_symlink" = yes ; then
6752 echo "$as_me:6752: checking if tic should use symbolic links" >&5
6753 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6755 # Check whether --enable-symlinks or --disable-symlinks was given.
6756 if test "${enable_symlinks+set}" = set; then
6757 enableval="$enable_symlinks"
6758 with_symlinks=$enableval
6762 echo "$as_me:6762: result: $with_symlinks" >&5
6763 echo "${ECHO_T}$with_symlinks" >&6
6766 # If we have hard links and did not choose to use soft links instead, there is
6767 # no reason to make this choice optional - use the hard links.
6768 if test "$with_symlinks" = no ; then
6769 echo "$as_me:6769: checking if tic should use hard links" >&5
6770 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6771 if test "$ac_cv_func_link" = yes ; then
6776 echo "$as_me:6776: result: $with_links" >&5
6777 echo "${ECHO_T}$with_links" >&6
6780 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6784 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6785 #define USE_SYMLINKS 1
6788 ### use option --enable-broken-linker to force on use of broken-linker support
6789 echo "$as_me:6789: checking if you want broken-linker support code" >&5
6790 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6792 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6793 if test "${enable_broken_linker+set}" = set; then
6794 enableval="$enable_broken_linker"
6795 with_broken_linker=$enableval
6797 with_broken_linker=${BROKEN_LINKER-no}
6799 echo "$as_me:6799: result: $with_broken_linker" >&5
6800 echo "${ECHO_T}$with_broken_linker" >&6
6803 if test "$with_broken_linker" = yes ; then
6804 cat >>confdefs.h <<\EOF
6805 #define BROKEN_LINKER 1
6809 elif test "$DFT_LWR_MODEL" = shared ; then
6810 case $cf_cv_system_name in #(vi
6812 cat >>confdefs.h <<\EOF
6813 #define BROKEN_LINKER 1
6817 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6819 echo "${as_me-configure}:6819: testing cygwin linker is broken anyway ..." 1>&5
6825 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6826 echo "$as_me:6826: checking if tputs should process BSD-style prefix padding" >&5
6827 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6829 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6830 if test "${enable_bsdpad+set}" = set; then
6831 enableval="$enable_bsdpad"
6832 with_bsdpad=$enableval
6836 echo "$as_me:6836: result: $with_bsdpad" >&5
6837 echo "${ECHO_T}$with_bsdpad" >&6
6838 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6842 ### use option --enable-widec to turn on use of wide-character support
6851 # Check to define _XOPEN_SOURCE "automatically"
6854 cf_POSIX_C_SOURCE=199506L
6857 case $host_os in #(vi
6859 cf_xopen_source="-D_ALL_SOURCE"
6862 cf_xopen_source="-D_APPLE_C_SOURCE"
6865 cf_xopen_source="-D_DARWIN_C_SOURCE"
6867 freebsd*|dragonfly*) #(vi
6868 # 5.x headers associate
6869 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6870 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6871 cf_POSIX_C_SOURCE=200112L
6873 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6876 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6879 cf_xopen_source="-D_HPUX_SOURCE"
6882 cf_xopen_source="-D_SGI_SOURCE"
6884 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6886 echo "$as_me:6886: checking if we must define _GNU_SOURCE" >&5
6887 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6888 if test "${cf_cv_gnu_source+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 cat >conftest.$ac_ext <<_ACEOF
6893 #line 6893 "configure"
6894 #include "confdefs.h"
6895 #include <sys/types.h>
6900 #ifndef _XOPEN_SOURCE
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:6908: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>&5
6911 echo "$as_me:6911: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:6914: \"$ac_try\"") >&5
6917 echo "$as_me:6917: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6921 echo "$as_me: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6924 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6925 cat >conftest.$ac_ext <<_ACEOF
6926 #line 6926 "configure"
6927 #include "confdefs.h"
6928 #include <sys/types.h>
6933 #ifdef _XOPEN_SOURCE
6940 rm -f conftest.$ac_objext
6941 if { (eval echo "$as_me:6941: \"$ac_compile\"") >&5
6942 (eval $ac_compile) 2>&5
6944 echo "$as_me:6944: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -s conftest.$ac_objext'
6947 { (eval echo "$as_me:6947: \"$ac_try\"") >&5
6950 echo "$as_me:6950: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6954 echo "$as_me: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6956 cf_cv_gnu_source=yes
6958 rm -f conftest.$ac_objext conftest.$ac_ext
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6965 echo "$as_me:6965: result: $cf_cv_gnu_source" >&5
6966 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6967 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6971 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6974 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6977 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6980 cf_xopen_source="-D_OSF_SOURCE"
6983 cf_xopen_source="-D_QNX_SOURCE"
6986 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6988 solaris2.1[0-9]) #(vi
6989 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6991 solaris2.[1-9]) #(vi
6992 cf_xopen_source="-D__EXTENSIONS__"
6995 echo "$as_me:6995: checking if we should define _XOPEN_SOURCE" >&5
6996 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6997 if test "${cf_cv_xopen_source+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 cat >conftest.$ac_ext <<_ACEOF
7002 #line 7002 "configure"
7003 #include "confdefs.h"
7004 #include <sys/types.h>
7009 #ifndef _XOPEN_SOURCE
7016 rm -f conftest.$ac_objext
7017 if { (eval echo "$as_me:7017: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>&5
7020 echo "$as_me:7020: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -s conftest.$ac_objext'
7023 { (eval echo "$as_me:7023: \"$ac_try\"") >&5
7026 echo "$as_me:7026: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 cf_cv_xopen_source=no
7030 echo "$as_me: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7033 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7034 cat >conftest.$ac_ext <<_ACEOF
7035 #line 7035 "configure"
7036 #include "confdefs.h"
7037 #include <sys/types.h>
7042 #ifdef _XOPEN_SOURCE
7049 rm -f conftest.$ac_objext
7050 if { (eval echo "$as_me:7050: \"$ac_compile\"") >&5
7051 (eval $ac_compile) 2>&5
7053 echo "$as_me:7053: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:7056: \"$ac_try\"") >&5
7059 echo "$as_me:7059: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 cf_cv_xopen_source=no
7063 echo "$as_me: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7065 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7067 rm -f conftest.$ac_objext conftest.$ac_ext
7071 rm -f conftest.$ac_objext conftest.$ac_ext
7074 echo "$as_me:7074: result: $cf_cv_xopen_source" >&5
7075 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7076 if test "$cf_cv_xopen_source" != no ; then
7078 CFLAGS=`echo "$CFLAGS" | \
7079 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7080 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7082 CPPFLAGS=`echo "$CPPFLAGS" | \
7083 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7084 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7086 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7091 cf_new_extra_cppflags=
7093 for cf_add_cflags in $cf_temp_xopen_source
7095 case $cf_fix_cppflags in
7097 case $cf_add_cflags in #(vi
7098 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7099 case $cf_add_cflags in
7101 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7103 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7104 && test -z "${cf_tst_cflags}" \
7105 && cf_fix_cppflags=yes
7107 if test $cf_fix_cppflags = yes ; then
7108 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7110 elif test "${cf_tst_cflags}" = "\"'" ; then
7111 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7117 *$cf_add_cflags) #(vi
7120 case $cf_add_cflags in #(vi
7122 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7124 CPPFLAGS=`echo "$CPPFLAGS" | \
7125 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7126 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7130 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7135 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7140 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7142 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7144 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7145 && test -z "${cf_tst_cflags}" \
7146 && cf_fix_cppflags=no
7151 if test -n "$cf_new_cflags" ; then
7153 CFLAGS="$CFLAGS $cf_new_cflags"
7156 if test -n "$cf_new_cppflags" ; then
7158 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7161 if test -n "$cf_new_extra_cppflags" ; then
7163 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7168 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7170 cf_save_CFLAGS="$CFLAGS"
7171 cf_save_CPPFLAGS="$CPPFLAGS"
7173 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7174 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7175 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7177 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7178 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7179 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7181 echo "$as_me:7181: checking if we should define _POSIX_C_SOURCE" >&5
7182 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7183 if test "${cf_cv_posix_c_source+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 echo "${as_me-configure}:7187: testing if the symbol is already defined go no further ..." 1>&5
7189 cat >conftest.$ac_ext <<_ACEOF
7190 #line 7190 "configure"
7191 #include "confdefs.h"
7192 #include <sys/types.h>
7197 #ifndef _POSIX_C_SOURCE
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:7205: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>&5
7208 echo "$as_me:7208: \$? = $ac_status" >&5
7209 (exit $ac_status); } &&
7210 { ac_try='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:7211: \"$ac_try\"") >&5
7214 echo "$as_me:7214: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 cf_cv_posix_c_source=no
7218 echo "$as_me: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7220 cf_want_posix_source=no
7221 case .$cf_POSIX_C_SOURCE in #(vi
7223 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7226 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7227 cf_want_posix_source=yes
7230 cf_want_posix_source=yes
7233 if test "$cf_want_posix_source" = yes ; then
7234 cat >conftest.$ac_ext <<_ACEOF
7235 #line 7235 "configure"
7236 #include "confdefs.h"
7237 #include <sys/types.h>
7242 #ifdef _POSIX_SOURCE
7249 rm -f conftest.$ac_objext
7250 if { (eval echo "$as_me:7250: \"$ac_compile\"") >&5
7251 (eval $ac_compile) 2>&5
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -s conftest.$ac_objext'
7256 { (eval echo "$as_me:7256: \"$ac_try\"") >&5
7259 echo "$as_me:7259: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7263 echo "$as_me: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7267 rm -f conftest.$ac_objext conftest.$ac_ext
7270 echo "${as_me-configure}:7270: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7272 CFLAGS="$cf_trim_CFLAGS"
7273 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7275 echo "${as_me-configure}:7275: testing if the second compile does not leave our definition intact error ..." 1>&5
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line 7278 "configure"
7279 #include "confdefs.h"
7280 #include <sys/types.h>
7285 #ifndef _POSIX_C_SOURCE
7292 rm -f conftest.$ac_objext
7293 if { (eval echo "$as_me:7293: \"$ac_compile\"") >&5
7294 (eval $ac_compile) 2>&5
7296 echo "$as_me:7296: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:7299: \"$ac_try\"") >&5
7302 echo "$as_me:7302: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7306 echo "$as_me: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 cf_cv_posix_c_source=no
7310 rm -f conftest.$ac_objext conftest.$ac_ext
7311 CFLAGS="$cf_save_CFLAGS"
7312 CPPFLAGS="$cf_save_CPPFLAGS"
7315 rm -f conftest.$ac_objext conftest.$ac_ext
7318 echo "$as_me:7318: result: $cf_cv_posix_c_source" >&5
7319 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7321 if test "$cf_cv_posix_c_source" != no ; then
7322 CFLAGS="$cf_trim_CFLAGS"
7323 CPPFLAGS="$cf_trim_CPPFLAGS"
7328 cf_new_extra_cppflags=
7330 for cf_add_cflags in $cf_cv_posix_c_source
7332 case $cf_fix_cppflags in
7334 case $cf_add_cflags in #(vi
7335 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7336 case $cf_add_cflags in
7338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7340 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7341 && test -z "${cf_tst_cflags}" \
7342 && cf_fix_cppflags=yes
7344 if test $cf_fix_cppflags = yes ; then
7345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7347 elif test "${cf_tst_cflags}" = "\"'" ; then
7348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7354 *$cf_add_cflags) #(vi
7357 case $cf_add_cflags in #(vi
7359 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7361 CPPFLAGS=`echo "$CPPFLAGS" | \
7362 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7363 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7367 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7372 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7377 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7379 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7381 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7382 && test -z "${cf_tst_cflags}" \
7383 && cf_fix_cppflags=no
7388 if test -n "$cf_new_cflags" ; then
7390 CFLAGS="$CFLAGS $cf_new_cflags"
7393 if test -n "$cf_new_cppflags" ; then
7395 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7398 if test -n "$cf_new_extra_cppflags" ; then
7400 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7408 if test -n "$cf_xopen_source" ; then
7413 cf_new_extra_cppflags=
7415 for cf_add_cflags in $cf_xopen_source
7417 case $cf_fix_cppflags in
7419 case $cf_add_cflags in #(vi
7420 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7421 case $cf_add_cflags in
7423 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7425 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7426 && test -z "${cf_tst_cflags}" \
7427 && cf_fix_cppflags=yes
7429 if test $cf_fix_cppflags = yes ; then
7430 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7432 elif test "${cf_tst_cflags}" = "\"'" ; then
7433 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7439 *$cf_add_cflags) #(vi
7442 case $cf_add_cflags in #(vi
7444 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7446 CPPFLAGS=`echo "$CPPFLAGS" | \
7447 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7448 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7452 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7457 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7462 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7464 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7466 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7467 && test -z "${cf_tst_cflags}" \
7468 && cf_fix_cppflags=no
7473 if test -n "$cf_new_cflags" ; then
7475 CFLAGS="$CFLAGS $cf_new_cflags"
7478 if test -n "$cf_new_cppflags" ; then
7480 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7483 if test -n "$cf_new_extra_cppflags" ; then
7485 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7490 # Work around breakage on OS X
7492 echo "$as_me:7492: checking if SIGWINCH is defined" >&5
7493 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
7494 if test "${cf_cv_define_sigwinch+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 cat >conftest.$ac_ext <<_ACEOF
7499 #line 7499 "configure"
7500 #include "confdefs.h"
7502 #include <sys/types.h>
7503 #include <sys/signal.h>
7513 rm -f conftest.$ac_objext
7514 if { (eval echo "$as_me:7514: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>&5
7517 echo "$as_me:7517: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:7520: \"$ac_try\"") >&5
7523 echo "$as_me:7523: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 cf_cv_define_sigwinch=yes
7527 echo "$as_me: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 cat >conftest.$ac_ext <<_ACEOF
7530 #line 7530 "configure"
7531 #include "confdefs.h"
7533 #undef _XOPEN_SOURCE
7534 #undef _POSIX_SOURCE
7535 #undef _POSIX_C_SOURCE
7536 #include <sys/types.h>
7537 #include <sys/signal.h>
7547 rm -f conftest.$ac_objext
7548 if { (eval echo "$as_me:7548: \"$ac_compile\"") >&5
7549 (eval $ac_compile) 2>&5
7551 echo "$as_me:7551: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -s conftest.$ac_objext'
7554 { (eval echo "$as_me:7554: \"$ac_try\"") >&5
7557 echo "$as_me:7557: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 cf_cv_define_sigwinch=maybe
7561 echo "$as_me: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 cf_cv_define_sigwinch=no
7565 rm -f conftest.$ac_objext conftest.$ac_ext
7568 rm -f conftest.$ac_objext conftest.$ac_ext
7571 echo "$as_me:7571: result: $cf_cv_define_sigwinch" >&5
7572 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
7574 if test "$cf_cv_define_sigwinch" = maybe ; then
7575 echo "$as_me:7575: checking for actual SIGWINCH definition" >&5
7576 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7577 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 cf_cv_fixup_sigwinch=unknown
7583 while test $cf_sigwinch != 1
7585 cat >conftest.$ac_ext <<_ACEOF
7586 #line 7586 "configure"
7587 #include "confdefs.h"
7589 #undef _XOPEN_SOURCE
7590 #undef _POSIX_SOURCE
7591 #undef _POSIX_C_SOURCE
7592 #include <sys/types.h>
7593 #include <sys/signal.h>
7599 #if SIGWINCH != $cf_sigwinch
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:7608: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>&5
7611 echo "$as_me:7611: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:7614: \"$ac_try\"") >&5
7617 echo "$as_me:7617: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 cf_cv_fixup_sigwinch=$cf_sigwinch
7622 echo "$as_me: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 rm -f conftest.$ac_objext conftest.$ac_ext
7627 cf_sigwinch=`expr $cf_sigwinch - 1`
7631 echo "$as_me:7631: result: $cf_cv_fixup_sigwinch" >&5
7632 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7634 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7635 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7639 # Checks for CODESET support.
7641 echo "$as_me:7641: checking for nl_langinfo and CODESET" >&5
7642 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7643 if test "${am_cv_langinfo_codeset+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 cat >conftest.$ac_ext <<_ACEOF
7647 #line 7647 "configure"
7648 #include "confdefs.h"
7649 #include <langinfo.h>
7653 char* cs = nl_langinfo(CODESET);
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:7659: \"$ac_link\"") >&5
7660 (eval $ac_link) 2>&5
7662 echo "$as_me:7662: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:7665: \"$ac_try\"") >&5
7668 echo "$as_me:7668: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 am_cv_langinfo_codeset=yes
7672 echo "$as_me: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7674 am_cv_langinfo_codeset=no
7676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 echo "$as_me:7679: result: $am_cv_langinfo_codeset" >&5
7680 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7681 if test $am_cv_langinfo_codeset = yes; then
7683 cat >>confdefs.h <<\EOF
7684 #define HAVE_LANGINFO_CODESET 1
7689 # use these variables to work around a defect in gcc's fixincludes.
7693 echo "$as_me:7693: checking if you want wide-character code" >&5
7694 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7696 # Check whether --enable-widec or --disable-widec was given.
7697 if test "${enable_widec+set}" = set; then
7698 enableval="$enable_widec"
7699 with_widec=$enableval
7703 echo "$as_me:7703: result: $with_widec" >&5
7704 echo "${ECHO_T}$with_widec" >&6
7705 if test "$with_widec" = yes ; then
7706 LIB_SUFFIX="w${LIB_SUFFIX}"
7707 cat >>confdefs.h <<\EOF
7708 #define USE_WIDEC_SUPPORT 1
7711 case "$CFLAGS $CPPFLAGS" in #(vi
7712 *-D_XOPEN_SOURCE=500) #(vi
7716 echo "$as_me:7716: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7717 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7718 cat >conftest.$ac_ext <<_ACEOF
7719 #line 7719 "configure"
7720 #include "confdefs.h"
7721 #include <sys/types.h>
7727 #ifndef _XOPEN_SOURCE_EXTENDED
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:7735: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>&5
7738 echo "$as_me:7738: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest.$ac_objext'
7741 { (eval echo "$as_me:7741: \"$ac_try\"") >&5
7744 echo "$as_me:7744: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7748 echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7752 rm -f conftest.$ac_objext conftest.$ac_ext
7753 echo "$as_me:7753: result: $cf_result" >&5
7754 echo "${ECHO_T}$cf_result" >&6
7756 if test "$cf_result" = yes ; then
7757 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7758 elif test "x" != "x" ; then
7759 echo "$as_me:7759: checking checking for compatible value versus " >&5
7760 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7761 cat >conftest.$ac_ext <<_ACEOF
7762 #line 7762 "configure"
7763 #include "confdefs.h"
7764 #include <sys/types.h>
7770 #if _XOPEN_SOURCE_EXTENDED- < 0
7777 rm -f conftest.$ac_objext
7778 if { (eval echo "$as_me:7778: \"$ac_compile\"") >&5
7779 (eval $ac_compile) 2>&5
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:7784: \"$ac_try\"") >&5
7787 echo "$as_me:7787: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7791 echo "$as_me: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7795 rm -f conftest.$ac_objext conftest.$ac_ext
7796 echo "$as_me:7796: result: $cf_result" >&5
7797 echo "${ECHO_T}$cf_result" >&6
7798 if test "$cf_result" = no ; then
7799 # perhaps we can override it - try...
7800 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7808 NCURSES_CH_T=cchar_t
7810 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7813 echo "$as_me:7813: checking for $ac_func" >&5
7814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7815 if eval "test \"\${$as_ac_var+set}\" = set"; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7819 #line 7819 "configure"
7820 #include "confdefs.h"
7821 /* System header to define __stub macros and hopefully few prototypes,
7822 which can conflict with char $ac_func (); below. */
7824 /* Override any gcc2 internal prototype to avoid an error. */
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7836 /* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
7839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:7850: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>&5
7853 echo "$as_me:7853: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 eval "$as_ac_var=yes"
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 eval "$as_ac_var=no"
7867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7869 echo "$as_me:7869: result: `eval echo '${'$as_ac_var'}'`" >&5
7870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7871 if test `eval echo '${'$as_ac_var'}'` = yes; then
7872 cat >>confdefs.h <<EOF
7873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7879 if test "$ac_cv_func_putwc" != yes ; then
7881 echo "$as_me:7881: checking for multibyte character support" >&5
7882 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7883 if test "${cf_cv_utf8_lib+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 cf_save_LIBS="$LIBS"
7888 cat >conftest.$ac_ext <<_ACEOF
7889 #line 7889 "configure"
7890 #include "confdefs.h"
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:7902: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7905 echo "$as_me:7905: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:7908: \"$ac_try\"") >&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7915 echo "$as_me: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7919 # will be set on completion of the AC_TRY_LINK below.
7920 cf_cv_header_path_utf8=
7921 cf_cv_library_path_utf8=
7923 echo "${as_me-configure}:7923: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7925 cf_save_LIBS="$LIBS"
7927 cat >conftest.$ac_ext <<_ACEOF
7928 #line 7928 "configure"
7929 #include "confdefs.h"
7931 #include <libutf8.h>
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (eval echo "$as_me:7941: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7944 echo "$as_me:7944: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:7947: \"$ac_try\"") >&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7953 cf_cv_find_linkage_utf8=yes
7954 cf_cv_header_path_utf8=/usr/include
7955 cf_cv_library_path_utf8=/usr/lib
7958 echo "$as_me: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 LIBS="-lutf8 $cf_save_LIBS"
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line 7964 "configure"
7965 #include "confdefs.h"
7967 #include <libutf8.h>
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo "$as_me:7977: \"$ac_link\"") >&5
7978 (eval $ac_link) 2>&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try='test -s conftest$ac_exeext'
7983 { (eval echo "$as_me:7983: \"$ac_try\"") >&5
7986 echo "$as_me:7986: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7989 cf_cv_find_linkage_utf8=yes
7990 cf_cv_header_path_utf8=/usr/include
7991 cf_cv_library_path_utf8=/usr/lib
7992 cf_cv_library_file_utf8="-lutf8"
7995 echo "$as_me: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7998 cf_cv_find_linkage_utf8=no
7999 LIBS="$cf_save_LIBS"
8001 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8003 echo "${as_me-configure}:8003: testing find linkage for utf8 library ..." 1>&5
8005 echo "${as_me-configure}:8005: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8007 cf_save_CPPFLAGS="$CPPFLAGS"
8008 cf_test_CPPFLAGS="$CPPFLAGS"
8012 # collect the current set of include-directories from compiler flags
8013 cf_header_path_list=""
8014 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8015 for cf_header_path in $CPPFLAGS $CFLAGS
8017 case $cf_header_path in #(vi
8019 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8021 test "$cf_header_path" != "NONE" && \
8022 test -d "$cf_header_path" && \
8024 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8025 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8026 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8027 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8028 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8029 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8032 cf_header_path_list="$cf_header_path_list $cf_search"
8038 # add the variations for the package we are looking for
8042 test "/usr" != "$prefix" && \
8044 (test $prefix = NONE || test -d $prefix) && {
8045 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8046 test -d /usr/include && cf_search="$cf_search /usr/include"
8047 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8048 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8049 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8050 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8053 test "$prefix" != "NONE" && \
8054 test -d "$prefix" && \
8056 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8057 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8058 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8059 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8060 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8061 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8064 test "/usr/local" != "$prefix" && \
8065 test -d "/usr/local" && \
8066 (test $prefix = NONE || test -d $prefix) && {
8067 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8068 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8069 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8070 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8071 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8072 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8075 test "/opt" != "$prefix" && \
8077 (test $prefix = NONE || test -d $prefix) && {
8078 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8079 test -d /opt/include && cf_search="$cf_search /opt/include"
8080 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8081 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8082 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8083 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8086 test "$HOME" != "$prefix" && \
8087 test -d "$HOME" && \
8088 (test $prefix = NONE || test -d $prefix) && {
8089 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8090 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8091 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8092 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8093 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8094 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8097 test "$includedir" != NONE && \
8098 test "$includedir" != "/usr/include" && \
8099 test -d "$includedir" && {
8100 test -d $includedir && cf_search="$cf_search $includedir"
8101 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8104 test "$oldincludedir" != NONE && \
8105 test "$oldincludedir" != "/usr/include" && \
8106 test -d "$oldincludedir" && {
8107 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8108 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8111 cf_search="$cf_search $cf_header_path_list"
8113 for cf_cv_header_path_utf8 in $cf_search
8115 if test -d $cf_cv_header_path_utf8 ; then
8116 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8118 echo "${as_me-configure}:8118: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8120 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line 8122 "configure"
8123 #include "confdefs.h"
8125 #include <libutf8.h>
8134 rm -f conftest.$ac_objext
8135 if { (eval echo "$as_me:8135: \"$ac_compile\"") >&5
8136 (eval $ac_compile) 2>&5
8138 echo "$as_me:8138: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:8141: \"$ac_try\"") >&5
8144 echo "$as_me:8144: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8147 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8149 echo "${as_me-configure}:8149: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8151 cf_cv_find_linkage_utf8=maybe
8152 cf_test_CPPFLAGS="$CPPFLAGS"
8155 echo "$as_me: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8158 CPPFLAGS="$cf_save_CPPFLAGS"
8161 rm -f conftest.$ac_objext conftest.$ac_ext
8165 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8167 echo "${as_me-configure}:8167: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8169 cf_save_LIBS="$LIBS"
8170 cf_save_LDFLAGS="$LDFLAGS"
8172 if test "$cf_cv_find_linkage_utf8" != yes ; then
8175 cf_library_path_list=""
8176 if test -n "${LDFLAGS}${LIBS}" ; then
8177 for cf_library_path in $LDFLAGS $LIBS
8179 case $cf_library_path in #(vi
8181 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8183 test "$cf_library_path" != "NONE" && \
8184 test -d "$cf_library_path" && \
8186 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8187 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8188 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8189 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8190 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8191 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8194 cf_library_path_list="$cf_library_path_list $cf_search"
8202 test "/usr" != "$prefix" && \
8204 (test $prefix = NONE || test -d $prefix) && {
8205 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8206 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8207 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8208 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8209 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8210 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8213 test "$prefix" != "NONE" && \
8214 test -d "$prefix" && \
8216 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8217 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8218 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8219 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8220 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8221 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8224 test "/usr/local" != "$prefix" && \
8225 test -d "/usr/local" && \
8226 (test $prefix = NONE || test -d $prefix) && {
8227 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8228 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8229 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8230 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8231 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8232 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8235 test "/opt" != "$prefix" && \
8237 (test $prefix = NONE || test -d $prefix) && {
8238 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8239 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8240 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8241 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8242 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8243 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8246 test "$HOME" != "$prefix" && \
8247 test -d "$HOME" && \
8248 (test $prefix = NONE || test -d $prefix) && {
8249 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8250 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8251 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8252 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8253 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8254 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
8257 cf_search="$cf_library_path_list $cf_search"
8259 for cf_cv_library_path_utf8 in $cf_search
8261 if test -d $cf_cv_library_path_utf8 ; then
8262 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8264 echo "${as_me-configure}:8264: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8266 CPPFLAGS="$cf_test_CPPFLAGS"
8267 LIBS="-lutf8 $cf_save_LIBS"
8268 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8269 cat >conftest.$ac_ext <<_ACEOF
8270 #line 8270 "configure"
8271 #include "confdefs.h"
8273 #include <libutf8.h>
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:8283: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>&5
8286 echo "$as_me:8286: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -s conftest$ac_exeext'
8289 { (eval echo "$as_me:8289: \"$ac_try\"") >&5
8292 echo "$as_me:8292: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8295 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8297 echo "${as_me-configure}:8297: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8299 cf_cv_find_linkage_utf8=yes
8300 cf_cv_library_file_utf8="-lutf8"
8303 echo "$as_me: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 CPPFLAGS="$cf_save_CPPFLAGS"
8307 LIBS="$cf_save_LIBS"
8308 LDFLAGS="$cf_save_LDFLAGS"
8311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8314 CPPFLAGS="$cf_save_CPPFLAGS"
8315 LDFLAGS="$cf_save_LDFLAGS"
8319 cf_cv_find_linkage_utf8=no
8323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8328 LIBS="$cf_save_LIBS"
8330 if test "$cf_cv_find_linkage_utf8" = yes ; then
8331 cf_cv_utf8_lib=add-on
8337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8339 echo "$as_me:8339: result: $cf_cv_utf8_lib" >&5
8340 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
8342 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8344 if test "$cf_cv_utf8_lib" = "add-on" ; then
8345 cat >>confdefs.h <<\EOF
8346 #define HAVE_LIBUTF8_H 1
8349 if test -n "$cf_cv_header_path_utf8" ; then
8350 for cf_add_incdir in $cf_cv_header_path_utf8
8352 while test $cf_add_incdir != /usr/include
8354 if test -d $cf_add_incdir
8357 if test -n "$CFLAGS$CPPFLAGS" ; then
8358 # a loop is needed to ensure we can add subdirs of existing dirs
8359 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8360 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8361 cf_have_incdir=yes; break
8366 if test "$cf_have_incdir" = no ; then
8367 if test "$cf_add_incdir" = /usr/local/include ; then
8368 if test "$GCC" = yes
8370 cf_save_CPPFLAGS=$CPPFLAGS
8371 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line 8373 "configure"
8374 #include "confdefs.h"
8384 rm -f conftest.$ac_objext
8385 if { (eval echo "$as_me:8385: \"$ac_compile\"") >&5
8386 (eval $ac_compile) 2>&5
8388 echo "$as_me:8388: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -s conftest.$ac_objext'
8391 { (eval echo "$as_me:8391: \"$ac_try\"") >&5
8394 echo "$as_me:8394: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8398 echo "$as_me: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8402 rm -f conftest.$ac_objext conftest.$ac_ext
8403 CPPFLAGS=$cf_save_CPPFLAGS
8408 if test "$cf_have_incdir" = no ; then
8409 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8411 echo "${as_me-configure}:8411: testing adding $cf_add_incdir to include-path ..." 1>&5
8413 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8415 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8416 test "$cf_top_incdir" = "$cf_add_incdir" && break
8417 cf_add_incdir="$cf_top_incdir"
8426 if test -n "$cf_cv_library_path_utf8" ; then
8427 for cf_add_libdir in $cf_cv_library_path_utf8
8429 if test $cf_add_libdir = /usr/lib ; then
8431 elif test -d $cf_add_libdir
8434 if test -n "$LDFLAGS$LIBS" ; then
8435 # a loop is needed to ensure we can add subdirs of existing dirs
8436 for cf_test_libdir in $LDFLAGS $LIBS ; do
8437 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8438 cf_have_libdir=yes; break
8442 if test "$cf_have_libdir" = no ; then
8443 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8445 echo "${as_me-configure}:8445: testing adding $cf_add_libdir to library-path ..." 1>&5
8447 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8453 LIBS="$cf_cv_library_file_utf8 $LIBS"
8456 if test "$cf_cv_utf8_lib" != no ; then
8461 # This is needed on Tru64 5.0 to declare mbstate_t
8462 echo "$as_me:8462: checking if we must include wchar.h to declare mbstate_t" >&5
8463 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
8464 if test "${cf_cv_mbstate_t+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line 8469 "configure"
8470 #include "confdefs.h"
8475 #ifdef HAVE_LIBUTF8_H
8476 #include <libutf8.h>
8486 rm -f conftest.$ac_objext
8487 if { (eval echo "$as_me:8487: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>&5
8490 echo "$as_me:8490: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:8493: \"$ac_try\"") >&5
8496 echo "$as_me:8496: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8500 echo "$as_me: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line 8503 "configure"
8504 #include "confdefs.h"
8510 #ifdef HAVE_LIBUTF8_H
8511 #include <libutf8.h>
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:8522: \"$ac_compile\"") >&5
8523 (eval $ac_compile) 2>&5
8525 echo "$as_me:8525: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -s conftest.$ac_objext'
8528 { (eval echo "$as_me:8528: \"$ac_try\"") >&5
8531 echo "$as_me:8531: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8535 echo "$as_me: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8537 cf_cv_mbstate_t=unknown
8539 rm -f conftest.$ac_objext conftest.$ac_ext
8541 rm -f conftest.$ac_objext conftest.$ac_ext
8543 echo "$as_me:8543: result: $cf_cv_mbstate_t" >&5
8544 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
8546 if test "$cf_cv_mbstate_t" = yes ; then
8547 cat >>confdefs.h <<\EOF
8548 #define NEED_WCHAR_H 1
8554 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
8555 if test "$cf_cv_mbstate_t" = unknown ; then
8559 # This is needed on Tru64 5.0 to declare wchar_t
8560 echo "$as_me:8560: checking if we must include wchar.h to declare wchar_t" >&5
8561 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
8562 if test "${cf_cv_wchar_t+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8567 #line 8567 "configure"
8568 #include "confdefs.h"
8573 #ifdef HAVE_LIBUTF8_H
8574 #include <libutf8.h>
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:8585: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>&5
8588 echo "$as_me:8588: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -s conftest.$ac_objext'
8591 { (eval echo "$as_me:8591: \"$ac_try\"") >&5
8594 echo "$as_me:8594: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8598 echo "$as_me: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line 8601 "configure"
8602 #include "confdefs.h"
8608 #ifdef HAVE_LIBUTF8_H
8609 #include <libutf8.h>
8619 rm -f conftest.$ac_objext
8620 if { (eval echo "$as_me:8620: \"$ac_compile\"") >&5
8621 (eval $ac_compile) 2>&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -s conftest.$ac_objext'
8626 { (eval echo "$as_me:8626: \"$ac_try\"") >&5
8629 echo "$as_me:8629: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8633 echo "$as_me: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8635 cf_cv_wchar_t=unknown
8637 rm -f conftest.$ac_objext conftest.$ac_ext
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8641 echo "$as_me:8641: result: $cf_cv_wchar_t" >&5
8642 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8644 if test "$cf_cv_wchar_t" = yes ; then
8645 cat >>confdefs.h <<\EOF
8646 #define NEED_WCHAR_H 1
8652 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8653 if test "$cf_cv_wchar_t" = unknown ; then
8657 # if we find wchar_t in either place, use substitution to provide a fallback.
8658 if test "$cf_cv_wchar_t" != unknown ; then
8659 NCURSES_OK_WCHAR_T=1
8662 # This is needed on Tru64 5.0 to declare wint_t
8663 echo "$as_me:8663: checking if we must include wchar.h to declare wint_t" >&5
8664 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8665 if test "${cf_cv_wint_t+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 #line 8670 "configure"
8671 #include "confdefs.h"
8676 #ifdef HAVE_LIBUTF8_H
8677 #include <libutf8.h>
8687 rm -f conftest.$ac_objext
8688 if { (eval echo "$as_me:8688: \"$ac_compile\"") >&5
8689 (eval $ac_compile) 2>&5
8691 echo "$as_me:8691: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:8694: \"$ac_try\"") >&5
8697 echo "$as_me:8697: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8701 echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line 8704 "configure"
8705 #include "confdefs.h"
8711 #ifdef HAVE_LIBUTF8_H
8712 #include <libutf8.h>
8722 rm -f conftest.$ac_objext
8723 if { (eval echo "$as_me:8723: \"$ac_compile\"") >&5
8724 (eval $ac_compile) 2>&5
8726 echo "$as_me:8726: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (eval echo "$as_me:8729: \"$ac_try\"") >&5
8732 echo "$as_me:8732: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8736 echo "$as_me: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8738 cf_cv_wint_t=unknown
8740 rm -f conftest.$ac_objext conftest.$ac_ext
8742 rm -f conftest.$ac_objext conftest.$ac_ext
8744 echo "$as_me:8744: result: $cf_cv_wint_t" >&5
8745 echo "${ECHO_T}$cf_cv_wint_t" >&6
8747 if test "$cf_cv_wint_t" = yes ; then
8748 cat >>confdefs.h <<\EOF
8749 #define NEED_WCHAR_H 1
8755 # if we do not find wint_t in either place, use substitution to provide a fallback.
8756 if test "$cf_cv_wint_t" = unknown ; then
8760 # if we find wint_t in either place, use substitution to provide a fallback.
8761 if test "$cf_cv_wint_t" != unknown ; then
8765 if test "$NCURSES_MBSTATE_T" != 0; then
8766 cat >>confdefs.h <<\EOF
8767 #define NEED_MBSTATE_T_DEF 1
8773 ### use option --disable-lp64 to allow long chtype
8774 case $cf_cv_abi_version in
8776 default_with_lp64=no
8779 default_with_lp64=yes
8783 echo "$as_me:8783: checking whether to enable _LP64 definition in curses.h" >&5
8784 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8786 # Check whether --enable-lp64 or --disable-lp64 was given.
8787 if test "${enable_lp64+set}" = set; then
8788 enableval="$enable_lp64"
8789 with_lp64=$enableval
8791 with_lp64=$default_with_lp64
8793 echo "$as_me:8793: result: $with_lp64" >&5
8794 echo "${ECHO_T}$with_lp64" >&6
8796 if test "$with_lp64" = yes ; then
8802 # Check whether --enable-largefile or --disable-largefile was given.
8803 if test "${enable_largefile+set}" = set; then
8804 enableval="$enable_largefile"
8807 if test "$enable_largefile" != no; then
8809 echo "$as_me:8809: checking for special C compiler options needed for large files" >&5
8810 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8811 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 ac_cv_sys_largefile_CC=no
8815 if test "$GCC" != yes; then
8818 # IRIX 6.2 and later do not support large files by default,
8819 # so use the C compiler's -n32 option if that helps.
8820 cat >conftest.$ac_ext <<_ACEOF
8821 #line 8821 "configure"
8822 #include "confdefs.h"
8823 #include <sys/types.h>
8824 /* Check that off_t can represent 2**63 - 1 correctly.
8825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8826 since some C++ compilers masquerading as C compilers
8827 incorrectly reject 9223372036854775807. */
8828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8830 && LARGE_OFF_T % 2147483647 == 1)
8840 rm -f conftest.$ac_objext
8841 if { (eval echo "$as_me:8841: \"$ac_compile\"") >&5
8842 (eval $ac_compile) 2>&5
8844 echo "$as_me:8844: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (eval echo "$as_me:8847: \"$ac_try\"") >&5
8850 echo "$as_me:8850: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8854 echo "$as_me: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 rm -f conftest.$ac_objext
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:8860: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>&5
8863 echo "$as_me:8863: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (eval echo "$as_me:8866: \"$ac_try\"") >&5
8869 echo "$as_me:8869: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_sys_largefile_CC=' -n32'; break
8873 echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8876 rm -f conftest.$ac_objext
8880 rm -f conftest.$ac_ext
8883 echo "$as_me:8883: result: $ac_cv_sys_largefile_CC" >&5
8884 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8885 if test "$ac_cv_sys_largefile_CC" != no; then
8886 CC=$CC$ac_cv_sys_largefile_CC
8889 echo "$as_me:8889: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8890 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8891 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 ac_cv_sys_file_offset_bits=no
8896 cat >conftest.$ac_ext <<_ACEOF
8897 #line 8897 "configure"
8898 #include "confdefs.h"
8899 #include <sys/types.h>
8900 /* Check that off_t can represent 2**63 - 1 correctly.
8901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8902 since some C++ compilers masquerading as C compilers
8903 incorrectly reject 9223372036854775807. */
8904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8906 && LARGE_OFF_T % 2147483647 == 1)
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:8917: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>&5
8920 echo "$as_me:8920: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -s conftest.$ac_objext'
8923 { (eval echo "$as_me:8923: \"$ac_try\"") >&5
8926 echo "$as_me:8926: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8930 echo "$as_me: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8933 rm -f conftest.$ac_objext conftest.$ac_ext
8934 cat >conftest.$ac_ext <<_ACEOF
8935 #line 8935 "configure"
8936 #include "confdefs.h"
8937 #define _FILE_OFFSET_BITS 64
8938 #include <sys/types.h>
8939 /* Check that off_t can represent 2**63 - 1 correctly.
8940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8941 since some C++ compilers masquerading as C compilers
8942 incorrectly reject 9223372036854775807. */
8943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8945 && LARGE_OFF_T % 2147483647 == 1)
8955 rm -f conftest.$ac_objext
8956 if { (eval echo "$as_me:8956: \"$ac_compile\"") >&5
8957 (eval $ac_compile) 2>&5
8959 echo "$as_me:8959: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (eval echo "$as_me:8962: \"$ac_try\"") >&5
8965 echo "$as_me:8965: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_sys_file_offset_bits=64; break
8969 echo "$as_me: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8972 rm -f conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:8976: result: $ac_cv_sys_file_offset_bits" >&5
8977 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8978 if test "$ac_cv_sys_file_offset_bits" != no; then
8980 cat >>confdefs.h <<EOF
8981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8986 echo "$as_me:8986: checking for _LARGE_FILES value needed for large files" >&5
8987 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8988 if test "${ac_cv_sys_large_files+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 ac_cv_sys_large_files=no
8993 cat >conftest.$ac_ext <<_ACEOF
8994 #line 8994 "configure"
8995 #include "confdefs.h"
8996 #include <sys/types.h>
8997 /* Check that off_t can represent 2**63 - 1 correctly.
8998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8999 since some C++ compilers masquerading as C compilers
9000 incorrectly reject 9223372036854775807. */
9001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9003 && LARGE_OFF_T % 2147483647 == 1)
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:9014: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9017 echo "$as_me:9017: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:9020: \"$ac_try\"") >&5
9023 echo "$as_me:9023: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9031 cat >conftest.$ac_ext <<_ACEOF
9032 #line 9032 "configure"
9033 #include "confdefs.h"
9034 #define _LARGE_FILES 1
9035 #include <sys/types.h>
9036 /* Check that off_t can represent 2**63 - 1 correctly.
9037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9038 since some C++ compilers masquerading as C compilers
9039 incorrectly reject 9223372036854775807. */
9040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9042 && LARGE_OFF_T % 2147483647 == 1)
9052 rm -f conftest.$ac_objext
9053 if { (eval echo "$as_me:9053: \"$ac_compile\"") >&5
9054 (eval $ac_compile) 2>&5
9056 echo "$as_me:9056: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -s conftest.$ac_objext'
9059 { (eval echo "$as_me:9059: \"$ac_try\"") >&5
9062 echo "$as_me:9062: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_sys_large_files=1; break
9066 echo "$as_me: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 rm -f conftest.$ac_objext conftest.$ac_ext
9073 echo "$as_me:9073: result: $ac_cv_sys_large_files" >&5
9074 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9075 if test "$ac_cv_sys_large_files" != no; then
9077 cat >>confdefs.h <<EOF
9078 #define _LARGE_FILES $ac_cv_sys_large_files
9085 if test "$enable_largefile" != no ; then
9086 echo "$as_me:9086: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9087 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9088 if test "${ac_cv_sys_largefile_source+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_cv_sys_largefile_source=no
9093 cat >conftest.$ac_ext <<_ACEOF
9094 #line 9094 "configure"
9095 #include "confdefs.h"
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:9106: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>&5
9109 echo "$as_me:9109: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest.$ac_objext'
9112 { (eval echo "$as_me:9112: \"$ac_try\"") >&5
9115 echo "$as_me:9115: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9119 echo "$as_me: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 rm -f conftest.$ac_objext conftest.$ac_ext
9123 cat >conftest.$ac_ext <<_ACEOF
9124 #line 9124 "configure"
9125 #include "confdefs.h"
9126 #define _LARGEFILE_SOURCE 1
9136 rm -f conftest.$ac_objext
9137 if { (eval echo "$as_me:9137: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>&5
9140 echo "$as_me:9140: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -s conftest.$ac_objext'
9143 { (eval echo "$as_me:9143: \"$ac_try\"") >&5
9146 echo "$as_me:9146: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_sys_largefile_source=1; break
9150 echo "$as_me: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 rm -f conftest.$ac_objext conftest.$ac_ext
9157 echo "$as_me:9157: result: $ac_cv_sys_largefile_source" >&5
9158 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9159 if test "$ac_cv_sys_largefile_source" != no; then
9161 cat >>confdefs.h <<EOF
9162 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9168 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9169 # in glibc 2.1.3, but that breaks too many other things.
9170 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9171 echo "$as_me:9171: checking for fseeko" >&5
9172 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9173 if test "${ac_cv_func_fseeko+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line 9177 "configure"
9178 #include "confdefs.h"
9183 return fseeko && fseeko (stdin, 0, 0);
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (eval echo "$as_me:9189: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>&5
9192 echo "$as_me:9192: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -s conftest$ac_exeext'
9195 { (eval echo "$as_me:9195: \"$ac_try\"") >&5
9198 echo "$as_me:9198: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_cv_func_fseeko=yes
9202 echo "$as_me: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 ac_cv_func_fseeko=no
9206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9208 echo "$as_me:9208: result: $ac_cv_func_fseeko" >&5
9209 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9210 if test $ac_cv_func_fseeko = yes; then
9212 cat >>confdefs.h <<\EOF
9213 #define HAVE_FSEEKO 1
9218 # Normally we would collect these definitions in the config.h,
9219 # but (like _XOPEN_SOURCE), some environments rely on having these
9220 # defined before any of the system headers are included. Another
9221 # case comes up with C++, e.g., on AIX the compiler compiles the
9222 # header files by themselves before looking at the body files it is
9223 # told to compile. For ncurses, those header files do not include
9225 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9226 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9227 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9229 echo "$as_me:9229: checking whether to use struct dirent64" >&5
9230 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9231 if test "${cf_cv_struct_dirent64+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 cat >conftest.$ac_ext <<_ACEOF
9236 #line 9236 "configure"
9237 #include "confdefs.h"
9239 #include <sys/types.h>
9246 /* if transitional largefile support is setup, this is true */
9247 extern struct dirent64 * readdir(DIR *);
9248 struct dirent64 *x = readdir((DIR *)0);
9249 struct dirent *y = readdir((DIR *)0);
9256 rm -f conftest.$ac_objext
9257 if { (eval echo "$as_me:9257: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9260 echo "$as_me:9260: \$? = $ac_status" >&5
9261 (exit $ac_status); } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (eval echo "$as_me:9263: \"$ac_try\"") >&5
9266 echo "$as_me:9266: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 cf_cv_struct_dirent64=yes
9270 echo "$as_me: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9272 cf_cv_struct_dirent64=no
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9277 echo "$as_me:9277: result: $cf_cv_struct_dirent64" >&5
9278 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9279 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
9280 #define HAVE_STRUCT_DIRENT64 1
9285 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
9286 echo "$as_me:9286: checking if you want tparm not to use X/Open fixed-parameter list" >&5
9287 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
9289 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
9290 if test "${enable_tparm_varargs+set}" = set; then
9291 enableval="$enable_tparm_varargs"
9292 with_tparm_varargs=$enableval
9294 with_tparm_varargs=yes
9296 echo "$as_me:9296: result: $with_tparm_varargs" >&5
9297 echo "${ECHO_T}$with_tparm_varargs" >&6
9298 NCURSES_TPARM_VARARGS=0
9299 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
9301 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
9302 if test "$with_ticlib" != no ; then
9303 echo "$as_me:9303: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
9304 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
9306 # Check whether --enable-tic-depends or --disable-tic-depends was given.
9307 if test "${enable_tic_depends+set}" = set; then
9308 enableval="$enable_tic_depends"
9309 with_tic_depends=$enableval
9311 with_tic_depends=yes
9313 echo "$as_me:9313: result: $with_tic_depends" >&5
9314 echo "${ECHO_T}$with_tic_depends" >&6
9319 ### use option --with-bool to override bool's type
9320 echo "$as_me:9320: checking for type of bool" >&5
9321 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
9323 # Check whether --with-bool or --without-bool was given.
9324 if test "${with_bool+set}" = set; then
9325 withval="$with_bool"
9326 NCURSES_BOOL="$withval"
9330 echo "$as_me:9330: result: $NCURSES_BOOL" >&5
9331 echo "${ECHO_T}$NCURSES_BOOL" >&6
9333 echo "$as_me:9333: checking for alternate terminal capabilities file" >&5
9334 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
9336 # Check whether --with-caps or --without-caps was given.
9337 if test "${with_caps+set}" = set; then
9338 withval="$with_caps"
9339 TERMINFO_CAPS=Caps.$withval
9343 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
9344 echo "$as_me:9344: result: $TERMINFO_CAPS" >&5
9345 echo "${ECHO_T}$TERMINFO_CAPS" >&6
9347 ### use option --with-chtype to override chtype's type
9348 echo "$as_me:9348: checking for type of chtype" >&5
9349 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
9351 # Check whether --with-chtype or --without-chtype was given.
9352 if test "${with_chtype+set}" = set; then
9353 withval="$with_chtype"
9354 NCURSES_CHTYPE="$withval"
9358 echo "$as_me:9358: result: $NCURSES_CHTYPE" >&5
9359 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
9361 ### use option --with-ospeed to override ospeed's type
9362 echo "$as_me:9362: checking for type of ospeed" >&5
9363 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
9365 # Check whether --with-ospeed or --without-ospeed was given.
9366 if test "${with_ospeed+set}" = set; then
9367 withval="$with_ospeed"
9368 NCURSES_OSPEED="$withval"
9370 NCURSES_OSPEED=short
9372 echo "$as_me:9372: result: $NCURSES_OSPEED" >&5
9373 echo "${ECHO_T}$NCURSES_OSPEED" >&6
9375 ### use option --with-mmask-t to override mmask_t's type
9376 echo "$as_me:9376: checking for type of mmask_t" >&5
9377 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
9379 # Check whether --with-mmask-t or --without-mmask-t was given.
9380 if test "${with_mmask_t+set}" = set; then
9381 withval="$with_mmask_t"
9382 NCURSES_MMASK_T="$withval"
9384 NCURSES_MMASK_T=auto
9386 echo "$as_me:9386: result: $NCURSES_MMASK_T" >&5
9387 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
9389 ### use option --with-ccharw-max to override CCHARW_MAX size
9390 echo "$as_me:9390: checking for size CCHARW_MAX" >&5
9391 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
9393 # Check whether --with-ccharw-max or --without-ccharw-max was given.
9394 if test "${with_ccharw_max+set}" = set; then
9395 withval="$with_ccharw_max"
9396 NCURSES_CCHARW_MAX="$withval"
9398 NCURSES_CCHARW_MAX=5
9400 echo "$as_me:9400: result: $NCURSES_CCHARW_MAX" >&5
9401 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
9403 ### Enable compiling-in rcs id's
9404 echo "$as_me:9404: checking if RCS identifiers should be compiled-in" >&5
9405 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9407 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9408 if test "${with_rcs_ids+set}" = set; then
9409 withval="$with_rcs_ids"
9410 with_rcs_ids=$withval
9414 echo "$as_me:9414: result: $with_rcs_ids" >&5
9415 echo "${ECHO_T}$with_rcs_ids" >&6
9416 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
9417 #define USE_RCS_IDS 1
9420 ###############################################################################
9422 echo "$as_me:9422: checking format of man-pages" >&5
9423 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
9425 # Check whether --with-manpage-format or --without-manpage-format was given.
9426 if test "${with_manpage_format+set}" = set; then
9427 withval="$with_manpage_format"
9428 MANPAGE_FORMAT=$withval
9430 MANPAGE_FORMAT=unknown
9433 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
9434 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
9438 case $MANPAGE_FORMAT in
9440 if test -z "$MANPATH" ; then
9441 MANPATH="/usr/man:/usr/share/man"
9444 # look for the 'date' man-page (it's most likely to be installed!)
9450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
9451 for cf_dir in $MANPATH; do
9452 test -z "$cf_dir" && cf_dir=/usr/man
9453 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
9455 cf_test=`echo $cf_name | sed -e 's/*//'`
9456 if test "x$cf_test" = "x$cf_name" ; then
9459 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
9460 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
9461 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
9462 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
9476 # if we found a match in either man* or cat*, stop looking
9477 if test -n "$MANPAGE_FORMAT" ; then
9479 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
9480 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
9486 test $cf_found=yes && break
9489 # only check the first directory in $MANPATH where we find manpages
9490 if test -n "$MANPAGE_FORMAT" ; then
9494 # if we did not find the example, just assume it is normal
9495 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
9499 for cf_option in $MANPAGE_FORMAT; do
9500 case $cf_option in #(vi
9501 gzip|compress|BSDI|normal|formatted|catonly)
9504 cf_unknown="$cf_unknown $cf_option"
9511 echo "$as_me:9511: result: $MANPAGE_FORMAT" >&5
9512 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
9513 if test -n "$cf_unknown" ; then
9514 { echo "$as_me:9514: WARNING: Unexpected manpage-format $cf_unknown" >&5
9515 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
9518 echo "$as_me:9518: checking for manpage renaming" >&5
9519 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
9521 # Check whether --with-manpage-renames or --without-manpage-renames was given.
9522 if test "${with_manpage_renames+set}" = set; then
9523 withval="$with_manpage_renames"
9524 MANPAGE_RENAMES=$withval
9529 case ".$MANPAGE_RENAMES" in #(vi
9533 # Debian 'man' program?
9534 if test -f /etc/debian_version ; then
9535 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
9542 if test "$MANPAGE_RENAMES" != no ; then
9543 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
9544 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
9545 elif test ! -f $MANPAGE_RENAMES ; then
9546 { { echo "$as_me:9546: error: not a filename: $MANPAGE_RENAMES" >&5
9547 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
9548 { (exit 1); exit 1; }; }
9551 test ! -d man && mkdir man
9553 # Construct a sed-script to perform renaming within man-pages
9554 if test -n "$MANPAGE_RENAMES" ; then
9555 test ! -d man && mkdir man
9556 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
9560 echo "$as_me:9560: result: $MANPAGE_RENAMES" >&5
9561 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
9563 echo "$as_me:9563: checking if manpage aliases will be installed" >&5
9564 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
9566 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
9567 if test "${with_manpage_aliases+set}" = set; then
9568 withval="$with_manpage_aliases"
9569 MANPAGE_ALIASES=$withval
9574 echo "$as_me:9574: result: $MANPAGE_ALIASES" >&5
9575 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
9577 if test "$LN_S" = "ln -s"; then
9584 if test "$MANPAGE_ALIASES" = yes ; then
9585 echo "$as_me:9585: checking if manpage symlinks should be used" >&5
9586 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
9588 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
9589 if test "${with_manpage_symlinks+set}" = set; then
9590 withval="$with_manpage_symlinks"
9591 MANPAGE_SYMLINKS=$withval
9593 MANPAGE_SYMLINKS=$cf_use_symlinks
9596 if test "$$cf_use_symlinks" = no; then
9597 if test "$MANPAGE_SYMLINKS" = yes ; then
9598 { echo "$as_me:9598: WARNING: cannot make symlinks" >&5
9599 echo "$as_me: WARNING: cannot make symlinks" >&2;}
9604 echo "$as_me:9604: result: $MANPAGE_SYMLINKS" >&5
9605 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
9608 echo "$as_me:9608: checking for manpage tbl" >&5
9609 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
9611 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
9612 if test "${with_manpage_tbl+set}" = set; then
9613 withval="$with_manpage_tbl"
9614 MANPAGE_TBL=$withval
9619 echo "$as_me:9619: result: $MANPAGE_TBL" >&5
9620 echo "${ECHO_T}$MANPAGE_TBL" >&6
9622 if test "$prefix" = "NONE" ; then
9623 cf_prefix="$ac_default_prefix"
9628 case "$MANPAGE_FORMAT" in # (vi
9643 test ! -d man && mkdir man
9647 case "$MANPAGE_FORMAT" in #(vi
9650 cf_compress=compress
9658 cf_edit_man=./edit_man.sh
9659 cf_man_alias=`pwd`/man_alias.sed
9661 cat >$cf_edit_man <<CF_EOF
9663 # this script is generated by the configure-script CF_MAN_PAGES macro.
9668 NCURSES_MAJOR="$NCURSES_MAJOR"
9669 NCURSES_MINOR="$NCURSES_MINOR"
9670 NCURSES_PATCH="$NCURSES_PATCH"
9672 NCURSES_OSPEED="$NCURSES_OSPEED"
9673 TERMINFO="$TERMINFO"
9676 INSTALL_DATA="$INSTALL_DATA"
9678 transform="$program_transform_name"
9680 TMP=\${TMPDIR-/tmp}/man\$\$
9681 trap "rm -f \$TMP" 0 1 2 5 15
9693 top_srcdir=\$srcdir/..
9696 if test "\$form" = normal ; then
9697 if test "$cf_format" = yes ; then
9698 if test "$cf_inboth" = no ; then
9699 sh \$0 format \$verb \$mandir \$srcdir \$*
9703 cf_subdir=\$mandir/man
9704 cf_tables=$MANPAGE_TBL
9706 cf_subdir=\$mandir/cat
9710 # process the list of source-files
9713 *.orig|*.rej) ;; #(vi
9715 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9716 if test \$verb = installing ; then
9717 if test ! -d \$cf_subdir\${section} ; then
9718 mkdir -p \$cf_subdir\$section
9722 # replace variables in man page
9723 if test ! -f $cf_man_alias ; then
9724 cat >>$cf_man_alias <<-CF_EOF2
9725 s,@DATADIR@,\$datadir,g
9726 s,@TERMINFO@,\$TERMINFO,g
9727 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9728 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9729 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9730 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9733 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9735 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9736 cf_name=`echo $cf_name|sed "$program_transform_name"`
9737 cat >>$cf_edit_man <<-CF_EOF
9738 s,@$cf_NAME@,$cf_name,g
9742 cat >>$cf_edit_man <<CF_EOF
9744 echo "...made $cf_man_alias"
9748 cf_source=\`basename \$i\`
9750 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9751 if test ! -f \$inalias ; then
9752 echo .. skipped \$cf_source
9757 if test "$MANPAGE_ALIASES" != no ; then
9758 cat >>$cf_edit_man <<CF_EOF
9759 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9763 if test "$MANPAGE_RENAMES" = no ; then
9764 cat >>$cf_edit_man <<CF_EOF
9765 # perform program transformations for section 1 man pages
9766 if test \$section = 1 ; then
9767 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9769 cf_target=\$cf_subdir\${section}/\$cf_source
9773 cat >>$cf_edit_man <<CF_EOF
9774 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9775 if test -z "\$cf_target" ; then
9776 echo '? missing rename for '\$cf_source
9777 cf_target="\$cf_source"
9779 cf_target="\$cf_subdir\${section}/\${cf_target}"
9784 cat >>$cf_edit_man <<CF_EOF
9785 sed -f $cf_man_alias \\
9788 if test -f $MANPAGE_RENAMES ; then
9789 cat >>$cf_edit_man <<CF_EOF
9790 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9793 cat >>$cf_edit_man <<CF_EOF
9798 cat >>$cf_edit_man <<CF_EOF
9799 if test \$cf_tables = yes ; then
9800 tbl \$TMP >\$TMP.out
9805 if test $with_curses_h != yes ; then
9806 cat >>$cf_edit_man <<CF_EOF
9807 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9812 cat >>$cf_edit_man <<CF_EOF
9813 if test \$form = format ; then
9814 nroff -man \$TMP >\$TMP.out
9819 if test -n "$cf_compress" ; then
9820 cat >>$cf_edit_man <<CF_EOF
9821 if test \$verb = installing ; then
9822 if ( $cf_compress -f \$TMP )
9824 mv \$TMP.$cf_so_strip \$TMP
9827 cf_target="\$cf_target.$cf_so_strip"
9831 case "$MANPAGE_FORMAT" in #(vi
9833 cat >>$cf_edit_man <<CF_EOF
9834 if test \$form = format ; then
9835 # BSDI installs only .0 suffixes in the cat directories
9836 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9842 cat >>$cf_edit_man <<CF_EOF
9843 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9844 if test \$verb = installing ; then
9845 echo \$verb \$cf_target
9846 \$INSTALL_DATA \$TMP \$cf_target
9847 test -d \$cf_subdir\${section} &&
9848 test -n "\$aliases" && (
9849 cd \$cf_subdir\${section} && (
9850 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9851 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9852 cf_target=\`basename \$cf_target\`
9853 for cf_alias in \$aliases
9855 if test \$section = 1 ; then
9856 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9859 if test "$MANPAGE_SYMLINKS" = yes ; then
9860 if test -f \$cf_alias\${suffix} ; then
9861 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9866 echo .. \$verb alias \$cf_alias\${suffix}
9867 rm -f \$cf_alias\${suffix}
9868 $LN_S \$cf_target \$cf_alias\${suffix}
9869 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
9870 echo ".so \$cf_source" >\$TMP
9872 if test -n "$cf_compress" ; then
9873 cat >>$cf_edit_man <<CF_EOF
9874 if test -n "$cf_so_strip" ; then
9875 $cf_compress -f \$TMP
9876 mv \$TMP.$cf_so_strip \$TMP
9880 cat >>$cf_edit_man <<CF_EOF
9881 echo .. \$verb alias \$cf_alias\${suffix}
9882 rm -f \$cf_alias\${suffix}
9883 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
9888 elif test \$verb = removing ; then
9889 test -f \$cf_target && (
9890 echo \$verb \$cf_target
9893 test -d \$cf_subdir\${section} &&
9894 test -n "\$aliases" && (
9895 cd \$cf_subdir\${section} && (
9896 for cf_alias in \$aliases
9898 if test \$section = 1 ; then
9899 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9902 echo .. \$verb alias \$cf_alias\${suffix}
9903 rm -f \$cf_alias\${suffix}
9915 if test $cf_inboth = yes ; then
9916 if test \$form != format ; then
9917 sh \$0 format \$verb \$mandir \$srcdir \$*
9923 chmod 755 $cf_edit_man
9925 ###############################################################################
9927 ### Note that some functions (such as const) are normally disabled anyway.
9928 echo "$as_me:9928: checking if you want to build with function extensions" >&5
9929 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9931 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9932 if test "${enable_ext_funcs+set}" = set; then
9933 enableval="$enable_ext_funcs"
9934 with_ext_funcs=$enableval
9938 echo "$as_me:9938: result: $with_ext_funcs" >&5
9939 echo "${ECHO_T}$with_ext_funcs" >&6
9940 if test "$with_ext_funcs" = yes ; then
9942 cat >>confdefs.h <<\EOF
9943 #define HAVE_CURSES_VERSION 1
9946 cat >>confdefs.h <<\EOF
9947 #define HAVE_HAS_KEY 1
9950 cat >>confdefs.h <<\EOF
9951 #define HAVE_RESIZETERM 1
9954 cat >>confdefs.h <<\EOF
9955 #define HAVE_RESIZE_TERM 1
9958 cat >>confdefs.h <<\EOF
9959 #define HAVE_USE_DEFAULT_COLORS 1
9962 cat >>confdefs.h <<\EOF
9963 #define HAVE_WRESIZE 1
9966 cat >>confdefs.h <<\EOF
9967 #define NCURSES_EXT_FUNCS 1
9970 GENERATED_EXT_FUNCS=generated
9973 GENERATED_EXT_FUNCS=
9976 echo "$as_me:9976: checking if you want to build with experimental SCREEN extensions" >&5
9977 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
9979 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
9980 if test "${enable_sp_funcs+set}" = set; then
9981 enableval="$enable_sp_funcs"
9982 with_sp_funcs=$enableval
9986 echo "$as_me:9986: result: $with_sp_funcs" >&5
9987 echo "${ECHO_T}$with_sp_funcs" >&6
9988 if test "$with_sp_funcs" = yes ; then
9990 cat >>confdefs.h <<\EOF
9991 #define NCURSES_SP_FUNCS 1
9994 GENERATED_SP_FUNCS=generated
10000 echo "$as_me:10000: checking if you want to build with experimental terminal-driver" >&5
10001 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10003 # Check whether --enable-term-driver or --disable-term-driver was given.
10004 if test "${enable_term_driver+set}" = set; then
10005 enableval="$enable_term_driver"
10006 with_term_driver=$enableval
10008 with_term_driver=no
10010 echo "$as_me:10010: result: $with_term_driver" >&5
10011 echo "${ECHO_T}$with_term_driver" >&6
10012 if test "$with_term_driver" = yes ; then
10013 cat >>confdefs.h <<\EOF
10014 #define USE_TERM_DRIVER 1
10017 if test "$with_sp_funcs" != yes ; then
10018 { { echo "$as_me:10018: error: The term-driver option relies upon sp-funcs" >&5
10019 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10020 { (exit 1); exit 1; }; }
10024 ### use option --enable-const to turn on use of const beyond that in XSI.
10025 echo "$as_me:10025: checking for extended use of const keyword" >&5
10026 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10028 # Check whether --enable-const or --disable-const was given.
10029 if test "${enable_const+set}" = set; then
10030 enableval="$enable_const"
10031 with_ext_const=$enableval
10035 echo "$as_me:10035: result: $with_ext_const" >&5
10036 echo "${ECHO_T}$with_ext_const" >&6
10037 NCURSES_CONST='/*nothing*/'
10038 if test "$with_ext_const" = yes ; then
10039 NCURSES_CONST=const
10042 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10043 echo "$as_me:10043: checking if you want to use extended colors" >&5
10044 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10046 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10047 if test "${enable_ext_colors+set}" = set; then
10048 enableval="$enable_ext_colors"
10049 with_ext_colors=$enableval
10053 echo "$as_me:10053: result: $with_ext_colors" >&5
10054 echo "${ECHO_T}$with_ext_colors" >&6
10055 NCURSES_EXT_COLORS=0
10056 if test "$with_ext_colors" = yes ; then
10057 if test "$with_widec" != yes ; then
10058 { { echo "$as_me:10058: error: This option applies only to wide-character library" >&5
10059 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10060 { (exit 1); exit 1; }; }
10062 # cannot be ABI 5 since it changes sizeof(cchar_t)
10064 if test "${with_abi_version+set}" != set; then
10065 case $cf_cv_rel_version in
10067 cf_cv_rel_version=6.0
10068 cf_cv_abi_version=6
10069 { echo "$as_me:10069: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10070 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10076 NCURSES_EXT_COLORS=1
10077 cat >>confdefs.h <<\EOF
10078 #define NCURSES_EXT_COLORS 1
10083 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10084 echo "$as_me:10084: checking if you want to use extended mouse encoding" >&5
10085 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10087 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10088 if test "${enable_ext_mouse+set}" = set; then
10089 enableval="$enable_ext_mouse"
10090 with_ext_mouse=$enableval
10094 echo "$as_me:10094: result: $with_ext_mouse" >&5
10095 echo "${ECHO_T}$with_ext_mouse" >&6
10096 NCURSES_MOUSE_VERSION=1
10097 if test "$with_ext_mouse" = yes ; then
10098 NCURSES_MOUSE_VERSION=2
10100 if test "${with_abi_version+set}" != set; then
10101 case $cf_cv_rel_version in
10103 cf_cv_rel_version=6.0
10104 cf_cv_abi_version=6
10105 { echo "$as_me:10105: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10106 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10113 echo "$as_me:10113: checking if you want \$NCURSES_NO_PADDING code" >&5
10114 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10116 # Check whether --enable-no-padding or --disable-no-padding was given.
10117 if test "${enable_no_padding+set}" = set; then
10118 enableval="$enable_no_padding"
10119 with_no_padding=$enableval
10121 with_no_padding=$with_ext_funcs
10123 echo "$as_me:10123: result: $with_no_padding" >&5
10124 echo "${ECHO_T}$with_no_padding" >&6
10125 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10126 #define NCURSES_NO_PADDING 1
10129 echo "$as_me:10129: checking for ANSI C header files" >&5
10130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10131 if test "${ac_cv_header_stdc+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 cat >conftest.$ac_ext <<_ACEOF
10135 #line 10135 "configure"
10136 #include "confdefs.h"
10137 #include <stdlib.h>
10138 #include <stdarg.h>
10139 #include <string.h>
10143 if { (eval echo "$as_me:10143: \"$ac_cpp conftest.$ac_ext\"") >&5
10144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10146 egrep -v '^ *\+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:10149: \$? = $ac_status" >&5
10150 (exit $ac_status); } >/dev/null; then
10151 if test -s conftest.err; then
10152 ac_cpp_err=$ac_c_preproc_warn_flag
10159 if test -z "$ac_cpp_err"; then
10160 ac_cv_header_stdc=yes
10162 echo "$as_me: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10164 ac_cv_header_stdc=no
10166 rm -f conftest.err conftest.$ac_ext
10168 if test $ac_cv_header_stdc = yes; then
10169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line 10171 "configure"
10172 #include "confdefs.h"
10173 #include <string.h>
10176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10177 egrep "memchr" >/dev/null 2>&1; then
10180 ac_cv_header_stdc=no
10186 if test $ac_cv_header_stdc = yes; then
10187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10188 cat >conftest.$ac_ext <<_ACEOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10191 #include <stdlib.h>
10194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10195 egrep "free" >/dev/null 2>&1; then
10198 ac_cv_header_stdc=no
10204 if test $ac_cv_header_stdc = yes; then
10205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10206 if test "$cross_compiling" = yes; then
10209 cat >conftest.$ac_ext <<_ACEOF
10210 #line 10210 "configure"
10211 #include "confdefs.h"
10213 #if ((' ' & 0x0FF) == 0x020)
10214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10217 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10218 || ('j' <= (c) && (c) <= 'r') \
10219 || ('s' <= (c) && (c) <= 'z'))
10220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10228 for (i = 0; i < 256; i++)
10229 if (XOR (islower (i), ISLOWER (i))
10230 || toupper (i) != TOUPPER (i))
10231 $ac_main_return(2);
10232 $ac_main_return (0);
10235 rm -f conftest$ac_exeext
10236 if { (eval echo "$as_me:10236: \"$ac_link\"") >&5
10237 (eval $ac_link) 2>&5
10239 echo "$as_me:10239: \$? = $ac_status" >&5
10240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10241 { (eval echo "$as_me:10241: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10244 echo "$as_me:10244: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10248 echo "$as_me: program exited with status $ac_status" >&5
10249 echo "$as_me: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10251 ac_cv_header_stdc=no
10253 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10257 echo "$as_me:10257: result: $ac_cv_header_stdc" >&5
10258 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10259 if test $ac_cv_header_stdc = yes; then
10261 cat >>confdefs.h <<\EOF
10262 #define STDC_HEADERS 1
10267 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10270 inttypes.h stdint.h unistd.h
10272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10273 echo "$as_me:10273: checking for $ac_header" >&5
10274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 cat >conftest.$ac_ext <<_ACEOF
10279 #line 10279 "configure"
10280 #include "confdefs.h"
10281 $ac_includes_default
10282 #include <$ac_header>
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:10285: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>&5
10288 echo "$as_me:10288: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:10291: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:10294: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 eval "$as_ac_Header=yes"
10298 echo "$as_me: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 eval "$as_ac_Header=no"
10302 rm -f conftest.$ac_objext conftest.$ac_ext
10304 echo "$as_me:10304: result: `eval echo '${'$as_ac_Header'}'`" >&5
10305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10307 cat >>confdefs.h <<EOF
10308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314 echo "$as_me:10314: checking for signed char" >&5
10315 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
10316 if test "${ac_cv_type_signed_char+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 cat >conftest.$ac_ext <<_ACEOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10322 $ac_includes_default
10326 if ((signed char *) 0)
10328 if (sizeof (signed char))
10334 rm -f conftest.$ac_objext
10335 if { (eval echo "$as_me:10335: \"$ac_compile\"") >&5
10336 (eval $ac_compile) 2>&5
10338 echo "$as_me:10338: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -s conftest.$ac_objext'
10341 { (eval echo "$as_me:10341: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:10344: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_cv_type_signed_char=yes
10348 echo "$as_me: failed program was:" >&5
10349 cat conftest.$ac_ext >&5
10350 ac_cv_type_signed_char=no
10352 rm -f conftest.$ac_objext conftest.$ac_ext
10354 echo "$as_me:10354: result: $ac_cv_type_signed_char" >&5
10355 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
10357 echo "$as_me:10357: checking size of signed char" >&5
10358 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
10359 if test "${ac_cv_sizeof_signed_char+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test "$ac_cv_type_signed_char" = yes; then
10363 if test "$cross_compiling" = yes; then
10364 # Depending upon the size, compute the lo and hi bounds.
10365 cat >conftest.$ac_ext <<_ACEOF
10366 #line 10366 "configure"
10367 #include "confdefs.h"
10368 $ac_includes_default
10372 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:10378: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>&5
10381 echo "$as_me:10381: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -s conftest.$ac_objext'
10384 { (eval echo "$as_me:10384: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:10387: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10391 cat >conftest.$ac_ext <<_ACEOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10394 $ac_includes_default
10398 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10403 rm -f conftest.$ac_objext
10404 if { (eval echo "$as_me:10404: \"$ac_compile\"") >&5
10405 (eval $ac_compile) 2>&5
10407 echo "$as_me:10407: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -s conftest.$ac_objext'
10410 { (eval echo "$as_me:10410: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10413 echo "$as_me:10413: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_hi=$ac_mid; break
10417 echo "$as_me: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10421 rm -f conftest.$ac_objext conftest.$ac_ext
10424 echo "$as_me: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10428 cat >conftest.$ac_ext <<_ACEOF
10429 #line 10429 "configure"
10430 #include "confdefs.h"
10431 $ac_includes_default
10435 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
10440 rm -f conftest.$ac_objext
10441 if { (eval echo "$as_me:10441: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>&5
10444 echo "$as_me:10444: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -s conftest.$ac_objext'
10447 { (eval echo "$as_me:10447: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10450 echo "$as_me:10450: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_lo=$ac_mid; break
10454 echo "$as_me: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10458 rm -f conftest.$ac_objext conftest.$ac_ext
10461 rm -f conftest.$ac_objext conftest.$ac_ext
10462 # Binary search between lo and hi bounds.
10463 while test "x$ac_lo" != "x$ac_hi"; do
10464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10465 cat >conftest.$ac_ext <<_ACEOF
10466 #line 10466 "configure"
10467 #include "confdefs.h"
10468 $ac_includes_default
10472 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10477 rm -f conftest.$ac_objext
10478 if { (eval echo "$as_me:10478: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>&5
10481 echo "$as_me:10481: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -s conftest.$ac_objext'
10484 { (eval echo "$as_me:10484: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:10487: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10491 echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 ac_lo=`expr $ac_mid + 1`
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10497 ac_cv_sizeof_signed_char=$ac_lo
10499 if test "$cross_compiling" = yes; then
10500 { { echo "$as_me:10500: error: cannot run test program while cross compiling" >&5
10501 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10502 { (exit 1); exit 1; }; }
10504 cat >conftest.$ac_ext <<_ACEOF
10505 #line 10505 "configure"
10506 #include "confdefs.h"
10507 $ac_includes_default
10511 FILE *f = fopen ("conftest.val", "w");
10513 $ac_main_return (1);
10514 fprintf (f, "%d", (sizeof (signed char)));
10520 rm -f conftest$ac_exeext
10521 if { (eval echo "$as_me:10521: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>&5
10524 echo "$as_me:10524: \$? = $ac_status" >&5
10525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10526 { (eval echo "$as_me:10526: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:10529: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_cv_sizeof_signed_char=`cat conftest.val`
10533 echo "$as_me: program exited with status $ac_status" >&5
10534 echo "$as_me: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10537 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10542 ac_cv_sizeof_signed_char=0
10545 echo "$as_me:10545: result: $ac_cv_sizeof_signed_char" >&5
10546 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10547 cat >>confdefs.h <<EOF
10548 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10551 if test "$ac_cv_sizeof_signed_char" = 1 ; then
10552 NCURSES_SBOOL="signed char"
10554 NCURSES_SBOOL="char"
10556 echo "$as_me:10556: checking if you want to use signed Boolean array in term.h" >&5
10557 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
10559 # Check whether --enable-signed-char or --disable-signed-char was given.
10560 if test "${enable_signed_char+set}" = set; then
10561 enableval="$enable_signed_char"
10562 with_signed_char=$enableval
10564 with_signed_char=no
10566 echo "$as_me:10566: result: $with_signed_char" >&5
10567 echo "${ECHO_T}$with_signed_char" >&6
10568 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
10570 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
10571 echo "$as_me:10571: checking if you want SIGWINCH handler" >&5
10572 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
10574 # Check whether --enable-sigwinch or --disable-sigwinch was given.
10575 if test "${enable_sigwinch+set}" = set; then
10576 enableval="$enable_sigwinch"
10577 with_sigwinch=$enableval
10579 with_sigwinch=$with_ext_funcs
10581 echo "$as_me:10581: result: $with_sigwinch" >&5
10582 echo "${ECHO_T}$with_sigwinch" >&6
10583 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
10584 #define USE_SIGWINCH 1
10587 ### use option --enable-tcap-names to allow user to define new capabilities
10588 echo "$as_me:10588: checking if you want user-definable terminal capabilities like termcap" >&5
10589 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
10591 # Check whether --enable-tcap-names or --disable-tcap-names was given.
10592 if test "${enable_tcap_names+set}" = set; then
10593 enableval="$enable_tcap_names"
10594 with_tcap_names=$enableval
10596 with_tcap_names=$with_ext_funcs
10598 echo "$as_me:10598: result: $with_tcap_names" >&5
10599 echo "${ECHO_T}$with_tcap_names" >&6
10601 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
10603 ###############################################################################
10604 # These options are relatively safe to experiment with.
10606 echo "$as_me:10606: checking if you want all development code" >&5
10607 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
10609 # Check whether --with-develop or --without-develop was given.
10610 if test "${with_develop+set}" = set; then
10611 withval="$with_develop"
10612 with_develop=$withval
10616 echo "$as_me:10616: result: $with_develop" >&5
10617 echo "${ECHO_T}$with_develop" >&6
10619 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
10620 echo "$as_me:10620: checking if you want hard-tabs code" >&5
10621 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
10623 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
10624 if test "${enable_hard_tabs+set}" = set; then
10625 enableval="$enable_hard_tabs"
10628 enable_hard_tabs=$with_develop
10630 echo "$as_me:10630: result: $enable_hard_tabs" >&5
10631 echo "${ECHO_T}$enable_hard_tabs" >&6
10632 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
10633 #define USE_HARD_TABS 1
10636 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
10637 echo "$as_me:10637: checking if you want limited support for xmc" >&5
10638 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
10640 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
10641 if test "${enable_xmc_glitch+set}" = set; then
10642 enableval="$enable_xmc_glitch"
10645 enable_xmc_glitch=$with_develop
10647 echo "$as_me:10647: result: $enable_xmc_glitch" >&5
10648 echo "${ECHO_T}$enable_xmc_glitch" >&6
10649 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10650 #define USE_XMC_SUPPORT 1
10653 ###############################################################################
10654 # These are just experimental, probably should not be in a package:
10656 echo "$as_me:10656: checking if you do not want to assume colors are white-on-black" >&5
10657 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10659 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10660 if test "${enable_assumed_color+set}" = set; then
10661 enableval="$enable_assumed_color"
10662 with_assumed_color=$enableval
10664 with_assumed_color=yes
10666 echo "$as_me:10666: result: $with_assumed_color" >&5
10667 echo "${ECHO_T}$with_assumed_color" >&6
10668 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10669 #define USE_ASSUMED_COLOR 1
10672 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10673 echo "$as_me:10673: checking if you want hashmap scrolling-optimization code" >&5
10674 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10676 # Check whether --enable-hashmap or --disable-hashmap was given.
10677 if test "${enable_hashmap+set}" = set; then
10678 enableval="$enable_hashmap"
10679 with_hashmap=$enableval
10683 echo "$as_me:10683: result: $with_hashmap" >&5
10684 echo "${ECHO_T}$with_hashmap" >&6
10685 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10686 #define USE_HASHMAP 1
10689 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10690 echo "$as_me:10690: checking if you want colorfgbg code" >&5
10691 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10693 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10694 if test "${enable_colorfgbg+set}" = set; then
10695 enableval="$enable_colorfgbg"
10696 with_colorfgbg=$enableval
10700 echo "$as_me:10700: result: $with_colorfgbg" >&5
10701 echo "${ECHO_T}$with_colorfgbg" >&6
10702 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10703 #define USE_COLORFGBG 1
10706 ### use option --enable-interop to turn on use of bindings used for interop
10707 echo "$as_me:10707: checking if you want interop bindings" >&5
10708 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
10710 # Check whether --enable-interop or --disable-interop was given.
10711 if test "${enable_interop+set}" = set; then
10712 enableval="$enable_interop"
10713 with_exp_interop=$enableval
10715 with_exp_interop=no
10717 echo "$as_me:10717: result: $with_exp_interop" >&5
10718 echo "${ECHO_T}$with_exp_interop" >&6
10720 NCURSES_INTEROP_FUNCS=0
10721 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
10723 # This is still experimental (20080329), but should ultimately be moved to
10724 # the script-block --with-normal, etc.
10726 echo "$as_me:10726: checking if you want to link with the pthread library" >&5
10727 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10729 # Check whether --with-pthread or --without-pthread was given.
10730 if test "${with_pthread+set}" = set; then
10731 withval="$with_pthread"
10732 with_pthread=$withval
10736 echo "$as_me:10736: result: $with_pthread" >&5
10737 echo "${ECHO_T}$with_pthread" >&6
10739 if test "$with_pthread" != no ; then
10740 echo "$as_me:10740: checking for pthread.h" >&5
10741 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10742 if test "${ac_cv_header_pthread_h+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line 10746 "configure"
10747 #include "confdefs.h"
10748 #include <pthread.h>
10750 if { (eval echo "$as_me:10750: \"$ac_cpp conftest.$ac_ext\"") >&5
10751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10753 egrep -v '^ *\+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:10756: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null; then
10758 if test -s conftest.err; then
10759 ac_cpp_err=$ac_c_preproc_warn_flag
10766 if test -z "$ac_cpp_err"; then
10767 ac_cv_header_pthread_h=yes
10769 echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 ac_cv_header_pthread_h=no
10773 rm -f conftest.err conftest.$ac_ext
10775 echo "$as_me:10775: result: $ac_cv_header_pthread_h" >&5
10776 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10777 if test $ac_cv_header_pthread_h = yes; then
10779 cat >>confdefs.h <<\EOF
10780 #define HAVE_PTHREADS_H 1
10783 echo "$as_me:10783: checking if we can link with the pthread library" >&5
10784 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10785 cf_save_LIBS="$LIBS"
10786 LIBS="-lpthread $LIBS"
10787 cat >conftest.$ac_ext <<_ACEOF
10788 #line 10788 "configure"
10789 #include "confdefs.h"
10791 #include <pthread.h>
10797 int rc = pthread_create(0,0,0,0);
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:10804: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>&5
10807 echo "$as_me:10807: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:10810: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:10813: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10817 echo "$as_me: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10822 LIBS="$cf_save_LIBS"
10823 echo "$as_me:10823: result: $with_pthread" >&5
10824 echo "${ECHO_T}$with_pthread" >&6
10826 if test "$with_pthread" = yes ; then
10827 LIBS="-lpthread $LIBS"
10828 cat >>confdefs.h <<\EOF
10829 #define HAVE_LIBPTHREADS 1
10833 { { echo "$as_me:10833: error: Cannot link with pthread library" >&5
10834 echo "$as_me: error: Cannot link with pthread library" >&2;}
10835 { (exit 1); exit 1; }; }
10842 echo "$as_me:10842: checking if you want to allow EINTR in wgetch with pthreads" >&5
10843 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
10845 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
10846 if test "${enable_pthreads_eintr+set}" = set; then
10847 enableval="$enable_pthreads_eintr"
10848 use_pthreads_eintr=$enableval
10850 use_pthreads_eintr=no
10852 echo "$as_me:10852: result: $use_pthreads_eintr" >&5
10853 echo "${ECHO_T}$use_pthreads_eintr" >&6
10854 if test $use_pthreads_eintr = yes ; then
10855 cat >>confdefs.h <<\EOF
10856 #define USE_PTHREADS_EINTR 1
10861 echo "$as_me:10861: checking if you want to use weak-symbols for pthreads" >&5
10862 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
10864 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
10865 if test "${enable_weak_symbols+set}" = set; then
10866 enableval="$enable_weak_symbols"
10867 use_weak_symbols=$enableval
10869 use_weak_symbols=no
10871 echo "$as_me:10871: result: $use_weak_symbols" >&5
10872 echo "${ECHO_T}$use_weak_symbols" >&6
10873 if test "$use_weak_symbols" = yes ; then
10875 echo "$as_me:10875: checking if $CC supports weak symbols" >&5
10876 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
10877 if test "${cf_cv_weak_symbols+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.$ac_ext <<_ACEOF
10882 #line 10882 "configure"
10883 #include "confdefs.h"
10890 #if defined(__GNUC__)
10891 # if defined __USE_ISOC99
10892 # define _cat_pragma(exp) _Pragma(#exp)
10893 # define _weak_pragma(exp) _cat_pragma(weak name)
10895 # define _weak_pragma(exp)
10897 # define _declare(name) __extension__ extern __typeof__(name) name
10898 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
10901 weak_symbol(fopen);
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:10908: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>&5
10911 echo "$as_me:10911: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:10914: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:10917: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 cf_cv_weak_symbols=yes
10921 echo "$as_me: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10923 cf_cv_weak_symbols=no
10925 rm -f conftest.$ac_objext conftest.$ac_ext
10928 echo "$as_me:10928: result: $cf_cv_weak_symbols" >&5
10929 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
10932 cf_cv_weak_symbols=no
10935 if test $cf_cv_weak_symbols = yes ; then
10936 cat >>confdefs.h <<\EOF
10937 #define USE_WEAK_SYMBOLS 1
10943 if test "$with_pthread" = "yes" ; then
10944 cat >>confdefs.h <<\EOF
10945 #define USE_PTHREADS 1
10948 enable_reentrant=yes
10949 if test $cf_cv_weak_symbols = yes ; then
10954 # Reentrant code has to be opaque; there's little advantage to making ncurses
10955 # opaque outside of that, so there is no --enable-opaque option. We can use
10956 # this option without --with-pthreads, but this will be always set for
10958 echo "$as_me:10958: checking if you want experimental reentrant code" >&5
10959 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
10961 # Check whether --enable-reentrant or --disable-reentrant was given.
10962 if test "${enable_reentrant+set}" = set; then
10963 enableval="$enable_reentrant"
10964 with_reentrant=$enableval
10968 echo "$as_me:10968: result: $with_reentrant" >&5
10969 echo "${ECHO_T}$with_reentrant" >&6
10970 if test "$with_reentrant" = yes ; then
10971 cf_cv_enable_reentrant=1
10972 cf_cv_enable_opaque="NCURSES_INTERNALS"
10975 if test $cf_cv_weak_symbols = yes ; then
10977 # remove pthread library from $LIBS
10978 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
10980 TEST_LIBS="-lpthread $TEST_LIBS"
10981 TEST_LIBS2="-lpthread $TEST_LIBS2"
10983 LIB_SUFFIX="t${LIB_SUFFIX}"
10984 cat >>confdefs.h <<\EOF
10985 #define USE_REENTRANT 1
10988 if test "${with_abi_version+set}" != set; then
10989 case $cf_cv_rel_version in
10991 cf_cv_rel_version=6.0
10992 cf_cv_abi_version=6
10993 { echo "$as_me:10993: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10994 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11000 cf_cv_enable_reentrant=0
11001 cf_cv_enable_opaque="NCURSES_OPAQUE"
11003 NCURSES_SIZE_T=short
11006 ### Allow using a different wrap-prefix
11007 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11008 echo "$as_me:11008: checking for prefix used to wrap public variables" >&5
11009 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11011 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11012 if test "${with_wrap_prefix+set}" = set; then
11013 withval="$with_wrap_prefix"
11014 NCURSES_WRAP_PREFIX=$withval
11016 NCURSES_WRAP_PREFIX=_nc_
11018 echo "$as_me:11018: result: $NCURSES_WRAP_PREFIX" >&5
11019 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11021 NCURSES_WRAP_PREFIX=_nc_
11024 cat >>confdefs.h <<EOF
11025 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11028 echo "$as_me:11028: checking if you want experimental safe-sprintf code" >&5
11029 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11031 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11032 if test "${enable_safe_sprintf+set}" = set; then
11033 enableval="$enable_safe_sprintf"
11034 with_safe_sprintf=$enableval
11036 with_safe_sprintf=no
11038 echo "$as_me:11038: result: $with_safe_sprintf" >&5
11039 echo "${ECHO_T}$with_safe_sprintf" >&6
11040 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11041 #define USE_SAFE_SPRINTF 1
11044 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11045 # when hashmap is used scroll hints are useless
11046 if test "$with_hashmap" = no ; then
11047 echo "$as_me:11047: checking if you want to experiment without scrolling-hints code" >&5
11048 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11050 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11051 if test "${enable_scroll_hints+set}" = set; then
11052 enableval="$enable_scroll_hints"
11053 with_scroll_hints=$enableval
11055 with_scroll_hints=yes
11057 echo "$as_me:11057: result: $with_scroll_hints" >&5
11058 echo "${ECHO_T}$with_scroll_hints" >&6
11059 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11060 #define USE_SCROLL_HINTS 1
11065 echo "$as_me:11065: checking if you want experimental wgetch-events code" >&5
11066 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11068 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11069 if test "${enable_wgetch_events+set}" = set; then
11070 enableval="$enable_wgetch_events"
11071 with_wgetch_events=$enableval
11073 with_wgetch_events=no
11075 echo "$as_me:11075: result: $with_wgetch_events" >&5
11076 echo "${ECHO_T}$with_wgetch_events" >&6
11077 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
11078 #define NCURSES_WGETCH_EVENTS 1
11081 ###############################################################################
11083 ### use option --disable-echo to suppress full display compiling commands
11084 echo "$as_me:11084: checking if you want to display full commands during build" >&5
11085 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
11087 # Check whether --enable-echo or --disable-echo was given.
11088 if test "${enable_echo+set}" = set; then
11089 enableval="$enable_echo"
11090 with_echo=$enableval
11094 if test "$with_echo" = yes; then
11097 ECHO_LINK='@ echo linking $@ ... ;'
11098 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11099 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11101 echo "$as_me:11101: result: $with_echo" >&5
11102 echo "${ECHO_T}$with_echo" >&6
11104 ### use option --enable-warnings to turn on all gcc warnings
11105 echo "$as_me:11105: checking if you want to see compiler warnings" >&5
11106 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
11108 # Check whether --enable-warnings or --disable-warnings was given.
11109 if test "${enable_warnings+set}" = set; then
11110 enableval="$enable_warnings"
11111 with_warnings=$enableval
11113 echo "$as_me:11113: result: $with_warnings" >&5
11114 echo "${ECHO_T}$with_warnings" >&6
11116 if test "x$with_warnings" = "xyes"; then
11118 ADAFLAGS="$ADAFLAGS -gnatg"
11122 if test "$GCC" = yes ; then
11125 echo "$as_me:11125: checking if this is really Intel C compiler" >&5
11126 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
11127 cf_save_CFLAGS="$CFLAGS"
11128 CFLAGS="$CFLAGS -no-gcc"
11129 cat >conftest.$ac_ext <<_ACEOF
11130 #line 11130 "configure"
11131 #include "confdefs.h"
11137 #ifdef __INTEL_COMPILER
11146 rm -f conftest.$ac_objext
11147 if { (eval echo "$as_me:11147: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>&5
11150 echo "$as_me:11150: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -s conftest.$ac_objext'
11153 { (eval echo "$as_me:11153: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:11156: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11159 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11162 echo "$as_me: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11165 rm -f conftest.$ac_objext conftest.$ac_ext
11166 CFLAGS="$cf_save_CFLAGS"
11167 echo "$as_me:11167: result: $INTEL_COMPILER" >&5
11168 echo "${ECHO_T}$INTEL_COMPILER" >&6
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11174 "${as_me-configure}"
11175 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11178 if test "$INTEL_COMPILER" = yes
11180 # The "-wdXXX" options suppress warnings:
11181 # remark #1419: external declaration in primary source file
11182 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11183 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11184 # remark #193: zero used for undefined preprocessing identifier
11185 # remark #593: variable "curs_sb_left_arrow" was set but never used
11186 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11187 # remark #869: parameter "tw" was never referenced
11188 # remark #981: operands are evaluated in unspecified order
11189 # warning #279: controlling expression is constant
11191 { echo "$as_me:11191: checking for $CC warning options..." >&5
11192 echo "$as_me: checking for $CC warning options..." >&6;}
11193 cf_save_CFLAGS="$CFLAGS"
11194 EXTRA_CFLAGS="-Wall"
11206 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11207 if { (eval echo "$as_me:11207: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>&5
11210 echo "$as_me:11210: \$? = $ac_status" >&5
11211 (exit $ac_status); }; then
11212 test -n "$verbose" && echo "$as_me:11212: result: ... -$cf_opt" >&5
11213 echo "${ECHO_T}... -$cf_opt" >&6
11214 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11217 CFLAGS="$cf_save_CFLAGS"
11219 elif test "$GCC" = yes
11221 { echo "$as_me:11221: checking for $CC warning options..." >&5
11222 echo "$as_me: checking for $CC warning options..." >&6;}
11223 cf_save_CFLAGS="$CFLAGS"
11226 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
11227 for cf_opt in W Wall \
11228 Wbad-function-cast \
11232 Wmissing-declarations \
11233 Wmissing-prototypes \
11237 Wstrict-prototypes \
11238 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
11240 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11241 if { (eval echo "$as_me:11241: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>&5
11244 echo "$as_me:11244: \$? = $ac_status" >&5
11245 (exit $ac_status); }; then
11246 test -n "$verbose" && echo "$as_me:11246: result: ... -$cf_opt" >&5
11247 echo "${ECHO_T}... -$cf_opt" >&6
11248 case $cf_opt in #(vi
11250 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
11253 case $GCC_VERSION in
11255 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
11257 echo "${as_me-configure}:11257: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
11263 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11266 CFLAGS="$cf_save_CFLAGS"
11270 if test "$cf_with_cxx" = yes ; then
11274 if test "$GCC" = yes ; then
11277 echo "$as_me:11277: checking if this is really Intel C++ compiler" >&5
11278 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
11279 cf_save_CFLAGS="$CXXFLAGS"
11280 CXXFLAGS="$CXXFLAGS -no-gcc"
11281 cat >conftest.$ac_ext <<_ACEOF
11282 #line 11282 "configure"
11283 #include "confdefs.h"
11289 #ifdef __INTEL_COMPILER
11298 rm -f conftest.$ac_objext
11299 if { (eval echo "$as_me:11299: \"$ac_compile\"") >&5
11300 (eval $ac_compile) 2>&5
11302 echo "$as_me:11302: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -s conftest.$ac_objext'
11305 { (eval echo "$as_me:11305: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:11308: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 INTEL_CPLUSPLUS=yes
11311 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11314 echo "$as_me: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11317 rm -f conftest.$ac_objext conftest.$ac_ext
11318 CXXFLAGS="$cf_save_CFLAGS"
11319 echo "$as_me:11319: result: $INTEL_CPLUSPLUS" >&5
11320 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
11326 ac_cpp='$CXXCPP $CPPFLAGS'
11327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11330 ac_main_return=return
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11333 "configure"
11334 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11337 if test "$INTEL_CPLUSPLUS" = yes
11339 # The "-wdXXX" options suppress warnings:
11340 # remark #1419: external declaration in primary source file
11341 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11342 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11343 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11344 # remark #193: zero used for undefined preprocessing identifier
11345 # remark #593: variable "curs_sb_left_arrow" was set but never used
11346 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11347 # remark #869: parameter "tw" was never referenced
11348 # remark #981: operands are evaluated in unspecified order
11349 # warning #269: invalid format string conversion
11351 { echo "$as_me:11351: checking for $CC warning options..." >&5
11352 echo "$as_me: checking for $CC warning options..." >&6;}
11353 cf_save_CXXFLAGS="$CXXFLAGS"
11354 EXTRA_CXXFLAGS="-Wall"
11367 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
11368 if { (eval echo "$as_me:11368: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>&5
11371 echo "$as_me:11371: \$? = $ac_status" >&5
11372 (exit $ac_status); }; then
11373 test -n "$verbose" && echo "$as_me:11373: result: ... -$cf_opt" >&5
11374 echo "${ECHO_T}... -$cf_opt" >&6
11375 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11378 CXXFLAGS="$cf_save_CXXFLAGS"
11380 elif test "$GXX" = yes
11382 { echo "$as_me:11382: checking for $CXX warning options..." >&5
11383 echo "$as_me: checking for $CXX warning options..." >&6;}
11384 cf_save_CXXFLAGS="$CXXFLAGS"
11385 EXTRA_CXXFLAGS="-W -Wall"
11386 cf_gxx_extra_warnings=""
11387 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
11388 case "$GCC_VERSION" in
11392 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
11398 Woverloaded-virtual \
11404 Wmissing-prototypes \
11407 Wstrict-prototypes \
11408 Wundef $cf_gxx_extra_warnings Wno-unused
11410 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
11411 if { (eval echo "$as_me:11411: \"$ac_compile\"") >&5
11412 (eval $ac_compile) 2>&5
11414 echo "$as_me:11414: \$? = $ac_status" >&5
11415 (exit $ac_status); }; then
11416 test -n "$verbose" && echo "$as_me:11416: result: ... -$cf_opt" >&5
11417 echo "${ECHO_T}... -$cf_opt" >&6
11418 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11420 test -n "$verbose" && echo "$as_me:11420: result: ... no -$cf_opt" >&5
11421 echo "${ECHO_T}... no -$cf_opt" >&6
11424 CXXFLAGS="$cf_save_CXXFLAGS"
11429 ac_cpp='$CPP $CPPFLAGS'
11430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11433 ac_main_return=return
11438 if test "$GCC" = yes
11440 cat > conftest.i <<EOF
11442 #define GCC_PRINTF 0
11445 #define GCC_SCANF 0
11447 #ifndef GCC_NORETURN
11448 #define GCC_NORETURN /* nothing */
11451 #define GCC_UNUSED /* nothing */
11454 if test "$GCC" = yes
11456 { echo "$as_me:11456: checking for $CC __attribute__ directives..." >&5
11457 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11459 "${as_me-configure}"
11460 #include "confdefs.h"
11461 #include "conftest.h"
11462 #include "conftest.i"
11464 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11466 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
11469 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11471 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
11473 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
11474 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
11475 extern void foo(void) GCC_NORETURN;
11476 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
11478 cf_printf_attribute=no
11479 cf_scanf_attribute=no
11480 for cf_attribute in scanf printf unused noreturn
11483 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11485 cf_directive="__attribute__(($cf_attribute))"
11486 echo "checking for $CC $cf_directive" 1>&5
11488 case $cf_attribute in #(vi
11490 cf_printf_attribute=yes
11491 cat >conftest.h <<EOF
11492 #define GCC_$cf_ATTRIBUTE 1
11496 cf_scanf_attribute=yes
11497 cat >conftest.h <<EOF
11498 #define GCC_$cf_ATTRIBUTE 1
11502 cat >conftest.h <<EOF
11503 #define GCC_$cf_ATTRIBUTE $cf_directive
11508 if { (eval echo "$as_me:11508: \"$ac_compile\"") >&5
11509 (eval $ac_compile) 2>&5
11511 echo "$as_me:11511: \$? = $ac_status" >&5
11512 (exit $ac_status); }; then
11513 test -n "$verbose" && echo "$as_me:11513: result: ... $cf_attribute" >&5
11514 echo "${ECHO_T}... $cf_attribute" >&6
11515 cat conftest.h >>confdefs.h
11516 case $cf_attribute in #(vi
11518 if test "$cf_printf_attribute" = no ; then
11519 cat >>confdefs.h <<EOF
11520 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
11523 cat >>confdefs.h <<EOF
11524 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11529 if test "$cf_scanf_attribute" = no ; then
11530 cat >>confdefs.h <<EOF
11531 #define GCC_SCANFLIKE(fmt,var) /* nothing */
11534 cat >>confdefs.h <<EOF
11535 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11543 fgrep define conftest.i >>confdefs.h
11548 ### use option --enable-assertions to turn on generation of assertion code
11549 echo "$as_me:11549: checking if you want to enable runtime assertions" >&5
11550 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
11552 # Check whether --enable-assertions or --disable-assertions was given.
11553 if test "${enable_assertions+set}" = set; then
11554 enableval="$enable_assertions"
11555 with_assertions=$enableval
11559 echo "$as_me:11559: result: $with_assertions" >&5
11560 echo "${ECHO_T}$with_assertions" >&6
11563 if test "$with_assertions" = no
11565 cat >>confdefs.h <<\EOF
11569 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11572 ADAFLAGS="$ADAFLAGS -gnata"
11577 ### use option --disable-leaks to suppress "permanent" leaks, for testing
11579 echo "$as_me:11579: checking if you want to use dmalloc for testing" >&5
11580 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
11582 # Check whether --with-dmalloc or --without-dmalloc was given.
11583 if test "${with_dmalloc+set}" = set; then
11584 withval="$with_dmalloc"
11585 cat >>confdefs.h <<\EOF
11586 #define USE_DMALLOC 1
11589 : ${with_cflags:=-g}
11590 : ${with_no_leaks:=yes}
11595 echo "$as_me:11595: result: ${with_dmalloc:-no}" >&5
11596 echo "${ECHO_T}${with_dmalloc:-no}" >&6
11598 case .$with_cflags in #(vi
11600 case .$CFLAGS in #(vi
11608 cf_new_extra_cppflags=
11610 for cf_add_cflags in -g
11612 case $cf_fix_cppflags in
11614 case $cf_add_cflags in #(vi
11615 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11616 case $cf_add_cflags in
11618 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11620 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11621 && test -z "${cf_tst_cflags}" \
11622 && cf_fix_cppflags=yes
11624 if test $cf_fix_cppflags = yes ; then
11625 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11627 elif test "${cf_tst_cflags}" = "\"'" ; then
11628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11633 case "$CPPFLAGS" in
11634 *$cf_add_cflags) #(vi
11637 case $cf_add_cflags in #(vi
11639 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11641 CPPFLAGS=`echo "$CPPFLAGS" | \
11642 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11643 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11647 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11652 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11657 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11659 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11661 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11662 && test -z "${cf_tst_cflags}" \
11663 && cf_fix_cppflags=no
11668 if test -n "$cf_new_cflags" ; then
11670 CFLAGS="$CFLAGS $cf_new_cflags"
11673 if test -n "$cf_new_cppflags" ; then
11675 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11678 if test -n "$cf_new_extra_cppflags" ; then
11680 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11688 if test "$with_dmalloc" = yes ; then
11689 echo "$as_me:11689: checking for dmalloc.h" >&5
11690 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
11691 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11695 #line 11695 "configure"
11696 #include "confdefs.h"
11697 #include <dmalloc.h>
11699 if { (eval echo "$as_me:11699: \"$ac_cpp conftest.$ac_ext\"") >&5
11700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11702 egrep -v '^ *\+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:11705: \$? = $ac_status" >&5
11706 (exit $ac_status); } >/dev/null; then
11707 if test -s conftest.err; then
11708 ac_cpp_err=$ac_c_preproc_warn_flag
11715 if test -z "$ac_cpp_err"; then
11716 ac_cv_header_dmalloc_h=yes
11718 echo "$as_me: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11720 ac_cv_header_dmalloc_h=no
11722 rm -f conftest.err conftest.$ac_ext
11724 echo "$as_me:11724: result: $ac_cv_header_dmalloc_h" >&5
11725 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
11726 if test $ac_cv_header_dmalloc_h = yes; then
11728 echo "$as_me:11728: checking for dmalloc_debug in -ldmalloc" >&5
11729 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
11730 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-ldmalloc $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11739 /* Override any gcc2 internal prototype to avoid an error. */
11743 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */
11745 char dmalloc_debug ();
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (eval echo "$as_me:11755: \"$ac_link\"") >&5
11756 (eval $ac_link) 2>&5
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:11761: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:11764: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_lib_dmalloc_dmalloc_debug=yes
11768 echo "$as_me: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11770 ac_cv_lib_dmalloc_dmalloc_debug=no
11772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 echo "$as_me:11775: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11776 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11777 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11778 cat >>confdefs.h <<EOF
11779 #define HAVE_LIBDMALLOC 1
11782 LIBS="-ldmalloc $LIBS"
11790 echo "$as_me:11790: checking if you want to use dbmalloc for testing" >&5
11791 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
11793 # Check whether --with-dbmalloc or --without-dbmalloc was given.
11794 if test "${with_dbmalloc+set}" = set; then
11795 withval="$with_dbmalloc"
11796 cat >>confdefs.h <<\EOF
11797 #define USE_DBMALLOC 1
11800 : ${with_cflags:=-g}
11801 : ${with_no_leaks:=yes}
11806 echo "$as_me:11806: result: ${with_dbmalloc:-no}" >&5
11807 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
11809 case .$with_cflags in #(vi
11811 case .$CFLAGS in #(vi
11819 cf_new_extra_cppflags=
11821 for cf_add_cflags in -g
11823 case $cf_fix_cppflags in
11825 case $cf_add_cflags in #(vi
11826 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11827 case $cf_add_cflags in
11829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11831 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11832 && test -z "${cf_tst_cflags}" \
11833 && cf_fix_cppflags=yes
11835 if test $cf_fix_cppflags = yes ; then
11836 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11838 elif test "${cf_tst_cflags}" = "\"'" ; then
11839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11844 case "$CPPFLAGS" in
11845 *$cf_add_cflags) #(vi
11848 case $cf_add_cflags in #(vi
11850 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11852 CPPFLAGS=`echo "$CPPFLAGS" | \
11853 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11854 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11858 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11863 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11868 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11872 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11873 && test -z "${cf_tst_cflags}" \
11874 && cf_fix_cppflags=no
11879 if test -n "$cf_new_cflags" ; then
11881 CFLAGS="$CFLAGS $cf_new_cflags"
11884 if test -n "$cf_new_cppflags" ; then
11886 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11889 if test -n "$cf_new_extra_cppflags" ; then
11891 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11899 if test "$with_dbmalloc" = yes ; then
11900 echo "$as_me:11900: checking for dbmalloc.h" >&5
11901 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
11902 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 cat >conftest.$ac_ext <<_ACEOF
11906 #line 11906 "configure"
11907 #include "confdefs.h"
11908 #include <dbmalloc.h>
11910 if { (eval echo "$as_me:11910: \"$ac_cpp conftest.$ac_ext\"") >&5
11911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11913 egrep -v '^ *\+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:11916: \$? = $ac_status" >&5
11917 (exit $ac_status); } >/dev/null; then
11918 if test -s conftest.err; then
11919 ac_cpp_err=$ac_c_preproc_warn_flag
11926 if test -z "$ac_cpp_err"; then
11927 ac_cv_header_dbmalloc_h=yes
11929 echo "$as_me: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 ac_cv_header_dbmalloc_h=no
11933 rm -f conftest.err conftest.$ac_ext
11935 echo "$as_me:11935: result: $ac_cv_header_dbmalloc_h" >&5
11936 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
11937 if test $ac_cv_header_dbmalloc_h = yes; then
11939 echo "$as_me:11939: checking for debug_malloc in -ldbmalloc" >&5
11940 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
11941 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-ldbmalloc $LIBS"
11946 cat >conftest.$ac_ext <<_ACEOF
11947 #line 11947 "configure"
11948 #include "confdefs.h"
11950 /* Override any gcc2 internal prototype to avoid an error. */
11954 /* We use char because int might match the return type of a gcc2
11955 builtin and then its argument prototype would still apply. */
11956 char debug_malloc ();
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (eval echo "$as_me:11966: \"$ac_link\"") >&5
11967 (eval $ac_link) 2>&5
11969 echo "$as_me:11969: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:11972: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:11975: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_dbmalloc_debug_malloc=yes
11979 echo "$as_me: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 ac_cv_lib_dbmalloc_debug_malloc=no
11983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11986 echo "$as_me:11986: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
11987 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
11988 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
11989 cat >>confdefs.h <<EOF
11990 #define HAVE_LIBDBMALLOC 1
11993 LIBS="-ldbmalloc $LIBS"
12001 echo "$as_me:12001: checking if you want to use valgrind for testing" >&5
12002 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
12004 # Check whether --with-valgrind or --without-valgrind was given.
12005 if test "${with_valgrind+set}" = set; then
12006 withval="$with_valgrind"
12007 cat >>confdefs.h <<\EOF
12008 #define USE_VALGRIND 1
12011 : ${with_cflags:=-g}
12012 : ${with_no_leaks:=yes}
12017 echo "$as_me:12017: result: ${with_valgrind:-no}" >&5
12018 echo "${ECHO_T}${with_valgrind:-no}" >&6
12020 case .$with_cflags in #(vi
12022 case .$CFLAGS in #(vi
12030 cf_new_extra_cppflags=
12032 for cf_add_cflags in -g
12034 case $cf_fix_cppflags in
12036 case $cf_add_cflags in #(vi
12037 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12038 case $cf_add_cflags in
12040 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12042 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12043 && test -z "${cf_tst_cflags}" \
12044 && cf_fix_cppflags=yes
12046 if test $cf_fix_cppflags = yes ; then
12047 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12049 elif test "${cf_tst_cflags}" = "\"'" ; then
12050 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12055 case "$CPPFLAGS" in
12056 *$cf_add_cflags) #(vi
12059 case $cf_add_cflags in #(vi
12061 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12063 CPPFLAGS=`echo "$CPPFLAGS" | \
12064 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12065 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12069 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12074 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12079 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12081 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12083 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12084 && test -z "${cf_tst_cflags}" \
12085 && cf_fix_cppflags=no
12090 if test -n "$cf_new_cflags" ; then
12092 CFLAGS="$CFLAGS $cf_new_cflags"
12095 if test -n "$cf_new_cppflags" ; then
12097 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12100 if test -n "$cf_new_extra_cppflags" ; then
12102 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12110 echo "$as_me:12110: checking if you want to perform memory-leak testing" >&5
12111 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
12113 # Check whether --enable-leaks or --disable-leaks was given.
12114 if test "${enable_leaks+set}" = set; then
12115 enableval="$enable_leaks"
12116 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
12118 : ${with_no_leaks:=no}
12120 echo "$as_me:12120: result: $with_no_leaks" >&5
12121 echo "${ECHO_T}$with_no_leaks" >&6
12123 if test "$with_no_leaks" = yes ; then
12124 cat >>confdefs.h <<\EOF
12130 cat >>confdefs.h <<\EOF
12131 #define HAVE_NC_ALLOC_H 1
12134 ### use option --enable-expanded to generate certain macros as functions
12136 # Check whether --enable-expanded or --disable-expanded was given.
12137 if test "${enable_expanded+set}" = set; then
12138 enableval="$enable_expanded"
12139 test "$enableval" = yes && cat >>confdefs.h <<\EOF
12140 #define NCURSES_EXPANDED 1
12145 ### use option --disable-macros to suppress macros in favor of functions
12147 # Check whether --enable-macros or --disable-macros was given.
12148 if test "${enable_macros+set}" = set; then
12149 enableval="$enable_macros"
12150 test "$enableval" = no && cat >>confdefs.h <<\EOF
12151 #define NCURSES_NOMACROS 1
12156 # Normally we only add trace() to the debug-library. Allow this to be
12157 # extended to all models of the ncurses library:
12159 case "$CFLAGS $CPPFLAGS" in
12165 echo "$as_me:12165: checking whether to add trace feature to all models" >&5
12166 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
12168 # Check whether --with-trace or --without-trace was given.
12169 if test "${with_trace+set}" = set; then
12170 withval="$with_trace"
12171 cf_with_trace=$withval
12173 cf_with_trace=$cf_all_traces
12175 echo "$as_me:12175: result: $cf_with_trace" >&5
12176 echo "${ECHO_T}$cf_with_trace" >&6
12178 if test "$cf_with_trace" = yes ; then
12185 cf_new_extra_cppflags=
12187 for cf_add_cflags in -DTRACE
12189 case $cf_fix_cppflags in
12191 case $cf_add_cflags in #(vi
12192 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12193 case $cf_add_cflags in
12195 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12197 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12198 && test -z "${cf_tst_cflags}" \
12199 && cf_fix_cppflags=yes
12201 if test $cf_fix_cppflags = yes ; then
12202 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12204 elif test "${cf_tst_cflags}" = "\"'" ; then
12205 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12210 case "$CPPFLAGS" in
12211 *$cf_add_cflags) #(vi
12214 case $cf_add_cflags in #(vi
12216 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12218 CPPFLAGS=`echo "$CPPFLAGS" | \
12219 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12220 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12224 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12229 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12234 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12236 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12238 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12239 && test -z "${cf_tst_cflags}" \
12240 && cf_fix_cppflags=no
12245 if test -n "$cf_new_cflags" ; then
12247 CFLAGS="$CFLAGS $cf_new_cflags"
12250 if test -n "$cf_new_cppflags" ; then
12252 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12255 if test -n "$cf_new_extra_cppflags" ; then
12257 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12265 ### Checks for libraries.
12266 case $cf_cv_system_name in #(vi
12270 echo "$as_me:12270: checking for gettimeofday" >&5
12271 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
12272 if test "${ac_cv_func_gettimeofday+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12276 #line 12276 "configure"
12277 #include "confdefs.h"
12278 /* System header to define __stub macros and hopefully few prototypes,
12279 which can conflict with char gettimeofday (); below. */
12280 #include <assert.h>
12281 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char gettimeofday ();
12293 /* The GNU C library defines this for functions which it implements
12294 to always fail with ENOSYS. Some functions are actually named
12295 something starting with __ and the normal name is an alias. */
12296 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (eval echo "$as_me:12307: \"$ac_link\"") >&5
12308 (eval $ac_link) 2>&5
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:12313: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_func_gettimeofday=yes
12320 echo "$as_me: failed program was:" >&5
12321 cat conftest.$ac_ext >&5
12322 ac_cv_func_gettimeofday=no
12324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12326 echo "$as_me:12326: result: $ac_cv_func_gettimeofday" >&5
12327 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
12328 if test $ac_cv_func_gettimeofday = yes; then
12329 cat >>confdefs.h <<\EOF
12330 #define HAVE_GETTIMEOFDAY 1
12335 echo "$as_me:12335: checking for gettimeofday in -lbsd" >&5
12336 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
12337 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_check_lib_save_LIBS=$LIBS
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line 12343 "configure"
12344 #include "confdefs.h"
12346 /* Override any gcc2 internal prototype to avoid an error. */
12350 /* We use char because int might match the return type of a gcc2
12351 builtin and then its argument prototype would still apply. */
12352 char gettimeofday ();
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (eval echo "$as_me:12362: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>&5
12365 echo "$as_me:12365: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (eval echo "$as_me:12368: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:12371: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_lib_bsd_gettimeofday=yes
12375 echo "$as_me: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 ac_cv_lib_bsd_gettimeofday=no
12379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12382 echo "$as_me:12382: result: $ac_cv_lib_bsd_gettimeofday" >&5
12383 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
12384 if test $ac_cv_lib_bsd_gettimeofday = yes; then
12385 cat >>confdefs.h <<\EOF
12386 #define HAVE_GETTIMEOFDAY 1
12396 echo "$as_me:12396: checking if -lm needed for math functions" >&5
12397 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
12398 if test "${cf_cv_need_libm+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12403 #line 12403 "configure"
12404 #include "confdefs.h"
12412 double x = rand(); printf("result = %g\n", sin(x))
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:12418: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>&5
12421 echo "$as_me:12421: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:12424: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:12427: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12431 echo "$as_me: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12433 cf_cv_need_libm=yes
12435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12437 echo "$as_me:12437: result: $cf_cv_need_libm" >&5
12438 echo "${ECHO_T}$cf_cv_need_libm" >&6
12439 if test "$cf_cv_need_libm" = yes
12444 ### Checks for header files.
12445 echo "$as_me:12445: checking for ANSI C header files" >&5
12446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12447 if test "${ac_cv_header_stdc+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 cat >conftest.$ac_ext <<_ACEOF
12451 #line 12451 "configure"
12452 #include "confdefs.h"
12453 #include <stdlib.h>
12454 #include <stdarg.h>
12455 #include <string.h>
12459 if { (eval echo "$as_me:12459: \"$ac_cpp conftest.$ac_ext\"") >&5
12460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12462 egrep -v '^ *\+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 echo "$as_me:12465: \$? = $ac_status" >&5
12466 (exit $ac_status); } >/dev/null; then
12467 if test -s conftest.err; then
12468 ac_cpp_err=$ac_c_preproc_warn_flag
12475 if test -z "$ac_cpp_err"; then
12476 ac_cv_header_stdc=yes
12478 echo "$as_me: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 ac_cv_header_stdc=no
12482 rm -f conftest.err conftest.$ac_ext
12484 if test $ac_cv_header_stdc = yes; then
12485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12486 cat >conftest.$ac_ext <<_ACEOF
12487 #line 12487 "configure"
12488 #include "confdefs.h"
12489 #include <string.h>
12492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12493 egrep "memchr" >/dev/null 2>&1; then
12496 ac_cv_header_stdc=no
12502 if test $ac_cv_header_stdc = yes; then
12503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #line 12505 "configure"
12506 #include "confdefs.h"
12507 #include <stdlib.h>
12510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12511 egrep "free" >/dev/null 2>&1; then
12514 ac_cv_header_stdc=no
12520 if test $ac_cv_header_stdc = yes; then
12521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12522 if test "$cross_compiling" = yes; then
12525 cat >conftest.$ac_ext <<_ACEOF
12526 #line 12526 "configure"
12527 #include "confdefs.h"
12529 #if ((' ' & 0x0FF) == 0x020)
12530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12533 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12534 || ('j' <= (c) && (c) <= 'r') \
12535 || ('s' <= (c) && (c) <= 'z'))
12536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12544 for (i = 0; i < 256; i++)
12545 if (XOR (islower (i), ISLOWER (i))
12546 || toupper (i) != TOUPPER (i))
12547 $ac_main_return(2);
12548 $ac_main_return (0);
12551 rm -f conftest$ac_exeext
12552 if { (eval echo "$as_me:12552: \"$ac_link\"") >&5
12553 (eval $ac_link) 2>&5
12555 echo "$as_me:12555: \$? = $ac_status" >&5
12556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12557 { (eval echo "$as_me:12557: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:12560: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12564 echo "$as_me: program exited with status $ac_status" >&5
12565 echo "$as_me: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12567 ac_cv_header_stdc=no
12569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12573 echo "$as_me:12573: result: $ac_cv_header_stdc" >&5
12574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12575 if test $ac_cv_header_stdc = yes; then
12577 cat >>confdefs.h <<\EOF
12578 #define STDC_HEADERS 1
12583 ac_header_dirent=no
12584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12585 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12586 echo "$as_me:12586: checking for $ac_hdr that defines DIR" >&5
12587 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 #line 12592 "configure"
12593 #include "confdefs.h"
12594 #include <sys/types.h>
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:12607: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>&5
12610 echo "$as_me:12610: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -s conftest.$ac_objext'
12613 { (eval echo "$as_me:12613: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:12616: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 eval "$as_ac_Header=yes"
12620 echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 eval "$as_ac_Header=no"
12624 rm -f conftest.$ac_objext conftest.$ac_ext
12626 echo "$as_me:12626: result: `eval echo '${'$as_ac_Header'}'`" >&5
12627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12629 cat >>confdefs.h <<EOF
12630 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12633 ac_header_dirent=$ac_hdr; break
12637 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12638 if test $ac_header_dirent = dirent.h; then
12639 echo "$as_me:12639: checking for opendir in -ldir" >&5
12640 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
12641 if test "${ac_cv_lib_dir_opendir+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 ac_check_lib_save_LIBS=$LIBS
12646 cat >conftest.$ac_ext <<_ACEOF
12647 #line 12647 "configure"
12648 #include "confdefs.h"
12650 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (eval echo "$as_me:12666: \"$ac_link\"") >&5
12667 (eval $ac_link) 2>&5
12669 echo "$as_me:12669: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -s conftest$ac_exeext'
12672 { (eval echo "$as_me:12672: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:12675: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_cv_lib_dir_opendir=yes
12679 echo "$as_me: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 ac_cv_lib_dir_opendir=no
12683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12686 echo "$as_me:12686: result: $ac_cv_lib_dir_opendir" >&5
12687 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
12688 if test $ac_cv_lib_dir_opendir = yes; then
12693 echo "$as_me:12693: checking for opendir in -lx" >&5
12694 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
12695 if test "${ac_cv_lib_x_opendir+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 ac_check_lib_save_LIBS=$LIBS
12700 cat >conftest.$ac_ext <<_ACEOF
12701 #line 12701 "configure"
12702 #include "confdefs.h"
12704 /* Override any gcc2 internal prototype to avoid an error. */
12708 /* We use char because int might match the return type of a gcc2
12709 builtin and then its argument prototype would still apply. */
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (eval echo "$as_me:12720: \"$ac_link\"") >&5
12721 (eval $ac_link) 2>&5
12723 echo "$as_me:12723: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try='test -s conftest$ac_exeext'
12726 { (eval echo "$as_me:12726: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:12729: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_cv_lib_x_opendir=yes
12733 echo "$as_me: failed program was:" >&5
12734 cat conftest.$ac_ext >&5
12735 ac_cv_lib_x_opendir=no
12737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12740 echo "$as_me:12740: result: $ac_cv_lib_x_opendir" >&5
12741 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12742 if test $ac_cv_lib_x_opendir = yes; then
12748 echo "$as_me:12748: checking whether time.h and sys/time.h may both be included" >&5
12749 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12750 if test "${ac_cv_header_time+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 cat >conftest.$ac_ext <<_ACEOF
12754 #line 12754 "configure"
12755 #include "confdefs.h"
12756 #include <sys/types.h>
12757 #include <sys/time.h>
12763 if ((struct tm *) 0)
12769 rm -f conftest.$ac_objext
12770 if { (eval echo "$as_me:12770: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12773 echo "$as_me:12773: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -s conftest.$ac_objext'
12776 { (eval echo "$as_me:12776: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:12779: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_cv_header_time=yes
12783 echo "$as_me: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12785 ac_cv_header_time=no
12787 rm -f conftest.$ac_objext conftest.$ac_ext
12789 echo "$as_me:12789: result: $ac_cv_header_time" >&5
12790 echo "${ECHO_T}$ac_cv_header_time" >&6
12791 if test $ac_cv_header_time = yes; then
12793 cat >>confdefs.h <<\EOF
12794 #define TIME_WITH_SYS_TIME 1
12801 echo "$as_me:12801: checking for regcomp" >&5
12802 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
12803 if test "${ac_cv_func_regcomp+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 cat >conftest.$ac_ext <<_ACEOF
12807 #line 12807 "configure"
12808 #include "confdefs.h"
12809 /* System header to define __stub macros and hopefully few prototypes,
12810 which can conflict with char regcomp (); below. */
12811 #include <assert.h>
12812 /* Override any gcc2 internal prototype to avoid an error. */
12816 /* We use char because int might match the return type of a gcc2
12817 builtin and then its argument prototype would still apply. */
12824 /* The GNU C library defines this for functions which it implements
12825 to always fail with ENOSYS. Some functions are actually named
12826 something starting with __ and the normal name is an alias. */
12827 #if defined (__stub_regcomp) || defined (__stub___regcomp)
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (eval echo "$as_me:12838: \"$ac_link\"") >&5
12839 (eval $ac_link) 2>&5
12841 echo "$as_me:12841: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try='test -s conftest$ac_exeext'
12844 { (eval echo "$as_me:12844: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:12847: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 ac_cv_func_regcomp=yes
12851 echo "$as_me: failed program was:" >&5
12852 cat conftest.$ac_ext >&5
12853 ac_cv_func_regcomp=no
12855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12857 echo "$as_me:12857: result: $ac_cv_func_regcomp" >&5
12858 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
12859 if test $ac_cv_func_regcomp = yes; then
12860 cf_regex_func=regcomp
12863 for cf_regex_lib in regex re
12865 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
12866 echo "$as_me:12866: checking for regcomp in -l$cf_regex_lib" >&5
12867 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
12868 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 ac_check_lib_save_LIBS=$LIBS
12872 LIBS="-l$cf_regex_lib $LIBS"
12873 cat >conftest.$ac_ext <<_ACEOF
12874 #line 12874 "configure"
12875 #include "confdefs.h"
12877 /* Override any gcc2 internal prototype to avoid an error. */
12881 /* We use char because int might match the return type of a gcc2
12882 builtin and then its argument prototype would still apply. */
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (eval echo "$as_me:12893: \"$ac_link\"") >&5
12894 (eval $ac_link) 2>&5
12896 echo "$as_me:12896: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -s conftest$ac_exeext'
12899 { (eval echo "$as_me:12899: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:12902: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 eval "$as_ac_Lib=yes"
12906 echo "$as_me: failed program was:" >&5
12907 cat conftest.$ac_ext >&5
12908 eval "$as_ac_Lib=no"
12910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_lib_save_LIBS
12913 echo "$as_me:12913: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12914 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12915 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12917 LIBS="-l$cf_regex_lib $LIBS"
12918 cf_regex_func=regcomp
12926 if test "$cf_regex_func" = no ; then
12927 echo "$as_me:12927: checking for compile" >&5
12928 echo $ECHO_N "checking for compile... $ECHO_C" >&6
12929 if test "${ac_cv_func_compile+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 cat >conftest.$ac_ext <<_ACEOF
12933 #line 12933 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char compile (); below. */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12950 /* The GNU C library defines this for functions which it implements
12951 to always fail with ENOSYS. Some functions are actually named
12952 something starting with __ and the normal name is an alias. */
12953 #if defined (__stub_compile) || defined (__stub___compile)
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:12964: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>&5
12967 echo "$as_me:12967: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -s conftest$ac_exeext'
12970 { (eval echo "$as_me:12970: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:12973: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_func_compile=yes
12977 echo "$as_me: failed program was:" >&5
12978 cat conftest.$ac_ext >&5
12979 ac_cv_func_compile=no
12981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12983 echo "$as_me:12983: result: $ac_cv_func_compile" >&5
12984 echo "${ECHO_T}$ac_cv_func_compile" >&6
12985 if test $ac_cv_func_compile = yes; then
12986 cf_regex_func=compile
12989 echo "$as_me:12989: checking for compile in -lgen" >&5
12990 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
12991 if test "${ac_cv_lib_gen_compile+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 ac_check_lib_save_LIBS=$LIBS
12996 cat >conftest.$ac_ext <<_ACEOF
12997 #line 12997 "configure"
12998 #include "confdefs.h"
13000 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (eval echo "$as_me:13016: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>&5
13019 echo "$as_me:13019: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -s conftest$ac_exeext'
13022 { (eval echo "$as_me:13022: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13025 echo "$as_me:13025: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_cv_lib_gen_compile=yes
13029 echo "$as_me: failed program was:" >&5
13030 cat conftest.$ac_ext >&5
13031 ac_cv_lib_gen_compile=no
13033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13036 echo "$as_me:13036: result: $ac_cv_lib_gen_compile" >&5
13037 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
13038 if test $ac_cv_lib_gen_compile = yes; then
13041 cf_regex_func=compile
13048 if test "$cf_regex_func" = no ; then
13049 { echo "$as_me:13049: WARNING: cannot find regular expression library" >&5
13050 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
13053 echo "$as_me:13053: checking for regular-expression headers" >&5
13054 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
13055 if test "${cf_cv_regex_hdrs+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 cf_cv_regex_hdrs=no
13060 case $cf_regex_func in #(vi
13062 for cf_regex_hdr in regexp.h regexpr.h
13064 cat >conftest.$ac_ext <<_ACEOF
13065 #line 13065 "configure"
13066 #include "confdefs.h"
13067 #include <$cf_regex_hdr>
13072 char *p = compile("", "", "", 0);
13073 int x = step("", "");
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (eval echo "$as_me:13080: \"$ac_link\"") >&5
13081 (eval $ac_link) 2>&5
13083 echo "$as_me:13083: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:13086: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 echo "$as_me:13089: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13092 cf_cv_regex_hdrs=$cf_regex_hdr
13096 echo "$as_me: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13103 for cf_regex_hdr in regex.h
13105 cat >conftest.$ac_ext <<_ACEOF
13106 #line 13106 "configure"
13107 #include "confdefs.h"
13108 #include <sys/types.h>
13109 #include <$cf_regex_hdr>
13115 int x = regcomp(p, "", 0);
13116 int y = regexec(p, "", 0, 0, 0);
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (eval echo "$as_me:13124: \"$ac_link\"") >&5
13125 (eval $ac_link) 2>&5
13127 echo "$as_me:13127: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (eval echo "$as_me:13130: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:13133: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13136 cf_cv_regex_hdrs=$cf_regex_hdr
13140 echo "$as_me: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13149 echo "$as_me:13149: result: $cf_cv_regex_hdrs" >&5
13150 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
13152 case $cf_cv_regex_hdrs in #(vi
13153 no) { echo "$as_me:13153: WARNING: no regular expression header found" >&5
13154 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
13155 regex.h) cat >>confdefs.h <<\EOF
13156 #define HAVE_REGEX_H_FUNCS 1
13159 regexp.h) cat >>confdefs.h <<\EOF
13160 #define HAVE_REGEXP_H_FUNCS 1
13163 regexpr.h) cat >>confdefs.h <<\EOF
13164 #define HAVE_REGEXPR_H_FUNCS 1
13187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13188 echo "$as_me:13188: checking for $ac_header" >&5
13189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 cat >conftest.$ac_ext <<_ACEOF
13194 #line 13194 "configure"
13195 #include "confdefs.h"
13196 #include <$ac_header>
13198 if { (eval echo "$as_me:13198: \"$ac_cpp conftest.$ac_ext\"") >&5
13199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13201 egrep -v '^ *\+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 echo "$as_me:13204: \$? = $ac_status" >&5
13205 (exit $ac_status); } >/dev/null; then
13206 if test -s conftest.err; then
13207 ac_cpp_err=$ac_c_preproc_warn_flag
13214 if test -z "$ac_cpp_err"; then
13215 eval "$as_ac_Header=yes"
13217 echo "$as_me: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 eval "$as_ac_Header=no"
13221 rm -f conftest.err conftest.$ac_ext
13223 echo "$as_me:13223: result: `eval echo '${'$as_ac_Header'}'`" >&5
13224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13226 cat >>confdefs.h <<EOF
13227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13233 # check for ISC (this may also define _POSIX_SOURCE)
13234 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
13235 if test "$ISC" = yes ; then
13237 echo "$as_me:13237: checking for main in -lcposix" >&5
13238 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
13239 if test "${ac_cv_lib_cposix_main+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-lcposix $LIBS"
13244 cat >conftest.$ac_ext <<_ACEOF
13245 #line 13245 "configure"
13246 #include "confdefs.h"
13256 rm -f conftest.$ac_objext conftest$ac_exeext
13257 if { (eval echo "$as_me:13257: \"$ac_link\"") >&5
13258 (eval $ac_link) 2>&5
13260 echo "$as_me:13260: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -s conftest$ac_exeext'
13263 { (eval echo "$as_me:13263: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13266 echo "$as_me:13266: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 ac_cv_lib_cposix_main=yes
13270 echo "$as_me: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 ac_cv_lib_cposix_main=no
13274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13277 echo "$as_me:13277: result: $ac_cv_lib_cposix_main" >&5
13278 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
13279 if test $ac_cv_lib_cposix_main = yes; then
13280 cat >>confdefs.h <<EOF
13281 #define HAVE_LIBCPOSIX 1
13284 LIBS="-lcposix $LIBS"
13288 echo "$as_me:13288: checking for bzero in -linet" >&5
13289 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
13290 if test "${ac_cv_lib_inet_bzero+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_check_lib_save_LIBS=$LIBS
13294 LIBS="-linet $LIBS"
13295 cat >conftest.$ac_ext <<_ACEOF
13296 #line 13296 "configure"
13297 #include "confdefs.h"
13299 /* Override any gcc2 internal prototype to avoid an error. */
13303 /* We use char because int might match the return type of a gcc2
13304 builtin and then its argument prototype would still apply. */
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (eval echo "$as_me:13315: \"$ac_link\"") >&5
13316 (eval $ac_link) 2>&5
13318 echo "$as_me:13318: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -s conftest$ac_exeext'
13321 { (eval echo "$as_me:13321: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:13324: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_lib_inet_bzero=yes
13328 echo "$as_me: failed program was:" >&5
13329 cat conftest.$ac_ext >&5
13330 ac_cv_lib_inet_bzero=no
13332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 echo "$as_me:13335: result: $ac_cv_lib_inet_bzero" >&5
13336 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
13337 if test $ac_cv_lib_inet_bzero = yes; then
13338 LIBS="-linet $LIBS"
13342 echo "$as_me:13342: checking if sys/time.h works with sys/select.h" >&5
13343 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13344 if test "${cf_cv_sys_time_select+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 cat >conftest.$ac_ext <<_ACEOF
13349 #line 13349 "configure"
13350 #include "confdefs.h"
13352 #include <sys/types.h>
13353 #ifdef HAVE_SYS_TIME_H
13354 #include <sys/time.h>
13356 #ifdef HAVE_SYS_SELECT_H
13357 #include <sys/select.h>
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:13369: \"$ac_compile\"") >&5
13370 (eval $ac_compile) 2>&5
13372 echo "$as_me:13372: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -s conftest.$ac_objext'
13375 { (eval echo "$as_me:13375: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13378 echo "$as_me:13378: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 cf_cv_sys_time_select=yes
13382 echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 cf_cv_sys_time_select=no
13386 rm -f conftest.$ac_objext conftest.$ac_ext
13390 echo "$as_me:13390: result: $cf_cv_sys_time_select" >&5
13391 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13392 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13393 #define HAVE_SYS_TIME_SELECT 1
13396 ### checks for compiler characteristics
13398 ac_cpp='$CPP $CPPFLAGS'
13399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402 ac_main_return=return
13404 echo "$as_me:13404: checking for $CC option to accept ANSI C" >&5
13405 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13406 if test "${ac_cv_prog_cc_stdc+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 ac_cv_prog_cc_stdc=no
13411 cat >conftest.$ac_ext <<_ACEOF
13412 #line 13412 "configure"
13413 #include "confdefs.h"
13414 #include <stdarg.h>
13416 #include <sys/types.h>
13417 #include <sys/stat.h>
13418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13419 struct buf { int x; };
13420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13421 static char *e (p, i)
13427 static char *f (char * (*g) (char **, int), char **p, ...)
13432 s = g (p, va_arg (v,int));
13436 int test (int i, double x);
13437 struct s1 {int (*f) (int a);};
13438 struct s2 {int (*f) (double a);};
13439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13450 # Don't try gcc -ansi; that turns off useful extensions and
13451 # breaks some systems' header files.
13452 # AIX -qlanglvl=ansi
13453 # Ultrix and OSF/1 -std1
13454 # HP-UX 10.20 and later -Ae
13455 # HP-UX older versions -Aa -D_HPUX_SOURCE
13456 # SVR4 -Xc -D__EXTENSIONS__
13457 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13459 CC="$ac_save_CC $ac_arg"
13460 rm -f conftest.$ac_objext
13461 if { (eval echo "$as_me:13461: \"$ac_compile\"") >&5
13462 (eval $ac_compile) 2>&5
13464 echo "$as_me:13464: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest.$ac_objext'
13467 { (eval echo "$as_me:13467: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:13470: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 ac_cv_prog_cc_stdc=$ac_arg
13475 echo "$as_me: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13478 rm -f conftest.$ac_objext
13480 rm -f conftest.$ac_ext conftest.$ac_objext
13485 case "x$ac_cv_prog_cc_stdc" in
13487 echo "$as_me:13487: result: none needed" >&5
13488 echo "${ECHO_T}none needed" >&6 ;;
13490 echo "$as_me:13490: result: $ac_cv_prog_cc_stdc" >&5
13491 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13492 CC="$CC $ac_cv_prog_cc_stdc" ;;
13495 echo "$as_me:13495: checking for an ANSI C-conforming const" >&5
13496 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13497 if test "${ac_cv_c_const+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13501 #line 13501 "configure"
13502 #include "confdefs.h"
13507 /* FIXME: Include the comments suggested by Paul. */
13508 #ifndef __cplusplus
13509 /* Ultrix mips cc rejects this. */
13510 typedef int charset[2];
13512 /* SunOS 4.1.1 cc rejects this. */
13513 char const *const *ccp;
13515 /* NEC SVR4.0.2 mips cc rejects this. */
13516 struct point {int x, y;};
13517 static struct point const zero = {0,0};
13518 /* AIX XL C 1.02.0.0 rejects this.
13519 It does not let you subtract one const X* pointer from another in
13520 an arm of an if-expression whose if-part is not a constant
13522 const char *g = "string";
13523 ccp = &g + (g ? g-g : 0);
13524 /* HPUX 7.0 cc rejects these. */
13527 ccp = (char const *const *) p;
13528 { /* SCO 3.2v4 cc rejects this. */
13530 char const *s = 0 ? (char *) 0 : (char const *) 0;
13534 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13535 int x[] = {25, 17};
13536 const int *foo = &x[0];
13539 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13540 typedef const int *iptr;
13544 { /* AIX XL C 1.02.0.0 rejects this saying
13545 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13546 struct s { int j; const int *ap[3]; };
13547 struct s *b; b->j = 5;
13549 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13550 const int foo = 10;
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:13559: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>&5
13562 echo "$as_me:13562: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:13565: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:13568: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13572 echo "$as_me: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13576 rm -f conftest.$ac_objext conftest.$ac_ext
13578 echo "$as_me:13578: result: $ac_cv_c_const" >&5
13579 echo "${ECHO_T}$ac_cv_c_const" >&6
13580 if test $ac_cv_c_const = no; then
13582 cat >>confdefs.h <<\EOF
13588 echo "$as_me:13588: checking for inline" >&5
13589 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13590 if test "${ac_cv_c_inline+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 for ac_kw in inline __inline__ __inline; do
13595 cat >conftest.$ac_ext <<_ACEOF
13596 #line 13596 "configure"
13597 #include "confdefs.h"
13598 #ifndef __cplusplus
13599 static $ac_kw int static_foo () {return 0; }
13600 $ac_kw int foo () {return 0; }
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:13605: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13608 echo "$as_me:13608: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:13611: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:13614: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_c_inline=$ac_kw; break
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13625 echo "$as_me:13625: result: $ac_cv_c_inline" >&5
13626 echo "${ECHO_T}$ac_cv_c_inline" >&6
13627 case $ac_cv_c_inline in
13630 cat >>confdefs.h <<\EOF
13634 *) cat >>confdefs.h <<EOF
13635 #define inline $ac_cv_c_inline
13641 if test "$ac_cv_c_inline" != no ; then
13642 NCURSES_INLINE=inline
13643 if test "$INTEL_COMPILER" = yes
13646 elif test "$GCC" = yes
13648 echo "$as_me:13648: checking if $CC supports options to tune inlining" >&5
13649 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
13650 if test "${cf_cv_gcc_inline+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 cf_save_CFLAGS=$CFLAGS
13655 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
13656 cat >conftest.$ac_ext <<_ACEOF
13657 #line 13657 "configure"
13658 #include "confdefs.h"
13659 inline int foo(void) { return 1; }
13663 ${cf_cv_main_return:-return} foo()
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:13669: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>&5
13672 echo "$as_me:13672: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:13675: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:13678: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 cf_cv_gcc_inline=yes
13682 echo "$as_me: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 cf_cv_gcc_inline=no
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13687 CFLAGS=$cf_save_CFLAGS
13690 echo "$as_me:13690: result: $cf_cv_gcc_inline" >&5
13691 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
13692 if test "$cf_cv_gcc_inline" = yes ; then
13697 cf_new_extra_cppflags=
13699 for cf_add_cflags in --param max-inline-insns-single=1200
13701 case $cf_fix_cppflags in
13703 case $cf_add_cflags in #(vi
13704 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13705 case $cf_add_cflags in
13707 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13709 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13710 && test -z "${cf_tst_cflags}" \
13711 && cf_fix_cppflags=yes
13713 if test $cf_fix_cppflags = yes ; then
13714 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13716 elif test "${cf_tst_cflags}" = "\"'" ; then
13717 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13722 case "$CPPFLAGS" in
13723 *$cf_add_cflags) #(vi
13726 case $cf_add_cflags in #(vi
13728 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13730 CPPFLAGS=`echo "$CPPFLAGS" | \
13731 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13732 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13736 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13741 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13746 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13748 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13750 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13751 && test -z "${cf_tst_cflags}" \
13752 && cf_fix_cppflags=no
13757 if test -n "$cf_new_cflags" ; then
13759 CFLAGS="$CFLAGS $cf_new_cflags"
13762 if test -n "$cf_new_cppflags" ; then
13764 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13767 if test -n "$cf_new_extra_cppflags" ; then
13769 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13776 echo "$as_me:13776: checking for signal global datatype" >&5
13777 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
13778 if test "${cf_cv_sig_atomic_t+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 "volatile sig_atomic_t" \
13787 cat >conftest.$ac_ext <<_ACEOF
13788 #line 13788 "configure"
13789 #include "confdefs.h"
13791 #include <sys/types.h>
13792 #include <signal.h>
13797 static void handler(int sig)
13804 signal(SIGINT, handler);
13810 rm -f conftest.$ac_objext
13811 if { (eval echo "$as_me:13811: \"$ac_compile\"") >&5
13812 (eval $ac_compile) 2>&5
13814 echo "$as_me:13814: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -s conftest.$ac_objext'
13817 { (eval echo "$as_me:13817: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:13820: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 cf_cv_sig_atomic_t=$cf_type
13824 echo "$as_me: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13826 cf_cv_sig_atomic_t=no
13828 rm -f conftest.$ac_objext conftest.$ac_ext
13829 test "$cf_cv_sig_atomic_t" != no && break
13834 echo "$as_me:13834: result: $cf_cv_sig_atomic_t" >&5
13835 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
13836 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
13837 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
13840 if test $NCURSES_CHTYPE = auto ; then
13842 echo "$as_me:13842: checking for type of chtype" >&5
13843 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13844 if test "${cf_cv_typeof_chtype+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 if test "$cross_compiling" = yes; then
13849 cf_cv_typeof_chtype=long
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line 13852 "configure"
13853 #include "confdefs.h"
13855 #define WANT_BITS 31
13859 FILE *fp = fopen("cf_test.out", "w");
13861 char *result = "long";
13862 if (sizeof(unsigned long) > sizeof(unsigned int)) {
13865 for (n = 0; n < WANT_BITS; n++) {
13868 if (y != 1 || x == 0) {
13874 * If x is nonzero, an int is big enough for the bits
13877 result = (x != 0) ? "int" : "long";
13882 ${cf_cv_main_return:-return}(0);
13886 rm -f conftest$ac_exeext
13887 if { (eval echo "$as_me:13887: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13890 echo "$as_me:13890: \$? = $ac_status" >&5
13891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13892 { (eval echo "$as_me:13892: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:13895: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 cf_cv_typeof_chtype=`cat cf_test.out`
13899 echo "$as_me: program exited with status $ac_status" >&5
13900 echo "$as_me: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 cf_cv_typeof_chtype=long
13904 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13910 echo "$as_me:13910: result: $cf_cv_typeof_chtype" >&5
13911 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
13913 cat >>confdefs.h <<EOF
13914 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
13918 cf_cv_typeof_chtype=$NCURSES_CHTYPE
13920 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
13922 echo "$as_me:13922: checking if unsigned literals are legal" >&5
13923 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
13924 if test "${cf_cv_unsigned_literals+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 cat >conftest.$ac_ext <<_ACEOF
13929 #line 13929 "configure"
13930 #include "confdefs.h"
13935 long x = 1L + 1UL + 1U + 1
13940 rm -f conftest.$ac_objext
13941 if { (eval echo "$as_me:13941: \"$ac_compile\"") >&5
13942 (eval $ac_compile) 2>&5
13944 echo "$as_me:13944: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:13947: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:13950: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 cf_cv_unsigned_literals=yes
13954 echo "$as_me: failed program was:" >&5
13955 cat conftest.$ac_ext >&5
13956 cf_cv_unsigned_literals=no
13958 rm -f conftest.$ac_objext conftest.$ac_ext
13962 echo "$as_me:13962: result: $cf_cv_unsigned_literals" >&5
13963 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
13966 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
13967 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
13969 if test $NCURSES_MMASK_T = auto ; then
13970 cf_cv_typeof_mmask_t=long
13972 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
13974 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
13976 ### Checks for external-data
13978 echo "$as_me:13978: checking if external errno is declared" >&5
13979 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
13980 if test "${cf_cv_dcl_errno+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 cat >conftest.$ac_ext <<_ACEOF
13985 #line 13985 "configure"
13986 #include "confdefs.h"
13988 #ifdef HAVE_STDLIB_H
13989 #include <stdlib.h>
13992 #include <sys/types.h>
13997 int x = (int) errno
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:14003: \"$ac_compile\"") >&5
14004 (eval $ac_compile) 2>&5
14006 echo "$as_me:14006: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (eval echo "$as_me:14009: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:14012: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 cf_cv_dcl_errno=yes
14016 echo "$as_me: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14020 rm -f conftest.$ac_objext conftest.$ac_ext
14023 echo "$as_me:14023: result: $cf_cv_dcl_errno" >&5
14024 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
14026 if test "$cf_cv_dcl_errno" = no ; then
14028 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14030 cat >>confdefs.h <<EOF
14031 #define $cf_result 1
14036 # It's possible (for near-UNIX clones) that the data doesn't exist
14038 echo "$as_me:14038: checking if external errno exists" >&5
14039 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
14040 if test "${cf_cv_have_errno+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14045 #line 14045 "configure"
14046 #include "confdefs.h"
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (eval echo "$as_me:14060: \"$ac_link\"") >&5
14061 (eval $ac_link) 2>&5
14063 echo "$as_me:14063: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -s conftest$ac_exeext'
14066 { (eval echo "$as_me:14066: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:14069: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 cf_cv_have_errno=yes
14073 echo "$as_me: failed program was:" >&5
14074 cat conftest.$ac_ext >&5
14075 cf_cv_have_errno=no
14077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14080 echo "$as_me:14080: result: $cf_cv_have_errno" >&5
14081 echo "${ECHO_T}$cf_cv_have_errno" >&6
14083 if test "$cf_cv_have_errno" = yes ; then
14085 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14087 cat >>confdefs.h <<EOF
14088 #define $cf_result 1
14093 echo "$as_me:14093: checking if data-only library module links" >&5
14094 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
14095 if test "${cf_cv_link_dataonly+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<EOF
14101 #line 14101 "configure"
14102 int testdata[3] = { 123, 456, 789 };
14104 if { (eval echo "$as_me:14104: \"$ac_compile\"") >&5
14105 (eval $ac_compile) 2>&5
14107 echo "$as_me:14107: \$? = $ac_status" >&5
14108 (exit $ac_status); } ; then
14109 mv conftest.o data.o && \
14110 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
14112 rm -f conftest.$ac_ext data.o
14113 cat >conftest.$ac_ext <<EOF
14114 #line 14114 "configure"
14118 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
14120 extern int testdata[3];
14121 return testdata[0] == 123
14122 && testdata[1] == 456
14123 && testdata[2] == 789;
14127 if { (eval echo "$as_me:14127: \"$ac_compile\"") >&5
14128 (eval $ac_compile) 2>&5
14130 echo "$as_me:14130: \$? = $ac_status" >&5
14131 (exit $ac_status); }; then
14132 mv conftest.o func.o && \
14133 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
14135 rm -f conftest.$ac_ext func.o
14136 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
14137 cf_saveLIBS="$LIBS"
14138 LIBS="conftest.a $LIBS"
14139 if test "$cross_compiling" = yes; then
14140 cf_cv_link_dataonly=unknown
14142 cat >conftest.$ac_ext <<_ACEOF
14143 #line 14143 "configure"
14144 #include "confdefs.h"
14148 extern int testfunc();
14149 ${cf_cv_main_return:-return} (!testfunc());
14153 rm -f conftest$ac_exeext
14154 if { (eval echo "$as_me:14154: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>&5
14157 echo "$as_me:14157: \$? = $ac_status" >&5
14158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14159 { (eval echo "$as_me:14159: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:14162: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 cf_cv_link_dataonly=yes
14166 echo "$as_me: program exited with status $ac_status" >&5
14167 echo "$as_me: failed program was:" >&5
14168 cat conftest.$ac_ext >&5
14169 cf_cv_link_dataonly=no
14171 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14173 LIBS="$cf_saveLIBS"
14177 echo "$as_me:14177: result: $cf_cv_link_dataonly" >&5
14178 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
14180 if test "$cf_cv_link_dataonly" = no ; then
14181 cat >>confdefs.h <<\EOF
14182 #define BROKEN_LINKER 1
14188 ### Checks for library functions.
14211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 echo "$as_me:14212: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14214 if eval "test \"\${$as_ac_var+set}\" = set"; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 cat >conftest.$ac_ext <<_ACEOF
14218 #line 14218 "configure"
14219 #include "confdefs.h"
14220 /* System header to define __stub macros and hopefully few prototypes,
14221 which can conflict with char $ac_func (); below. */
14222 #include <assert.h>
14223 /* Override any gcc2 internal prototype to avoid an error. */
14227 /* We use char because int might match the return type of a gcc2
14228 builtin and then its argument prototype would still apply. */
14235 /* The GNU C library defines this for functions which it implements
14236 to always fail with ENOSYS. Some functions are actually named
14237 something starting with __ and the normal name is an alias. */
14238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (eval echo "$as_me:14249: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>&5
14252 echo "$as_me:14252: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try='test -s conftest$ac_exeext'
14255 { (eval echo "$as_me:14255: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:14258: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 eval "$as_ac_var=yes"
14262 echo "$as_me: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14264 eval "$as_ac_var=no"
14266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14268 echo "$as_me:14268: result: `eval echo '${'$as_ac_var'}'`" >&5
14269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14270 if test `eval echo '${'$as_ac_var'}'` = yes; then
14271 cat >>confdefs.h <<EOF
14272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14278 if test "$with_getcap" = "yes" ; then
14280 echo "$as_me:14280: checking for terminal-capability database functions" >&5
14281 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
14282 if test "${cf_cv_cgetent+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 cat >conftest.$ac_ext <<_ACEOF
14287 #line 14287 "configure"
14288 #include "confdefs.h"
14290 #include <stdlib.h>
14297 char *db_array = temp;
14298 cgetent(&buf, /* int *, */ &db_array, "vt100");
14299 cgetcap(buf, "tc", '=');
14300 cgetmatch(buf, "tc");
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (eval echo "$as_me:14307: \"$ac_link\"") >&5
14308 (eval $ac_link) 2>&5
14310 echo "$as_me:14310: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -s conftest$ac_exeext'
14313 { (eval echo "$as_me:14313: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:14316: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14320 echo "$as_me: failed program was:" >&5
14321 cat conftest.$ac_ext >&5
14324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14328 echo "$as_me:14328: result: $cf_cv_cgetent" >&5
14329 echo "${ECHO_T}$cf_cv_cgetent" >&6
14330 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
14331 #define HAVE_BSD_CGETENT 1
14336 echo "$as_me:14336: checking for isascii" >&5
14337 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
14338 if test "${cf_cv_have_isascii+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 cat >conftest.$ac_ext <<_ACEOF
14343 #line 14343 "configure"
14344 #include "confdefs.h"
14349 int x = isascii(' ')
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355 if { (eval echo "$as_me:14355: \"$ac_link\"") >&5
14356 (eval $ac_link) 2>&5
14358 echo "$as_me:14358: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -s conftest$ac_exeext'
14361 { (eval echo "$as_me:14361: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:14364: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 cf_cv_have_isascii=yes
14368 echo "$as_me: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 cf_cv_have_isascii=no
14372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14375 echo "$as_me:14375: result: $cf_cv_have_isascii" >&5
14376 echo "${ECHO_T}$cf_cv_have_isascii" >&6
14377 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
14378 #define HAVE_ISASCII 1
14381 if test "$ac_cv_func_sigaction" = yes; then
14382 echo "$as_me:14382: checking whether sigaction needs _POSIX_SOURCE" >&5
14383 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
14384 cat >conftest.$ac_ext <<_ACEOF
14385 #line 14385 "configure"
14386 #include "confdefs.h"
14388 #include <sys/types.h>
14389 #include <signal.h>
14393 struct sigaction act
14398 rm -f conftest.$ac_objext
14399 if { (eval echo "$as_me:14399: \"$ac_compile\"") >&5
14400 (eval $ac_compile) 2>&5
14402 echo "$as_me:14402: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -s conftest.$ac_objext'
14405 { (eval echo "$as_me:14405: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:14408: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14412 echo "$as_me: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14415 cat >conftest.$ac_ext <<_ACEOF
14416 #line 14416 "configure"
14417 #include "confdefs.h"
14419 #define _POSIX_SOURCE
14420 #include <sys/types.h>
14421 #include <signal.h>
14425 struct sigaction act
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:14431: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>&5
14434 echo "$as_me:14434: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -s conftest.$ac_objext'
14437 { (eval echo "$as_me:14437: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:14440: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14443 cat >>confdefs.h <<\EOF
14444 #define SVR4_ACTION 1
14448 echo "$as_me: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14452 rm -f conftest.$ac_objext conftest.$ac_ext
14454 rm -f conftest.$ac_objext conftest.$ac_ext
14455 echo "$as_me:14455: result: $sigact_bad" >&5
14456 echo "${ECHO_T}$sigact_bad" >&6
14459 echo "$as_me:14459: checking if nanosleep really works" >&5
14460 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
14461 if test "${cf_cv_func_nanosleep+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 if test "$cross_compiling" = yes; then
14466 cf_cv_func_nanosleep=unknown
14468 cat >conftest.$ac_ext <<_ACEOF
14469 #line 14469 "configure"
14470 #include "confdefs.h"
14476 #ifdef HAVE_SYS_TIME_H
14477 #include <sys/time.h>
14481 struct timespec ts1, ts2;
14484 ts1.tv_nsec = 750000000;
14488 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
14489 ${cf_cv_main_return:-return}(code != 0);
14493 rm -f conftest$ac_exeext
14494 if { (eval echo "$as_me:14494: \"$ac_link\"") >&5
14495 (eval $ac_link) 2>&5
14497 echo "$as_me:14497: \$? = $ac_status" >&5
14498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14499 { (eval echo "$as_me:14499: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:14502: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 cf_cv_func_nanosleep=yes
14506 echo "$as_me: program exited with status $ac_status" >&5
14507 echo "$as_me: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14509 cf_cv_func_nanosleep=no
14511 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14514 echo "$as_me:14514: result: $cf_cv_func_nanosleep" >&5
14515 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
14517 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
14518 #define HAVE_NANOSLEEP 1
14527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14528 echo "$as_me:14528: checking for $ac_header" >&5
14529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 cat >conftest.$ac_ext <<_ACEOF
14534 #line 14534 "configure"
14535 #include "confdefs.h"
14536 #include <$ac_header>
14538 if { (eval echo "$as_me:14538: \"$ac_cpp conftest.$ac_ext\"") >&5
14539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14541 egrep -v '^ *\+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:14544: \$? = $ac_status" >&5
14545 (exit $ac_status); } >/dev/null; then
14546 if test -s conftest.err; then
14547 ac_cpp_err=$ac_c_preproc_warn_flag
14554 if test -z "$ac_cpp_err"; then
14555 eval "$as_ac_Header=yes"
14557 echo "$as_me: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14559 eval "$as_ac_Header=no"
14561 rm -f conftest.err conftest.$ac_ext
14563 echo "$as_me:14563: result: `eval echo '${'$as_ac_Header'}'`" >&5
14564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566 cat >>confdefs.h <<EOF
14567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14573 if test "$ISC" = yes ; then
14575 for ac_header in sys/termio.h
14577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14578 echo "$as_me:14578: checking for $ac_header" >&5
14579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 cat >conftest.$ac_ext <<_ACEOF
14584 #line 14584 "configure"
14585 #include "confdefs.h"
14586 #include <$ac_header>
14588 if { (eval echo "$as_me:14588: \"$ac_cpp conftest.$ac_ext\"") >&5
14589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14591 egrep -v '^ *\+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 echo "$as_me:14594: \$? = $ac_status" >&5
14595 (exit $ac_status); } >/dev/null; then
14596 if test -s conftest.err; then
14597 ac_cpp_err=$ac_c_preproc_warn_flag
14604 if test -z "$ac_cpp_err"; then
14605 eval "$as_ac_Header=yes"
14607 echo "$as_me: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14609 eval "$as_ac_Header=no"
14611 rm -f conftest.err conftest.$ac_ext
14613 echo "$as_me:14613: result: `eval echo '${'$as_ac_Header'}'`" >&5
14614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14616 cat >>confdefs.h <<EOF
14617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14624 if test "$ac_cv_header_termios_h" = yes ; then
14625 case "$CFLAGS $CPPFLAGS" in
14627 termios_bad=dunno ;;
14628 *) termios_bad=maybe ;;
14630 if test "$termios_bad" = maybe ; then
14631 echo "$as_me:14631: checking whether termios.h needs _POSIX_SOURCE" >&5
14632 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line 14634 "configure"
14635 #include "confdefs.h"
14636 #include <termios.h>
14640 struct termios foo; int x = foo.c_iflag
14645 rm -f conftest.$ac_objext
14646 if { (eval echo "$as_me:14646: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:14652: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14659 echo "$as_me: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14662 cat >conftest.$ac_ext <<_ACEOF
14663 #line 14663 "configure"
14664 #include "confdefs.h"
14666 #define _POSIX_SOURCE
14667 #include <termios.h>
14671 struct termios foo; int x = foo.c_iflag
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:14677: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>&5
14680 echo "$as_me:14680: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try='test -s conftest.$ac_objext'
14683 { (eval echo "$as_me:14683: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:14686: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688 termios_bad=unknown
14690 echo "$as_me: failed program was:" >&5
14691 cat conftest.$ac_ext >&5
14692 termios_bad=yes cat >>confdefs.h <<\EOF
14693 #define SVR4_TERMIO 1
14697 rm -f conftest.$ac_objext conftest.$ac_ext
14700 rm -f conftest.$ac_objext conftest.$ac_ext
14701 echo "$as_me:14701: result: $termios_bad" >&5
14702 echo "${ECHO_T}$termios_bad" >&6
14706 echo "$as_me:14706: checking for tcgetattr" >&5
14707 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
14708 if test "${cf_cv_have_tcgetattr+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 cat >conftest.$ac_ext <<_ACEOF
14713 #line 14713 "configure"
14714 #include "confdefs.h"
14716 #include <sys/types.h>
14717 #ifdef HAVE_UNISTD_H
14718 #include <unistd.h>
14720 #ifdef HAVE_TERMIOS_H
14721 #include <termios.h>
14722 #define TTY struct termios
14724 #ifdef HAVE_TERMIO_H
14725 #include <termio.h>
14726 #define TTY struct termio
14735 tcgetattr(1, &foo);
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:14741: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>&5
14744 echo "$as_me:14744: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:14747: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:14750: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 cf_cv_have_tcgetattr=yes
14754 echo "$as_me: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14756 cf_cv_have_tcgetattr=no
14758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14760 echo "$as_me:14760: result: $cf_cv_have_tcgetattr" >&5
14761 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
14762 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
14763 #define HAVE_TCGETATTR 1
14766 echo "$as_me:14766: checking for vsscanf function or workaround" >&5
14767 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
14768 if test "${cf_cv_func_vsscanf+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 cat >conftest.$ac_ext <<_ACEOF
14773 #line 14773 "configure"
14774 #include "confdefs.h"
14776 #include <stdarg.h>
14783 vsscanf("from", "%d", ap)
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:14789: \"$ac_link\"") >&5
14790 (eval $ac_link) 2>&5
14792 echo "$as_me:14792: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -s conftest$ac_exeext'
14795 { (eval echo "$as_me:14795: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:14798: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 cf_cv_func_vsscanf=vsscanf
14802 echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14805 cat >conftest.$ac_ext <<_ACEOF
14806 #line 14806 "configure"
14807 #include "confdefs.h"
14809 #include <stdarg.h>
14816 char *str = "from";
14818 strbuf._flag = _IOREAD;
14819 strbuf._ptr = strbuf._base = (unsigned char *) str;
14820 strbuf._cnt = strlen(str);
14821 strbuf._file = _NFILE;
14822 return (vfscanf(&strbuf, "%d", ap))
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (eval echo "$as_me:14828: \"$ac_link\"") >&5
14829 (eval $ac_link) 2>&5
14831 echo "$as_me:14831: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -s conftest$ac_exeext'
14834 { (eval echo "$as_me:14834: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:14837: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 cf_cv_func_vsscanf=vfscanf
14841 echo "$as_me: failed program was:" >&5
14842 cat conftest.$ac_ext >&5
14844 cat >conftest.$ac_ext <<_ACEOF
14845 #line 14845 "configure"
14846 #include "confdefs.h"
14848 #include <stdarg.h>
14855 char *str = "from";
14857 strbuf._flag = _IOREAD;
14858 strbuf._ptr = strbuf._base = (unsigned char *) str;
14859 strbuf._cnt = strlen(str);
14860 strbuf._file = _NFILE;
14861 return (_doscan(&strbuf, "%d", ap))
14866 rm -f conftest.$ac_objext conftest$ac_exeext
14867 if { (eval echo "$as_me:14867: \"$ac_link\"") >&5
14868 (eval $ac_link) 2>&5
14870 echo "$as_me:14870: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
14872 { ac_try='test -s conftest$ac_exeext'
14873 { (eval echo "$as_me:14873: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14876 echo "$as_me:14876: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 cf_cv_func_vsscanf=_doscan
14880 echo "$as_me: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14883 cf_cv_func_vsscanf=no
14885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14891 echo "$as_me:14891: result: $cf_cv_func_vsscanf" >&5
14892 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
14894 case $cf_cv_func_vsscanf in #(vi
14895 vsscanf) cat >>confdefs.h <<\EOF
14896 #define HAVE_VSSCANF 1
14899 vfscanf) cat >>confdefs.h <<\EOF
14900 #define HAVE_VFSCANF 1
14903 _doscan) cat >>confdefs.h <<\EOF
14904 #define HAVE__DOSCAN 1
14909 echo "$as_me:14909: checking for working mkstemp" >&5
14910 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
14911 if test "${cf_cv_func_mkstemp+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 if test "$cross_compiling" = yes; then
14917 echo "$as_me:14917: checking for mkstemp" >&5
14918 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
14919 if test "${ac_cv_func_mkstemp+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 cat >conftest.$ac_ext <<_ACEOF
14923 #line 14923 "configure"
14924 #include "confdefs.h"
14925 /* System header to define __stub macros and hopefully few prototypes,
14926 which can conflict with char mkstemp (); below. */
14927 #include <assert.h>
14928 /* Override any gcc2 internal prototype to avoid an error. */
14932 /* We use char because int might match the return type of a gcc2
14933 builtin and then its argument prototype would still apply. */
14940 /* The GNU C library defines this for functions which it implements
14941 to always fail with ENOSYS. Some functions are actually named
14942 something starting with __ and the normal name is an alias. */
14943 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:14954: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>&5
14957 echo "$as_me:14957: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -s conftest$ac_exeext'
14960 { (eval echo "$as_me:14960: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:14963: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_cv_func_mkstemp=yes
14967 echo "$as_me: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 ac_cv_func_mkstemp=no
14971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14973 echo "$as_me:14973: result: $ac_cv_func_mkstemp" >&5
14974 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14978 #line 14978 "configure"
14979 #include "confdefs.h"
14981 #include <sys/types.h>
14982 #include <stdlib.h>
14984 #include <string.h>
14985 #include <sys/stat.h>
14988 char *tmpl = "conftestXXXXXX";
14996 for (n = 0; n < 2; ++n) {
14997 strcpy(name[n], tmpl);
14998 if ((fd = mkstemp(name[n])) >= 0) {
14999 if (!strcmp(name[n], tmpl)
15000 || stat(name[n], &sb) != 0
15001 || (sb.st_mode & S_IFMT) != S_IFREG
15002 || (sb.st_mode & 077) != 0) {
15009 && !strcmp(name[0], name[1]))
15011 ${cf_cv_main_return:-return}(result);
15015 rm -f conftest$ac_exeext
15016 if { (eval echo "$as_me:15016: \"$ac_link\"") >&5
15017 (eval $ac_link) 2>&5
15019 echo "$as_me:15019: \$? = $ac_status" >&5
15020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15021 { (eval echo "$as_me:15021: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:15024: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 cf_cv_func_mkstemp=yes
15029 echo "$as_me: program exited with status $ac_status" >&5
15030 echo "$as_me: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15032 cf_cv_func_mkstemp=no
15035 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15039 echo "$as_me:15039: result: $cf_cv_func_mkstemp" >&5
15040 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
15041 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
15042 cat >>confdefs.h <<\EOF
15043 #define HAVE_MKSTEMP 1
15048 # setup for prototype of fallback for vsscanf()
15050 if test "$cf_cv_func_vsscanf" = vsscanf ; then
15056 if test "$cross_compiling" = yes ; then
15057 { echo "$as_me:15057: WARNING: cross compiling: assume setvbuf params not reversed" >&5
15058 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
15060 echo "$as_me:15060: checking whether setvbuf arguments are reversed" >&5
15061 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
15062 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 if test "$cross_compiling" = yes; then
15066 { { echo "$as_me:15066: error: cannot run test program while cross compiling" >&5
15067 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15068 { (exit 1); exit 1; }; }
15070 cat >conftest.$ac_ext <<_ACEOF
15071 #line 15071 "configure"
15072 #include "confdefs.h"
15074 /* If setvbuf has the reversed format, exit 0. */
15078 /* This call has the arguments reversed.
15079 A reversed system may check and see that the address of main
15080 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
15081 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
15082 $ac_main_return(1);
15083 putc('\r', stdout);
15084 $ac_main_return(0); /* Non-reversed systems segv here. */
15087 rm -f conftest$ac_exeext
15088 if { (eval echo "$as_me:15088: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>&5
15091 echo "$as_me:15091: \$? = $ac_status" >&5
15092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15093 { (eval echo "$as_me:15093: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:15096: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 ac_cv_func_setvbuf_reversed=yes
15100 echo "$as_me: program exited with status $ac_status" >&5
15101 echo "$as_me: failed program was:" >&5
15102 cat conftest.$ac_ext >&5
15103 ac_cv_func_setvbuf_reversed=no
15105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15107 rm -f core core.* *.core
15109 echo "$as_me:15109: result: $ac_cv_func_setvbuf_reversed" >&5
15110 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
15111 if test $ac_cv_func_setvbuf_reversed = yes; then
15113 cat >>confdefs.h <<\EOF
15114 #define SETVBUF_REVERSED 1
15120 echo "$as_me:15120: checking return type of signal handlers" >&5
15121 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15122 if test "${ac_cv_type_signal+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line 15126 "configure"
15127 #include "confdefs.h"
15128 #include <sys/types.h>
15129 #include <signal.h>
15134 extern "C" void (*signal (int, void (*)(int)))(int);
15136 void (*signal ()) ();
15147 rm -f conftest.$ac_objext
15148 if { (eval echo "$as_me:15148: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>&5
15151 echo "$as_me:15151: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (eval echo "$as_me:15154: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:15157: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_type_signal=void
15161 echo "$as_me: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 ac_cv_type_signal=int
15165 rm -f conftest.$ac_objext conftest.$ac_ext
15167 echo "$as_me:15167: result: $ac_cv_type_signal" >&5
15168 echo "${ECHO_T}$ac_cv_type_signal" >&6
15170 cat >>confdefs.h <<EOF
15171 #define RETSIGTYPE $ac_cv_type_signal
15174 echo "$as_me:15174: checking for type sigaction_t" >&5
15175 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
15176 if test "${cf_cv_type_sigaction+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15181 #line 15181 "configure"
15182 #include "confdefs.h"
15184 #include <signal.h>
15193 rm -f conftest.$ac_objext
15194 if { (eval echo "$as_me:15194: \"$ac_compile\"") >&5
15195 (eval $ac_compile) 2>&5
15197 echo "$as_me:15197: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -s conftest.$ac_objext'
15200 { (eval echo "$as_me:15200: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15203 echo "$as_me:15203: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 cf_cv_type_sigaction=yes
15207 echo "$as_me: failed program was:" >&5
15208 cat conftest.$ac_ext >&5
15209 cf_cv_type_sigaction=no
15211 rm -f conftest.$ac_objext conftest.$ac_ext
15214 echo "$as_me:15214: result: $cf_cv_type_sigaction" >&5
15215 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
15216 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
15217 #define HAVE_TYPE_SIGACTION 1
15220 echo "$as_me:15220: checking declaration of size-change" >&5
15221 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
15222 if test "${cf_cv_sizechange+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 cf_cv_sizechange=unknown
15227 cf_save_CPPFLAGS="$CPPFLAGS"
15229 for cf_opts in "" "NEED_PTEM_H"
15232 CPPFLAGS="$cf_save_CPPFLAGS"
15233 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
15234 cat >conftest.$ac_ext <<_ACEOF
15235 #line 15235 "configure"
15236 #include "confdefs.h"
15237 #include <sys/types.h>
15238 #ifdef HAVE_TERMIOS_H
15239 #include <termios.h>
15241 #ifdef HAVE_TERMIO_H
15242 #include <termio.h>
15246 /* This is a workaround for SCO: they neglected to define struct winsize in
15247 * termios.h -- it's only in termio.h and ptem.h
15249 #include <sys/stream.h>
15250 #include <sys/ptem.h>
15252 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
15253 #include <sys/ioctl.h>
15261 struct ttysize win; /* FIXME: what system is this? */
15262 int y = win.ts_lines;
15263 int x = win.ts_cols;
15266 struct winsize win;
15267 int y = win.ws_row;
15268 int x = win.ws_col;
15270 no TIOCGSIZE or TIOCGWINSZ
15271 #endif /* TIOCGWINSZ */
15272 #endif /* TIOCGSIZE */
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:15279: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>&5
15282 echo "$as_me:15282: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (eval echo "$as_me:15285: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15288 echo "$as_me:15288: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 cf_cv_sizechange=yes
15292 echo "$as_me: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 cf_cv_sizechange=no
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15298 CPPFLAGS="$cf_save_CPPFLAGS"
15299 if test "$cf_cv_sizechange" = yes ; then
15300 echo "size-change succeeded ($cf_opts)" >&5
15301 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
15307 echo "$as_me:15307: result: $cf_cv_sizechange" >&5
15308 echo "${ECHO_T}$cf_cv_sizechange" >&6
15309 if test "$cf_cv_sizechange" != no ; then
15310 cat >>confdefs.h <<\EOF
15311 #define HAVE_SIZECHANGE 1
15314 case $cf_cv_sizechange in #(vi
15316 cat >>confdefs.h <<EOF
15317 #define $cf_cv_sizechange 1
15324 echo "$as_me:15324: checking for memmove" >&5
15325 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
15326 if test "${ac_cv_func_memmove+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 cat >conftest.$ac_ext <<_ACEOF
15330 #line 15330 "configure"
15331 #include "confdefs.h"
15332 /* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char memmove (); below. */
15334 #include <assert.h>
15335 /* Override any gcc2 internal prototype to avoid an error. */
15339 /* We use char because int might match the return type of a gcc2
15340 builtin and then its argument prototype would still apply. */
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined (__stub_memmove) || defined (__stub___memmove)
15360 rm -f conftest.$ac_objext conftest$ac_exeext
15361 if { (eval echo "$as_me:15361: \"$ac_link\"") >&5
15362 (eval $ac_link) 2>&5
15364 echo "$as_me:15364: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -s conftest$ac_exeext'
15367 { (eval echo "$as_me:15367: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:15370: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_cv_func_memmove=yes
15374 echo "$as_me: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15376 ac_cv_func_memmove=no
15378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15380 echo "$as_me:15380: result: $ac_cv_func_memmove" >&5
15381 echo "${ECHO_T}$ac_cv_func_memmove" >&6
15382 if test $ac_cv_func_memmove = yes; then
15386 echo "$as_me:15386: checking for bcopy" >&5
15387 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
15388 if test "${ac_cv_func_bcopy+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 cat >conftest.$ac_ext <<_ACEOF
15392 #line 15392 "configure"
15393 #include "confdefs.h"
15394 /* System header to define __stub macros and hopefully few prototypes,
15395 which can conflict with char bcopy (); below. */
15396 #include <assert.h>
15397 /* Override any gcc2 internal prototype to avoid an error. */
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15409 /* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412 #if defined (__stub_bcopy) || defined (__stub___bcopy)
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:15423: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>&5
15426 echo "$as_me:15426: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -s conftest$ac_exeext'
15429 { (eval echo "$as_me:15429: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 echo "$as_me:15432: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_cv_func_bcopy=yes
15436 echo "$as_me: failed program was:" >&5
15437 cat conftest.$ac_ext >&5
15438 ac_cv_func_bcopy=no
15440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15442 echo "$as_me:15442: result: $ac_cv_func_bcopy" >&5
15443 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
15444 if test $ac_cv_func_bcopy = yes; then
15446 echo "$as_me:15446: checking if bcopy does overlapping moves" >&5
15447 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
15448 if test "${cf_cv_good_bcopy+set}" = set; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 if test "$cross_compiling" = yes; then
15453 cf_cv_good_bcopy=unknown
15455 cat >conftest.$ac_ext <<_ACEOF
15456 #line 15456 "configure"
15457 #include "confdefs.h"
15460 static char data[] = "abcdefghijklmnopqrstuwwxyz";
15462 bcopy(data, temp, sizeof(data));
15463 bcopy(temp+10, temp, 15);
15464 bcopy(temp+5, temp+15, 10);
15465 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
15469 rm -f conftest$ac_exeext
15470 if { (eval echo "$as_me:15470: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>&5
15473 echo "$as_me:15473: \$? = $ac_status" >&5
15474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15475 { (eval echo "$as_me:15475: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:15478: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 cf_cv_good_bcopy=yes
15482 echo "$as_me: program exited with status $ac_status" >&5
15483 echo "$as_me: failed program was:" >&5
15484 cat conftest.$ac_ext >&5
15485 cf_cv_good_bcopy=no
15487 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15491 echo "$as_me:15491: result: $cf_cv_good_bcopy" >&5
15492 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
15495 cf_cv_good_bcopy=no
15498 if test "$cf_cv_good_bcopy" = yes ; then
15499 cat >>confdefs.h <<\EOF
15500 #define USE_OK_BCOPY 1
15504 cat >>confdefs.h <<\EOF
15505 #define USE_MY_MEMMOVE 1
15512 echo "$as_me:15512: checking if poll really works" >&5
15513 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
15514 if test "${cf_cv_working_poll+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 if test "$cross_compiling" = yes; then
15519 cf_cv_working_poll=unknown
15521 cat >conftest.$ac_ext <<_ACEOF
15522 #line 15522 "configure"
15523 #include "confdefs.h"
15529 #include <sys/poll.h>
15532 struct pollfd myfds;
15536 myfds.events = POLLIN;
15538 ret = poll(&myfds, 1, 100);
15539 ${cf_cv_main_return:-return}(ret != 0);
15542 rm -f conftest$ac_exeext
15543 if { (eval echo "$as_me:15543: \"$ac_link\"") >&5
15544 (eval $ac_link) 2>&5
15546 echo "$as_me:15546: \$? = $ac_status" >&5
15547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15548 { (eval echo "$as_me:15548: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:15551: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 cf_cv_working_poll=yes
15555 echo "$as_me: program exited with status $ac_status" >&5
15556 echo "$as_me: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 cf_cv_working_poll=no
15560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15563 echo "$as_me:15563: result: $cf_cv_working_poll" >&5
15564 echo "${ECHO_T}$cf_cv_working_poll" >&6
15565 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
15566 #define HAVE_WORKING_POLL 1
15569 echo "$as_me:15569: checking for va_copy" >&5
15570 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
15571 if test "${cf_cv_have_va_copy+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 cat >conftest.$ac_ext <<_ACEOF
15576 #line 15576 "configure"
15577 #include "confdefs.h"
15579 #include <stdarg.h>
15585 static va_list dst;
15586 static va_list src;
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (eval echo "$as_me:15593: \"$ac_link\"") >&5
15594 (eval $ac_link) 2>&5
15596 echo "$as_me:15596: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -s conftest$ac_exeext'
15599 { (eval echo "$as_me:15599: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:15602: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 cf_cv_have_va_copy=yes
15606 echo "$as_me: failed program was:" >&5
15607 cat conftest.$ac_ext >&5
15608 cf_cv_have_va_copy=no
15610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15612 echo "$as_me:15612: result: $cf_cv_have_va_copy" >&5
15613 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
15615 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
15616 #define HAVE_VA_COPY 1
15619 echo "$as_me:15619: checking for __va_copy" >&5
15620 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
15621 if test "${cf_cv_have___va_copy+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 cat >conftest.$ac_ext <<_ACEOF
15626 #line 15626 "configure"
15627 #include "confdefs.h"
15629 #include <stdarg.h>
15635 static va_list dst;
15636 static va_list src;
15637 __va_copy(dst, src)
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:15643: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>&5
15646 echo "$as_me:15646: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -s conftest$ac_exeext'
15649 { (eval echo "$as_me:15649: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:15652: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 cf_cv_have___va_copy=yes
15656 echo "$as_me: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15658 cf_cv_have___va_copy=no
15660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15662 echo "$as_me:15662: result: $cf_cv_have___va_copy" >&5
15663 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
15665 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
15666 #define HAVE___VA_COPY 1
15669 echo "$as_me:15669: checking for pid_t" >&5
15670 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15671 if test "${ac_cv_type_pid_t+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 cat >conftest.$ac_ext <<_ACEOF
15675 #line 15675 "configure"
15676 #include "confdefs.h"
15677 $ac_includes_default
15683 if (sizeof (pid_t))
15689 rm -f conftest.$ac_objext
15690 if { (eval echo "$as_me:15690: \"$ac_compile\"") >&5
15691 (eval $ac_compile) 2>&5
15693 echo "$as_me:15693: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -s conftest.$ac_objext'
15696 { (eval echo "$as_me:15696: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:15699: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_cv_type_pid_t=yes
15703 echo "$as_me: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 ac_cv_type_pid_t=no
15707 rm -f conftest.$ac_objext conftest.$ac_ext
15709 echo "$as_me:15709: result: $ac_cv_type_pid_t" >&5
15710 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15711 if test $ac_cv_type_pid_t = yes; then
15715 cat >>confdefs.h <<EOF
15721 for ac_header in unistd.h vfork.h
15723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15724 echo "$as_me:15724: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line 15730 "configure"
15731 #include "confdefs.h"
15732 #include <$ac_header>
15734 if { (eval echo "$as_me:15734: \"$ac_cpp conftest.$ac_ext\"") >&5
15735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15737 egrep -v '^ *\+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:15740: \$? = $ac_status" >&5
15741 (exit $ac_status); } >/dev/null; then
15742 if test -s conftest.err; then
15743 ac_cpp_err=$ac_c_preproc_warn_flag
15750 if test -z "$ac_cpp_err"; then
15751 eval "$as_ac_Header=yes"
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15755 eval "$as_ac_Header=no"
15757 rm -f conftest.err conftest.$ac_ext
15759 echo "$as_me:15759: result: `eval echo '${'$as_ac_Header'}'`" >&5
15760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h <<EOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15769 for ac_func in fork vfork
15771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 echo "$as_me:15772: checking for $ac_func" >&5
15773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15774 if eval "test \"\${$as_ac_var+set}\" = set"; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line 15778 "configure"
15779 #include "confdefs.h"
15780 /* System header to define __stub macros and hopefully few prototypes,
15781 which can conflict with char $ac_func (); below. */
15782 #include <assert.h>
15783 /* Override any gcc2 internal prototype to avoid an error. */
15787 /* We use char because int might match the return type of a gcc2
15788 builtin and then its argument prototype would still apply. */
15795 /* The GNU C library defines this for functions which it implements
15796 to always fail with ENOSYS. Some functions are actually named
15797 something starting with __ and the normal name is an alias. */
15798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15808 rm -f conftest.$ac_objext conftest$ac_exeext
15809 if { (eval echo "$as_me:15809: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>&5
15812 echo "$as_me:15812: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -s conftest$ac_exeext'
15815 { (eval echo "$as_me:15815: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 echo "$as_me:15818: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 eval "$as_ac_var=yes"
15822 echo "$as_me: failed program was:" >&5
15823 cat conftest.$ac_ext >&5
15824 eval "$as_ac_var=no"
15826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15828 echo "$as_me:15828: result: `eval echo '${'$as_ac_var'}'`" >&5
15829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15830 if test `eval echo '${'$as_ac_var'}'` = yes; then
15831 cat >>confdefs.h <<EOF
15832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15838 ac_cv_func_fork_works=$ac_cv_func_fork
15839 if test "x$ac_cv_func_fork" = xyes; then
15840 echo "$as_me:15840: checking for working fork" >&5
15841 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15842 if test "${ac_cv_func_fork_works+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 if test "$cross_compiling" = yes; then
15846 ac_cv_func_fork_works=cross
15848 cat >conftest.$ac_ext <<_ACEOF
15849 /* By Rüdiger Kuhlmann. */
15850 #include <sys/types.h>
15852 # include <unistd.h>
15854 /* Some systems only have a dummy stub for fork() */
15858 $ac_main_return (1);
15859 $ac_main_return (0);
15862 rm -f conftest$ac_exeext
15863 if { (eval echo "$as_me:15863: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>&5
15866 echo "$as_me:15866: \$? = $ac_status" >&5
15867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15868 { (eval echo "$as_me:15868: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15871 echo "$as_me:15871: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_cv_func_fork_works=yes
15875 echo "$as_me: program exited with status $ac_status" >&5
15876 echo "$as_me: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 ac_cv_func_fork_works=no
15880 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15883 echo "$as_me:15883: result: $ac_cv_func_fork_works" >&5
15884 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15887 if test "x$ac_cv_func_fork_works" = xcross; then
15889 *-*-amigaos* | *-*-msdosdjgpp*)
15890 # Override, as these systems have only a dummy fork() stub
15891 ac_cv_func_fork_works=no
15894 ac_cv_func_fork_works=yes
15897 { echo "$as_me:15897: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
15898 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
15900 ac_cv_func_vfork_works=$ac_cv_func_vfork
15901 if test "x$ac_cv_func_vfork" = xyes; then
15902 echo "$as_me:15902: checking for working vfork" >&5
15903 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15904 if test "${ac_cv_func_vfork_works+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 if test "$cross_compiling" = yes; then
15908 ac_cv_func_vfork_works=cross
15910 cat >conftest.$ac_ext <<_ACEOF
15911 #line 15911 "configure"
15912 #include "confdefs.h"
15913 /* Thanks to Paul Eggert for this test. */
15915 #include <sys/types.h>
15916 #include <sys/stat.h>
15918 # include <unistd.h>
15921 # include <vfork.h>
15923 /* On some sparc systems, changes by the child to local and incoming
15924 argument registers are propagated back to the parent. The compiler
15925 is told about this with #include <vfork.h>, but some compilers
15926 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15927 static variable whose address is put into a register that is
15928 clobbered by the vfork. */
15931 sparc_address_test (int arg)
15933 sparc_address_test (arg) int arg;
15936 static pid_t child;
15954 pid_t parent = getpid ();
15957 sparc_address_test ();
15962 /* Here is another test for sparc vfork register problems. This
15963 test uses lots of local variables, at least as many local
15964 variables as main has allocated so far including compiler
15965 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15966 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15967 reuse the register of parent for one of the local variables,
15968 since it will think that parent can't possibly be used any more
15969 in this routine. Assigning to the local variable will thus
15970 munge parent in the parent process. */
15972 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15973 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15974 /* Convince the compiler that p..p7 are live; otherwise, it might
15975 use the same hardware register for all 8 local variables. */
15976 if (p != p1 || p != p2 || p != p3 || p != p4
15977 || p != p5 || p != p6 || p != p7)
15980 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15981 from child file descriptors. If the child closes a descriptor
15982 before it execs or exits, this munges the parent's descriptor
15983 as well. Test for this by closing stdout in the child. */
15984 _exit(close(fileno(stdout)) != 0);
15989 while (wait(&status) != child)
15992 /* Was there some problem with vforking? */
15995 /* Did the child fail? (This shouldn't happen.) */
15998 /* Did the vfork/compiler bug occur? */
15999 || parent != getpid()
16001 /* Did the file descriptor bug occur? */
16002 || fstat(fileno(stdout), &st) != 0
16007 rm -f conftest$ac_exeext
16008 if { (eval echo "$as_me:16008: \"$ac_link\"") >&5
16009 (eval $ac_link) 2>&5
16011 echo "$as_me:16011: \$? = $ac_status" >&5
16012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16013 { (eval echo "$as_me:16013: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 echo "$as_me:16016: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_cv_func_vfork_works=yes
16020 echo "$as_me: program exited with status $ac_status" >&5
16021 echo "$as_me: failed program was:" >&5
16022 cat conftest.$ac_ext >&5
16023 ac_cv_func_vfork_works=no
16025 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16028 echo "$as_me:16028: result: $ac_cv_func_vfork_works" >&5
16029 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16032 if test "x$ac_cv_func_fork_works" = xcross; then
16033 ac_cv_func_vfork_works=ac_cv_func_vfork
16034 { echo "$as_me:16034: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
16035 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
16038 if test "x$ac_cv_func_vfork_works" = xyes; then
16040 cat >>confdefs.h <<\EOF
16041 #define HAVE_WORKING_VFORK 1
16046 cat >>confdefs.h <<\EOF
16051 if test "x$ac_cv_func_fork_works" = xyes; then
16053 cat >>confdefs.h <<\EOF
16054 #define HAVE_WORKING_FORK 1
16059 # special check for test/ditto.c
16061 echo "$as_me:16061: checking for openpty in -lutil" >&5
16062 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16063 if test "${ac_cv_lib_util_openpty+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 ac_check_lib_save_LIBS=$LIBS
16067 LIBS="-lutil $LIBS"
16068 cat >conftest.$ac_ext <<_ACEOF
16069 #line 16069 "configure"
16070 #include "confdefs.h"
16072 /* Override any gcc2 internal prototype to avoid an error. */
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16087 rm -f conftest.$ac_objext conftest$ac_exeext
16088 if { (eval echo "$as_me:16088: \"$ac_link\"") >&5
16089 (eval $ac_link) 2>&5
16091 echo "$as_me:16091: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -s conftest$ac_exeext'
16094 { (eval echo "$as_me:16094: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:16097: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_lib_util_openpty=yes
16101 echo "$as_me: failed program was:" >&5
16102 cat conftest.$ac_ext >&5
16103 ac_cv_lib_util_openpty=no
16105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16106 LIBS=$ac_check_lib_save_LIBS
16108 echo "$as_me:16108: result: $ac_cv_lib_util_openpty" >&5
16109 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16110 if test $ac_cv_lib_util_openpty = yes; then
16116 echo "$as_me:16116: checking for openpty header" >&5
16117 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16118 if test "${cf_cv_func_openpty+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 cf_save_LIBS="$LIBS"
16123 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
16124 for cf_header in pty.h libutil.h util.h
16126 cat >conftest.$ac_ext <<_ACEOF
16127 #line 16127 "configure"
16128 #include "confdefs.h"
16130 #include <$cf_header>
16136 int x = openpty((int *)0, (int *)0, (char *)0,
16137 (struct termios *)0, (struct winsize *)0);
16143 rm -f conftest.$ac_objext conftest$ac_exeext
16144 if { (eval echo "$as_me:16144: \"$ac_link\"") >&5
16145 (eval $ac_link) 2>&5
16147 echo "$as_me:16147: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -s conftest$ac_exeext'
16150 { (eval echo "$as_me:16150: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16153 echo "$as_me:16153: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16156 cf_cv_func_openpty=$cf_header
16160 echo "$as_me: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
16163 cf_cv_func_openpty=no
16166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16168 LIBS="$cf_save_LIBS"
16171 echo "$as_me:16171: result: $cf_cv_func_openpty" >&5
16172 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16174 if test "$cf_cv_func_openpty" != no ; then
16175 cat >>confdefs.h <<EOF
16176 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16179 cat >>confdefs.h <<\EOF
16180 #define USE_XTERM_PTY 1
16183 if test "$cf_cv_lib_util" = yes ; then
16184 TEST_LIBS="-lutil $TEST_LIBS"
16188 if test "$with_hashed_db" != no ; then
16189 cat >>confdefs.h <<\EOF
16190 #define USE_HASHED_DB 1
16193 case $with_hashed_db in #(vi
16197 if test -d "$with_hashed_db" ; then
16199 if test -n "$with_hashed_db/include" ; then
16200 for cf_add_incdir in $with_hashed_db/include
16202 while test $cf_add_incdir != /usr/include
16204 if test -d $cf_add_incdir
16207 if test -n "$CFLAGS$CPPFLAGS" ; then
16208 # a loop is needed to ensure we can add subdirs of existing dirs
16209 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16210 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16211 cf_have_incdir=yes; break
16216 if test "$cf_have_incdir" = no ; then
16217 if test "$cf_add_incdir" = /usr/local/include ; then
16218 if test "$GCC" = yes
16220 cf_save_CPPFLAGS=$CPPFLAGS
16221 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16222 cat >conftest.$ac_ext <<_ACEOF
16223 #line 16223 "configure"
16224 #include "confdefs.h"
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:16235: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>&5
16238 echo "$as_me:16238: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (eval echo "$as_me:16241: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 echo "$as_me:16244: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16248 echo "$as_me: failed program was:" >&5
16249 cat conftest.$ac_ext >&5
16252 rm -f conftest.$ac_objext conftest.$ac_ext
16253 CPPFLAGS=$cf_save_CPPFLAGS
16258 if test "$cf_have_incdir" = no ; then
16259 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16261 echo "${as_me-configure}:16261: testing adding $cf_add_incdir to include-path ..." 1>&5
16263 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16265 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16266 test "$cf_top_incdir" = "$cf_add_incdir" && break
16267 cf_add_incdir="$cf_top_incdir"
16276 if test -n "$with_hashed_db/lib" ; then
16277 for cf_add_libdir in $with_hashed_db/lib
16279 if test $cf_add_libdir = /usr/lib ; then
16281 elif test -d $cf_add_libdir
16284 if test -n "$LDFLAGS$LIBS" ; then
16285 # a loop is needed to ensure we can add subdirs of existing dirs
16286 for cf_test_libdir in $LDFLAGS $LIBS ; do
16287 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
16288 cf_have_libdir=yes; break
16292 if test "$cf_have_libdir" = no ; then
16293 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
16295 echo "${as_me-configure}:16295: testing adding $cf_add_libdir to library-path ..." 1>&5
16297 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
16306 echo "$as_me:16306: checking for db.h" >&5
16307 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
16308 if test "${ac_cv_header_db_h+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 cat >conftest.$ac_ext <<_ACEOF
16312 #line 16312 "configure"
16313 #include "confdefs.h"
16316 if { (eval echo "$as_me:16316: \"$ac_cpp conftest.$ac_ext\"") >&5
16317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16319 egrep -v '^ *\+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 echo "$as_me:16322: \$? = $ac_status" >&5
16323 (exit $ac_status); } >/dev/null; then
16324 if test -s conftest.err; then
16325 ac_cpp_err=$ac_c_preproc_warn_flag
16332 if test -z "$ac_cpp_err"; then
16333 ac_cv_header_db_h=yes
16335 echo "$as_me: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16337 ac_cv_header_db_h=no
16339 rm -f conftest.err conftest.$ac_ext
16341 echo "$as_me:16341: result: $ac_cv_header_db_h" >&5
16342 echo "${ECHO_T}$ac_cv_header_db_h" >&6
16343 if test $ac_cv_header_db_h = yes; then
16345 echo "$as_me:16345: checking for version of db" >&5
16346 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
16347 if test "${cf_cv_hashed_db_version+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 cf_cv_hashed_db_version=unknown
16353 for cf_db_version in 1 2 3 4 5
16356 echo "${as_me-configure}:16356: testing checking for db version $cf_db_version ..." 1>&5
16358 cat >conftest.$ac_ext <<_ACEOF
16359 #line 16359 "configure"
16360 #include "confdefs.h"
16362 $ac_includes_default
16365 #ifdef DB_VERSION_MAJOR
16366 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
16367 #if $cf_db_version == DB_VERSION_MAJOR
16373 #if $cf_db_version == 1
16374 /* ok: assuming this is DB 1.8.5 */
16388 rm -f conftest.$ac_objext
16389 if { (eval echo "$as_me:16389: \"$ac_compile\"") >&5
16390 (eval $ac_compile) 2>&5
16392 echo "$as_me:16392: \$? = $ac_status" >&5
16393 (exit $ac_status); } &&
16394 { ac_try='test -s conftest.$ac_objext'
16395 { (eval echo "$as_me:16395: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16398 echo "$as_me:16398: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
16401 cf_cv_hashed_db_version=$cf_db_version
16405 echo "$as_me: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16408 rm -f conftest.$ac_objext conftest.$ac_ext
16412 echo "$as_me:16412: result: $cf_cv_hashed_db_version" >&5
16413 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
16415 if test "$cf_cv_hashed_db_version" = unknown ; then
16416 { { echo "$as_me:16416: error: Cannot determine version of db" >&5
16417 echo "$as_me: error: Cannot determine version of db" >&2;}
16418 { (exit 1); exit 1; }; }
16421 echo "$as_me:16421: checking for db libraries" >&5
16422 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
16423 if test "${cf_cv_hashed_db_libs+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cf_cv_hashed_db_libs=unknown
16428 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
16430 cf_save_libs="$LIBS"
16431 if test -n "$cf_db_libs"; then
16432 LIBS="-l$cf_db_libs $LIBS"
16435 echo "${as_me-configure}:16435: testing checking for library "$cf_db_libs" ..." 1>&5
16437 cat >conftest.$ac_ext <<_ACEOF
16438 #line 16438 "configure"
16439 #include "confdefs.h"
16441 $ac_includes_default
16448 char *path = "/tmp/foo";
16449 #ifdef DB_VERSION_MAJOR
16450 #if DB_VERSION_MAJOR >= 4
16452 db_create(&result, NULL, 0);
16453 result->open(result,
16460 #elif DB_VERSION_MAJOR >= 3
16462 db_create(&result, NULL, 0);
16463 result->open(result,
16469 #elif DB_VERSION_MAJOR >= 2
16478 #endif /* DB_VERSION_MAJOR */
16480 DB *result = dbopen(path,
16486 ${cf_cv_main_return:-return}(result != 0)
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (eval echo "$as_me:16493: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>&5
16496 echo "$as_me:16496: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -s conftest$ac_exeext'
16499 { (eval echo "$as_me:16499: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16502 echo "$as_me:16502: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16505 if test -n "$cf_db_libs" ; then
16506 cf_cv_hashed_db_libs=$cf_db_libs
16508 cf_cv_hashed_db_libs=default
16510 LIBS="$cf_save_libs"
16514 echo "$as_me: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16518 LIBS="$cf_save_libs"
16522 echo "$as_me:16522: result: $cf_cv_hashed_db_libs" >&5
16523 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
16525 if test "$cf_cv_hashed_db_libs" = unknown ; then
16526 { { echo "$as_me:16526: error: Cannot determine library for db" >&5
16527 echo "$as_me: error: Cannot determine library for db" >&2;}
16528 { (exit 1); exit 1; }; }
16529 elif test "$cf_cv_hashed_db_libs" != default ; then
16530 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
16536 { { echo "$as_me:16536: error: Cannot find db.h" >&5
16537 echo "$as_me: error: Cannot find db.h" >&2;}
16538 { (exit 1); exit 1; }; }
16544 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
16545 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16546 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16549 # Just in case, check if the C compiler has a bool type.
16551 echo "$as_me:16551: checking if we should include stdbool.h" >&5
16552 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
16554 if test "${cf_cv_header_stdbool_h+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 cat >conftest.$ac_ext <<_ACEOF
16559 #line 16559 "configure"
16560 #include "confdefs.h"
16570 rm -f conftest.$ac_objext
16571 if { (eval echo "$as_me:16571: \"$ac_compile\"") >&5
16572 (eval $ac_compile) 2>&5
16574 echo "$as_me:16574: \$? = $ac_status" >&5
16575 (exit $ac_status); } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (eval echo "$as_me:16577: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16580 echo "$as_me:16580: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 cf_cv_header_stdbool_h=0
16584 echo "$as_me: failed program was:" >&5
16585 cat conftest.$ac_ext >&5
16586 cat >conftest.$ac_ext <<_ACEOF
16587 #line 16587 "configure"
16588 #include "confdefs.h"
16591 #include <stdbool.h>
16602 rm -f conftest.$ac_objext
16603 if { (eval echo "$as_me:16603: \"$ac_compile\"") >&5
16604 (eval $ac_compile) 2>&5
16606 echo "$as_me:16606: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (eval echo "$as_me:16609: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:16612: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 cf_cv_header_stdbool_h=1
16616 echo "$as_me: failed program was:" >&5
16617 cat conftest.$ac_ext >&5
16618 cf_cv_header_stdbool_h=0
16620 rm -f conftest.$ac_objext conftest.$ac_ext
16622 rm -f conftest.$ac_objext conftest.$ac_ext
16625 if test "$cf_cv_header_stdbool_h" = 1
16626 then echo "$as_me:16626: result: yes" >&5
16627 echo "${ECHO_T}yes" >&6
16628 else echo "$as_me:16628: result: no" >&5
16629 echo "${ECHO_T}no" >&6
16632 echo "$as_me:16632: checking for builtin bool type" >&5
16633 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
16635 if test "${cf_cv_cc_bool_type+set}" = set; then
16636 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16640 #line 16640 "configure"
16641 #include "confdefs.h"
16644 #include <sys/types.h>
16654 rm -f conftest.$ac_objext
16655 if { (eval echo "$as_me:16655: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>&5
16658 echo "$as_me:16658: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -s conftest.$ac_objext'
16661 { (eval echo "$as_me:16661: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16664 echo "$as_me:16664: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 cf_cv_cc_bool_type=1
16668 echo "$as_me: failed program was:" >&5
16669 cat conftest.$ac_ext >&5
16670 cf_cv_cc_bool_type=0
16672 rm -f conftest.$ac_objext conftest.$ac_ext
16676 if test "$cf_cv_cc_bool_type" = 1
16677 then echo "$as_me:16677: result: yes" >&5
16678 echo "${ECHO_T}yes" >&6
16679 else echo "$as_me:16679: result: no" >&5
16680 echo "${ECHO_T}no" >&6
16683 # Check for C++ compiler characteristics (and ensure that it's there!)
16684 if test -n "$CXX" ; then
16686 ac_cpp='$CXXCPP $CPPFLAGS'
16687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16690 ac_main_return=return
16692 if test -n "$GXX" ; then
16693 case $cf_cv_system_name in #(vi
16695 cf_stdcpp_libname=stdcpp
16698 cf_stdcpp_libname=stdc++
16701 echo "$as_me:16701: checking for library $cf_stdcpp_libname" >&5
16702 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
16703 if test "${cf_cv_libstdcpp+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 LIBS="-l$cf_stdcpp_libname $LIBS"
16709 cat >conftest.$ac_ext <<_ACEOF
16710 #line 16710 "configure"
16711 #include "confdefs.h"
16713 #include <strstream.h>
16719 strstreambuf foo(buf, sizeof(buf))
16725 rm -f conftest.$ac_objext conftest$ac_exeext
16726 if { (eval echo "$as_me:16726: \"$ac_link\"") >&5
16727 (eval $ac_link) 2>&5
16729 echo "$as_me:16729: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
16731 { ac_try='test -s conftest$ac_exeext'
16732 { (eval echo "$as_me:16732: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:16735: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 cf_cv_libstdcpp=yes
16739 echo "$as_me: failed program was:" >&5
16740 cat conftest.$ac_ext >&5
16743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16747 echo "$as_me:16747: result: $cf_cv_libstdcpp" >&5
16748 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
16749 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
16752 echo "$as_me:16752: checking whether $CXX understands -c and -o together" >&5
16753 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
16754 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 cat > conftest.$ac_ext <<CF_EOF
16762 ${cf_cv_main_return:-return}(0);
16765 # We do the test twice because some compilers refuse to overwrite an
16766 # existing .o file with -o, though they will create one.
16767 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16768 if { (eval echo "$as_me:16768: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16771 echo "$as_me:16771: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 test -f conftest2.$ac_objext && { (eval echo "$as_me:16773: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16776 echo "$as_me:16776: \$? = $ac_status" >&5
16777 (exit $ac_status); };
16779 eval cf_cv_prog_CXX_c_o=yes
16781 eval cf_cv_prog_CXX_c_o=no
16786 if test $cf_cv_prog_CXX_c_o = yes; then
16787 echo "$as_me:16787: result: yes" >&5
16788 echo "${ECHO_T}yes" >&6
16790 echo "$as_me:16790: result: no" >&5
16791 echo "${ECHO_T}no" >&6
16794 case $GXX_VERSION in
16800 cf_cxx_library=unknown
16801 case $cf_cv_system_name in #(vi
16809 if test "$GXX" = yes; then
16810 echo "$as_me:16810: checking for lib$cf_gpp_libname" >&5
16811 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
16813 LIBS="-l$cf_gpp_libname $LIBS"
16814 cat >conftest.$ac_ext <<_ACEOF
16815 #line 16815 "configure"
16816 #include "confdefs.h"
16818 #include <$cf_gpp_libname/builtin.h>
16823 two_arg_error_handler_t foo2 = lib_error_handler
16828 rm -f conftest.$ac_objext conftest$ac_exeext
16829 if { (eval echo "$as_me:16829: \"$ac_link\"") >&5
16830 (eval $ac_link) 2>&5
16832 echo "$as_me:16832: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try='test -s conftest$ac_exeext'
16835 { (eval echo "$as_me:16835: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16838 echo "$as_me:16838: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16841 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
16842 if test "$cf_gpp_libname" = cpp ; then
16843 cat >>confdefs.h <<\EOF
16844 #define HAVE_GPP_BUILTIN_H 1
16848 cat >>confdefs.h <<\EOF
16849 #define HAVE_GXX_BUILTIN_H 1
16854 echo "$as_me: failed program was:" >&5
16855 cat conftest.$ac_ext >&5
16856 cat >conftest.$ac_ext <<_ACEOF
16857 #line 16857 "configure"
16858 #include "confdefs.h"
16860 #include <builtin.h>
16865 two_arg_error_handler_t foo2 = lib_error_handler
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (eval echo "$as_me:16871: \"$ac_link\"") >&5
16872 (eval $ac_link) 2>&5
16874 echo "$as_me:16874: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -s conftest$ac_exeext'
16877 { (eval echo "$as_me:16877: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:16880: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16883 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
16884 cat >>confdefs.h <<\EOF
16885 #define HAVE_BUILTIN_H 1
16889 echo "$as_me: failed program was:" >&5
16890 cat conftest.$ac_ext >&5
16893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16897 echo "$as_me:16897: result: $cf_cxx_library" >&5
16898 echo "${ECHO_T}$cf_cxx_library" >&6
16908 ac_cpp='$CXXCPP $CPPFLAGS'
16909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16912 ac_main_return=return
16913 echo "$as_me:16913: checking how to run the C++ preprocessor" >&5
16914 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16915 if test -z "$CXXCPP"; then
16916 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 # Double quotes because CXXCPP needs to be expanded
16920 for CXXCPP in "$CXX -E" "/lib/cpp"
16922 ac_preproc_ok=false
16923 for ac_cxx_preproc_warn_flag in '' yes
16925 # Use a header file that comes with gcc, so configuring glibc
16926 # with a fresh cross-compiler works.
16927 # On the NeXT, cc -E runs the code through the compiler's parser,
16928 # not just through cpp. "Syntax error" is here to catch this case.
16929 cat >conftest.$ac_ext <<_ACEOF
16930 #line 16930 "configure"
16931 #include "confdefs.h"
16932 #include <assert.h>
16935 if { (eval echo "$as_me:16935: \"$ac_cpp conftest.$ac_ext\"") >&5
16936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16938 egrep -v '^ *\+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:16941: \$? = $ac_status" >&5
16942 (exit $ac_status); } >/dev/null; then
16943 if test -s conftest.err; then
16944 ac_cpp_err=$ac_cxx_preproc_warn_flag
16951 if test -z "$ac_cpp_err"; then
16954 echo "$as_me: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16956 # Broken: fails on valid input.
16959 rm -f conftest.err conftest.$ac_ext
16961 # OK, works on sane cases. Now check whether non-existent headers
16962 # can be detected and how.
16963 cat >conftest.$ac_ext <<_ACEOF
16964 #line 16964 "configure"
16965 #include "confdefs.h"
16966 #include <ac_nonexistent.h>
16968 if { (eval echo "$as_me:16968: \"$ac_cpp conftest.$ac_ext\"") >&5
16969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16971 egrep -v '^ *\+' conftest.er1 >conftest.err
16973 cat conftest.err >&5
16974 echo "$as_me:16974: \$? = $ac_status" >&5
16975 (exit $ac_status); } >/dev/null; then
16976 if test -s conftest.err; then
16977 ac_cpp_err=$ac_cxx_preproc_warn_flag
16984 if test -z "$ac_cpp_err"; then
16985 # Broken: success on invalid input.
16988 echo "$as_me: failed program was:" >&5
16989 cat conftest.$ac_ext >&5
16990 # Passes both tests.
16994 rm -f conftest.err conftest.$ac_ext
16997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16998 rm -f conftest.err conftest.$ac_ext
16999 if $ac_preproc_ok; then
17004 ac_cv_prog_CXXCPP=$CXXCPP
17007 CXXCPP=$ac_cv_prog_CXXCPP
17009 ac_cv_prog_CXXCPP=$CXXCPP
17011 echo "$as_me:17011: result: $CXXCPP" >&5
17012 echo "${ECHO_T}$CXXCPP" >&6
17013 ac_preproc_ok=false
17014 for ac_cxx_preproc_warn_flag in '' yes
17016 # Use a header file that comes with gcc, so configuring glibc
17017 # with a fresh cross-compiler works.
17018 # On the NeXT, cc -E runs the code through the compiler's parser,
17019 # not just through cpp. "Syntax error" is here to catch this case.
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line 17021 "configure"
17022 #include "confdefs.h"
17023 #include <assert.h>
17026 if { (eval echo "$as_me:17026: \"$ac_cpp conftest.$ac_ext\"") >&5
17027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17029 egrep -v '^ *\+' conftest.er1 >conftest.err
17031 cat conftest.err >&5
17032 echo "$as_me:17032: \$? = $ac_status" >&5
17033 (exit $ac_status); } >/dev/null; then
17034 if test -s conftest.err; then
17035 ac_cpp_err=$ac_cxx_preproc_warn_flag
17042 if test -z "$ac_cpp_err"; then
17045 echo "$as_me: failed program was:" >&5
17046 cat conftest.$ac_ext >&5
17047 # Broken: fails on valid input.
17050 rm -f conftest.err conftest.$ac_ext
17052 # OK, works on sane cases. Now check whether non-existent headers
17053 # can be detected and how.
17054 cat >conftest.$ac_ext <<_ACEOF
17055 #line 17055 "configure"
17056 #include "confdefs.h"
17057 #include <ac_nonexistent.h>
17059 if { (eval echo "$as_me:17059: \"$ac_cpp conftest.$ac_ext\"") >&5
17060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17062 egrep -v '^ *\+' conftest.er1 >conftest.err
17064 cat conftest.err >&5
17065 echo "$as_me:17065: \$? = $ac_status" >&5
17066 (exit $ac_status); } >/dev/null; then
17067 if test -s conftest.err; then
17068 ac_cpp_err=$ac_cxx_preproc_warn_flag
17075 if test -z "$ac_cpp_err"; then
17076 # Broken: success on invalid input.
17079 echo "$as_me: failed program was:" >&5
17080 cat conftest.$ac_ext >&5
17081 # Passes both tests.
17085 rm -f conftest.err conftest.$ac_ext
17088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17089 rm -f conftest.err conftest.$ac_ext
17090 if $ac_preproc_ok; then
17093 { { echo "$as_me:17093: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
17094 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
17095 { (exit 1); exit 1; }; }
17099 ac_cpp='$CXXCPP $CPPFLAGS'
17100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17103 ac_main_return=return
17105 for ac_header in iostream typeinfo
17107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17108 echo "$as_me:17108: checking for $ac_header" >&5
17109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line 17114 "configure"
17115 #include "confdefs.h"
17116 #include <$ac_header>
17118 if { (eval echo "$as_me:17118: \"$ac_cpp conftest.$ac_ext\"") >&5
17119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17121 egrep -v '^ *\+' conftest.er1 >conftest.err
17123 cat conftest.err >&5
17124 echo "$as_me:17124: \$? = $ac_status" >&5
17125 (exit $ac_status); } >/dev/null; then
17126 if test -s conftest.err; then
17127 ac_cpp_err=$ac_cxx_preproc_warn_flag
17134 if test -z "$ac_cpp_err"; then
17135 eval "$as_ac_Header=yes"
17137 echo "$as_me: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 eval "$as_ac_Header=no"
17141 rm -f conftest.err conftest.$ac_ext
17143 echo "$as_me:17143: result: `eval echo '${'$as_ac_Header'}'`" >&5
17144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17146 cat >>confdefs.h <<EOF
17147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17153 if test x"$ac_cv_header_iostream" = xyes ; then
17154 echo "$as_me:17154: checking if iostream uses std-namespace" >&5
17155 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17157 #line 17157 "configure"
17158 #include "confdefs.h"
17160 #include <iostream>
17167 cerr << "testing" << endl;
17173 rm -f conftest.$ac_objext
17174 if { (eval echo "$as_me:17174: \"$ac_compile\"") >&5
17175 (eval $ac_compile) 2>&5
17177 echo "$as_me:17177: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -s conftest.$ac_objext'
17180 { (eval echo "$as_me:17180: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:17183: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 cf_iostream_namespace=yes
17187 echo "$as_me: failed program was:" >&5
17188 cat conftest.$ac_ext >&5
17189 cf_iostream_namespace=no
17191 rm -f conftest.$ac_objext conftest.$ac_ext
17192 echo "$as_me:17192: result: $cf_iostream_namespace" >&5
17193 echo "${ECHO_T}$cf_iostream_namespace" >&6
17194 if test "$cf_iostream_namespace" = yes ; then
17195 cat >>confdefs.h <<\EOF
17196 #define IOSTREAM_NAMESPACE 1
17202 echo "$as_me:17202: checking if we should include stdbool.h" >&5
17203 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17205 if test "${cf_cv_header_stdbool_h+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 cat >conftest.$ac_ext <<_ACEOF
17210 #line 17210 "configure"
17211 #include "confdefs.h"
17221 rm -f conftest.$ac_objext
17222 if { (eval echo "$as_me:17222: \"$ac_compile\"") >&5
17223 (eval $ac_compile) 2>&5
17225 echo "$as_me:17225: \$? = $ac_status" >&5
17226 (exit $ac_status); } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (eval echo "$as_me:17228: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:17231: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 cf_cv_header_stdbool_h=0
17235 echo "$as_me: failed program was:" >&5
17236 cat conftest.$ac_ext >&5
17237 cat >conftest.$ac_ext <<_ACEOF
17238 #line 17238 "configure"
17239 #include "confdefs.h"
17242 #include <stdbool.h>
17253 rm -f conftest.$ac_objext
17254 if { (eval echo "$as_me:17254: \"$ac_compile\"") >&5
17255 (eval $ac_compile) 2>&5
17257 echo "$as_me:17257: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try='test -s conftest.$ac_objext'
17260 { (eval echo "$as_me:17260: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17263 echo "$as_me:17263: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 cf_cv_header_stdbool_h=1
17267 echo "$as_me: failed program was:" >&5
17268 cat conftest.$ac_ext >&5
17269 cf_cv_header_stdbool_h=0
17271 rm -f conftest.$ac_objext conftest.$ac_ext
17273 rm -f conftest.$ac_objext conftest.$ac_ext
17276 if test "$cf_cv_header_stdbool_h" = 1
17277 then echo "$as_me:17277: result: yes" >&5
17278 echo "${ECHO_T}yes" >&6
17279 else echo "$as_me:17279: result: no" >&5
17280 echo "${ECHO_T}no" >&6
17283 echo "$as_me:17283: checking for builtin bool type" >&5
17284 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17286 if test "${cf_cv_builtin_bool+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 cat >conftest.$ac_ext <<_ACEOF
17291 #line 17291 "configure"
17292 #include "confdefs.h"
17295 #include <sys/types.h>
17305 rm -f conftest.$ac_objext
17306 if { (eval echo "$as_me:17306: \"$ac_compile\"") >&5
17307 (eval $ac_compile) 2>&5
17309 echo "$as_me:17309: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -s conftest.$ac_objext'
17312 { (eval echo "$as_me:17312: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17315 echo "$as_me:17315: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 cf_cv_builtin_bool=1
17319 echo "$as_me: failed program was:" >&5
17320 cat conftest.$ac_ext >&5
17321 cf_cv_builtin_bool=0
17323 rm -f conftest.$ac_objext conftest.$ac_ext
17327 if test "$cf_cv_builtin_bool" = 1
17328 then echo "$as_me:17328: result: yes" >&5
17329 echo "${ECHO_T}yes" >&6
17330 else echo "$as_me:17330: result: no" >&5
17331 echo "${ECHO_T}no" >&6
17334 echo "$as_me:17334: checking for size of bool" >&5
17335 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17336 if test "${cf_cv_type_of_bool+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 if test "$cross_compiling" = yes; then
17342 cf_cv_type_of_bool=unknown
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line 17345 "configure"
17346 #include "confdefs.h"
17348 #include <stdlib.h>
17351 #if defined(__cplusplus)
17353 #ifdef HAVE_GXX_BUILTIN_H
17354 #include <g++/builtin.h>
17355 #elif HAVE_GPP_BUILTIN_H
17356 #include <gpp/builtin.h>
17357 #elif HAVE_BUILTIN_H
17358 #include <builtin.h>
17363 #if $cf_cv_header_stdbool_h
17364 #include <stdbool.h>
17371 FILE *fp = fopen("cf_test.out", "w");
17374 if ((bool)(-x) >= 0)
17375 fputs("unsigned ", fp);
17376 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17377 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17378 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17379 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17382 ${cf_cv_main_return:-return}(0);
17386 rm -f conftest$ac_exeext
17387 if { (eval echo "$as_me:17387: \"$ac_link\"") >&5
17388 (eval $ac_link) 2>&5
17390 echo "$as_me:17390: \$? = $ac_status" >&5
17391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17392 { (eval echo "$as_me:17392: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:17395: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 cf_cv_type_of_bool=`cat cf_test.out`
17398 if test -z "$cf_cv_type_of_bool"; then
17399 cf_cv_type_of_bool=unknown
17402 echo "$as_me: program exited with status $ac_status" >&5
17403 echo "$as_me: failed program was:" >&5
17404 cat conftest.$ac_ext >&5
17405 cf_cv_type_of_bool=unknown
17407 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17413 echo "$as_me:17413: result: $cf_cv_type_of_bool" >&5
17414 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17415 if test "$cf_cv_type_of_bool" = unknown ; then
17416 case .$NCURSES_BOOL in #(vi
17417 .auto|.) NCURSES_BOOL=unsigned;;
17419 { echo "$as_me:17419: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17420 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17421 cf_cv_type_of_bool=$NCURSES_BOOL
17424 echo "$as_me:17424: checking for special defines needed for etip.h" >&5
17425 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
17426 cf_save_CXXFLAGS="$CXXFLAGS"
17428 for cf_math in "" MATH_H
17430 for cf_excp in "" MATH_EXCEPTION
17432 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
17433 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
17434 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
17435 cat >conftest.$ac_ext <<_ACEOF
17436 #line 17436 "configure"
17437 #include "confdefs.h"
17439 #include <etip.h.in>
17449 rm -f conftest.$ac_objext
17450 if { (eval echo "$as_me:17450: \"$ac_compile\"") >&5
17451 (eval $ac_compile) 2>&5
17453 echo "$as_me:17453: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -s conftest.$ac_objext'
17456 { (eval echo "$as_me:17456: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 echo "$as_me:17459: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17462 test -n "$cf_math" && cat >>confdefs.h <<EOF
17463 #define ETIP_NEEDS_${cf_math} 1
17466 test -n "$cf_excp" && cat >>confdefs.h <<EOF
17467 #define ETIP_NEEDS_${cf_excp} 1
17470 cf_result="$cf_math $cf_excp"
17474 echo "$as_me: failed program was:" >&5
17475 cat conftest.$ac_ext >&5
17477 rm -f conftest.$ac_objext conftest.$ac_ext
17480 echo "$as_me:17480: result: $cf_result" >&5
17481 echo "${ECHO_T}$cf_result" >&6
17482 CXXFLAGS="$cf_save_CXXFLAGS"
17484 if test -n "$CXX"; then
17485 echo "$as_me:17485: checking if $CXX accepts parameter initialization" >&5
17486 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
17487 if test "${cf_cv_cpp_param_init+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 ac_cpp='$CXXCPP $CPPFLAGS'
17493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17496 ac_main_return=return
17498 if test "$cross_compiling" = yes; then
17499 cf_cv_cpp_param_init=unknown
17501 cat >conftest.$ac_ext <<_ACEOF
17502 #line 17502 "configure"
17503 #include "confdefs.h"
17513 TEST::TEST(int x = 1) // some compilers do not like second initializer
17520 rm -f conftest$ac_exeext
17521 if { (eval echo "$as_me:17521: \"$ac_link\"") >&5
17522 (eval $ac_link) 2>&5
17524 echo "$as_me:17524: \$? = $ac_status" >&5
17525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17526 { (eval echo "$as_me:17526: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17529 echo "$as_me:17529: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 cf_cv_cpp_param_init=yes
17533 echo "$as_me: program exited with status $ac_status" >&5
17534 echo "$as_me: failed program was:" >&5
17535 cat conftest.$ac_ext >&5
17536 cf_cv_cpp_param_init=no
17538 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17541 ac_cpp='$CXXCPP $CPPFLAGS'
17542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17545 ac_main_return=return
17548 echo "$as_me:17548: result: $cf_cv_cpp_param_init" >&5
17549 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
17551 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
17552 #define CPP_HAS_PARAM_INIT 1
17555 if test -n "$CXX"; then
17557 echo "$as_me:17557: checking if $CXX accepts static_cast" >&5
17558 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
17559 if test "${cf_cv_cpp_static_cast+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 ac_cpp='$CXXCPP $CPPFLAGS'
17565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17568 ac_main_return=return
17570 cat >conftest.$ac_ext <<_ACEOF
17571 #line 17571 "configure"
17572 #include "confdefs.h"
17577 NCursesPanel(int nlines,
17587 template<class T> class NCursesUserPanel : public NCursesPanel
17590 NCursesUserPanel (int nlines,
17594 const T* p_UserData = static_cast<T*>(0))
17595 : NCursesPanel (nlines, ncols, begin_y, begin_x)
17598 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
17602 virtual ~NCursesUserPanel() {};
17609 const char* p_UserData = static_cast<char*>(0)
17614 rm -f conftest.$ac_objext
17615 if { (eval echo "$as_me:17615: \"$ac_compile\"") >&5
17616 (eval $ac_compile) 2>&5
17618 echo "$as_me:17618: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -s conftest.$ac_objext'
17621 { (eval echo "$as_me:17621: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17624 echo "$as_me:17624: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 cf_cv_cpp_static_cast=yes
17628 echo "$as_me: failed program was:" >&5
17629 cat conftest.$ac_ext >&5
17630 cf_cv_cpp_static_cast=no
17632 rm -f conftest.$ac_objext conftest.$ac_ext
17635 ac_cpp='$CXXCPP $CPPFLAGS'
17636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17639 ac_main_return=return
17642 echo "$as_me:17642: result: $cf_cv_cpp_static_cast" >&5
17643 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
17647 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
17648 #define CPP_HAS_STATIC_CAST 1
17652 CXX_ARFLAGS='$(ARFLAGS)'
17653 case $cf_cv_system_name in #(vi
17655 if test "$GXX" != yes ; then
17657 CXX_ARFLAGS='-ar -o'
17661 CXXLDFLAGS="-u main"
17664 if test "$GXX" != yes ; then
17666 CXX_ARFLAGS='-xar -o'
17673 cf_cv_builtin_bool=1
17675 # Just because we are not configuring against C++ right now does not
17676 # mean that a user will not want to use C++. Some distributors disable
17677 # the C++ portion of this configuration as a shortcut (or just to avoid
17678 # compiling the demo in the c++ directory). So we need a reasonable
17679 # default for the 'bool' type.
17681 # Caveat: since the storage of the bool type is not standardized, it
17684 if test "$NCURSES_BOOL" != auto ; then
17685 cf_cv_type_of_bool=$NCURSES_BOOL
17686 cf_cv_header_stdbool_h=0
17688 if test "$cf_cv_header_stdbool_h" = 1 ; then
17690 echo "$as_me:17690: checking for size of bool" >&5
17691 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17692 if test "${cf_cv_type_of_bool+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 if test "$cross_compiling" = yes; then
17698 cf_cv_type_of_bool=unknown
17700 cat >conftest.$ac_ext <<_ACEOF
17701 #line 17701 "configure"
17702 #include "confdefs.h"
17704 #include <stdlib.h>
17707 #if defined(__cplusplus)
17709 #ifdef HAVE_GXX_BUILTIN_H
17710 #include <g++/builtin.h>
17711 #elif HAVE_GPP_BUILTIN_H
17712 #include <gpp/builtin.h>
17713 #elif HAVE_BUILTIN_H
17714 #include <builtin.h>
17719 #if $cf_cv_header_stdbool_h
17720 #include <stdbool.h>
17727 FILE *fp = fopen("cf_test.out", "w");
17730 if ((bool)(-x) >= 0)
17731 fputs("unsigned ", fp);
17732 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17733 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17734 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17735 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17738 ${cf_cv_main_return:-return}(0);
17742 rm -f conftest$ac_exeext
17743 if { (eval echo "$as_me:17743: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>&5
17746 echo "$as_me:17746: \$? = $ac_status" >&5
17747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17748 { (eval echo "$as_me:17748: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:17751: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 cf_cv_type_of_bool=`cat cf_test.out`
17754 if test -z "$cf_cv_type_of_bool"; then
17755 cf_cv_type_of_bool=unknown
17758 echo "$as_me: program exited with status $ac_status" >&5
17759 echo "$as_me: failed program was:" >&5
17760 cat conftest.$ac_ext >&5
17761 cf_cv_type_of_bool=unknown
17763 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17769 echo "$as_me:17769: result: $cf_cv_type_of_bool" >&5
17770 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17771 if test "$cf_cv_type_of_bool" = unknown ; then
17772 case .$NCURSES_BOOL in #(vi
17773 .auto|.) NCURSES_BOOL=unsigned;;
17775 { echo "$as_me:17775: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17776 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17777 cf_cv_type_of_bool=$NCURSES_BOOL
17781 echo "$as_me:17781: checking for fallback type of bool" >&5
17782 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
17783 case "$host_cpu" in #(vi
17784 i?86) cf_cv_type_of_bool=char ;; #(vi
17785 *) cf_cv_type_of_bool=int ;;
17787 echo "$as_me:17787: result: $cf_cv_type_of_bool" >&5
17788 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17793 # If the C compiler did not declare bool, and we did not determine that the C++
17794 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
17795 # ncurses library use the same type as C++ bool. Note that this allows one to
17796 # specify the type of bool in a configure-script option and postpone
17797 # integration with the C++ compiler provided that the types are compatible.
17799 if test $cf_cv_cc_bool_type = 1
17801 # oops: C has a bool. Unlikely, but C++ could differ.
17803 elif test $cf_cv_builtin_bool = 0
17808 # this is the normal case
17809 USE_CXX_BOOL='defined(__cplusplus)'
17812 if test -f "${srcdir}/Ada95/Makefile.in" ; then
17814 if test "$cf_with_ada" != "no" ; then
17815 if test "$with_libtool" != "no"; then
17816 { echo "$as_me:17816: WARNING: libtool does not support Ada - disabling feature" >&5
17817 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
17822 if test "$cf_with_ada" != "no" ; then
17824 cf_ada_make=gnatmake
17825 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
17826 set dummy $cf_ada_make; ac_word=$2
17827 echo "$as_me:17827: checking for $ac_word" >&5
17828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17829 if test "${ac_cv_prog_gnat_exists+set}" = set; then
17830 echo $ECHO_N "(cached) $ECHO_C" >&6
17832 if test -n "$gnat_exists"; then
17833 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
17835 ac_save_IFS=$IFS; IFS=$ac_path_separator
17837 for ac_dir in $ac_dummy; do
17839 test -z "$ac_dir" && ac_dir=.
17840 $as_executable_p "$ac_dir/$ac_word" || continue
17841 ac_cv_prog_gnat_exists="yes"
17842 echo "$as_me:17842: found $ac_dir/$ac_word" >&5
17846 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
17849 gnat_exists=$ac_cv_prog_gnat_exists
17850 if test -n "$gnat_exists"; then
17851 echo "$as_me:17851: result: $gnat_exists" >&5
17852 echo "${ECHO_T}$gnat_exists" >&6
17854 echo "$as_me:17854: result: no" >&5
17855 echo "${ECHO_T}no" >&6
17858 if test "$ac_cv_prog_gnat_exists" = no; then
17862 echo "$as_me:17862: checking for gnat version" >&5
17863 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
17864 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
17865 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
17866 echo "$as_me:17866: result: $cf_gnat_version" >&5
17867 echo "${ECHO_T}$cf_gnat_version" >&6
17869 case $cf_gnat_version in
17870 3.1[1-9]*|3.[2-9]*|[4-9].*)
17871 cf_cv_prog_gnat_correct=yes
17873 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
17874 cf_cv_prog_gnat_correct=no
17877 case $cf_gnat_version in
17879 cf_compile_generics=generics
17880 cf_generic_objects="\${GENOBJS}"
17882 *) cf_compile_generics=
17883 cf_generic_objects=
17887 # Extract the first word of "m4", so it can be a program name with args.
17888 set dummy m4; ac_word=$2
17889 echo "$as_me:17889: checking for $ac_word" >&5
17890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17891 if test "${ac_cv_prog_M4_exists+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 if test -n "$M4_exists"; then
17895 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
17897 ac_save_IFS=$IFS; IFS=$ac_path_separator
17899 for ac_dir in $ac_dummy; do
17901 test -z "$ac_dir" && ac_dir=.
17902 $as_executable_p "$ac_dir/$ac_word" || continue
17903 ac_cv_prog_M4_exists="yes"
17904 echo "$as_me:17904: found $ac_dir/$ac_word" >&5
17908 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
17911 M4_exists=$ac_cv_prog_M4_exists
17912 if test -n "$M4_exists"; then
17913 echo "$as_me:17913: result: $M4_exists" >&5
17914 echo "${ECHO_T}$M4_exists" >&6
17916 echo "$as_me:17916: result: no" >&5
17917 echo "${ECHO_T}no" >&6
17920 if test "$ac_cv_prog_M4_exists" = no; then
17921 cf_cv_prog_gnat_correct=no
17922 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
17924 if test "$cf_cv_prog_gnat_correct" = yes; then
17925 echo "$as_me:17925: checking if GNAT works" >&5
17926 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
17929 cat >>conftest.ads <<CF_EOF
17930 procedure conftest;
17932 cat >>conftest.adb <<CF_EOF
17935 procedure conftest is
17937 Text_IO.Put ("Hello World");
17939 GNAT.OS_Lib.OS_Exit (0);
17942 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
17943 if ( ./conftest 1>&5 2>&1 ) ; then
17944 cf_cv_prog_gnat_correct=yes
17946 cf_cv_prog_gnat_correct=no
17949 cf_cv_prog_gnat_correct=no
17953 echo "$as_me:17953: result: $cf_cv_prog_gnat_correct" >&5
17954 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
17958 if test "$cf_cv_prog_gnat_correct" = yes; then
17960 ADAFLAGS="$ADAFLAGS -O3 -gnatpn"
17962 echo "$as_me:17962: checking if GNAT pragma Unreferenced works" >&5
17963 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
17964 if test "${cf_cv_pragma_unreferenced+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 cat >>conftest.ads <<CF_EOF
17970 procedure conftest;
17972 cat >>conftest.adb <<CF_EOF
17975 procedure conftest is
17977 pragma Unreferenced (test);
17980 Text_IO.Put ("Hello World");
17982 GNAT.OS_Lib.OS_Exit (0);
17985 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
17986 cf_cv_pragma_unreferenced=yes
17988 cf_cv_pragma_unreferenced=no
17993 echo "$as_me:17993: result: $cf_cv_pragma_unreferenced" >&5
17994 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
17996 # if the pragma is supported, use it (needed in the Trace code).
17997 if test $cf_cv_pragma_unreferenced = yes ; then
18003 # Check whether --with-ada-compiler or --without-ada-compiler was given.
18004 if test "${with_ada_compiler+set}" = set; then
18005 withval="$with_ada_compiler"
18006 cf_ada_compiler=$withval
18008 cf_ada_compiler=gnatmake
18011 cf_ada_package=terminal_interface
18013 # Check whether --with-ada-include or --without-ada-include was given.
18014 if test "${with_ada_include+set}" = set; then
18015 withval="$with_ada_include"
18018 withval="${ADA_INCLUDE-$prefix/share/ada/adainclude}"
18019 fi; if test -n "$prefix/share/ada/adainclude" ; then
18021 if test "x$prefix" != xNONE; then
18022 cf_path_syntax="$prefix"
18024 cf_path_syntax="$ac_default_prefix"
18027 case ".$withval" in #(vi
18028 .\$\(*\)*|.\'*\'*) #(vi
18032 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18034 .\${*prefix}*) #(vi
18035 eval withval="$withval"
18036 case ".$withval" in #(vi
18038 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18043 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18046 { { echo "$as_me:18046: error: expected a pathname, not \"$withval\"" >&5
18047 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18048 { (exit 1); exit 1; }; }
18053 ADA_INCLUDE="$withval"
18055 # Check whether --with-ada-objects or --without-ada-objects was given.
18056 if test "${with_ada_objects+set}" = set; then
18057 withval="$with_ada_objects"
18060 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
18061 fi; if test -n "$prefix/lib/ada/adalib" ; then
18063 if test "x$prefix" != xNONE; then
18064 cf_path_syntax="$prefix"
18066 cf_path_syntax="$ac_default_prefix"
18069 case ".$withval" in #(vi
18070 .\$\(*\)*|.\'*\'*) #(vi
18074 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18076 .\${*prefix}*) #(vi
18077 eval withval="$withval"
18078 case ".$withval" in #(vi
18080 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18085 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18088 { { echo "$as_me:18088: error: expected a pathname, not \"$withval\"" >&5
18089 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18090 { (exit 1); exit 1; }; }
18095 ADA_OBJECTS="$withval"
18097 echo "$as_me:18097: checking if you want to build Ada95 shared library" >&5
18098 echo $ECHO_N "checking if you want to build Ada95 shared library... $ECHO_C" >&6
18100 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
18101 if test "${with_ada_sharedlib+set}" = set; then
18102 withval="$with_ada_sharedlib"
18103 with_ada_sharedlib=$withval
18105 with_ada_sharedlib=no
18107 echo "$as_me:18107: result: $with_ada_sharedlib" >&5
18108 echo "${ECHO_T}$with_ada_sharedlib" >&6
18110 if test "x$with_ada_sharedlib" != xno
18112 MAKE_ADA_SHAREDLIB=
18113 if test "x$with_ada_sharedlib" != xyes
18115 ADA_SHAREDLIB="$with_ada_sharedlib"
18117 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
18120 MAKE_ADA_SHAREDLIB="#"
18129 ### Construct the ncurses library-subsets, if any, from this set of keywords:
18130 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
18132 ### ticlib modules may be a separate library, otherwise contained in termlib.
18133 ### termlib modules may be a separate library, otherwise contained in ncurses.
18135 ### The of "+" or " " between the tokens controls the way the script
18136 ### chooses to split module lists into libraries.
18138 ### (see CF_LIB_RULES).
18139 echo "$as_me:18139: checking for library subsets" >&5
18140 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
18143 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
18144 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
18145 if test "$with_ticlib" != no ; then
18146 LIB_SUBSETS="${LIB_SUBSETS} "
18148 LIB_SUBSETS="${LIB_SUBSETS}+"
18152 LIB_SUBSETS="${LIB_SUBSETS}termlib"
18153 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
18155 if test "$with_termlib" != no ; then
18156 LIB_SUBSETS="${LIB_SUBSETS} "
18158 LIB_SUBSETS="${LIB_SUBSETS}+"
18161 LIB_SUBSETS="${LIB_SUBSETS}base"
18163 # Most term-driver calls are to tinfo, but some like init_pair are to the
18164 # base library (so it resides in base).
18165 if test "$with_term_driver" != no ; then
18166 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
18167 case $cf_cv_system_name in #(vi
18169 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
18172 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
18177 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
18178 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
18180 echo "$as_me:18180: result: $LIB_SUBSETS" >&5
18181 echo "${ECHO_T}$LIB_SUBSETS" >&6
18183 ### Construct the list of include-directories to be generated
18185 CPPFLAGS="$CPPFLAGS -I. -I../include"
18186 if test "$srcdir" != "."; then
18187 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
18189 if test "$GCC" != yes; then
18190 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18191 elif test "$includedir" != "/usr/include"; then
18192 if test "$includedir" = '${prefix}/include' ; then
18193 if test $prefix != /usr ; then
18194 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18197 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18201 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
18202 if test "$srcdir" != "."; then
18203 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
18205 if test "$GCC" != yes; then
18206 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18207 elif test "$includedir" != "/usr/include"; then
18208 if test "$includedir" = '${prefix}/include' ; then
18209 if test $prefix != /usr ; then
18210 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18213 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18217 ### Build up pieces for makefile rules
18218 echo "$as_me:18218: checking default library suffix" >&5
18219 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
18221 case $DFT_LWR_MODEL in
18222 libtool) DFT_ARG_SUFFIX='' ;;
18223 normal) DFT_ARG_SUFFIX='' ;;
18224 debug) DFT_ARG_SUFFIX='_g' ;;
18225 profile) DFT_ARG_SUFFIX='_p' ;;
18226 shared) DFT_ARG_SUFFIX='' ;;
18228 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
18229 echo "$as_me:18229: result: $DFT_ARG_SUFFIX" >&5
18230 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
18232 echo "$as_me:18232: checking default library-dependency suffix" >&5
18233 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
18235 case $DFT_LWR_MODEL in #(vi
18237 DFT_LIB_SUFFIX='.la'
18238 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18241 DFT_LIB_SUFFIX='.a'
18242 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18245 DFT_LIB_SUFFIX='_g.a'
18246 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18249 DFT_LIB_SUFFIX='_p.a'
18250 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18253 case $cf_cv_system_name in
18255 DFT_LIB_SUFFIX='.a'
18256 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18259 DFT_LIB_SUFFIX='.dll'
18260 DFT_DEP_SUFFIX='.dll.a'
18263 DFT_LIB_SUFFIX='.dylib'
18264 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18269 DFT_LIB_SUFFIX='.so'
18270 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18273 DFT_LIB_SUFFIX='.sl'
18274 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18278 *) DFT_LIB_SUFFIX='.so'
18279 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18283 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
18284 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
18285 echo "$as_me:18285: result: $DFT_DEP_SUFFIX" >&5
18286 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
18288 echo "$as_me:18288: checking default object directory" >&5
18289 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
18291 case $DFT_LWR_MODEL in
18292 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
18293 normal) DFT_OBJ_SUBDIR='objects' ;;
18294 debug) DFT_OBJ_SUBDIR='obj_g' ;;
18295 profile) DFT_OBJ_SUBDIR='obj_p' ;;
18297 case $cf_cv_system_name in #(vi
18299 DFT_OBJ_SUBDIR='objects' ;;
18301 DFT_OBJ_SUBDIR='obj_s' ;;
18304 echo "$as_me:18304: result: $DFT_OBJ_SUBDIR" >&5
18305 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
18307 # libtool thinks it can make c++ shared libraries (perhaps only g++)
18308 if test "$cf_with_cxx" = yes ; then
18309 echo "$as_me:18309: checking c++ library-dependency suffix" >&5
18310 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
18311 if test "$with_libtool" != "no"; then
18312 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
18315 case normal in #(vi
18317 CXX_LIB_SUFFIX='.la'
18318 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18321 CXX_LIB_SUFFIX='.a'
18322 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18325 CXX_LIB_SUFFIX='_g.a'
18326 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18329 CXX_LIB_SUFFIX='_p.a'
18330 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18333 case $cf_cv_system_name in
18335 CXX_LIB_SUFFIX='.a'
18336 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18339 CXX_LIB_SUFFIX='.dll'
18340 CXX_DEP_SUFFIX='.dll.a'
18343 CXX_LIB_SUFFIX='.dylib'
18344 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18349 CXX_LIB_SUFFIX='.so'
18350 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18353 CXX_LIB_SUFFIX='.sl'
18354 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18358 *) CXX_LIB_SUFFIX='.so'
18359 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18363 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
18364 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
18366 echo "$as_me:18366: result: $CXX_LIB_SUFFIX" >&5
18367 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
18371 # do not want -ldl in build except as needed for -lncurses dependency
18372 if test "$with_dlsym" = yes ; then
18373 if test $DFT_LWR_MODEL = shared || \
18374 test $DFT_LWR_MODEL = libtool ; then
18376 # remove dl library from $LIBS
18377 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18381 ### Set up low-level terminfo dependencies for makefiles.
18383 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
18384 # do not need libdl
18386 if test "$with_dlsym" = yes ; then
18388 # remove dl library from $SHLIB_LIST
18389 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18393 if test "$with_ticlib" != no ; then
18395 if test "$with_ticlib" != yes ; then
18396 TICS_NAME=$with_ticlib
18397 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18398 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18399 TICS_LIB_SUFFIX="${with_ticlib}"
18401 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
18402 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
18403 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
18405 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
18407 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18410 if test "$with_termlib" != no ; then
18412 if test "$with_termlib" != yes ; then
18413 TINFO_NAME=$with_termlib
18414 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18415 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18416 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18417 TINFO_LIB_SUFFIX="${with_termlib}"
18419 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18420 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
18421 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
18422 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
18425 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18426 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18427 if test "$DFT_LWR_MODEL" = "libtool"; then
18428 TEST_ARGS="${TEST_DEPS}"
18429 TEST_ARG2="${TEST_DEP2}"
18430 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18431 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
18432 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
18434 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
18435 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
18436 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18437 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18438 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18441 # the next lines are needed for linking libtic over libncurses
18442 TINFO_NAME=${LIB_NAME}
18443 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18444 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
18445 if test "$with_tic_depends" = yes ; then
18446 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18448 TICS_LIST="$SHLIB_LIST"
18451 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18454 if test "$DFT_LWR_MODEL" = shared ; then
18455 case $cf_cv_system_name in #(vi
18457 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
18463 if test "$with_dlsym" = yes ; then
18465 # remove dl library from $TICS_LIST
18466 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18470 if test "$DFT_LWR_MODEL" = "libtool"; then
18475 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
18477 case $DFT_LWR_MODEL in
18478 normal|debug|profile)
18480 if test "$GCC" = yes ; then
18481 case $cf_cv_system_name in #(
18482 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
18486 *) #( normally, except when broken
18487 LDFLAGS_STATIC=-static
18488 LDFLAGS_SHARED=-dynamic
18492 case $cf_cv_system_name in #(
18493 aix[456]*) #( from ld manpage
18494 LDFLAGS_STATIC=-bstatic
18495 LDFLAGS_SHARED=-bdynamic
18497 hpux*) #( from ld manpage for hpux10.20, hpux11.11
18498 # We could also use just "archive" and "shared".
18499 LDFLAGS_STATIC=-Wl,-a,archive_shared
18500 LDFLAGS_SHARED=-Wl,-a,shared_archive
18502 irix*) #( from ld manpage IRIX64
18503 LDFLAGS_STATIC=-Bstatic
18504 LDFLAGS_SHARED=-Bdynamic
18506 osf[45]*) #( from ld manpage osf4.0d, osf5.1
18507 # alternative "-oldstyle_liblookup" (not in cc manpage)
18508 LDFLAGS_STATIC=-noso
18509 LDFLAGS_SHARED=-so_archive
18512 LDFLAGS_STATIC=-Bstatic
18513 LDFLAGS_SHARED=-Bdynamic
18521 echo "$as_me:18521: checking where we will install curses.h" >&5
18522 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
18523 test "$with_overwrite" = no && \
18524 test "x$includedir" = 'x${prefix}/include' && \
18525 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
18526 echo "$as_me:18526: result: $includedir" >&5
18527 echo "${ECHO_T}$includedir" >&6
18529 ### Resolve a conflict between normal and wide-curses by forcing applications
18530 ### that will need libutf8 to add it to their configure script.
18531 if test "$with_overwrite" != no ; then
18532 if test "$NCURSES_LIBUTF8" = 1 ; then
18533 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
18534 { echo "$as_me:18534: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
18535 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
18538 WITH_OVERWRITE=$with_overwrite
18540 # used to separate tack out of the tree
18543 ### predefined stuff for the test programs
18544 cat >>confdefs.h <<\EOF
18545 #define HAVE_SLK_COLOR 1
18548 ### Construct the list of subdirectories for which we'll customize makefiles
18549 ### with the appropriate compile-rules.
18551 echo "$as_me:18551: checking for src modules" >&5
18552 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
18554 # dependencies and linker-arguments for test-programs
18555 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
18556 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
18557 if test "$DFT_LWR_MODEL" = "libtool"; then
18558 TEST_ARGS="${TEST_DEPS}"
18559 TEST_ARG2="${TEST_DEP2}"
18561 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
18562 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
18566 for cf_dir in $modules_to_build
18568 if test -f $srcdir/$cf_dir/modules; then
18570 # We may/may not have tack in the distribution, though the
18572 if test $cf_dir = tack ; then
18573 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
18578 if test -z "$cf_cv_src_modules"; then
18579 cf_cv_src_modules=$cf_dir
18581 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
18584 # Make the ncurses_cfg.h file record the library interface files as
18585 # well. These are header files that are the same name as their
18586 # directory. Ncurses is the only library that does not follow
18588 if test $cf_dir = tack ; then
18590 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
18592 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18594 cat >>confdefs.h <<EOF
18595 #define HAVE_${cf_have_include}_H 1
18598 cat >>confdefs.h <<EOF
18599 #define HAVE_LIB${cf_have_include} 1
18602 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
18603 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
18604 if test "$DFT_LWR_MODEL" = "libtool"; then
18605 TEST_ARGS="${TEST_DEPS}"
18606 TEST_ARG2="${TEST_DEP2}"
18608 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
18609 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
18614 echo "$as_me:18614: result: $cf_cv_src_modules" >&5
18615 echo "${ECHO_T}$cf_cv_src_modules" >&6
18617 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
18618 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
18621 if test "x$cf_with_manpages" != xno ; then
18622 SRC_SUBDIRS="$SRC_SUBDIRS man"
18624 SRC_SUBDIRS="$SRC_SUBDIRS include"
18625 for cf_dir in $cf_cv_src_modules
18627 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
18629 SRC_SUBDIRS="$SRC_SUBDIRS test"
18630 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
18631 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
18634 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
18635 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
18636 ADA_SUBDIRS="gen src samples"
18640 for cf_dir in $SRC_SUBDIRS
18642 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
18645 if test -n "$ADA_SUBDIRS"; then
18646 for cf_dir in $ADA_SUBDIRS
18648 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
18653 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
18654 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
18655 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
18659 for cf_item in $cf_list_models
18663 libtool) cf_subdir='obj_lo' ;;
18664 normal) cf_subdir='objects' ;;
18665 debug) cf_subdir='obj_g' ;;
18666 profile) cf_subdir='obj_p' ;;
18668 case $cf_cv_system_name in #(vi
18670 cf_subdir='objects' ;;
18672 cf_subdir='obj_s' ;;
18676 for cf_item2 in $DIRS_TO_MAKE
18678 test $cf_item2 = $cf_subdir && break
18680 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
18682 for cf_dir in $DIRS_TO_MAKE
18684 test ! -d $cf_dir && mkdir $cf_dir
18687 # symbols that differ when compiling Ada95 by itself.
18688 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
18690 NCURSES_COPY2='sh $(top_srcdir)/tar-copy.sh'
18692 # values to use as strings
18693 cat >>confdefs.h <<EOF
18694 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
18697 cat >>confdefs.h <<EOF
18698 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
18701 ### Now that we're done running tests, add the compiler-warnings, if any
18706 cf_new_extra_cppflags=
18708 for cf_add_cflags in $EXTRA_CFLAGS
18710 case $cf_fix_cppflags in
18712 case $cf_add_cflags in #(vi
18713 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
18714 case $cf_add_cflags in
18716 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18718 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
18719 && test -z "${cf_tst_cflags}" \
18720 && cf_fix_cppflags=yes
18722 if test $cf_fix_cppflags = yes ; then
18723 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18725 elif test "${cf_tst_cflags}" = "\"'" ; then
18726 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18731 case "$CPPFLAGS" in
18732 *$cf_add_cflags) #(vi
18735 case $cf_add_cflags in #(vi
18737 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18739 CPPFLAGS=`echo "$CPPFLAGS" | \
18740 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18741 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18745 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
18750 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
18755 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18757 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18759 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
18760 && test -z "${cf_tst_cflags}" \
18761 && cf_fix_cppflags=no
18766 if test -n "$cf_new_cflags" ; then
18768 CFLAGS="$CFLAGS $cf_new_cflags"
18771 if test -n "$cf_new_cppflags" ; then
18773 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
18776 if test -n "$cf_new_extra_cppflags" ; then
18778 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
18781 ### Define substitutions for header files to avoid name-pollution
18783 if test "$cf_cv_have_tcgetattr" = yes ; then
18789 if test "$ac_cv_header_termio_h" = yes ; then
18795 if test "$ac_cv_header_termios_h" = yes ; then
18801 ################################################################################
18802 test "$use_database" = yes && \
18803 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
18805 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
18806 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
18808 if test x"$enable_pc_files" = xyes ; then \
18809 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
18815 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_MAKEFILES Makefile"
18816 ac_config_commands="$ac_config_commands default"
18817 cat >confcache <<\_ACEOF
18818 # This file is a shell script that caches the results of configure
18819 # tests run on this system so they can be shared between configure
18820 # scripts and configure runs, see configure's option --config-cache.
18821 # It is not useful on other systems. If it contains results you don't
18822 # want to keep, you may remove or edit it.
18824 # config.status only pays attention to the cache file if you give it
18825 # the --recheck option to rerun configure.
18827 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18829 # following values.
18833 # The following way of writing the cache mishandles newlines in values,
18834 # but we know of no workaround that is simple, portable, and efficient.
18835 # So, don't put newlines in cache variables' values.
18836 # Ultrix sh set writes to stderr and can't be redirected directly,
18837 # and sets the high bit in the cache file unless we assign to the vars.
18840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18842 # `set' does not quote correctly, so add quotes (double-quote
18843 # substitution turns \\\\ into \\, and sed turns \\ into \).
18846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18849 # `set' quotes correctly as required by POSIX, so do not add quotes.
18851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18858 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18860 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18862 if cmp -s $cache_file confcache; then :; else
18863 if test -w $cache_file; then
18864 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18865 cat confcache >$cache_file
18867 echo "not updating unwritable cache $cache_file"
18872 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18873 # Let make expand exec_prefix.
18874 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18878 # trailing colons and then remove the whole line if VPATH becomes empty
18879 # (actually we leave an empty line to preserve line numbers).
18880 if test "x$srcdir" = x.; then
18881 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18882 s/:*\$(srcdir):*/:/;
18883 s/:*\${srcdir}:*/:/;
18885 s/^\([^=]*=[ ]*\):*/\1/;
18891 DEFS=-DHAVE_CONFIG_H
18893 : ${CONFIG_STATUS=./config.status}
18894 ac_clean_files_save=$ac_clean_files
18895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18896 { echo "$as_me:18896: creating $CONFIG_STATUS" >&5
18897 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18898 cat >$CONFIG_STATUS <<_ACEOF
18900 # Generated automatically by configure.
18901 # Run this file to recreate the current configuration.
18902 # Compiler output produced by configure, useful for debugging
18903 # configure, is in config.log if it exists.
18906 SHELL=\${CONFIG_SHELL-$SHELL}
18907 ac_cs_invocation="\$0 \$@"
18911 cat >>$CONFIG_STATUS <<\_ACEOF
18912 # Be Bourne compatible
18913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18916 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18920 # Name of the executable.
18921 as_me=`echo "$0" |sed 's,.*[\\/],,'`
18923 if expr a : '\(a\)' >/dev/null 2>&1; then
18929 rm -f conf$$ conf$$.exe conf$$.file
18931 if ln -s conf$$.file conf$$ 2>/dev/null; then
18932 # We could just check for DJGPP; but this test a) works b) is more generic
18933 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18934 if test -f conf$$.exe; then
18935 # Don't use ln at all; we don't have any links
18940 elif ln conf$$.file conf$$ 2>/dev/null; then
18945 rm -f conf$$ conf$$.exe conf$$.file
18947 as_executable_p="test -f"
18949 # Support unset when possible.
18950 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18957 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
18958 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
18959 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
18960 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
18961 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
18962 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
18963 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
18964 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
18967 # We need space, tab and new line, in precisely that order.
18973 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
18979 # Files that config.status was made for.
18980 if test -n "$ac_config_files"; then
18981 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18984 if test -n "$ac_config_headers"; then
18985 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18988 if test -n "$ac_config_links"; then
18989 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18992 if test -n "$ac_config_commands"; then
18993 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18996 cat >>$CONFIG_STATUS <<\EOF
18999 \`$as_me' instantiates files from templates according to the
19000 current configuration.
19002 Usage: $0 [OPTIONS] [FILE]...
19004 -h, --help print this help, then exit
19005 -V, --version print version number, then exit
19006 -d, --debug don't remove temporary files
19007 --recheck update $as_me by reconfiguring in the same conditions
19008 --file=FILE[:TEMPLATE]
19009 instantiate the configuration file FILE
19010 --header=FILE[:TEMPLATE]
19011 instantiate the configuration header FILE
19013 Configuration files:
19016 Configuration headers:
19019 Configuration commands:
19022 Report bugs to <bug-autoconf@gnu.org>."
19025 cat >>$CONFIG_STATUS <<EOF
19028 configured by $0, generated by GNU Autoconf 2.52.20100530,
19029 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19031 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19032 Free Software Foundation, Inc.
19033 This config.status script is free software; the Free Software Foundation
19034 gives unlimited permission to copy, distribute and modify it."
19039 cat >>$CONFIG_STATUS <<\EOF
19040 # If no file are specified by the user, then we need to provide default
19041 # value. By we need to know if files were specified by the user.
19047 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19048 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19050 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19054 *) # This is not an option, so the user has probably given explicit
19056 ac_need_defaults=false;;
19060 # Handling of the options.
19062 cat >>$CONFIG_STATUS <<EOF
19063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19064 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19065 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19067 cat >>$CONFIG_STATUS <<\EOF
19068 --version | --vers* | -V )
19069 echo "$ac_cs_version"; exit 0 ;;
19071 # Conflict between --help and --header
19072 { { echo "$as_me:19072: error: ambiguous option: $1
19073 Try \`$0 --help' for more information." >&5
19074 echo "$as_me: error: ambiguous option: $1
19075 Try \`$0 --help' for more information." >&2;}
19076 { (exit 1); exit 1; }; };;
19077 --help | --hel | -h )
19078 echo "$ac_cs_usage"; exit 0 ;;
19079 --debug | --d* | -d )
19081 --file | --fil | --fi | --f )
19083 CONFIG_FILES="$CONFIG_FILES $1"
19084 ac_need_defaults=false;;
19085 --header | --heade | --head | --hea )
19087 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19088 ac_need_defaults=false;;
19090 # This is an error.
19091 -*) { { echo "$as_me:19091: error: unrecognized option: $1
19092 Try \`$0 --help' for more information." >&5
19093 echo "$as_me: error: unrecognized option: $1
19094 Try \`$0 --help' for more information." >&2;}
19095 { (exit 1); exit 1; }; } ;;
19097 *) ac_config_targets="$ac_config_targets $1" ;;
19106 ## ----------------------- ##
19107 ## Running config.status. ##
19108 ## ----------------------- ##
19110 This file was extended by $as_me 2.52.20100530, executed with
19111 CONFIG_FILES = $CONFIG_FILES
19112 CONFIG_HEADERS = $CONFIG_HEADERS
19113 CONFIG_LINKS = $CONFIG_LINKS
19114 CONFIG_COMMANDS = $CONFIG_COMMANDS
19115 > $ac_cs_invocation
19116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19121 cat >>$CONFIG_STATUS <<EOF
19123 # INIT-COMMANDS section.
19126 ### Special initialization commands, used to pass information from the
19127 ### configuration-run into config.status
19130 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
19131 DFT_LWR_MODEL="$DFT_LWR_MODEL"
19132 ECHO_LINK="$ECHO_LINK"
19133 LDCONFIG="$LDCONFIG"
19134 LIBTOOL_VERSION="$LIBTOOL_VERSION"
19135 LIB_NAME="$LIB_NAME"
19136 LIB_SUBSETS="$LIB_SUBSETS"
19137 LIB_SUFFIX="$LIB_SUFFIX"
19138 LIB_TRACING="$LIB_TRACING"
19139 MAKE_TERMINFO="$MAKE_TERMINFO"
19140 NCURSES_MAJOR="$NCURSES_MAJOR"
19141 NCURSES_MINOR="$NCURSES_MINOR"
19142 NCURSES_OSPEED="$NCURSES_OSPEED"
19143 NCURSES_PATCH="$NCURSES_PATCH"
19144 SRC_SUBDIRS="$SRC_SUBDIRS"
19145 TERMINFO="$TERMINFO"
19146 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
19147 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
19148 TICS_NAME="$TICS_NAME"
19149 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
19150 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
19151 TINFO_NAME="$TINFO_NAME"
19152 TINFO_SUFFIX="$TINFO_SUFFIX"
19153 WITH_CURSES_H="$with_curses_h"
19154 WITH_ECHO="$with_echo"
19155 WITH_OVERWRITE="$with_overwrite"
19156 cf_LIST_MODELS="$cf_list_models"
19157 cf_cv_abi_version="$cf_cv_abi_version"
19158 cf_cv_do_relink="$cf_cv_do_relink"
19159 cf_cv_do_symlinks="$cf_cv_do_symlinks"
19160 cf_cv_enable_lp64="$cf_cv_enable_lp64"
19161 cf_cv_enable_opaque="$cf_cv_enable_opaque"
19162 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
19163 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
19164 cf_cv_rel_version="$cf_cv_rel_version"
19165 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
19166 cf_cv_shared_soname='$cf_cv_shared_soname'
19167 cf_cv_shlib_version="$cf_cv_shlib_version"
19168 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
19169 cf_cv_system_name="$cf_cv_system_name"
19170 cf_with_cxx_binding="$cf_with_cxx_binding"
19171 cf_with_manpages="$cf_with_manpages"
19177 cat >>$CONFIG_STATUS <<\EOF
19178 for ac_config_target in $ac_config_targets
19180 case "$ac_config_target" in
19181 # Handling of arguments.
19182 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
19183 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
19184 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
19185 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
19186 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
19187 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
19188 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19189 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19190 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
19191 *) { { echo "$as_me:19191: error: invalid argument: $ac_config_target" >&5
19192 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19193 { (exit 1); exit 1; }; };;
19197 # If the user did not use the arguments to specify the items to instantiate,
19198 # then the envvar interface is used. Set only those that are not.
19199 # We use the long form for the default assignment because of an extremely
19200 # bizarre bug on SunOS 4.1.3.
19201 if $ac_need_defaults; then
19202 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19203 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19204 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19207 # Create a temporary directory, and hook for its removal unless debugging.
19210 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19211 trap '{ (exit 1); exit 1; }' 1 2 13 15
19214 # Create a (secure) tmp directory for tmp files.
19217 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19218 test -n "$tmp" && test -d "$tmp"
19221 tmp=$TMPDIR/cs$$-$RANDOM
19222 (umask 077 && mkdir $tmp)
19225 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19226 { (exit 1); exit 1; }
19231 cat >>$CONFIG_STATUS <<EOF
19234 # CONFIG_FILES section.
19237 # No need to generate the scripts if there are no CONFIG_FILES.
19238 # This happens for instance when ./config.status config.h
19239 if test -n "\$CONFIG_FILES"; then
19240 # Protect against being on the right side of a sed subst in config.status.
19241 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19242 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19243 s,@SHELL@,$SHELL,;t t
19244 s,@exec_prefix@,$exec_prefix,;t t
19245 s,@prefix@,$prefix,;t t
19246 s,@program_transform_name@,$program_transform_name,;t t
19247 s,@bindir@,$bindir,;t t
19248 s,@sbindir@,$sbindir,;t t
19249 s,@libexecdir@,$libexecdir,;t t
19250 s,@datadir@,$datadir,;t t
19251 s,@sysconfdir@,$sysconfdir,;t t
19252 s,@sharedstatedir@,$sharedstatedir,;t t
19253 s,@localstatedir@,$localstatedir,;t t
19254 s,@libdir@,$libdir,;t t
19255 s,@includedir@,$includedir,;t t
19256 s,@oldincludedir@,$oldincludedir,;t t
19257 s,@infodir@,$infodir,;t t
19258 s,@mandir@,$mandir,;t t
19259 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19260 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19261 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19262 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19263 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19264 s,@build_alias@,$build_alias,;t t
19265 s,@host_alias@,$host_alias,;t t
19266 s,@target_alias@,$target_alias,;t t
19267 s,@ECHO_C@,$ECHO_C,;t t
19268 s,@ECHO_N@,$ECHO_N,;t t
19269 s,@ECHO_T@,$ECHO_T,;t t
19270 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19271 s,@DEFS@,$DEFS,;t t
19272 s,@LIBS@,$LIBS,;t t
19273 s,@top_builddir@,$top_builddir,;t t
19274 s,@EGREP@,$EGREP,;t t
19275 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
19276 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
19277 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
19278 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19279 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19280 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
19281 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
19282 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
19283 s,@build@,$build,;t t
19284 s,@build_cpu@,$build_cpu,;t t
19285 s,@build_vendor@,$build_vendor,;t t
19286 s,@build_os@,$build_os,;t t
19287 s,@host@,$host,;t t
19288 s,@host_cpu@,$host_cpu,;t t
19289 s,@host_vendor@,$host_vendor,;t t
19290 s,@host_os@,$host_os,;t t
19291 s,@target@,$target,;t t
19292 s,@target_cpu@,$target_cpu,;t t
19293 s,@target_vendor@,$target_vendor,;t t
19294 s,@target_os@,$target_os,;t t
19296 s,@CFLAGS@,$CFLAGS,;t t
19297 s,@LDFLAGS@,$LDFLAGS,;t t
19298 s,@CPPFLAGS@,$CPPFLAGS,;t t
19299 s,@ac_ct_CC@,$ac_ct_CC,;t t
19300 s,@EXEEXT@,$EXEEXT,;t t
19301 s,@OBJEXT@,$OBJEXT,;t t
19303 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19304 s,@PROG_EXT@,$PROG_EXT,;t t
19305 s,@LDCONFIG@,$LDCONFIG,;t t
19307 s,@CXXFLAGS@,$CXXFLAGS,;t t
19308 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19310 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19311 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19312 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19313 s,@LINT@,$LINT,;t t
19314 s,@LINT_OPTS@,$LINT_OPTS,;t t
19315 s,@LN_S@,$LN_S,;t t
19316 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19317 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
19318 s,@SET_MAKE@,$SET_MAKE,;t t
19319 s,@CTAGS@,$CTAGS,;t t
19320 s,@ETAGS@,$ETAGS,;t t
19321 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19322 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19323 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
19324 s,@RANLIB@,$RANLIB,;t t
19325 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19327 s,@ac_ct_LD@,$ac_ct_LD,;t t
19329 s,@ac_ct_AR@,$ac_ct_AR,;t t
19330 s,@ARFLAGS@,$ARFLAGS,;t t
19331 s,@DESTDIR@,$DESTDIR,;t t
19332 s,@BUILD_CC@,$BUILD_CC,;t t
19333 s,@BUILD_CPP@,$BUILD_CPP,;t t
19334 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19335 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19336 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19337 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
19338 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19339 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
19340 s,@cf_list_models@,$cf_list_models,;t t
19341 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
19342 s,@LIBTOOL@,$LIBTOOL,;t t
19343 s,@LT_UNDEF@,$LT_UNDEF,;t t
19344 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
19345 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19346 s,@LIB_CREATE@,$LIB_CREATE,;t t
19347 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
19348 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
19349 s,@LIB_PREP@,$LIB_PREP,;t t
19350 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19351 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19352 s,@LIB_LINK@,$LIB_LINK,;t t
19353 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
19354 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
19355 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
19356 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19357 s,@TICS_NAME@,$TICS_NAME,;t t
19358 s,@TINFO_NAME@,$TINFO_NAME,;t t
19359 s,@LIB_NAME@,$LIB_NAME,;t t
19360 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
19361 s,@CC_G_OPT@,$CC_G_OPT,;t t
19362 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
19363 s,@LD_MODEL@,$LD_MODEL,;t t
19364 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19365 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
19366 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19367 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
19368 s,@LINK_PROGS@,$LINK_PROGS,;t t
19369 s,@LINK_TESTS@,$LINK_TESTS,;t t
19370 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19371 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19372 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
19373 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
19374 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19375 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
19376 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
19377 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
19378 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
19379 s,@TERMINFO@,$TERMINFO,;t t
19380 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
19381 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
19382 s,@TERMPATH@,$TERMPATH,;t t
19383 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
19384 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
19385 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
19386 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
19387 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
19388 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
19389 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
19390 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
19391 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
19392 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
19393 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
19394 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
19395 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
19396 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
19397 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
19398 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
19399 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
19400 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
19401 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
19402 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
19403 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
19404 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
19405 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
19406 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
19407 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
19408 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
19409 s,@PTHREAD@,$PTHREAD,;t t
19410 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
19411 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
19412 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
19413 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
19414 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19415 s,@ECHO_LINK@,$ECHO_LINK,;t t
19416 s,@ADAFLAGS@,$ADAFLAGS,;t t
19417 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19418 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
19419 s,@ADA_TRACE@,$ADA_TRACE,;t t
19420 s,@MATH_LIB@,$MATH_LIB,;t t
19421 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
19422 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
19423 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
19424 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
19425 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
19426 s,@TEST_LIBS@,$TEST_LIBS,;t t
19427 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
19428 s,@CXXCPP@,$CXXCPP,;t t
19429 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
19430 s,@CXX_AR@,$CXX_AR,;t t
19431 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
19432 s,@CXXLIBS@,$CXXLIBS,;t t
19433 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
19434 s,@gnat_exists@,$gnat_exists,;t t
19435 s,@cf_compile_generics@,$cf_compile_generics,;t t
19436 s,@cf_generic_objects@,$cf_generic_objects,;t t
19437 s,@M4_exists@,$M4_exists,;t t
19438 s,@cf_ada_make@,$cf_ada_make,;t t
19439 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
19440 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
19441 s,@cf_ada_package@,$cf_ada_package,;t t
19442 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
19443 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
19444 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
19445 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
19446 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
19447 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
19448 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19449 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19450 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
19451 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
19452 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
19453 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
19454 s,@TICS_ARGS@,$TICS_ARGS,;t t
19455 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
19456 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
19457 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
19458 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
19459 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
19460 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19461 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19462 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
19463 s,@TICS_LIST@,$TICS_LIST,;t t
19464 s,@TINFO_LIST@,$TINFO_LIST,;t t
19465 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
19466 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
19467 s,@TEST_ARGS@,$TEST_ARGS,;t t
19468 s,@TEST_DEPS@,$TEST_DEPS,;t t
19469 s,@TEST_ARG2@,$TEST_ARG2,;t t
19470 s,@TEST_DEP2@,$TEST_DEP2,;t t
19471 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
19472 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
19473 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
19474 s,@NCURSES_COPY2@,$NCURSES_COPY2,;t t
19475 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
19476 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
19477 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
19478 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
19479 s,@cross_compiling@,$cross_compiling,;t t
19484 cat >>$CONFIG_STATUS <<\EOF
19485 # Split the substitutions into bite-sized pieces for seds with
19486 # small command number limits, like on Digital OSF/1 and HP-UX.
19487 ac_max_sed_lines=48
19488 ac_sed_frag=1 # Number of current file.
19489 ac_beg=1 # First line for current file.
19490 ac_end=$ac_max_sed_lines # Line after last line for current file.
19493 while $ac_more_lines; do
19494 if test $ac_beg -gt 1; then
19495 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19497 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19499 if test ! -s $tmp/subs.frag; then
19500 ac_more_lines=false
19502 # The purpose of the label and of the branching condition is to
19503 # speed up the sed processing (if there are no `@' at all, there
19504 # is no need to browse any of the substitutions).
19505 # These are the two extra sed commands mentioned above.
19507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19508 if test -z "$ac_sed_cmds"; then
19509 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19511 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19513 ac_sed_frag=`expr $ac_sed_frag + 1`
19515 ac_end=`expr $ac_end + $ac_max_sed_lines`
19518 if test -z "$ac_sed_cmds"; then
19521 fi # test -n "$CONFIG_FILES"
19524 cat >>$CONFIG_STATUS <<\EOF
19525 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19528 - | *:- | *:-:* ) # input from stdin
19530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19534 * ) ac_file_in=$ac_file.in ;;
19537 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19538 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19539 X"$ac_file" : 'X\(//\)[^/]' \| \
19540 X"$ac_file" : 'X\(//\)$' \| \
19541 X"$ac_file" : 'X\(/\)' \| \
19542 . : '\(.\)' 2>/dev/null ||
19544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19546 /^X\(\/\/\)$/{ s//\1/; q; }
19547 /^X\(\/\).*/{ s//\1/; q; }
19549 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19550 { case "$ac_dir" in
19551 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19555 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19556 case $as_mkdir_dir in
19557 # Skip DOS drivespec
19558 ?:) as_incr_dir=$as_mkdir_dir ;;
19560 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19561 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19566 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19567 # A "../" for each directory in $ac_dir_suffix.
19568 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19570 ac_dir_suffix= ac_dots=
19575 if test -z "$ac_dots"; then
19578 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19580 [\\/]* | ?:[\\/]* )
19581 ac_srcdir=$srcdir$ac_dir_suffix;
19582 ac_top_srcdir=$srcdir ;;
19583 *) # Relative path.
19584 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19585 ac_top_srcdir=$ac_dots$srcdir ;;
19589 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19590 *) ac_INSTALL=$ac_dots$INSTALL ;;
19593 if test x"$ac_file" != x-; then
19594 { echo "$as_me:19594: creating $ac_file" >&5
19595 echo "$as_me: creating $ac_file" >&6;}
19598 # Let's still pretend it is `configure' which instantiates (i.e., don't
19599 # use $as_me), people would be surprised to read:
19600 # /* config.h. Generated automatically by config.status. */
19601 configure_input="Generated automatically from `echo $ac_file_in |
19602 sed 's,.*/,,'` by configure."
19604 # First look for the input files in the build tree, otherwise in the
19606 ac_file_inputs=`IFS=:
19607 for f in $ac_file_in; do
19609 -) echo $tmp/stdin ;;
19611 # Absolute (can't be DOS-style, as IFS=:)
19612 test -f "$f" || { { echo "$as_me:19612: error: cannot find input file: $f" >&5
19613 echo "$as_me: error: cannot find input file: $f" >&2;}
19614 { (exit 1); exit 1; }; }
19617 if test -f "$f"; then
19620 elif test -f "$srcdir/$f"; then
19625 { { echo "$as_me:19625: error: cannot find input file: $f" >&5
19626 echo "$as_me: error: cannot find input file: $f" >&2;}
19627 { (exit 1); exit 1; }; }
19630 done` || { (exit 1); exit 1; }
19632 cat >>$CONFIG_STATUS <<EOF
19636 cat >>$CONFIG_STATUS <<\EOF
19638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19639 s,@configure_input@,$configure_input,;t t
19640 s,@srcdir@,$ac_srcdir,;t t
19641 s,@top_srcdir@,$ac_top_srcdir,;t t
19642 s,@INSTALL@,$ac_INSTALL,;t t
19643 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19645 if test x"$ac_file" != x-; then
19646 mv $tmp/out $ac_file
19654 cat >>$CONFIG_STATUS <<\EOF
19657 # CONFIG_HEADER section.
19660 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19661 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19663 # ac_d sets the value in "#define NAME VALUE" lines.
19664 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19665 ac_dB='[ ].*$,\1#\2'
19668 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19669 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19670 ac_iB='\([ ]\),\1#\2define\3'
19673 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19674 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19675 ac_uB='$,\1#\2define\3'
19679 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19682 - | *:- | *:-:* ) # input from stdin
19684 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19686 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19688 * ) ac_file_in=$ac_file.in ;;
19691 test x"$ac_file" != x- && { echo "$as_me:19691: creating $ac_file" >&5
19692 echo "$as_me: creating $ac_file" >&6;}
19694 # First look for the input files in the build tree, otherwise in the
19696 ac_file_inputs=`IFS=:
19697 for f in $ac_file_in; do
19699 -) echo $tmp/stdin ;;
19701 # Absolute (can't be DOS-style, as IFS=:)
19702 test -f "$f" || { { echo "$as_me:19702: error: cannot find input file: $f" >&5
19703 echo "$as_me: error: cannot find input file: $f" >&2;}
19704 { (exit 1); exit 1; }; }
19707 if test -f "$f"; then
19710 elif test -f "$srcdir/$f"; then
19715 { { echo "$as_me:19715: error: cannot find input file: $f" >&5
19716 echo "$as_me: error: cannot find input file: $f" >&2;}
19717 { (exit 1); exit 1; }; }
19720 done` || { (exit 1); exit 1; }
19721 # Remove the trailing spaces.
19722 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19726 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19727 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19728 # be either 'cat' or 'sort'.
19729 cat confdefs.h | uniq >conftest.vals
19731 # Break up conftest.vals because some shells have a limit on
19732 # the size of here documents, and old seds have small limits too.
19734 rm -f conftest.tail
19735 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19736 while grep . conftest.vals >/dev/null
19738 # Write chunks of a limited-size here document to conftest.frag.
19739 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19740 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19741 echo 'CEOF' >> $CONFIG_STATUS
19742 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19743 rm -f conftest.vals
19744 mv conftest.tail conftest.vals
19746 rm -f conftest.vals
19748 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19750 echo ' cat >> conftest.edit <<CEOF
19751 /@DEFS@/r conftest.frag
19754 sed -f conftest.edit $tmp/in > $tmp/out
19756 mv $tmp/out $tmp/in
19757 rm -f conftest.edit conftest.frag
19758 ' >> $CONFIG_STATUS
19760 cat >>$CONFIG_STATUS <<\EOF
19761 # Let's still pretend it is `configure' which instantiates (i.e., don't
19762 # use $as_me), people would be surprised to read:
19763 # /* config.h. Generated automatically by config.status. */
19764 if test x"$ac_file" = x-; then
19765 echo "/* Generated automatically by configure. */" >$tmp/config.h
19767 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19769 cat $tmp/in >>$tmp/config.h
19771 if test x"$ac_file" != x-; then
19772 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19773 { echo "$as_me:19773: $ac_file is unchanged" >&5
19774 echo "$as_me: $ac_file is unchanged" >&6;}
19776 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19777 X"$ac_file" : 'X\(//\)[^/]' \| \
19778 X"$ac_file" : 'X\(//\)$' \| \
19779 X"$ac_file" : 'X\(/\)' \| \
19780 . : '\(.\)' 2>/dev/null ||
19782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19784 /^X\(\/\/\)$/{ s//\1/; q; }
19785 /^X\(\/\).*/{ s//\1/; q; }
19787 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19788 { case "$ac_dir" in
19789 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19793 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19794 case $as_mkdir_dir in
19795 # Skip DOS drivespec
19796 ?:) as_incr_dir=$as_mkdir_dir ;;
19798 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19799 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19806 mv $tmp/config.h $ac_file
19810 rm -f $tmp/config.h
19814 cat >>$CONFIG_STATUS <<\EOF
19816 # CONFIG_COMMANDS section.
19818 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19819 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19820 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19827 if test ! -d $srcdir/$cf_dir; then
19829 elif test -f $srcdir/$cf_dir/programs; then
19830 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
19834 case $cf_cv_system_name in #(vi
19838 *) LIB_PREFIX='lib'
19841 cf_prefix=$LIB_PREFIX
19843 if test $cf_cv_shlib_version = cygdll ; then
19844 TINFO_NAME=$TINFO_ARG_SUFFIX
19848 for cf_dir in $SRC_SUBDIRS
19850 if test ! -d $srcdir/$cf_dir ; then
19852 elif test -f $srcdir/$cf_dir/modules; then
19856 for cf_item in $cf_LIST_MODELS
19859 case $cf_item in #(vi
19862 cf_depsuf=$cf_suffix
19866 cf_depsuf=$cf_suffix
19870 cf_depsuf=$cf_suffix
19874 cf_depsuf=$cf_suffix
19877 case $cf_cv_system_name in
19880 cf_depsuf=$cf_suffix
19888 cf_depsuf=$cf_suffix
19894 cf_depsuf=$cf_suffix
19898 cf_depsuf=$cf_suffix
19903 cf_depsuf=$cf_suffix
19907 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
19908 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
19910 if test $cf_item = shared ; then
19911 if test "$cf_cv_do_symlinks" = yes ; then
19912 case "$cf_cv_shlib_version" in #(vi
19914 case "$cf_cv_system_name" in #(vi
19916 case .${LIB_SUFFIX} in
19918 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
19919 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
19922 cf_suffix='.${REL_VERSION}'"$cf_suffix"
19926 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
19930 case "$cf_cv_system_name" in #(vi
19932 case .${LIB_SUFFIX} in
19934 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
19935 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
19938 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
19942 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
19947 # cygwin needs import library, and has unique naming convention
19948 # use autodetected ${cf_prefix} for import lib and static lib, but
19949 # use 'cyg' prefix for shared lib.
19950 if test $cf_cv_shlib_version = cygdll ; then
19951 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
19952 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
19956 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
19959 if test $cf_dir = ncurses ; then
19960 cf_subsets="$LIB_SUBSETS"
19961 cf_r_parts="$cf_subsets"
19962 cf_liblist="$LIBS_TO_MAKE"
19964 while test -n "$cf_r_parts"
19966 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
19967 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
19968 if test "$cf_l_parts" != "$cf_r_parts" ; then
19970 case $cf_l_parts in #(vi
19972 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
19975 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
19981 if test -n "$cf_item"; then
19982 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
19989 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
19992 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
19993 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
19994 $cf_dir/Makefile >$cf_dir/Makefile.out
19995 mv $cf_dir/Makefile.out $cf_dir/Makefile
19997 $AWK -f $srcdir/mk-0th.awk \
19998 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
19999 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20001 for cf_subset in $cf_subsets
20004 for cf_item in $cf_LIST_MODELS
20006 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
20008 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20010 case $cf_item in #(vi
20013 cf_depsuf=$cf_suffix
20017 cf_depsuf=$cf_suffix
20021 cf_depsuf=$cf_suffix
20025 cf_depsuf=$cf_suffix
20028 case $cf_cv_system_name in
20031 cf_depsuf=$cf_suffix
20039 cf_depsuf=$cf_suffix
20045 cf_depsuf=$cf_suffix
20049 cf_depsuf=$cf_suffix
20054 cf_depsuf=$cf_suffix
20058 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20059 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20062 libtool) cf_subdir='obj_lo' ;;
20063 normal) cf_subdir='objects' ;;
20064 debug) cf_subdir='obj_g' ;;
20065 profile) cf_subdir='obj_p' ;;
20067 case $cf_cv_system_name in #(vi
20069 cf_subdir='objects' ;;
20071 cf_subdir='obj_s' ;;
20075 # Test for case where we build libtinfo with a different name.
20077 if test $cf_dir = ncurses ; then
20080 cf_libname=${cf_libname}$LIB_SUFFIX
20083 cf_libname=$TINFO_LIB_SUFFIX
20086 cf_libname=$TICS_LIB_SUFFIX
20090 cf_libname=${cf_libname}$LIB_SUFFIX
20092 if test -n "${DFT_ARG_SUFFIX}" ; then
20093 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
20094 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
20097 # These dependencies really are for development, not
20098 # builds, but they are useful in porting, too.
20099 cf_depend="../include/ncurses_cfg.h"
20100 if test "$srcdir" = "."; then
20103 cf_reldir="\${srcdir}"
20106 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
20107 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
20108 elif test -f $srcdir/$cf_dir/curses.priv.h; then
20109 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
20113 old_cf_suffix="$cf_suffix"
20114 if test "$cf_cv_shlib_version_infix" = yes ; then
20115 if test -n "$LIB_SUFFIX" ; then
20116 case $LIB_SUFFIX in
20118 cf_libname=`echo $cf_libname | sed 's/w$//'`
20119 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20126 $AWK -f $srcdir/mk-1st.awk \
20127 name=${cf_libname}${cf_dir_suffix} \
20128 traces=$LIB_TRACING \
20131 prefix=$cf_prefix \
20132 suffix=$cf_suffix \
20133 subset=$cf_subset \
20134 TermlibRoot=$TINFO_NAME \
20135 TermlibSuffix=$TINFO_SUFFIX \
20136 ShlibVer=$cf_cv_shlib_version \
20137 ShlibVerInfix=$cf_cv_shlib_version_infix \
20138 ReLink=${cf_cv_do_relink-no} \
20139 DoLinks=$cf_cv_do_symlinks \
20140 rmSoLocs=$cf_cv_rm_so_locs \
20141 ldconfig="$LDCONFIG" \
20142 overwrite=$WITH_OVERWRITE \
20143 depend="$cf_depend" \
20145 libtool_version="$LIBTOOL_VERSION" \
20146 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20148 cf_suffix="$old_cf_suffix"
20150 for cf_subdir2 in $cf_subdirs lib
20152 test $cf_subdir = $cf_subdir2 && break
20154 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
20155 $AWK -f $srcdir/mk-2nd.awk \
20157 traces=$LIB_TRACING \
20160 subset=$cf_subset \
20163 crenames=$cf_cv_prog_CC_c_o \
20164 cxxrenames=$cf_cv_prog_CXX_c_o \
20165 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20166 cf_subdirs="$cf_subdirs $cf_subdir"
20171 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
20174 for cf_dir in $SRC_SUBDIRS
20176 if test ! -d $srcdir/$cf_dir ; then
20180 if test -f $cf_dir/Makefile ; then
20183 echo 'libs \' >> Makefile
20184 echo 'install.libs \' >> Makefile
20185 echo 'uninstall.libs ::' >> Makefile
20186 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
20191 if test -f $srcdir/$cf_dir/modules; then
20193 if test -f $srcdir/$cf_dir/headers; then
20194 cat >> Makefile <<CF_EOF
20195 install.includes \\
20196 uninstall.includes \\
20199 if test "$cf_dir" != "c++" ; then
20200 echo 'lint \' >> Makefile
20202 cat >> Makefile <<CF_EOF
20208 uninstall.$cf_dir ::
20209 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20211 elif test -f $srcdir/$cf_dir/headers; then
20212 cat >> Makefile <<CF_EOF
20217 install.includes \\
20218 uninstall.includes ::
20219 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20224 cat >> Makefile <<CF_EOF
20226 install.libs uninstall.libs \\
20227 install.data uninstall.data ::
20228 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
20231 if test "x$cf_with_manpages" = xyes; then
20232 cat >> Makefile <<CF_EOF
20236 cd man && \${MAKE} \${CF_MFLAGS} \$@
20240 cat >> Makefile <<CF_EOF
20243 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
20244 rm -f headers.sh headers.sed mk_shared_lib.sh
20245 rm -f edit_man.* man_alias.*
20246 rm -rf \${DIRS_TO_MAKE}
20249 # Special case: tack's manpage lives in its own directory.
20250 if test "x$cf_with_manpages" = xyes; then
20251 if test -d tack ; then
20252 if test -f $srcdir/$tack.h; then
20253 cat >> Makefile <<CF_EOF
20257 cd tack && \${MAKE} \${CF_MFLAGS} \$@
20263 rm -f headers.sed headers.sh
20265 echo creating headers.sh
20266 cat >headers.sh <<CF_EOF
20268 # This shell script is generated by the 'configure' script. It is invoked in a
20269 # subdirectory of the build tree. It generates a sed-script in the parent
20270 # directory that is used to adjust includes for header files that reside in a
20271 # subdirectory of /usr/include, etc.
20273 while test \$# != 3
20275 PRG="\$PRG \$1"; shift
20280 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
20281 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
20282 echo installing \$SRC in \$DST
20285 if test $WITH_CURSES_H = yes; then
20286 cat >>headers.sh <<CF_EOF
20289 END=\`basename \$DST\`
20290 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
20292 NAME=\`basename \$i\`
20293 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
20297 echo "" >> \$TMPSED
20303 cat >>headers.sh <<CF_EOF
20306 END=\`basename \$DST\`
20307 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
20309 NAME=\`basename \$i\`
20310 if test "\$NAME" = "curses.h"
20312 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
20315 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
20319 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
20324 cat >>headers.sh <<CF_EOF
20326 sed -f \$TMPSED \$SRC > \$TMPSRC
20327 NAME=\`basename \$SRC\`
20329 if test $WITH_CURSES_H != yes; then
20330 cat >>headers.sh <<CF_EOF
20331 test "\$NAME" = "curses.h" && NAME=ncurses.h
20334 cat >>headers.sh <<CF_EOF
20335 # Just in case someone gzip'd manpages, remove the conflicting copy.
20336 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
20338 eval \$PRG \$TMPSRC \$DST/\$NAME
20339 rm -f \$TMPSRC \$TMPSED
20342 chmod 0755 headers.sh
20344 for cf_dir in $SRC_SUBDIRS
20346 if test ! -d $srcdir/$cf_dir ; then
20350 if test -f $srcdir/$cf_dir/headers; then
20351 $AWK -f $srcdir/mk-hdr.awk \
20352 subset="$LIB_SUBSETS" \
20353 compat="$WITH_CURSES_H" \
20354 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
20357 if test -f $srcdir/$cf_dir/modules; then
20358 if test "$cf_dir" != "c++" ; then
20359 cat >>$cf_dir/Makefile <<"CF_EOF"
20360 depend : ${AUTO_SRC}
20361 makedepend -- ${CPPFLAGS} -- ${C_SRC}
20363 # DO NOT DELETE THIS LINE -- make depend depends on it.
20374 cat >>$CONFIG_STATUS <<\EOF
20376 { (exit 0); exit 0; }
20378 chmod +x $CONFIG_STATUS
20379 ac_clean_files=$ac_clean_files_save
20381 # configure is writing to config.log, and then calls config.status.
20382 # config.status does its own redirection, appending to config.log.
20383 # Unfortunately, on DOS this fails, as config.log is still kept open
20384 # by configure, so config.status won't be able to write to it; its
20385 # output is simply discarded. So we exec the FD to /dev/null,
20386 # effectively closing config.log, so it can be properly (re)opened and
20387 # appended to by config.status. When coming back to configure, we
20388 # need to make the FD available again.
20389 if test "$no_create" != yes; then
20392 $SHELL $CONFIG_STATUS || ac_cs_success=false
20394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20395 # would make configure fail if this is the last instruction.
20396 $ac_cs_success || { (exit 1); exit 1; }
20398 ${MAKE-make} preinstall