2 # From configure.in Revision: 1.549 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20120310.
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-ada suppress check for Ada95, don't build demo
698 --without-cxx do not adjust ncurses bool to match C++
699 --without-cxx-binding do not build C++ binding and demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-tests suppress build with test-programs
703 --without-curses-h install curses.h as ncurses.h only
704 --with-pkg-config{=path} enable/disable use of pkg-config
705 --with-pkg-config-libdir=XXX use given directory for installing pc-files
706 --enable-pc-files generate and install .pc files for pkg-config
707 --enable-mixed-case tic should assume mixed-case filenames
708 --with-install-prefix prefixes actual install-location ($DESTDIR)
709 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
710 --with-build-cc=XXX the build C compiler ($BUILD_CC)
711 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
712 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
713 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
714 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
715 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
716 Options to Specify the Libraries Built/Used:
717 --disable-libtool-version enable to use libtool's incompatible naming scheme
718 --with-libtool generate libraries with libtool
719 --with-shared generate shared-libraries
720 --with-normal generate normal-libraries (default)
721 --with-debug generate debug-libraries (default)
722 --with-profile generate profile-libraries
723 --with-lib-prefix override library-prefix
724 --with-termlib generate separate terminfo library
725 --with-ticlib generate separate tic library
726 --with-gpm use Alessandro Rubini's GPM library
727 --without-dlsym do not use dlsym() to load GPM dynamically
728 --with-sysmouse use sysmouse (FreeBSD console)
729 --enable-rpath use rpath option when generating shared libraries
730 --disable-relink relink shared libraries during install
731 --with-shlib-version=X Specify rel or abi version for shared libs
732 --disable-rpath-hack don't add rpath options for additional libraries
733 Fine-Tuning Your Configuration:
734 --disable-overwrite leave out the link to -lcurses
735 --disable-database do not use terminfo, only fallbacks/termcap
736 --with-database=XXX specify terminfo source to install
737 --with-hashed-db specify hashed-database library
738 --with-fallbacks=XXX specify list of fallback terminal descriptions
739 --without-xterm-new specify if xterm terminfo should be old version
740 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
741 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
742 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
743 --disable-big-core assume machine has little memory
744 --disable-big-strings assume compiler has only standard-size strings
745 --enable-termcap compile in termcap fallback support
746 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
747 --enable-getcap fast termcap load, no xrefs to terminfo
748 --enable-getcap-cache cache translated termcaps in ~/.terminfo
749 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
750 --disable-root-environ restrict environment when running as root
751 --enable-symlinks make tic use symbolic links not hard links
752 --enable-broken_linker compile with broken-linker support code
753 --enable-bsdpad recognize BSD-style prefix padding
754 --enable-widec compile with wide-char/UTF-8 code
755 --disable-lp64 allow chtype to be long (ignore _LP64)
756 --disable-largefile omit support for large files
757 --disable-tparm-varargs compile tparm() without varargs interface
758 --disable-tic-depends link tic library without explicit dependency on ncurses library
759 --with-bool=TYPE override fallback type of bool variable
760 --with-caps=alt compile with alternate Caps file
761 --with-chtype=TYPE override type of chtype
762 --with-ospeed=TYPE override type of ospeed variable
763 --with-mmask-t=TYPE override type of mmask_t
764 --with-ccharw-max=XXX override size CCHARW_MAX
765 --with-tparm-arg=TYPE override parameter type of tparm
766 --with-rcs-ids compile-in RCS identifiers
767 Options to Specify How Manpages are Installed:
768 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
769 optionally formatted/catonly, e.g., gzip,formatted
770 --with-manpage-renames specify manpage-renaming
771 --with-manpage-aliases specify manpage-aliases using .so
772 --with-manpage-symlinks specify manpage-aliases using symlinks
773 --with-manpage-tbl specify manpage processing with tbl
775 --disable-ext-funcs disable function-extensions
776 --enable-sp-funcs enable experimental SCREEN-extensions
777 --enable-term-driver enable experimental terminal-driver
778 --enable-const compile with extra/non-standard const
779 --enable-ext-colors compile for 256-color support
780 --enable-ext-mouse compile for extended mouse-encoding
781 --enable-no-padding compile with $NCURSES_NO_PADDING code
782 --enable-signed-char compile using signed Boolean's in term.h
783 --enable-sigwinch compile with SIGWINCH handler
784 --enable-tcap-names compile with user-definable terminal capabilities
786 --without-develop disable development options
787 --enable-hard-tabs compile with hard-tabs code
788 --enable-xmc-glitch compile with support for xmc (magic-cookie)
790 --disable-assumed-color do not assume anything about default-colors
791 --disable-hashmap compile without hashmap scrolling-optimization
792 --enable-colorfgbg compile-in experimental $COLORFGBG code
793 --enable-interop compile-in experimental interop bindings
794 --with-pthread use POSIX thread library
795 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
796 --enable-weak-symbols enable weak-symbols for pthreads
797 --enable-reentrant compile with experimental reentrant code
798 --with-wrap-prefix=XXX override prefix used for public variables
799 --enable-safe-sprintf compile with experimental safe-sprintf code
800 --disable-scroll-hints compile without scroll-hints code
801 --enable-wgetch-events compile with experimental wgetch-events code
802 Testing/development Options:
803 --disable-echo display "compiling" commands
804 --enable-warnings build: turn on GCC compiler warnings
805 --enable-string-hacks work around bogus compiler/loader warnings
806 --enable-assertions test: turn on generation of assertion code
807 --with-dmalloc test: use Gray Watson's dmalloc library
808 --with-dbmalloc test: use Conor Cahill's dbmalloc library
809 --with-valgrind test: use valgrind
810 --disable-leaks test: free permanent memory, analyze leaks
811 --enable-expanded test: generate functions for certain macros
812 --disable-macros test: use functions rather than macros
813 --with-trace test: add trace() function to all models of ncurses
814 Ada95 Binding Options:
815 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
816 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
817 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
818 --with-ada-sharedlib=XX build Ada95 shared-library
820 Some influential environment variables:
821 CC C compiler command
822 CFLAGS C compiler flags
823 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
824 nonstandard directory <lib dir>
825 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
826 headers in a nonstandard directory <include dir>
828 CXX C++ compiler command
829 CXXFLAGS C++ compiler flags
830 CXXCPP C++ preprocessor
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
838 if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
841 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
843 # A "../" for each directory in /$ac_subdir.
844 ac_dots=`echo $ac_subdir |
845 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
848 .) # No --srcdir option. We are building in place.
849 ac_sub_srcdir=$srcdir ;;
850 [\\/]* | ?:[\\/]* ) # Absolute path.
851 ac_sub_srcdir=$srcdir/$ac_subdir ;;
853 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
856 # Check for guested configure; otherwise get Cygnus style configure.
857 if test -f $ac_sub_srcdir/configure.gnu; then
859 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
860 elif test -f $ac_sub_srcdir/configure; then
862 $SHELL $ac_sub_srcdir/configure --help=recursive
863 elif test -f $ac_sub_srcdir/configure.ac ||
864 test -f $ac_sub_srcdir/configure.in; then
868 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
874 test -n "$ac_init_help" && exit 0
875 if $ac_init_version; then
878 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
879 Free Software Foundation, Inc.
880 This configure script is free software; the Free Software Foundation
881 gives unlimited permission to copy, distribute and modify it.
887 This file contains any messages produced by compilers while
888 running configure, to aid debugging if configure makes a mistake.
890 It was created by $as_me, which was
891 generated by GNU Autoconf 2.52.20120310. Invocation command line was
902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
914 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
931 # Keep a trace of the command line.
932 # Strip out --no-create and --no-recursion so they do not pile up.
933 # Also quote any args containing shell meta-characters.
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c) ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
947 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
950 # Get rid of the leading space.
953 # When interrupted or exit'd, cleanup temporary files, and complete
954 # config.log. We remove comments because anyway the quotes in there
955 # would cause problems or look ugly.
957 # Save into config.log some information that might help in debugging.
959 echo "## ----------------- ##" >&5
960 echo "## Cache variables. ##" >&5
961 echo "## ----------------- ##" >&5
963 # The following way of writing the cache mishandles newlines in values,
966 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
969 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
978 sed "/^$/d" confdefs.h >conftest.log
979 if test -s conftest.log; then
981 echo "## ------------ ##" >&5
982 echo "## confdefs.h. ##" >&5
983 echo "## ------------ ##" >&5
988 test "$ac_signal" != 0 &&
989 echo "$as_me: caught signal $ac_signal" >&5
990 echo "$as_me: exit $exit_status" >&5
991 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
994 for ac_signal in 1 2 13 15; do
995 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
999 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1000 rm -rf conftest* confdefs.h
1001 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1004 # Let the site file select an alternate cache file if it wants to.
1005 # Prefer explicitly selected file to automatically selected ones.
1006 if test -z "$CONFIG_SITE"; then
1007 if test "x$prefix" != xNONE; then
1008 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1010 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1013 for ac_site_file in $CONFIG_SITE; do
1014 if test -r "$ac_site_file"; then
1015 { echo "$as_me:1015: loading site script $ac_site_file" >&5
1016 echo "$as_me: loading site script $ac_site_file" >&6;}
1017 cat "$ac_site_file" >&5
1022 if test -r "$cache_file"; then
1023 # Some versions of bash will fail to source /dev/null (special
1024 # files actually), so we avoid doing that.
1025 if test -f "$cache_file"; then
1026 { echo "$as_me:1026: loading cache $cache_file" >&5
1027 echo "$as_me: loading cache $cache_file" >&6;}
1029 [\\/]* | ?:[\\/]* ) . $cache_file;;
1030 *) . ./$cache_file;;
1034 { echo "$as_me:1034: creating cache $cache_file" >&5
1035 echo "$as_me: creating cache $cache_file" >&6;}
1039 # Check that the precious variables saved in the cache have kept the same
1041 ac_cache_corrupted=false
1042 for ac_var in `(set) 2>&1 |
1043 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1044 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1045 eval ac_new_set=\$ac_env_${ac_var}_set
1046 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1047 eval ac_new_val="\$ac_env_${ac_var}_value"
1048 case $ac_old_set,$ac_new_set in
1050 { echo "$as_me:1050: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1051 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1054 { echo "$as_me:1054: error: \`$ac_var' was not set in the previous run" >&5
1055 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1056 ac_cache_corrupted=: ;;
1059 if test "x$ac_old_val" != "x$ac_new_val"; then
1060 { echo "$as_me:1060: error: \`$ac_var' has changed since the previous run:" >&5
1061 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1062 { echo "$as_me:1062: former value: $ac_old_val" >&5
1063 echo "$as_me: former value: $ac_old_val" >&2;}
1064 { echo "$as_me:1064: current value: $ac_new_val" >&5
1065 echo "$as_me: current value: $ac_new_val" >&2;}
1066 ac_cache_corrupted=:
1069 # Pass precious variables to config.status. It doesn't matter if
1070 # we pass some twice (in addition to the command line arguments).
1071 if test "$ac_new_set" = set; then
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1075 ac_configure_args="$ac_configure_args '$ac_arg'"
1077 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1082 if $ac_cache_corrupted; then
1083 { echo "$as_me:1083: error: changes in the environment can compromise the build" >&5
1084 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1085 { { echo "$as_me:1085: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1086 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1087 { (exit 1); exit 1; }; }
1091 ac_cpp='$CPP $CPPFLAGS'
1092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1095 ac_main_return=return
1097 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1098 *c*,-n*) ECHO_N= ECHO_C='
1100 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1101 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1103 echo "#! $SHELL" >conftest.sh
1104 echo "exit 0" >>conftest.sh
1105 chmod +x conftest.sh
1106 if { (echo "$as_me:1106: PATH=\".;.\"; conftest.sh") >&5
1107 (PATH=".;."; conftest.sh) 2>&5
1109 echo "$as_me:1109: \$? = $ac_status" >&5
1110 (exit $ac_status); }; then
1111 ac_path_separator=';'
1115 PATH_SEPARATOR="$ac_path_separator"
1118 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1122 echo "$as_me:1122: checking for egrep" >&5
1123 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1124 if test "${ac_cv_prog_egrep+set}" = set; then
1125 echo $ECHO_N "(cached) $ECHO_C" >&6
1127 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1128 then ac_cv_prog_egrep='grep -E'
1129 else ac_cv_prog_egrep='egrep'
1132 echo "$as_me:1132: result: $ac_cv_prog_egrep" >&5
1133 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1134 EGREP=$ac_cv_prog_egrep
1136 test -z "$EGREP" && { { echo "$as_me:1136: error: No egrep program found" >&5
1137 echo "$as_me: error: No egrep program found" >&2;}
1138 { (exit 1); exit 1; }; }
1140 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1141 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1142 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1143 cf_cv_abi_version=${NCURSES_MAJOR}
1144 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1145 cf_cv_timestamp=`date`
1146 echo "$as_me:1146: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1147 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1149 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1151 # Check whether --with-rel-version or --without-rel-version was given.
1152 if test "${with_rel_version+set}" = set; then
1153 withval="$with_rel_version"
1154 { echo "$as_me:1154: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1155 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1156 cf_cv_rel_version=$withval
1159 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1160 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1162 if test -n "$NCURSES_MAJOR" ; then
1163 case $NCURSES_MAJOR in #(vi
1167 { { echo "$as_me:1167: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1168 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1169 { (exit 1); exit 1; }; }
1173 { { echo "$as_me:1173: error: Release major-version value is empty" >&5
1174 echo "$as_me: error: Release major-version value is empty" >&2;}
1175 { (exit 1); exit 1; }; }
1178 if test -n "$NCURSES_MINOR" ; then
1179 case $NCURSES_MINOR in #(vi
1183 { { echo "$as_me:1183: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1184 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1185 { (exit 1); exit 1; }; }
1189 { { echo "$as_me:1189: error: Release minor-version value is empty" >&5
1190 echo "$as_me: error: Release minor-version value is empty" >&2;}
1191 { (exit 1); exit 1; }; }
1194 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1196 # Check whether --with-abi-version or --without-abi-version was given.
1197 if test "${with_abi_version+set}" = set; then
1198 withval="$with_abi_version"
1199 { echo "$as_me:1199: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1200 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1201 cf_cv_abi_version=$withval
1204 if test -n "$cf_cv_abi_version" ; then
1205 case $cf_cv_abi_version in #(vi
1209 { { echo "$as_me:1209: error: ABI version is not a number: $cf_cv_abi_version" >&5
1210 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1211 { (exit 1); exit 1; }; }
1215 { { echo "$as_me:1215: error: ABI version value is empty" >&5
1216 echo "$as_me: error: ABI version value is empty" >&2;}
1217 { (exit 1); exit 1; }; }
1221 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222 if test -f $ac_dir/install-sh; then
1224 ac_install_sh="$ac_aux_dir/install-sh -c"
1226 elif test -f $ac_dir/install.sh; then
1228 ac_install_sh="$ac_aux_dir/install.sh -c"
1230 elif test -f $ac_dir/shtool; then
1232 ac_install_sh="$ac_aux_dir/shtool install -c"
1236 if test -z "$ac_aux_dir"; then
1237 { { echo "$as_me:1237: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1238 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1239 { (exit 1); exit 1; }; }
1241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1243 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1245 # Make sure we can run config.sub.
1246 $ac_config_sub sun4 >/dev/null 2>&1 ||
1247 { { echo "$as_me:1247: error: cannot run $ac_config_sub" >&5
1248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1249 { (exit 1); exit 1; }; }
1251 echo "$as_me:1251: checking build system type" >&5
1252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1253 if test "${ac_cv_build+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 ac_cv_build_alias=$build_alias
1257 test -z "$ac_cv_build_alias" &&
1258 ac_cv_build_alias=`$ac_config_guess`
1259 test -z "$ac_cv_build_alias" &&
1260 { { echo "$as_me:1260: error: cannot guess build type; you must specify one" >&5
1261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1262 { (exit 1); exit 1; }; }
1263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1264 { { echo "$as_me:1264: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1266 { (exit 1); exit 1; }; }
1269 echo "$as_me:1269: result: $ac_cv_build" >&5
1270 echo "${ECHO_T}$ac_cv_build" >&6
1272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1276 echo "$as_me:1276: checking host system type" >&5
1277 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1278 if test "${ac_cv_host+set}" = set; then
1279 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 ac_cv_host_alias=$host_alias
1282 test -z "$ac_cv_host_alias" &&
1283 ac_cv_host_alias=$ac_cv_build_alias
1284 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1285 { { echo "$as_me:1285: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1286 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1287 { (exit 1); exit 1; }; }
1290 echo "$as_me:1290: result: $ac_cv_host" >&5
1291 echo "${ECHO_T}$ac_cv_host" >&6
1293 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1294 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1295 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1298 echo "$as_me:1298: checking target system type" >&5
1299 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1300 if test "${ac_cv_target+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_target_alias=$target_alias
1304 test "x$ac_cv_target_alias" = "x" &&
1305 ac_cv_target_alias=$ac_cv_host_alias
1306 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_target" >&5
1313 echo "${ECHO_T}$ac_cv_target" >&6
1314 target=$ac_cv_target
1315 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 # The aliases save the names the user supplied, while $host etc.
1320 # will get canonicalized.
1321 test -n "$target_alias" &&
1322 test "$program_prefix$program_suffix$program_transform_name" = \
1324 program_prefix=${target_alias}-
1325 system_name="$host_os"
1327 system_name="`(uname -s -r) 2>/dev/null`"
1328 if test -z "$system_name" ; then
1329 system_name="`(hostname) 2>/dev/null`"
1332 test -n "$system_name" && cat >>confdefs.h <<EOF
1333 #define SYSTEM_NAME "$system_name"
1336 if test "${cf_cv_system_name+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 cf_cv_system_name="$system_name"
1342 test -z "$system_name" && system_name="$cf_cv_system_name"
1343 test -n "$cf_cv_system_name" && echo "$as_me:1343: result: Configuring for $cf_cv_system_name" >&5
1344 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1346 if test ".$system_name" != ".$cf_cv_system_name" ; then
1347 echo "$as_me:1347: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1348 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1349 { { echo "$as_me:1349: error: \"Please remove config.cache and try again.\"" >&5
1350 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1351 { (exit 1); exit 1; }; }
1354 # Check whether --with-system-type or --without-system-type was given.
1355 if test "${with_system_type+set}" = set; then
1356 withval="$with_system_type"
1357 { echo "$as_me:1357: WARNING: overriding system type to $withval" >&5
1358 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1359 cf_cv_system_name=$withval
1362 ### Save the given $CFLAGS to allow user-override.
1363 cf_user_CFLAGS="$CFLAGS"
1365 ### Default install-location
1367 echo "$as_me:1367: checking for prefix" >&5
1368 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1369 if test "x$prefix" = "xNONE" ; then
1370 case "$cf_cv_system_name" in
1371 # non-vendor systems don't have a conflict
1372 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1375 *) prefix=$ac_default_prefix
1379 echo "$as_me:1379: result: $prefix" >&5
1380 echo "${ECHO_T}$prefix" >&6
1382 if test "x$prefix" = "xNONE" ; then
1383 echo "$as_me:1383: checking for default include-directory" >&5
1384 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1385 test -n "$verbose" && echo 1>&6
1388 $includedir/ncurses \
1390 $prefix/include/ncurses \
1391 /usr/local/include \
1392 /usr/local/include/ncurses \
1394 /usr/include/ncurses
1396 cf_dir=`eval echo $cf_symbol`
1397 if test -f $cf_dir/curses.h ; then
1398 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1399 includedir="$cf_symbol"
1400 test -n "$verbose" && echo $ac_n " found " 1>&6
1404 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1406 echo "$as_me:1406: result: $includedir" >&5
1407 echo "${ECHO_T}$includedir" >&6
1410 ### Checks for programs.
1412 # Check whether --with-ada or --without-ada was given.
1413 if test "${with_ada+set}" = set; then
1415 cf_with_ada=$withval
1419 if test x"$cf_with_ada" = xyes
1421 cf_PROG_CC="gnatgcc gcc cc"
1427 ac_cpp='$CPP $CPPFLAGS'
1428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1431 ac_main_return=return
1432 if test -n "$ac_tool_prefix"; then
1433 for ac_prog in $cf_PROG_CC
1435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1437 echo "$as_me:1437: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 ac_save_IFS=$IFS; IFS=$ac_path_separator
1447 for ac_dir in $ac_dummy; do
1449 test -z "$ac_dir" && ac_dir=.
1450 $as_executable_p "$ac_dir/$ac_word" || continue
1451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1452 echo "$as_me:1452: found $ac_dir/$ac_word" >&5
1459 if test -n "$CC"; then
1460 echo "$as_me:1460: result: $CC" >&5
1461 echo "${ECHO_T}$CC" >&6
1463 echo "$as_me:1463: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1467 test -n "$CC" && break
1470 if test -z "$CC"; then
1472 for ac_prog in $cf_PROG_CC
1474 # Extract the first word of "$ac_prog", so it can be a program name with args.
1475 set dummy $ac_prog; ac_word=$2
1476 echo "$as_me:1476: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 ac_save_IFS=$IFS; IFS=$ac_path_separator
1486 for ac_dir in $ac_dummy; do
1488 test -z "$ac_dir" && ac_dir=.
1489 $as_executable_p "$ac_dir/$ac_word" || continue
1490 ac_cv_prog_ac_ct_CC="$ac_prog"
1491 echo "$as_me:1491: found $ac_dir/$ac_word" >&5
1497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1498 if test -n "$ac_ct_CC"; then
1499 echo "$as_me:1499: result: $ac_ct_CC" >&5
1500 echo "${ECHO_T}$ac_ct_CC" >&6
1502 echo "$as_me:1502: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1506 test -n "$ac_ct_CC" && break
1512 test -z "$CC" && { { echo "$as_me:1512: error: no acceptable cc found in \$PATH" >&5
1513 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1514 { (exit 1); exit 1; }; }
1516 # Provide some information about the compiler.
1517 echo "$as_me:1517:" \
1518 "checking for C compiler version" >&5
1519 ac_compiler=`set X $ac_compile; echo $2`
1520 { (eval echo "$as_me:1520: \"$ac_compiler --version </dev/null >&5\"") >&5
1521 (eval $ac_compiler --version </dev/null >&5) 2>&5
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); }
1525 { (eval echo "$as_me:1525: \"$ac_compiler -v </dev/null >&5\"") >&5
1526 (eval $ac_compiler -v </dev/null >&5) 2>&5
1528 echo "$as_me:1528: \$? = $ac_status" >&5
1529 (exit $ac_status); }
1530 { (eval echo "$as_me:1530: \"$ac_compiler -V </dev/null >&5\"") >&5
1531 (eval $ac_compiler -V </dev/null >&5) 2>&5
1533 echo "$as_me:1533: \$? = $ac_status" >&5
1534 (exit $ac_status); }
1536 cat >conftest.$ac_ext <<_ACEOF
1537 #line 1537 "configure"
1538 #include "confdefs.h"
1548 ac_clean_files_save=$ac_clean_files
1549 ac_clean_files="$ac_clean_files a.out a.exe"
1550 # Try to create an executable without -o first, disregard a.out.
1551 # It will help us diagnose broken compilers, and finding out an intuition
1553 echo "$as_me:1553: checking for C compiler default output" >&5
1554 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1555 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1556 if { (eval echo "$as_me:1556: \"$ac_link_default\"") >&5
1557 (eval $ac_link_default) 2>&5
1559 echo "$as_me:1559: \$? = $ac_status" >&5
1560 (exit $ac_status); }; then
1561 # Find the output, starting from the most likely. This scheme is
1562 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1564 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1565 ls a.out conftest 2>/dev/null;
1566 ls a.* conftest.* 2>/dev/null`; do
1568 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1569 a.out ) # We found the default executable, but exeext='' is most
1572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1573 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1580 echo "$as_me: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1582 { { echo "$as_me:1582: error: C compiler cannot create executables" >&5
1583 echo "$as_me: error: C compiler cannot create executables" >&2;}
1584 { (exit 77); exit 77; }; }
1587 ac_exeext=$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_file" >&5
1589 echo "${ECHO_T}$ac_file" >&6
1591 # Check the compiler produces executables we can run. If not, either
1592 # the compiler is broken, or we cross compile.
1593 echo "$as_me:1593: checking whether the C compiler works" >&5
1594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1596 # If not cross compiling, check that we can run a simple program.
1597 if test "$cross_compiling" != yes; then
1598 if { ac_try='./$ac_file'
1599 { (eval echo "$as_me:1599: \"$ac_try\"") >&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; }; then
1606 if test "$cross_compiling" = maybe; then
1609 { { echo "$as_me:1609: error: cannot run C compiled programs.
1610 If you meant to cross compile, use \`--host'." >&5
1611 echo "$as_me: error: cannot run C compiled programs.
1612 If you meant to cross compile, use \`--host'." >&2;}
1613 { (exit 1); exit 1; }; }
1617 echo "$as_me:1617: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1620 rm -f a.out a.exe conftest$ac_cv_exeext
1621 ac_clean_files=$ac_clean_files_save
1622 # Check the compiler produces executables we can run. If not, either
1623 # the compiler is broken, or we cross compile.
1624 echo "$as_me:1624: checking whether we are cross compiling" >&5
1625 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1626 echo "$as_me:1626: result: $cross_compiling" >&5
1627 echo "${ECHO_T}$cross_compiling" >&6
1629 echo "$as_me:1629: checking for executable suffix" >&5
1630 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1631 if { (eval echo "$as_me:1631: \"$ac_link\"") >&5
1632 (eval $ac_link) 2>&5
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); }; then
1636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1637 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1638 # work properly (i.e., refer to `conftest.exe'), while it won't with
1640 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1642 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1650 { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5
1651 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1652 { (exit 1); exit 1; }; }
1655 rm -f conftest$ac_cv_exeext
1656 echo "$as_me:1656: result: $ac_cv_exeext" >&5
1657 echo "${ECHO_T}$ac_cv_exeext" >&6
1659 rm -f conftest.$ac_ext
1660 EXEEXT=$ac_cv_exeext
1662 echo "$as_me:1662: checking for object suffix" >&5
1663 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1664 if test "${ac_cv_objext+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1679 rm -f conftest.o conftest.obj
1680 if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1681 (eval $ac_compile) 2>&5
1683 echo "$as_me:1683: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1687 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1693 echo "$as_me: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 { { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5
1696 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1697 { (exit 1); exit 1; }; }
1700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1702 echo "$as_me:1702: result: $ac_cv_objext" >&5
1703 echo "${ECHO_T}$ac_cv_objext" >&6
1704 OBJEXT=$ac_cv_objext
1706 echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5
1707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line 1712 "configure"
1713 #include "confdefs.h"
1726 rm -f conftest.$ac_objext
1727 if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
1728 (eval $ac_compile) 2>&5
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); } &&
1732 { ac_try='test -s conftest.$ac_objext'
1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1740 echo "$as_me: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1744 rm -f conftest.$ac_objext conftest.$ac_ext
1745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1748 echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5
1749 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1750 GCC=`test $ac_compiler_gnu = yes && echo yes`
1751 ac_test_CFLAGS=${CFLAGS+set}
1752 ac_save_CFLAGS=$CFLAGS
1754 echo "$as_me:1754: checking whether $CC accepts -g" >&5
1755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1756 if test "${ac_cv_prog_cc_g+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 cat >conftest.$ac_ext <<_ACEOF
1760 #line 1760 "configure"
1761 #include "confdefs.h"
1771 rm -f conftest.$ac_objext
1772 if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
1773 (eval $ac_compile) 2>&5
1775 echo "$as_me:1775: \$? = $ac_status" >&5
1776 (exit $ac_status); } &&
1777 { ac_try='test -s conftest.$ac_objext'
1778 { (eval echo "$as_me:1778: \"$ac_try\"") >&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1785 echo "$as_me: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1789 rm -f conftest.$ac_objext conftest.$ac_ext
1791 echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5
1792 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1793 if test "$ac_test_CFLAGS" = set; then
1794 CFLAGS=$ac_save_CFLAGS
1795 elif test $ac_cv_prog_cc_g = yes; then
1796 if test "$GCC" = yes; then
1802 if test "$GCC" = yes; then
1808 # Some people use a C++ compiler to compile C. Since we use `exit',
1809 # in C++ we need to declare it. In case someone uses the same compiler
1810 # for both compiling C and C++ we need to have the C++ compiler decide
1811 # the declaration of exit, since it's the most demanding environment.
1812 cat >conftest.$ac_ext <<_ACEOF
1817 rm -f conftest.$ac_objext
1818 if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1829 for ac_declaration in \
1831 '#include <stdlib.h>' \
1832 'extern "C" void std::exit (int) throw (); using std::exit;' \
1833 'extern "C" void std::exit (int); using std::exit;' \
1834 'extern "C" void exit (int) throw ();' \
1835 'extern "C" void exit (int);' \
1838 cat >conftest.$ac_ext <<_ACEOF
1839 #line 1839 "configure"
1840 #include "confdefs.h"
1851 rm -f conftest.$ac_objext
1852 if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); } &&
1857 { ac_try='test -s conftest.$ac_objext'
1858 { (eval echo "$as_me:1858: \"$ac_try\"") >&5
1861 echo "$as_me:1861: \$? = $ac_status" >&5
1862 (exit $ac_status); }; }; then
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1869 rm -f conftest.$ac_objext conftest.$ac_ext
1870 cat >conftest.$ac_ext <<_ACEOF
1871 #line 1871 "configure"
1872 #include "confdefs.h"
1882 rm -f conftest.$ac_objext
1883 if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); } &&
1888 { ac_try='test -s conftest.$ac_objext'
1889 { (eval echo "$as_me:1889: \"$ac_try\"") >&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); }; }; then
1896 echo "$as_me: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 rm -f conftest.$ac_objext conftest.$ac_ext
1902 if test -n "$ac_declaration"; then
1903 echo '#ifdef __cplusplus' >>confdefs.h
1904 echo $ac_declaration >>confdefs.h
1905 echo '#endif' >>confdefs.h
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918 ac_main_return=return
1921 if test "$GCC" = yes ; then
1922 echo "$as_me:1922: checking version of $CC" >&5
1923 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1924 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1925 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1926 echo "$as_me:1926: result: $GCC_VERSION" >&5
1927 echo "${ECHO_T}$GCC_VERSION" >&6
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 ac_main_return=return
1936 echo "$as_me:1936: checking how to run the C preprocessor" >&5
1937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1938 # On Suns, sometimes $CPP names a directory.
1939 if test -n "$CPP" && test -d "$CPP"; then
1942 if test -z "$CPP"; then
1943 if test "${ac_cv_prog_CPP+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 # Double quotes because CPP needs to be expanded
1947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1950 for ac_c_preproc_warn_flag in '' yes
1952 # Use a header file that comes with gcc, so configuring glibc
1953 # with a fresh cross-compiler works.
1954 # On the NeXT, cc -E runs the code through the compiler's parser,
1955 # not just through cpp. "Syntax error" is here to catch this case.
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line 1957 "configure"
1958 #include "confdefs.h"
1962 if { (eval echo "$as_me:1962: \"$ac_cpp conftest.$ac_ext\"") >&5
1963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1965 egrep -v '^ *\+' conftest.er1 >conftest.err
1967 cat conftest.err >&5
1968 echo "$as_me:1968: \$? = $ac_status" >&5
1969 (exit $ac_status); } >/dev/null; then
1970 if test -s conftest.err; then
1971 ac_cpp_err=$ac_c_preproc_warn_flag
1978 if test -z "$ac_cpp_err"; then
1981 echo "$as_me: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1983 # Broken: fails on valid input.
1986 rm -f conftest.err conftest.$ac_ext
1988 # OK, works on sane cases. Now check whether non-existent headers
1989 # can be detected and how.
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line 1991 "configure"
1992 #include "confdefs.h"
1993 #include <ac_nonexistent.h>
1995 if { (eval echo "$as_me:1995: \"$ac_cpp conftest.$ac_ext\"") >&5
1996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1998 egrep -v '^ *\+' conftest.er1 >conftest.err
2000 cat conftest.err >&5
2001 echo "$as_me:2001: \$? = $ac_status" >&5
2002 (exit $ac_status); } >/dev/null; then
2003 if test -s conftest.err; then
2004 ac_cpp_err=$ac_c_preproc_warn_flag
2011 if test -z "$ac_cpp_err"; then
2012 # Broken: success on invalid input.
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 # Passes both tests.
2021 rm -f conftest.err conftest.$ac_ext
2024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2025 rm -f conftest.err conftest.$ac_ext
2026 if $ac_preproc_ok; then
2038 echo "$as_me:2038: result: $CPP" >&5
2039 echo "${ECHO_T}$CPP" >&6
2041 for ac_c_preproc_warn_flag in '' yes
2043 # Use a header file that comes with gcc, so configuring glibc
2044 # with a fresh cross-compiler works.
2045 # On the NeXT, cc -E runs the code through the compiler's parser,
2046 # not just through cpp. "Syntax error" is here to catch this case.
2047 cat >conftest.$ac_ext <<_ACEOF
2048 #line 2048 "configure"
2049 #include "confdefs.h"
2053 if { (eval echo "$as_me:2053: \"$ac_cpp conftest.$ac_ext\"") >&5
2054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2056 egrep -v '^ *\+' conftest.er1 >conftest.err
2058 cat conftest.err >&5
2059 echo "$as_me:2059: \$? = $ac_status" >&5
2060 (exit $ac_status); } >/dev/null; then
2061 if test -s conftest.err; then
2062 ac_cpp_err=$ac_c_preproc_warn_flag
2069 if test -z "$ac_cpp_err"; then
2072 echo "$as_me: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2074 # Broken: fails on valid input.
2077 rm -f conftest.err conftest.$ac_ext
2079 # OK, works on sane cases. Now check whether non-existent headers
2080 # can be detected and how.
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line 2082 "configure"
2083 #include "confdefs.h"
2084 #include <ac_nonexistent.h>
2086 if { (eval echo "$as_me:2086: \"$ac_cpp conftest.$ac_ext\"") >&5
2087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2089 egrep -v '^ *\+' conftest.er1 >conftest.err
2091 cat conftest.err >&5
2092 echo "$as_me:2092: \$? = $ac_status" >&5
2093 (exit $ac_status); } >/dev/null; then
2094 if test -s conftest.err; then
2095 ac_cpp_err=$ac_c_preproc_warn_flag
2102 if test -z "$ac_cpp_err"; then
2103 # Broken: success on invalid input.
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 # Passes both tests.
2112 rm -f conftest.err conftest.$ac_ext
2115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2116 rm -f conftest.err conftest.$ac_ext
2117 if $ac_preproc_ok; then
2120 { { echo "$as_me:2120: error: C preprocessor \"$CPP\" fails sanity check" >&5
2121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2122 { (exit 1); exit 1; }; }
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 ac_main_return=return
2132 if test $ac_cv_c_compiler_gnu = yes; then
2133 echo "$as_me:2133: checking whether $CC needs -traditional" >&5
2134 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2135 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 ac_pattern="Autoconf.*'x'"
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line 2140 "configure"
2141 #include "confdefs.h"
2143 int Autoconf = TIOCGETP;
2145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2146 egrep "$ac_pattern" >/dev/null 2>&1; then
2147 ac_cv_prog_gcc_traditional=yes
2149 ac_cv_prog_gcc_traditional=no
2153 if test $ac_cv_prog_gcc_traditional = no; then
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #line 2155 "configure"
2156 #include "confdefs.h"
2158 int Autoconf = TCGETA;
2160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2161 egrep "$ac_pattern" >/dev/null 2>&1; then
2162 ac_cv_prog_gcc_traditional=yes
2168 echo "$as_me:2168: result: $ac_cv_prog_gcc_traditional" >&5
2169 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2170 if test $ac_cv_prog_gcc_traditional = yes; then
2171 CC="$CC -traditional"
2175 echo "$as_me:2175: checking whether $CC understands -c and -o together" >&5
2176 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2177 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 cat > conftest.$ac_ext <<CF_EOF
2185 ${cf_cv_main_return:-return}(0);
2188 # We do the test twice because some compilers refuse to overwrite an
2189 # existing .o file with -o, though they will create one.
2190 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2191 if { (eval echo "$as_me:2191: \"$ac_try\"") >&5
2194 echo "$as_me:2194: \$? = $ac_status" >&5
2195 (exit $ac_status); } &&
2196 test -f conftest2.$ac_objext && { (eval echo "$as_me:2196: \"$ac_try\"") >&5
2199 echo "$as_me:2199: \$? = $ac_status" >&5
2200 (exit $ac_status); };
2202 eval cf_cv_prog_CC_c_o=yes
2204 eval cf_cv_prog_CC_c_o=no
2209 if test $cf_cv_prog_CC_c_o = yes; then
2210 echo "$as_me:2210: result: yes" >&5
2211 echo "${ECHO_T}yes" >&6
2213 echo "$as_me:2213: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 echo "$as_me:2217: checking for POSIXized ISC" >&5
2218 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2219 if test -d /etc/conf/kconfig.d &&
2220 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2222 echo "$as_me:2222: result: yes" >&5
2223 echo "${ECHO_T}yes" >&6
2224 ISC=yes # If later tests want to check for ISC.
2226 cat >>confdefs.h <<\EOF
2227 #define _POSIX_SOURCE 1
2230 if test "$GCC" = yes; then
2236 echo "$as_me:2236: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2241 # This should have been defined by AC_PROG_CC
2244 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2245 # into CC. This will not help with broken scripts that wrap the compiler with
2246 # options, but eliminates a more common category of user confusion.
2247 echo "$as_me:2247: checking \$CC variable" >&5
2248 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2251 echo "$as_me:2251: result: broken" >&5
2252 echo "${ECHO_T}broken" >&6
2253 { echo "$as_me:2253: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2254 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2256 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2257 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2262 cf_new_extra_cppflags=
2264 for cf_add_cflags in $cf_flags
2266 case $cf_fix_cppflags in
2268 case $cf_add_cflags in #(vi
2269 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2270 case $cf_add_cflags in
2272 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2274 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2275 && test -z "${cf_tst_cflags}" \
2276 && cf_fix_cppflags=yes
2278 if test $cf_fix_cppflags = yes ; then
2279 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2281 elif test "${cf_tst_cflags}" = "\"'" ; then
2282 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2288 *$cf_add_cflags) #(vi
2291 case $cf_add_cflags in #(vi
2293 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2295 CPPFLAGS=`echo "$CPPFLAGS" | \
2296 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2297 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2301 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2306 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2311 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2313 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2315 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2316 && test -z "${cf_tst_cflags}" \
2317 && cf_fix_cppflags=no
2322 if test -n "$cf_new_cflags" ; then
2324 CFLAGS="$CFLAGS $cf_new_cflags"
2327 if test -n "$cf_new_cppflags" ; then
2329 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2332 if test -n "$cf_new_extra_cppflags" ; then
2334 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2339 echo "$as_me:2339: result: ok" >&5
2340 echo "${ECHO_T}ok" >&6
2344 echo "$as_me:2344: checking for ${CC:-cc} option to accept ANSI C" >&5
2345 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2346 if test "${cf_cv_ansi_cc+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cf_save_CFLAGS="$CFLAGS"
2352 cf_save_CPPFLAGS="$CPPFLAGS"
2353 # Don't try gcc -ansi; that turns off useful extensions and
2354 # breaks some systems' header files.
2355 # AIX -qlanglvl=ansi
2356 # Ultrix and OSF/1 -std1
2357 # HP-UX -Aa -D_HPUX_SOURCE
2359 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2360 for cf_arg in "-DCC_HAS_PROTOS" \
2365 "-Aa -D_HPUX_SOURCE" \
2372 cf_new_extra_cppflags=
2374 for cf_add_cflags in $cf_arg
2376 case $cf_fix_cppflags in
2378 case $cf_add_cflags in #(vi
2379 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2380 case $cf_add_cflags in
2382 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2384 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2385 && test -z "${cf_tst_cflags}" \
2386 && cf_fix_cppflags=yes
2388 if test $cf_fix_cppflags = yes ; then
2389 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2391 elif test "${cf_tst_cflags}" = "\"'" ; then
2392 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2398 *$cf_add_cflags) #(vi
2401 case $cf_add_cflags in #(vi
2403 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2405 CPPFLAGS=`echo "$CPPFLAGS" | \
2406 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2407 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2411 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2416 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2421 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2423 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2425 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2426 && test -z "${cf_tst_cflags}" \
2427 && cf_fix_cppflags=no
2432 if test -n "$cf_new_cflags" ; then
2434 CFLAGS="$CFLAGS $cf_new_cflags"
2437 if test -n "$cf_new_cppflags" ; then
2439 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2442 if test -n "$cf_new_extra_cppflags" ; then
2444 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line 2448 "configure"
2449 #include "confdefs.h"
2451 #ifndef CC_HAS_PROTOS
2452 #if !defined(__STDC__) || (__STDC__ != 1)
2461 int test (int i, double x);
2462 struct s1 {int (*f) (int a);};
2463 struct s2 {int (*f) (double a);};
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:2469: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:2472: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:2475: \"$ac_try\"") >&5
2478 echo "$as_me:2478: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 cf_cv_ansi_cc="$cf_arg"; break
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 rm -f conftest.$ac_objext conftest.$ac_ext
2487 CFLAGS="$cf_save_CFLAGS"
2488 CPPFLAGS="$cf_save_CPPFLAGS"
2491 echo "$as_me:2491: result: $cf_cv_ansi_cc" >&5
2492 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2494 if test "$cf_cv_ansi_cc" != "no"; then
2495 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2500 cf_new_extra_cppflags=
2502 for cf_add_cflags in $cf_cv_ansi_cc
2504 case $cf_fix_cppflags in
2506 case $cf_add_cflags in #(vi
2507 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2508 case $cf_add_cflags in
2510 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2512 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2513 && test -z "${cf_tst_cflags}" \
2514 && cf_fix_cppflags=yes
2516 if test $cf_fix_cppflags = yes ; then
2517 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2519 elif test "${cf_tst_cflags}" = "\"'" ; then
2520 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2526 *$cf_add_cflags) #(vi
2529 case $cf_add_cflags in #(vi
2531 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2533 CPPFLAGS=`echo "$CPPFLAGS" | \
2534 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2535 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2539 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2544 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2549 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2551 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2553 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2554 && test -z "${cf_tst_cflags}" \
2555 && cf_fix_cppflags=no
2560 if test -n "$cf_new_cflags" ; then
2562 CFLAGS="$CFLAGS $cf_new_cflags"
2565 if test -n "$cf_new_cppflags" ; then
2567 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2570 if test -n "$cf_new_extra_cppflags" ; then
2572 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2576 cat >>confdefs.h <<\EOF
2577 #define CC_HAS_PROTOS 1
2583 if test "$cf_cv_ansi_cc" = "no"; then
2584 { { echo "$as_me:2584: error: Your compiler does not appear to recognize prototypes.
2585 You have the following choices:
2586 a. adjust your compiler options
2587 b. get an up-to-date compiler
2588 c. use a wrapper such as unproto" >&5
2589 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2590 You have the following choices:
2591 a. adjust your compiler options
2592 b. get an up-to-date compiler
2593 c. use a wrapper such as unproto" >&2;}
2594 { (exit 1); exit 1; }; }
2597 case $cf_cv_system_name in
2599 CFLAGS="$CFLAGS -Zmt"
2600 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2601 CXXFLAGS="$CXXFLAGS -Zmt"
2602 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2603 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2610 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2611 #define PROG_EXT "$PROG_EXT"
2614 if test "$cross_compiling" = yes ; then
2617 case "$cf_cv_system_name" in #(vi
2618 dragonfly*|mirbsd*|freebsd*) #(vi
2619 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2621 *) LDPATH=$PATH:/sbin:/usr/sbin
2622 # Extract the first word of "ldconfig", so it can be a program name with args.
2623 set dummy ldconfig; ac_word=$2
2624 echo "$as_me:2624: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2634 ac_save_IFS=$IFS; IFS=$ac_path_separator
2636 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if $as_executable_p "$ac_dir/$ac_word"; then
2640 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2641 echo "$as_me:2641: found $ac_dir/$ac_word" >&5
2649 LDCONFIG=$ac_cv_path_LDCONFIG
2651 if test -n "$LDCONFIG"; then
2652 echo "$as_me:2652: result: $LDCONFIG" >&5
2653 echo "${ECHO_T}$LDCONFIG" >&6
2655 echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2663 echo "$as_me:2663: checking if you want to ensure bool is consistent with C++" >&5
2664 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2666 # Check whether --with-cxx or --without-cxx was given.
2667 if test "${with_cxx+set}" = set; then
2669 cf_with_cxx=$withval
2673 echo "$as_me:2673: result: $cf_with_cxx" >&5
2674 echo "${ECHO_T}$cf_with_cxx" >&6
2675 if test "X$cf_with_cxx" = Xno ; then
2679 # with autoconf 2.13, we can change the error to a warning:
2681 ac_cpp='$CXXCPP $CPPFLAGS'
2682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2685 ac_main_return=return
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691 echo "$as_me:2691: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CXX+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -n "$CXX"; then
2697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2699 ac_save_IFS=$IFS; IFS=$ac_path_separator
2701 for ac_dir in $ac_dummy; do
2703 test -z "$ac_dir" && ac_dir=.
2704 $as_executable_p "$ac_dir/$ac_word" || continue
2705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2706 echo "$as_me:2706: found $ac_dir/$ac_word" >&5
2713 if test -n "$CXX"; then
2714 echo "$as_me:2714: result: $CXX" >&5
2715 echo "${ECHO_T}$CXX" >&6
2717 echo "$as_me:2717: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2721 test -n "$CXX" && break
2724 if test -z "$CXX"; then
2726 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 echo "$as_me:2730: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$ac_ct_CXX"; then
2736 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2738 ac_save_IFS=$IFS; IFS=$ac_path_separator
2740 for ac_dir in $ac_dummy; do
2742 test -z "$ac_dir" && ac_dir=.
2743 $as_executable_p "$ac_dir/$ac_word" || continue
2744 ac_cv_prog_ac_ct_CXX="$ac_prog"
2745 echo "$as_me:2745: found $ac_dir/$ac_word" >&5
2751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2752 if test -n "$ac_ct_CXX"; then
2753 echo "$as_me:2753: result: $ac_ct_CXX" >&5
2754 echo "${ECHO_T}$ac_ct_CXX" >&6
2756 echo "$as_me:2756: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2760 test -n "$ac_ct_CXX" && break
2762 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2767 # Provide some information about the compiler.
2768 echo "$as_me:2768:" \
2769 "checking for C++ compiler version" >&5
2770 ac_compiler=`set X $ac_compile; echo $2`
2771 { (eval echo "$as_me:2771: \"$ac_compiler --version </dev/null >&5\"") >&5
2772 (eval $ac_compiler --version </dev/null >&5) 2>&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2776 { (eval echo "$as_me:2776: \"$ac_compiler -v </dev/null >&5\"") >&5
2777 (eval $ac_compiler -v </dev/null >&5) 2>&5
2779 echo "$as_me:2779: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2781 { (eval echo "$as_me:2781: \"$ac_compiler -V </dev/null >&5\"") >&5
2782 (eval $ac_compiler -V </dev/null >&5) 2>&5
2784 echo "$as_me:2784: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2787 echo "$as_me:2787: checking whether we are using the GNU C++ compiler" >&5
2788 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2789 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2811 echo "$as_me:2811: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:2814: \"$ac_try\"") >&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2825 rm -f conftest.$ac_objext conftest.$ac_ext
2826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2829 echo "$as_me:2829: result: $ac_cv_cxx_compiler_gnu" >&5
2830 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2831 GXX=`test $ac_compiler_gnu = yes && echo yes`
2832 ac_test_CXXFLAGS=${CXXFLAGS+set}
2833 ac_save_CXXFLAGS=$CXXFLAGS
2835 echo "$as_me:2835: checking whether $CXX accepts -g" >&5
2836 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2837 if test "${ac_cv_prog_cxx_g+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line 2841 "configure"
2842 #include "confdefs.h"
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cxx_g=yes
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2870 rm -f conftest.$ac_objext conftest.$ac_ext
2872 echo "$as_me:2872: result: $ac_cv_prog_cxx_g" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2874 if test "$ac_test_CXXFLAGS" = set; then
2875 CXXFLAGS=$ac_save_CXXFLAGS
2876 elif test $ac_cv_prog_cxx_g = yes; then
2877 if test "$GXX" = yes; then
2883 if test "$GXX" = yes; then
2889 for ac_declaration in \
2891 '#include <stdlib.h>' \
2892 'extern "C" void std::exit (int) throw (); using std::exit;' \
2893 'extern "C" void std::exit (int); using std::exit;' \
2894 'extern "C" void exit (int) throw ();' \
2895 'extern "C" void exit (int);' \
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2929 rm -f conftest.$ac_objext conftest.$ac_ext
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line 2931 "configure"
2932 #include "confdefs.h"
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 rm -f conftest.$ac_objext conftest.$ac_ext
2962 if test -n "$ac_declaration"; then
2963 echo '#ifdef __cplusplus' >>confdefs.h
2964 echo $ac_declaration >>confdefs.h
2965 echo '#endif' >>confdefs.h
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_main_return=return
2975 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2976 if test "$CXX" = "g++" ; then
2977 # Extract the first word of "g++", so it can be a program name with args.
2978 set dummy g++; ac_word=$2
2979 echo "$as_me:2979: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2981 if test "${ac_cv_path_CXX+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2989 ac_save_IFS=$IFS; IFS=$ac_path_separator
2991 for ac_dir in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir=.
2994 if $as_executable_p "$ac_dir/$ac_word"; then
2995 ac_cv_path_CXX="$ac_dir/$ac_word"
2996 echo "$as_me:2996: found $ac_dir/$ac_word" >&5
3006 if test -n "$CXX"; then
3007 echo "$as_me:3007: result: $CXX" >&5
3008 echo "${ECHO_T}$CXX" >&6
3010 echo "$as_me:3010: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3015 case "x$CXX" in #(vi
3017 { echo "$as_me:3017: WARNING: You don't have any C++ compiler, too bad" >&5
3018 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3019 cf_with_cxx=no; CXX=""; GXX="";
3025 if test "$GXX" = yes; then
3026 echo "$as_me:3026: checking version of g++" >&5
3027 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3028 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3029 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3030 echo "$as_me:3030: result: $GXX_VERSION" >&5
3031 echo "${ECHO_T}$GXX_VERSION" >&6
3034 case $GXX_VERSION in
3036 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3038 { echo "$as_me:3038: WARNING: templates do not work" >&5
3039 echo "$as_me: WARNING: templates do not work" >&2;}
3043 echo "$as_me:3043: checking if you want to build C++ binding and demo" >&5
3044 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3046 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3047 if test "${with_cxx_binding+set}" = set; then
3048 withval="$with_cxx_binding"
3049 cf_with_cxx_binding=$withval
3051 cf_with_cxx_binding=$cf_with_cxx
3053 echo "$as_me:3053: result: $cf_with_cxx_binding" >&5
3054 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3056 echo "$as_me:3056: checking if you want to build with Ada95" >&5
3057 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3058 echo "$as_me:3058: result: $cf_with_ada" >&5
3059 echo "${ECHO_T}$cf_with_ada" >&6
3061 echo "$as_me:3061: checking if you want to install manpages" >&5
3062 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3064 # Check whether --with-manpages or --without-manpages was given.
3065 if test "${with_manpages+set}" = set; then
3066 withval="$with_manpages"
3067 cf_with_manpages=$withval
3069 cf_with_manpages=yes
3071 echo "$as_me:3071: result: $cf_with_manpages" >&5
3072 echo "${ECHO_T}$cf_with_manpages" >&6
3074 echo "$as_me:3074: checking if you want to build programs such as tic" >&5
3075 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3077 # Check whether --with-progs or --without-progs was given.
3078 if test "${with_progs+set}" = set; then
3079 withval="$with_progs"
3080 cf_with_progs=$withval
3084 echo "$as_me:3084: result: $cf_with_progs" >&5
3085 echo "${ECHO_T}$cf_with_progs" >&6
3087 echo "$as_me:3087: checking if you want to build test-programs" >&5
3088 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3090 # Check whether --with-tests or --without-tests was given.
3091 if test "${with_tests+set}" = set; then
3092 withval="$with_tests"
3093 cf_with_tests=$withval
3097 echo "$as_me:3097: result: $cf_with_tests" >&5
3098 echo "${ECHO_T}$cf_with_tests" >&6
3100 echo "$as_me:3100: checking if you wish to install curses.h" >&5
3101 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3103 # Check whether --with-curses-h or --without-curses-h was given.
3104 if test "${with_curses_h+set}" = set; then
3105 withval="$with_curses_h"
3106 with_curses_h=$withval
3110 echo "$as_me:3110: result: $with_curses_h" >&5
3111 echo "${ECHO_T}$with_curses_h" >&6
3113 modules_to_build="ncurses"
3114 if test "X$cf_with_progs" != Xno ; then
3115 modules_to_build="$modules_to_build progs tack"
3117 modules_to_build="$modules_to_build panel menu form"
3119 test "$program_prefix" != NONE &&
3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3121 # Use a double $ so make ignores it.
3122 test "$program_suffix" != NONE &&
3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3124 # Double any \ or $. echo might interpret backslashes.
3125 # By default was `s,x,x', remove it if useless.
3126 cat <<\_ACEOF >conftest.sed
3127 s/[\\$]/&&/g;s/;s,x,x,$//
3129 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3132 for ac_prog in mawk gawk nawk awk
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 echo "$as_me:3136: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_AWK+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 if test -n "$AWK"; then
3142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3144 ac_save_IFS=$IFS; IFS=$ac_path_separator
3146 for ac_dir in $ac_dummy; do
3148 test -z "$ac_dir" && ac_dir=.
3149 $as_executable_p "$ac_dir/$ac_word" || continue
3150 ac_cv_prog_AWK="$ac_prog"
3151 echo "$as_me:3151: found $ac_dir/$ac_word" >&5
3158 if test -n "$AWK"; then
3159 echo "$as_me:3159: result: $AWK" >&5
3160 echo "${ECHO_T}$AWK" >&6
3162 echo "$as_me:3162: result: no" >&5
3163 echo "${ECHO_T}no" >&6
3166 test -n "$AWK" && break
3169 test -z "$AWK" && { { echo "$as_me:3169: error: No awk program found" >&5
3170 echo "$as_me: error: No awk program found" >&2;}
3171 { (exit 1); exit 1; }; }
3173 echo "$as_me:3173: checking for egrep" >&5
3174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3175 if test "${ac_cv_prog_egrep+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3179 then ac_cv_prog_egrep='grep -E'
3180 else ac_cv_prog_egrep='egrep'
3183 echo "$as_me:3183: result: $ac_cv_prog_egrep" >&5
3184 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3185 EGREP=$ac_cv_prog_egrep
3187 test -z "$EGREP" && { { echo "$as_me:3187: error: No egrep program found" >&5
3188 echo "$as_me: error: No egrep program found" >&2;}
3189 { (exit 1); exit 1; }; }
3191 # Find a good install program. We prefer a C program (faster),
3192 # so one script is as good as another. But avoid the broken or
3193 # incompatible versions:
3194 # SysV /etc/install, /usr/sbin/install
3195 # SunOS /usr/etc/install
3196 # IRIX /sbin/install
3198 # AmigaOS /C/install, which installs bootblocks on floppy discs
3199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3202 # ./install, which can be erroneously created by make from ./install.sh.
3203 echo "$as_me:3203: checking for a BSD compatible install" >&5
3204 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3205 if test -z "$INSTALL"; then
3206 if test "${ac_cv_path_install+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_save_IFS=$IFS; IFS=$ac_path_separator
3210 for ac_dir in $PATH; do
3212 # Account for people who put trailing slashes in PATH elements.
3214 / | ./ | .// | /cC/* \
3215 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3218 # OSF1 and SCO ODT 3.0 have their own names for install.
3219 # Don't use installbsd from OSF since it installs stuff as root
3221 for ac_prog in ginstall scoinst install; do
3222 if $as_executable_p "$ac_dir/$ac_prog"; then
3223 if test $ac_prog = install &&
3224 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3225 # AIX install. It has an incompatible calling convention.
3227 elif test $ac_prog = install &&
3228 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3229 # program-specific install script used by HP pwplus--don't use.
3232 ac_cv_path_install="$ac_dir/$ac_prog -c"
3242 if test "${ac_cv_path_install+set}" = set; then
3243 INSTALL=$ac_cv_path_install
3245 # As a last resort, use the slow shell script. We don't cache a
3246 # path for INSTALL within a source directory, because that will
3247 # break other packages using the cache if that directory is
3248 # removed, or if the path is relative.
3249 INSTALL=$ac_install_sh
3252 echo "$as_me:3252: result: $INSTALL" >&5
3253 echo "${ECHO_T}$INSTALL" >&6
3255 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3256 # It thinks the first close brace ends the variable substitution.
3257 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3259 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3261 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3267 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3268 test -z "$cf_dir" && cf_dir=.
3269 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3273 for ac_prog in tdlint lint alint splint lclint
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 echo "$as_me:3277: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_LINT+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if test -n "$LINT"; then
3283 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3285 ac_save_IFS=$IFS; IFS=$ac_path_separator
3287 for ac_dir in $ac_dummy; do
3289 test -z "$ac_dir" && ac_dir=.
3290 $as_executable_p "$ac_dir/$ac_word" || continue
3291 ac_cv_prog_LINT="$ac_prog"
3292 echo "$as_me:3292: found $ac_dir/$ac_word" >&5
3298 LINT=$ac_cv_prog_LINT
3299 if test -n "$LINT"; then
3300 echo "$as_me:3300: result: $LINT" >&5
3301 echo "${ECHO_T}$LINT" >&6
3303 echo "$as_me:3303: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3307 test -n "$LINT" && break
3310 echo "$as_me:3310: checking whether ln -s works" >&5
3311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3313 if test "$LN_S" = "ln -s"; then
3314 echo "$as_me:3314: result: yes" >&5
3315 echo "${ECHO_T}yes" >&6
3317 echo "$as_me:3317: result: no, using $LN_S" >&5
3318 echo "${ECHO_T}no, using $LN_S" >&6
3321 echo "$as_me:3321: checking if $LN_S -f options work" >&5
3322 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3324 rm -f conf$$.src conf$$dst
3326 echo first >conf$$.src
3327 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3332 rm -f conf$$.dst conf$$src
3333 echo "$as_me:3333: result: $cf_prog_ln_sf" >&5
3334 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3336 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3338 echo "$as_me:3338: checking for long file names" >&5
3339 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3340 if test "${ac_cv_sys_long_file_names+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_cv_sys_long_file_names=yes
3344 # Test for long file names in all the places we know might matter:
3345 # . the current directory, where building will happen
3346 # $prefix/lib where we will be installing things
3347 # $exec_prefix/lib likewise
3348 # eval it to expand exec_prefix.
3349 # $TMPDIR if set, where it might want to write temporary files
3350 # if $TMPDIR is not set:
3351 # /tmp where it might want to write temporary files
3354 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3357 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3359 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3360 test -d $ac_dir || continue
3361 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3362 ac_xdir=$ac_dir/cf$$
3363 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3364 ac_tf1=$ac_xdir/conftest9012345
3365 ac_tf2=$ac_xdir/conftest9012346
3366 (echo 1 >$ac_tf1) 2>/dev/null
3367 (echo 2 >$ac_tf2) 2>/dev/null
3368 ac_val=`cat $ac_tf1 2>/dev/null`
3369 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3370 ac_cv_sys_long_file_names=no
3371 rm -rf $ac_xdir 2>/dev/null
3374 rm -rf $ac_xdir 2>/dev/null
3377 echo "$as_me:3377: result: $ac_cv_sys_long_file_names" >&5
3378 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3379 if test $ac_cv_sys_long_file_names = yes; then
3381 cat >>confdefs.h <<\EOF
3382 #define HAVE_LONG_FILE_NAMES 1
3387 # if we find pkg-config, check if we should install the ".pc" files.
3389 echo "$as_me:3389: checking if you want to use pkg-config" >&5
3390 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3392 # Check whether --with-pkg-config or --without-pkg-config was given.
3393 if test "${with_pkg_config+set}" = set; then
3394 withval="$with_pkg_config"
3395 cf_pkg_config=$withval
3399 echo "$as_me:3399: result: $cf_pkg_config" >&5
3400 echo "${ECHO_T}$cf_pkg_config" >&6
3402 case $cf_pkg_config in #(vi
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3410 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3411 echo "$as_me:3411: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3421 ac_save_IFS=$IFS; IFS=$ac_path_separator
3423 for ac_dir in $ac_dummy; do
3425 test -z "$ac_dir" && ac_dir=.
3426 if $as_executable_p "$ac_dir/$ac_word"; then
3427 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3428 echo "$as_me:3428: found $ac_dir/$ac_word" >&5
3436 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3438 if test -n "$PKG_CONFIG"; then
3439 echo "$as_me:3439: result: $PKG_CONFIG" >&5
3440 echo "${ECHO_T}$PKG_CONFIG" >&6
3442 echo "$as_me:3442: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3447 if test -z "$ac_cv_path_PKG_CONFIG"; then
3448 ac_pt_PKG_CONFIG=$PKG_CONFIG
3449 # Extract the first word of "pkg-config", so it can be a program name with args.
3450 set dummy pkg-config; ac_word=$2
3451 echo "$as_me:3451: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 case $ac_pt_PKG_CONFIG in
3458 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3461 ac_save_IFS=$IFS; IFS=$ac_path_separator
3463 for ac_dir in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir=.
3466 if $as_executable_p "$ac_dir/$ac_word"; then
3467 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3468 echo "$as_me:3468: found $ac_dir/$ac_word" >&5
3473 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3477 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3479 if test -n "$ac_pt_PKG_CONFIG"; then
3480 echo "$as_me:3480: result: $ac_pt_PKG_CONFIG" >&5
3481 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3483 echo "$as_me:3483: result: no" >&5
3484 echo "${ECHO_T}no" >&6
3487 PKG_CONFIG=$ac_pt_PKG_CONFIG
3489 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3498 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3499 if test "$PKG_CONFIG" != none ; then
3501 if test "x$prefix" != xNONE; then
3502 cf_path_syntax="$prefix"
3504 cf_path_syntax="$ac_default_prefix"
3507 case ".$PKG_CONFIG" in #(vi
3508 .\$\(*\)*|.\'*\'*) #(vi
3512 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3515 eval PKG_CONFIG="$PKG_CONFIG"
3516 case ".$PKG_CONFIG" in #(vi
3518 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3523 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3526 { { echo "$as_me:3526: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3527 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3528 { (exit 1); exit 1; }; }
3534 if test "$PKG_CONFIG" != none ; then
3535 echo "$as_me:3535: checking for $PKG_CONFIG library directory" >&5
3536 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3538 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3539 if test "${with_pkg_config_libdir+set}" = set; then
3540 withval="$with_pkg_config_libdir"
3541 PKG_CONFIG_LIBDIR=$withval
3543 PKG_CONFIG_LIBDIR=yes
3546 case x$PKG_CONFIG_LIBDIR in #(vi
3550 # look for the library directory using the same prefix as the executable
3551 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3552 case x`(arch) 2>/dev/null` in #(vi
3554 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3556 if test -d $cf_config/pkgconfig
3558 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3564 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3572 echo "$as_me:3572: result: $PKG_CONFIG_LIBDIR" >&5
3573 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3576 if test "$PKG_CONFIG" != none ; then
3577 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3578 echo "$as_me:3578: checking if we should install .pc files for $PKG_CONFIG" >&5
3579 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3581 # Check whether --enable-pc-files or --disable-pc-files was given.
3582 if test "${enable_pc_files+set}" = set; then
3583 enableval="$enable_pc_files"
3584 enable_pc_files=$enableval
3588 echo "$as_me:3588: result: $enable_pc_files" >&5
3589 echo "${ECHO_T}$enable_pc_files" >&6
3590 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3592 { echo "$as_me:3592: WARNING: did not find $PKG_CONFIG library" >&5
3593 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3599 echo "$as_me:3599: checking if we should assume mixed-case filenames" >&5
3600 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3602 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3603 if test "${enable_mixed_case+set}" = set; then
3604 enableval="$enable_mixed_case"
3605 enable_mixedcase=$enableval
3607 enable_mixedcase=auto
3609 echo "$as_me:3609: result: $enable_mixedcase" >&5
3610 echo "${ECHO_T}$enable_mixedcase" >&6
3611 if test "$enable_mixedcase" = "auto" ; then
3613 echo "$as_me:3613: checking if filesystem supports mixed-case filenames" >&5
3614 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3615 if test "${cf_cv_mixedcase+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test "$cross_compiling" = yes ; then
3620 case $target_alias in #(vi
3621 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3629 rm -f conftest CONFTEST
3631 if test -f CONFTEST ; then
3636 rm -f conftest CONFTEST
3640 echo "$as_me:3640: result: $cf_cv_mixedcase" >&5
3641 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3642 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3643 #define MIXEDCASE_FILENAMES 1
3647 cf_cv_mixedcase=$enable_mixedcase
3648 if test "$enable_mixedcase" = "yes" ; then
3649 cat >>confdefs.h <<\EOF
3650 #define MIXEDCASE_FILENAMES 1
3656 # do this after mixed-case option (tags/TAGS is not as important as tic).
3657 echo "$as_me:3657: checking whether ${MAKE-make} sets \${MAKE}" >&5
3658 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3659 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3660 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 cat >conftest.make <<\EOF
3665 @echo 'ac_maketemp="${MAKE}"'
3667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3668 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3669 if test -n "$ac_maketemp"; then
3670 eval ac_cv_prog_make_${ac_make}_set=yes
3672 eval ac_cv_prog_make_${ac_make}_set=no
3676 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3677 echo "$as_me:3677: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6
3681 echo "$as_me:3681: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3683 SET_MAKE="MAKE=${MAKE-make}"
3686 for ac_prog in exctags ctags
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 echo "$as_me:3690: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3692 if test "${ac_cv_prog_CTAGS+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 if test -n "$CTAGS"; then
3696 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3698 ac_save_IFS=$IFS; IFS=$ac_path_separator
3700 for ac_dir in $ac_dummy; do
3702 test -z "$ac_dir" && ac_dir=.
3703 $as_executable_p "$ac_dir/$ac_word" || continue
3704 ac_cv_prog_CTAGS="$ac_prog"
3705 echo "$as_me:3705: found $ac_dir/$ac_word" >&5
3711 CTAGS=$ac_cv_prog_CTAGS
3712 if test -n "$CTAGS"; then
3713 echo "$as_me:3713: result: $CTAGS" >&5
3714 echo "${ECHO_T}$CTAGS" >&6
3716 echo "$as_me:3716: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3720 test -n "$CTAGS" && break
3723 for ac_prog in exetags etags
3725 # Extract the first word of "$ac_prog", so it can be a program name with args.
3726 set dummy $ac_prog; ac_word=$2
3727 echo "$as_me:3727: checking for $ac_word" >&5
3728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729 if test "${ac_cv_prog_ETAGS+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 if test -n "$ETAGS"; then
3733 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3735 ac_save_IFS=$IFS; IFS=$ac_path_separator
3737 for ac_dir in $ac_dummy; do
3739 test -z "$ac_dir" && ac_dir=.
3740 $as_executable_p "$ac_dir/$ac_word" || continue
3741 ac_cv_prog_ETAGS="$ac_prog"
3742 echo "$as_me:3742: found $ac_dir/$ac_word" >&5
3748 ETAGS=$ac_cv_prog_ETAGS
3749 if test -n "$ETAGS"; then
3750 echo "$as_me:3750: result: $ETAGS" >&5
3751 echo "${ECHO_T}$ETAGS" >&6
3753 echo "$as_me:3753: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3757 test -n "$ETAGS" && break
3760 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3761 set dummy ${CTAGS:-ctags}; ac_word=$2
3762 echo "$as_me:3762: checking for $ac_word" >&5
3763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3764 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 if test -n "$MAKE_LOWER_TAGS"; then
3768 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3770 ac_save_IFS=$IFS; IFS=$ac_path_separator
3772 for ac_dir in $ac_dummy; do
3774 test -z "$ac_dir" && ac_dir=.
3775 $as_executable_p "$ac_dir/$ac_word" || continue
3776 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3777 echo "$as_me:3777: found $ac_dir/$ac_word" >&5
3781 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3784 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3785 if test -n "$MAKE_LOWER_TAGS"; then
3786 echo "$as_me:3786: result: $MAKE_LOWER_TAGS" >&5
3787 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3789 echo "$as_me:3789: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3793 if test "$cf_cv_mixedcase" = yes ; then
3794 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3795 set dummy ${ETAGS:-etags}; ac_word=$2
3796 echo "$as_me:3796: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if test -n "$MAKE_UPPER_TAGS"; then
3802 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3804 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 $as_executable_p "$ac_dir/$ac_word" || continue
3810 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3815 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3818 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3819 if test -n "$MAKE_UPPER_TAGS"; then
3820 echo "$as_me:3820: result: $MAKE_UPPER_TAGS" >&5
3821 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3823 echo "$as_me:3823: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3831 if test "$MAKE_UPPER_TAGS" = yes ; then
3837 if test "$MAKE_LOWER_TAGS" = yes ; then
3843 echo "$as_me:3843: checking for makeflags variable" >&5
3844 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3845 if test "${cf_cv_makeflags+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3852 cat >cf_makeflags.tmp <<CF_EOF
3855 @ echo '.$cf_option'
3857 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3858 case "$cf_result" in
3860 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3861 case "$cf_result" in
3862 .*CC=*) cf_cv_makeflags=
3864 *) cf_cv_makeflags=$cf_option
3870 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3874 rm -f cf_makeflags.tmp
3877 echo "$as_me:3877: result: $cf_cv_makeflags" >&5
3878 echo "${ECHO_T}$cf_cv_makeflags" >&6
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3883 echo "$as_me:3883: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$RANLIB"; then
3889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3891 ac_save_IFS=$IFS; IFS=$ac_path_separator
3893 for ac_dir in $ac_dummy; do
3895 test -z "$ac_dir" && ac_dir=.
3896 $as_executable_p "$ac_dir/$ac_word" || continue
3897 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3898 echo "$as_me:3898: found $ac_dir/$ac_word" >&5
3904 RANLIB=$ac_cv_prog_RANLIB
3905 if test -n "$RANLIB"; then
3906 echo "$as_me:3906: result: $RANLIB" >&5
3907 echo "${ECHO_T}$RANLIB" >&6
3909 echo "$as_me:3909: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3914 if test -z "$ac_cv_prog_RANLIB"; then
3915 ac_ct_RANLIB=$RANLIB
3916 # Extract the first word of "ranlib", so it can be a program name with args.
3917 set dummy ranlib; ac_word=$2
3918 echo "$as_me:3918: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$ac_ct_RANLIB"; then
3924 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3926 ac_save_IFS=$IFS; IFS=$ac_path_separator
3928 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 $as_executable_p "$ac_dir/$ac_word" || continue
3932 ac_cv_prog_ac_ct_RANLIB="ranlib"
3933 echo "$as_me:3933: found $ac_dir/$ac_word" >&5
3937 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3941 if test -n "$ac_ct_RANLIB"; then
3942 echo "$as_me:3942: result: $ac_ct_RANLIB" >&5
3943 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3945 echo "$as_me:3945: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3949 RANLIB=$ac_ct_RANLIB
3951 RANLIB="$ac_cv_prog_RANLIB"
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}ld; ac_word=$2
3957 echo "$as_me:3957: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_LD+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$LD"; then
3963 ac_cv_prog_LD="$LD" # Let the user override the test.
3965 ac_save_IFS=$IFS; IFS=$ac_path_separator
3967 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 $as_executable_p "$ac_dir/$ac_word" || continue
3971 ac_cv_prog_LD="${ac_tool_prefix}ld"
3972 echo "$as_me:3972: found $ac_dir/$ac_word" >&5
3979 if test -n "$LD"; then
3980 echo "$as_me:3980: result: $LD" >&5
3981 echo "${ECHO_T}$LD" >&6
3983 echo "$as_me:3983: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3988 if test -z "$ac_cv_prog_LD"; then
3990 # Extract the first word of "ld", so it can be a program name with args.
3991 set dummy ld; ac_word=$2
3992 echo "$as_me:3992: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -n "$ac_ct_LD"; then
3998 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4000 ac_save_IFS=$IFS; IFS=$ac_path_separator
4002 for ac_dir in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir=.
4005 $as_executable_p "$ac_dir/$ac_word" || continue
4006 ac_cv_prog_ac_ct_LD="ld"
4007 echo "$as_me:4007: found $ac_dir/$ac_word" >&5
4011 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4014 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4015 if test -n "$ac_ct_LD"; then
4016 echo "$as_me:4016: result: $ac_ct_LD" >&5
4017 echo "${ECHO_T}$ac_ct_LD" >&6
4019 echo "$as_me:4019: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}ar; ac_word=$2
4031 echo "$as_me:4031: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_AR+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$AR"; then
4037 ac_cv_prog_AR="$AR" # Let the user override the test.
4039 ac_save_IFS=$IFS; IFS=$ac_path_separator
4041 for ac_dir in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir=.
4044 $as_executable_p "$ac_dir/$ac_word" || continue
4045 ac_cv_prog_AR="${ac_tool_prefix}ar"
4046 echo "$as_me:4046: found $ac_dir/$ac_word" >&5
4053 if test -n "$AR"; then
4054 echo "$as_me:4054: result: $AR" >&5
4055 echo "${ECHO_T}$AR" >&6
4057 echo "$as_me:4057: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4062 if test -z "$ac_cv_prog_AR"; then
4064 # Extract the first word of "ar", so it can be a program name with args.
4065 set dummy ar; ac_word=$2
4066 echo "$as_me:4066: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 if test -n "$ac_ct_AR"; then
4072 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4074 ac_save_IFS=$IFS; IFS=$ac_path_separator
4076 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 $as_executable_p "$ac_dir/$ac_word" || continue
4080 ac_cv_prog_ac_ct_AR="ar"
4081 echo "$as_me:4081: found $ac_dir/$ac_word" >&5
4085 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4089 if test -n "$ac_ct_AR"; then
4090 echo "$as_me:4090: result: $ac_ct_AR" >&5
4091 echo "${ECHO_T}$ac_ct_AR" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}ar; ac_word=$2
4105 echo "$as_me:4105: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_AR+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 if test -n "$AR"; then
4111 ac_cv_prog_AR="$AR" # Let the user override the test.
4113 ac_save_IFS=$IFS; IFS=$ac_path_separator
4115 for ac_dir in $ac_dummy; do
4117 test -z "$ac_dir" && ac_dir=.
4118 $as_executable_p "$ac_dir/$ac_word" || continue
4119 ac_cv_prog_AR="${ac_tool_prefix}ar"
4120 echo "$as_me:4120: found $ac_dir/$ac_word" >&5
4127 if test -n "$AR"; then
4128 echo "$as_me:4128: result: $AR" >&5
4129 echo "${ECHO_T}$AR" >&6
4131 echo "$as_me:4131: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4136 if test -z "$ac_cv_prog_AR"; then
4138 # Extract the first word of "ar", so it can be a program name with args.
4139 set dummy ar; ac_word=$2
4140 echo "$as_me:4140: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if test -n "$ac_ct_AR"; then
4146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4148 ac_save_IFS=$IFS; IFS=$ac_path_separator
4150 for ac_dir in $ac_dummy; do
4152 test -z "$ac_dir" && ac_dir=.
4153 $as_executable_p "$ac_dir/$ac_word" || continue
4154 ac_cv_prog_ac_ct_AR="ar"
4155 echo "$as_me:4155: found $ac_dir/$ac_word" >&5
4159 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4162 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4163 if test -n "$ac_ct_AR"; then
4164 echo "$as_me:4164: result: $ac_ct_AR" >&5
4165 echo "${ECHO_T}$ac_ct_AR" >&6
4167 echo "$as_me:4167: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4176 echo "$as_me:4176: checking for options to update archives" >&5
4177 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4178 if test "${cf_cv_ar_flags+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 cf_cv_ar_flags=unknown
4183 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4186 # check if $ARFLAGS already contains this choice
4187 if test "x$ARFLAGS" != "x" ; then
4188 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4189 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4195 rm -f conftest.$ac_cv_objext
4198 cat >conftest.$ac_ext <<EOF
4199 #line 4199 "configure"
4200 int testdata[3] = { 123, 456, 789 };
4202 if { (eval echo "$as_me:4202: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>&5
4205 echo "$as_me:4205: \$? = $ac_status" >&5
4206 (exit $ac_status); } ; then
4207 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4208 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4209 if test -f conftest.a ; then
4210 cf_cv_ar_flags=$cf_ar_flags
4214 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4216 echo "${as_me:-configure}:4216: testing cannot compile test-program ..." 1>&5
4221 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4224 echo "$as_me:4224: result: $cf_cv_ar_flags" >&5
4225 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4227 if test -n "$ARFLAGS" ; then
4228 if test -n "$cf_cv_ar_flags" ; then
4229 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4232 ARFLAGS=$cf_cv_ar_flags
4235 echo "$as_me:4235: checking if you have specified an install-prefix" >&5
4236 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4238 # Check whether --with-install-prefix or --without-install-prefix was given.
4239 if test "${with_install_prefix+set}" = set; then
4240 withval="$with_install_prefix"
4241 case "$withval" in #(vi
4244 *) DESTDIR="$withval"
4248 echo "$as_me:4248: result: $DESTDIR" >&5
4249 echo "${ECHO_T}$DESTDIR" >&6
4251 ###############################################################################
4253 # If we're cross-compiling, allow the user to override the tools and their
4254 # options. The configure script is oriented toward identifying the host
4255 # compiler, etc., but we need a build compiler to generate parts of the source.
4257 if test "$cross_compiling" = yes ; then
4259 # defaults that we might want to override
4260 : ${BUILD_CFLAGS:=''}
4261 : ${BUILD_CPPFLAGS:=''}
4262 : ${BUILD_LDFLAGS:=''}
4264 : ${BUILD_EXEEXT:='$x'}
4265 : ${BUILD_OBJEXT:='o'}
4267 # Check whether --with-build-cc or --without-build-cc was given.
4268 if test "${with_build_cc+set}" = set; then
4269 withval="$with_build_cc"
4272 for ac_prog in gcc cc cl
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 echo "$as_me:4276: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 if test -n "$BUILD_CC"; then
4282 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4284 ac_save_IFS=$IFS; IFS=$ac_path_separator
4286 for ac_dir in $ac_dummy; do
4288 test -z "$ac_dir" && ac_dir=.
4289 $as_executable_p "$ac_dir/$ac_word" || continue
4290 ac_cv_prog_BUILD_CC="$ac_prog"
4291 echo "$as_me:4291: found $ac_dir/$ac_word" >&5
4297 BUILD_CC=$ac_cv_prog_BUILD_CC
4298 if test -n "$BUILD_CC"; then
4299 echo "$as_me:4299: result: $BUILD_CC" >&5
4300 echo "${ECHO_T}$BUILD_CC" >&6
4302 echo "$as_me:4302: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$BUILD_CC" && break
4310 echo "$as_me:4310: checking for native build C compiler" >&5
4311 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4312 echo "$as_me:4312: result: $BUILD_CC" >&5
4313 echo "${ECHO_T}$BUILD_CC" >&6
4315 echo "$as_me:4315: checking for native build C preprocessor" >&5
4316 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4318 # Check whether --with-build-cpp or --without-build-cpp was given.
4319 if test "${with_build_cpp+set}" = set; then
4320 withval="$with_build_cpp"
4321 BUILD_CPP="$withval"
4323 BUILD_CPP='${BUILD_CC} -E'
4325 echo "$as_me:4325: result: $BUILD_CPP" >&5
4326 echo "${ECHO_T}$BUILD_CPP" >&6
4328 echo "$as_me:4328: checking for native build C flags" >&5
4329 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4331 # Check whether --with-build-cflags or --without-build-cflags was given.
4332 if test "${with_build_cflags+set}" = set; then
4333 withval="$with_build_cflags"
4334 BUILD_CFLAGS="$withval"
4336 echo "$as_me:4336: result: $BUILD_CFLAGS" >&5
4337 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4339 echo "$as_me:4339: checking for native build C preprocessor-flags" >&5
4340 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4342 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4343 if test "${with_build_cppflags+set}" = set; then
4344 withval="$with_build_cppflags"
4345 BUILD_CPPFLAGS="$withval"
4347 echo "$as_me:4347: result: $BUILD_CPPFLAGS" >&5
4348 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4350 echo "$as_me:4350: checking for native build linker-flags" >&5
4351 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4353 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4354 if test "${with_build_ldflags+set}" = set; then
4355 withval="$with_build_ldflags"
4356 BUILD_LDFLAGS="$withval"
4358 echo "$as_me:4358: result: $BUILD_LDFLAGS" >&5
4359 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4361 echo "$as_me:4361: checking for native build linker-libraries" >&5
4362 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4364 # Check whether --with-build-libs or --without-build-libs was given.
4365 if test "${with_build_libs+set}" = set; then
4366 withval="$with_build_libs"
4367 BUILD_LIBS="$withval"
4369 echo "$as_me:4369: result: $BUILD_LIBS" >&5
4370 echo "${ECHO_T}$BUILD_LIBS" >&6
4372 # this assumes we're on Unix.
4376 : ${BUILD_CC:='${CC}'}
4378 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4379 { { echo "$as_me:4379: error: Cross-build requires two compilers.
4380 Use --with-build-cc to specify the native compiler." >&5
4381 echo "$as_me: error: Cross-build requires two compilers.
4382 Use --with-build-cc to specify the native compiler." >&2;}
4383 { (exit 1); exit 1; }; }
4387 : ${BUILD_CC:='${CC}'}
4388 : ${BUILD_CPP:='${CPP}'}
4389 : ${BUILD_CFLAGS:='${CFLAGS}'}
4390 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4391 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4392 : ${BUILD_LIBS:='${LIBS}'}
4393 : ${BUILD_EXEEXT:='$x'}
4394 : ${BUILD_OBJEXT:='o'}
4397 ###############################################################################
4399 ### Options to allow the user to specify the set of libraries which are used.
4400 ### Use "--without-normal --with-shared" to allow the default model to be
4401 ### shared, for example.
4404 echo "$as_me:4404: checking if libtool -version-number should be used" >&5
4405 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4407 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4408 if test "${enable_libtool_version+set}" = set; then
4409 enableval="$enable_libtool_version"
4410 test "$enableval" != no && enableval=yes
4411 if test "$enableval" != "yes" ; then
4412 cf_libtool_version=no
4414 cf_libtool_version=yes
4418 cf_libtool_version=yes
4421 echo "$as_me:4421: result: $cf_libtool_version" >&5
4422 echo "${ECHO_T}$cf_libtool_version" >&6
4424 if test "$cf_libtool_version" = yes ; then
4425 LIBTOOL_VERSION="-version-number"
4427 LIBTOOL_VERSION="-version-info"
4432 # common library maintenance symbols that are convenient for libtool scripts:
4433 LIB_CREATE='${AR} -cr'
4434 LIB_OBJECT='${OBJECTS}'
4438 # symbols used to prop libtool up to enable it to determine what it should be
4446 echo "$as_me:4446: checking if you want to build libraries with libtool" >&5
4447 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4449 # Check whether --with-libtool or --without-libtool was given.
4450 if test "${with_libtool+set}" = set; then
4451 withval="$with_libtool"
4452 with_libtool=$withval
4456 echo "$as_me:4456: result: $with_libtool" >&5
4457 echo "${ECHO_T}$with_libtool" >&6
4458 if test "$with_libtool" != "no"; then
4460 if test "$with_libtool" != "yes" ; then
4462 if test "x$prefix" != xNONE; then
4463 cf_path_syntax="$prefix"
4465 cf_path_syntax="$ac_default_prefix"
4468 case ".$with_libtool" in #(vi
4469 .\$\(*\)*|.\'*\'*) #(vi
4473 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4476 eval with_libtool="$with_libtool"
4477 case ".$with_libtool" in #(vi
4479 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4484 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4487 { { echo "$as_me:4487: error: expected a pathname, not \"$with_libtool\"" >&5
4488 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4489 { (exit 1); exit 1; }; }
4493 LIBTOOL=$with_libtool
4495 # Extract the first word of "libtool", so it can be a program name with args.
4496 set dummy libtool; ac_word=$2
4497 echo "$as_me:4497: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4507 ac_save_IFS=$IFS; IFS=$ac_path_separator
4509 for ac_dir in $ac_dummy; do
4511 test -z "$ac_dir" && ac_dir=.
4512 if $as_executable_p "$ac_dir/$ac_word"; then
4513 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4514 echo "$as_me:4514: found $ac_dir/$ac_word" >&5
4522 LIBTOOL=$ac_cv_path_LIBTOOL
4524 if test -n "$LIBTOOL"; then
4525 echo "$as_me:4525: result: $LIBTOOL" >&5
4526 echo "${ECHO_T}$LIBTOOL" >&6
4528 echo "$as_me:4528: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4533 if test -z "$LIBTOOL" ; then
4534 { { echo "$as_me:4534: error: Cannot find libtool" >&5
4535 echo "$as_me: error: Cannot find libtool" >&2;}
4536 { (exit 1); exit 1; }; }
4538 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4539 LIB_OBJECT='${OBJECTS:.o=.lo}'
4541 LIB_CLEAN='${LIBTOOL} --mode=clean'
4542 LIB_COMPILE='${LIBTOOL} --mode=compile'
4543 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4544 LIB_INSTALL='${LIBTOOL} --mode=install'
4545 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4548 # Show the version of libtool
4549 echo "$as_me:4549: checking version of libtool" >&5
4550 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4552 # Save the version in a cache variable - this is not entirely a good
4553 # thing, but the version string from libtool is very ugly, and for
4554 # bug reports it might be useful to have the original string. "("
4555 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.].*//'`
4556 echo "$as_me:4556: result: $cf_cv_libtool_version" >&5
4557 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4558 if test -z "$cf_cv_libtool_version" ; then
4559 { { echo "$as_me:4559: error: This is not GNU libtool" >&5
4560 echo "$as_me: error: This is not GNU libtool" >&2;}
4561 { (exit 1); exit 1; }; }
4564 # special hack to add -no-undefined (which libtool should do for itself)
4566 case "$cf_cv_system_name" in #(vi
4567 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4568 LT_UNDEF=-no-undefined
4572 # special hack to add --tag option for C++ compiler
4573 case $cf_cv_libtool_version in #(vi
4574 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4575 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4576 LIBTOOL="$LIBTOOL --tag=CC"
4579 LIBTOOL_CXX="$LIBTOOL"
4587 test -z "$LIBTOOL" && ECHO_LT=
4589 if test "$with_libtool" != "no" ; then
4591 cf_list_models="$cf_list_models libtool"
4595 echo "$as_me:4595: checking if you want to build shared libraries" >&5
4596 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4598 # Check whether --with-shared or --without-shared was given.
4599 if test "${with_shared+set}" = set; then
4600 withval="$with_shared"
4601 with_shared=$withval
4605 echo "$as_me:4605: result: $with_shared" >&5
4606 echo "${ECHO_T}$with_shared" >&6
4607 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4609 echo "$as_me:4609: checking if you want to build static libraries" >&5
4610 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4612 # Check whether --with-normal or --without-normal was given.
4613 if test "${with_normal+set}" = set; then
4614 withval="$with_normal"
4615 with_normal=$withval
4619 echo "$as_me:4619: result: $with_normal" >&5
4620 echo "${ECHO_T}$with_normal" >&6
4621 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4623 echo "$as_me:4623: checking if you want to build debug libraries" >&5
4624 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4626 # Check whether --with-debug or --without-debug was given.
4627 if test "${with_debug+set}" = set; then
4628 withval="$with_debug"
4633 echo "$as_me:4633: result: $with_debug" >&5
4634 echo "${ECHO_T}$with_debug" >&6
4635 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4637 echo "$as_me:4637: checking if you want to build profiling libraries" >&5
4638 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4640 # Check whether --with-profile or --without-profile was given.
4641 if test "${with_profile+set}" = set; then
4642 withval="$with_profile"
4643 with_profile=$withval
4647 echo "$as_me:4647: result: $with_profile" >&5
4648 echo "${ECHO_T}$with_profile" >&6
4649 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4653 ###############################################################################
4655 echo "$as_me:4655: checking for specified models" >&5
4656 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4657 test -z "$cf_list_models" && cf_list_models=normal
4658 test "$with_libtool" != "no" && cf_list_models=libtool
4659 echo "$as_me:4659: result: $cf_list_models" >&5
4660 echo "${ECHO_T}$cf_list_models" >&6
4662 ### Use the first model as the default, and save its suffix for use in building
4663 ### up test-applications.
4664 echo "$as_me:4664: checking for default model" >&5
4665 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4666 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4667 echo "$as_me:4667: result: $DFT_LWR_MODEL" >&5
4668 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4670 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4681 echo "$as_me:4681: checking if you want to have a library-prefix" >&5
4682 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4684 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4685 if test "${with_lib_prefix+set}" = set; then
4686 withval="$with_lib_prefix"
4687 with_lib_prefix=$withval
4689 with_lib_prefix=auto
4691 echo "$as_me:4691: result: $with_lib_prefix" >&5
4692 echo "${ECHO_T}$with_lib_prefix" >&6
4694 if test $with_lib_prefix = auto
4697 case $cf_cv_system_name in #(vi
4704 cf_prefix=$LIB_PREFIX
4706 elif test $with_lib_prefix = no
4710 LIB_PREFIX=$with_lib_prefix
4715 ###############################################################################
4717 echo "$as_me:4717: checking if you want to build a separate terminfo library" >&5
4718 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4720 # Check whether --with-termlib or --without-termlib was given.
4721 if test "${with_termlib+set}" = set; then
4722 withval="$with_termlib"
4723 with_termlib=$withval
4727 echo "$as_me:4727: result: $with_termlib" >&5
4728 echo "${ECHO_T}$with_termlib" >&6
4730 echo "$as_me:4730: checking if you want to build a separate tic library" >&5
4731 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4733 # Check whether --with-ticlib or --without-ticlib was given.
4734 if test "${with_ticlib+set}" = set; then
4735 withval="$with_ticlib"
4736 with_ticlib=$withval
4740 echo "$as_me:4740: result: $with_ticlib" >&5
4741 echo "${ECHO_T}$with_ticlib" >&6
4743 ### Checks for special libraries, must be done up-front.
4746 echo "$as_me:4746: checking if you want to link with the GPM mouse library" >&5
4747 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4749 # Check whether --with-gpm or --without-gpm was given.
4750 if test "${with_gpm+set}" = set; then
4756 echo "$as_me:4756: result: $with_gpm" >&5
4757 echo "${ECHO_T}$with_gpm" >&6
4759 if test "$with_gpm" != no ; then
4760 echo "$as_me:4760: checking for gpm.h" >&5
4761 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4762 if test "${ac_cv_header_gpm_h+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line 4766 "configure"
4767 #include "confdefs.h"
4770 if { (eval echo "$as_me:4770: \"$ac_cpp conftest.$ac_ext\"") >&5
4771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773 egrep -v '^ *\+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:4776: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null; then
4778 if test -s conftest.err; then
4779 ac_cpp_err=$ac_c_preproc_warn_flag
4786 if test -z "$ac_cpp_err"; then
4787 ac_cv_header_gpm_h=yes
4789 echo "$as_me: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 ac_cv_header_gpm_h=no
4793 rm -f conftest.err conftest.$ac_ext
4795 echo "$as_me:4795: result: $ac_cv_header_gpm_h" >&5
4796 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4797 if test $ac_cv_header_gpm_h = yes; then
4799 cat >>confdefs.h <<\EOF
4800 #define HAVE_GPM_H 1
4803 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4804 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4806 echo "${as_me:-configure}:4806: testing assuming we really have GPM library ..." 1>&5
4808 cat >>confdefs.h <<\EOF
4809 #define HAVE_LIBGPM 1
4813 echo "$as_me:4813: checking for Gpm_Open in -lgpm" >&5
4814 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4815 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 ac_check_lib_save_LIBS=$LIBS
4820 cat >conftest.$ac_ext <<_ACEOF
4821 #line 4821 "configure"
4822 #include "confdefs.h"
4824 /* Override any gcc2 internal prototype to avoid an error. */
4828 /* We use char because int might match the return type of a gcc2
4829 builtin and then its argument prototype would still apply. */
4839 rm -f conftest.$ac_objext conftest$ac_exeext
4840 if { (eval echo "$as_me:4840: \"$ac_link\"") >&5
4841 (eval $ac_link) 2>&5
4843 echo "$as_me:4843: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -s conftest$ac_exeext'
4846 { (eval echo "$as_me:4846: \"$ac_try\"") >&5
4849 echo "$as_me:4849: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_cv_lib_gpm_Gpm_Open=yes
4853 echo "$as_me: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4855 ac_cv_lib_gpm_Gpm_Open=no
4857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4858 LIBS=$ac_check_lib_save_LIBS
4860 echo "$as_me:4860: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4861 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4862 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4866 { { echo "$as_me:4866: error: Cannot link with GPM library" >&5
4867 echo "$as_me: error: Cannot link with GPM library" >&2;}
4868 { (exit 1); exit 1; }; }
4876 test "$with_gpm" != maybe && { echo "$as_me:4876: WARNING: Cannot find GPM header" >&5
4877 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4884 if test "$with_gpm" != no ; then
4885 echo "$as_me:4885: checking if you want to load GPM dynamically" >&5
4886 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4888 # Check whether --with-dlsym or --without-dlsym was given.
4889 if test "${with_dlsym+set}" = set; then
4890 withval="$with_dlsym"
4895 echo "$as_me:4895: result: $with_dlsym" >&5
4896 echo "${ECHO_T}$with_dlsym" >&6
4897 if test "$with_dlsym" = yes ; then
4900 echo "$as_me:4900: checking for dlsym" >&5
4901 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4902 if test "${ac_cv_func_dlsym+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 cat >conftest.$ac_ext <<_ACEOF
4906 #line 4906 "configure"
4907 #include "confdefs.h"
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char dlsym (); below. */
4911 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4929 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:4937: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>&5
4940 echo "$as_me:4940: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest$ac_exeext'
4943 { (eval echo "$as_me:4943: \"$ac_try\"") >&5
4946 echo "$as_me:4946: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_func_dlsym=yes
4950 echo "$as_me: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4956 echo "$as_me:4956: result: $ac_cv_func_dlsym" >&5
4957 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4958 if test $ac_cv_func_dlsym = yes; then
4963 echo "$as_me:4963: checking for dlsym in -ldl" >&5
4964 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4965 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_check_lib_save_LIBS=$LIBS
4970 cat >conftest.$ac_ext <<_ACEOF
4971 #line 4971 "configure"
4972 #include "confdefs.h"
4974 /* Override any gcc2 internal prototype to avoid an error. */
4978 /* We use char because int might match the return type of a gcc2
4979 builtin and then its argument prototype would still apply. */
4989 rm -f conftest.$ac_objext conftest$ac_exeext
4990 if { (eval echo "$as_me:4990: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>&5
4993 echo "$as_me:4993: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -s conftest$ac_exeext'
4996 { (eval echo "$as_me:4996: \"$ac_try\"") >&5
4999 echo "$as_me:4999: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_cv_lib_dl_dlsym=yes
5003 echo "$as_me: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5005 ac_cv_lib_dl_dlsym=no
5007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5008 LIBS=$ac_check_lib_save_LIBS
5010 echo "$as_me:5010: result: $ac_cv_lib_dl_dlsym" >&5
5011 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5012 if test $ac_cv_lib_dl_dlsym = yes; then
5020 if test "$cf_have_dlsym" = yes ; then
5021 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5023 echo "$as_me:5023: checking whether able to link to dl*() functions" >&5
5024 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5025 cat >conftest.$ac_ext <<_ACEOF
5026 #line 5026 "configure"
5027 #include "confdefs.h"
5034 if ((obj = dlopen("filename", 0)) != 0) {
5035 if (dlsym(obj, "symbolname") == 0) {
5043 rm -f conftest.$ac_objext conftest$ac_exeext
5044 if { (eval echo "$as_me:5044: \"$ac_link\"") >&5
5045 (eval $ac_link) 2>&5
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -s conftest$ac_exeext'
5050 { (eval echo "$as_me:5050: \"$ac_try\"") >&5
5053 echo "$as_me:5053: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5056 cat >>confdefs.h <<\EOF
5057 #define HAVE_LIBDL 1
5061 echo "$as_me: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5064 { { echo "$as_me:5064: error: Cannot link test program for libdl" >&5
5065 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5066 { (exit 1); exit 1; }; }
5068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5069 echo "$as_me:5069: result: ok" >&5
5070 echo "${ECHO_T}ok" >&6
5072 { { echo "$as_me:5072: error: Cannot find dlsym function" >&5
5073 echo "$as_me: error: Cannot find dlsym function" >&2;}
5074 { (exit 1); exit 1; }; }
5077 if test "$with_gpm" != yes ; then
5078 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5080 echo "${as_me:-configure}:5080: testing assuming soname for gpm is $with_gpm ..." 1>&5
5082 cf_cv_gpm_soname="$with_gpm"
5085 echo "$as_me:5085: checking for soname of gpm library" >&5
5086 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5087 if test "${cf_cv_gpm_soname+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 cf_cv_gpm_soname=unknown
5092 if test "$cross_compiling" != yes ; then
5093 cat >conftest.$ac_ext <<CF_EOF
5097 if (Gpm_Open(0,0)) Gpm_Close();
5098 ${cf_cv_main_return:-return}(0);
5101 cf_save_LIBS="$LIBS"
5103 if { (eval echo "$as_me:5103: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>&5
5106 echo "$as_me:5106: \$? = $ac_status" >&5
5107 (exit $ac_status); } ; then
5108 if { (eval echo "$as_me:5108: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>&5
5111 echo "$as_me:5111: \$? = $ac_status" >&5
5112 (exit $ac_status); } ; then
5113 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5114 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5118 LIBS="$cf_save_LIBS"
5122 echo "$as_me:5122: result: $cf_cv_gpm_soname" >&5
5123 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5126 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5127 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5130 SHLIB_LIST="-ldl $SHLIB_LIST"
5132 SHLIB_LIST="-lgpm $SHLIB_LIST"
5133 TEST_LIBS="-lgpm $TEST_LIBS"
5135 cat >>confdefs.h <<\EOF
5136 #define HAVE_LIBGPM 1
5139 echo "$as_me:5139: checking for Gpm_Wgetch in -lgpm" >&5
5140 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5141 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_check_lib_save_LIBS=$LIBS
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line 5147 "configure"
5148 #include "confdefs.h"
5150 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (eval echo "$as_me:5166: \"$ac_link\"") >&5
5167 (eval $ac_link) 2>&5
5169 echo "$as_me:5169: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -s conftest$ac_exeext'
5172 { (eval echo "$as_me:5172: \"$ac_try\"") >&5
5175 echo "$as_me:5175: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_lib_gpm_Gpm_Wgetch=yes
5179 echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 ac_cv_lib_gpm_Gpm_Wgetch=no
5183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5184 LIBS=$ac_check_lib_save_LIBS
5186 echo "$as_me:5186: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5187 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5188 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5190 echo "$as_me:5190: checking if GPM is weakly bound to curses library" >&5
5191 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5192 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 cf_cv_check_gpm_wgetch=unknown
5197 if test "$cross_compiling" != yes ; then
5199 cat >conftest.$ac_ext <<CF_EOF
5204 ${cf_cv_main_return:-return}(0);
5208 cf_save_LIBS="$LIBS"
5209 # This only works if we can look at the symbol table. If a shared
5210 # library is stripped for install, we cannot use that. So we're forced
5211 # to rely on the static library, noting that some packagers may not
5213 LIBS="-static -lgpm -dynamic $LIBS"
5214 if { (eval echo "$as_me:5214: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5217 echo "$as_me:5217: \$? = $ac_status" >&5
5218 (exit $ac_status); } ; then
5219 if { (eval echo "$as_me:5219: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5222 echo "$as_me:5222: \$? = $ac_status" >&5
5223 (exit $ac_status); } ; then
5224 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5225 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5226 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5230 LIBS="$cf_save_LIBS"
5234 echo "$as_me:5234: result: $cf_cv_check_gpm_wgetch" >&5
5235 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5237 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5238 { echo "$as_me:5238: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5239 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5246 # not everyone has "test -c"
5247 if test -c /dev/sysmouse 2>/dev/null ; then
5248 echo "$as_me:5248: checking if you want to use sysmouse" >&5
5249 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5251 # Check whether --with-sysmouse or --without-sysmouse was given.
5252 if test "${with_sysmouse+set}" = set; then
5253 withval="$with_sysmouse"
5254 cf_with_sysmouse=$withval
5256 cf_with_sysmouse=maybe
5258 if test "$cf_with_sysmouse" != no ; then
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line 5260 "configure"
5261 #include "confdefs.h"
5263 #include <osreldate.h>
5264 #if (__FreeBSD_version >= 400017)
5265 #include <sys/consio.h>
5266 #include <sys/fbio.h>
5268 #include <machine/console.h>
5275 struct mouse_info the_mouse;
5276 ioctl(0, CONS_MOUSECTL, &the_mouse);
5282 rm -f conftest.$ac_objext
5283 if { (eval echo "$as_me:5283: \"$ac_compile\"") >&5
5284 (eval $ac_compile) 2>&5
5286 echo "$as_me:5286: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:5289: \"$ac_try\"") >&5
5292 echo "$as_me:5292: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 cf_with_sysmouse=yes
5296 echo "$as_me: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5300 rm -f conftest.$ac_objext conftest.$ac_ext
5302 echo "$as_me:5302: result: $cf_with_sysmouse" >&5
5303 echo "${ECHO_T}$cf_with_sysmouse" >&6
5304 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5305 #define USE_SYSMOUSE 1
5310 if test X"$CC_G_OPT" = X"" ; then
5312 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5315 if test X"$CXX_G_OPT" = X"" ; then
5317 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5320 echo "$as_me:5320: checking for default loader flags" >&5
5321 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5322 case $DFT_LWR_MODEL in
5323 libtool) LD_MODEL='' ;;
5324 normal) LD_MODEL='' ;;
5325 debug) LD_MODEL=$CC_G_OPT ;;
5326 profile) LD_MODEL='-pg';;
5327 shared) LD_MODEL='' ;;
5329 echo "$as_me:5329: result: $LD_MODEL" >&5
5330 echo "${ECHO_T}$LD_MODEL" >&6
5332 case $DFT_LWR_MODEL in
5335 echo "$as_me:5335: checking if rpath option should be used" >&5
5336 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5338 # Check whether --enable-rpath or --disable-rpath was given.
5339 if test "${enable_rpath+set}" = set; then
5340 enableval="$enable_rpath"
5341 cf_cv_enable_rpath=$enableval
5343 cf_cv_enable_rpath=no
5345 echo "$as_me:5345: result: $cf_cv_enable_rpath" >&5
5346 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5348 echo "$as_me:5348: checking if shared libraries should be relinked during install" >&5
5349 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5351 # Check whether --enable-relink or --disable-relink was given.
5352 if test "${enable_relink+set}" = set; then
5353 enableval="$enable_relink"
5354 cf_cv_do_relink=$enableval
5358 echo "$as_me:5358: result: $cf_cv_do_relink" >&5
5359 echo "${ECHO_T}$cf_cv_do_relink" >&6
5364 echo "$as_me:5364: checking for an rpath option" >&5
5365 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5366 case $cf_cv_system_name in #(vi
5368 if test "$GCC" = yes; then
5369 LD_RPATH_OPT="-Wl,-rpath,"
5371 LD_RPATH_OPT="-rpath "
5374 linux*|gnu*|k*bsd*-gnu) #(vi
5375 LD_RPATH_OPT="-Wl,-rpath,"
5377 openbsd[2-9].*|mirbsd*) #(vi
5378 LD_RPATH_OPT="-Wl,-rpath,"
5380 dragonfly*|freebsd*) #(vi
5381 LD_RPATH_OPT="-rpath "
5384 LD_RPATH_OPT="-Wl,-rpath,"
5387 LD_RPATH_OPT="-rpath "
5395 echo "$as_me:5395: result: $LD_RPATH_OPT" >&5
5396 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5398 case "x$LD_RPATH_OPT" in #(vi
5400 echo "$as_me:5400: checking if we need a space after rpath option" >&5
5401 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5402 cf_save_LIBS="$LIBS"
5403 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line 5405 "configure"
5406 #include "confdefs.h"
5416 rm -f conftest.$ac_objext conftest$ac_exeext
5417 if { (eval echo "$as_me:5417: \"$ac_link\"") >&5
5418 (eval $ac_link) 2>&5
5420 echo "$as_me:5420: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try='test -s conftest$ac_exeext'
5423 { (eval echo "$as_me:5423: \"$ac_try\"") >&5
5426 echo "$as_me:5426: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5430 echo "$as_me: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5435 LIBS="$cf_save_LIBS"
5436 echo "$as_me:5436: result: $cf_rpath_space" >&5
5437 echo "${ECHO_T}$cf_rpath_space" >&6
5438 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5445 INSTALL_LIB="-m 644"
5447 cf_cv_do_symlinks=no
5449 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5451 echo "$as_me:5451: checking if release/abi version should be used for shared libs" >&5
5452 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5454 # Check whether --with-shlib-version or --without-shlib-version was given.
5455 if test "${with_shlib_version+set}" = set; then
5456 withval="$with_shlib_version"
5457 test -z "$withval" && withval=auto
5458 case $withval in #(vi
5460 cf_cv_shlib_version=auto
5462 rel|abi|auto|no) #(vi
5463 cf_cv_shlib_version=$withval
5466 { { echo "$as_me:5466: error: option value must be one of: rel, abi, auto or no" >&5
5467 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5468 { (exit 1); exit 1; }; }
5473 cf_cv_shlib_version=auto
5475 echo "$as_me:5475: result: $cf_cv_shlib_version" >&5
5476 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5480 # Some less-capable ports of gcc support only -fpic
5482 if test "$GCC" = yes
5484 echo "$as_me:5484: checking which $CC option to use" >&5
5485 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5486 cf_save_CFLAGS="$CFLAGS"
5487 for CC_SHARED_OPTS in -fPIC -fpic ''
5489 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5490 cat >conftest.$ac_ext <<_ACEOF
5491 #line 5491 "configure"
5492 #include "confdefs.h"
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:5503: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5506 echo "$as_me:5506: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -s conftest.$ac_objext'
5509 { (eval echo "$as_me:5509: \"$ac_try\"") >&5
5512 echo "$as_me:5512: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5516 echo "$as_me: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5519 rm -f conftest.$ac_objext conftest.$ac_ext
5521 echo "$as_me:5521: result: $CC_SHARED_OPTS" >&5
5522 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5523 CFLAGS="$cf_save_CFLAGS"
5526 cf_cv_shlib_version_infix=no
5528 case $cf_cv_system_name in #(vi
5529 aix4.3-9*|aix[5-7]*) #(vi
5530 if test "$GCC" = yes; then
5532 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5534 # CC_SHARED_OPTS='-qpic=large -G'
5535 # perhaps "-bM:SRE -bnoentry -bexpall"
5536 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5540 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5544 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5545 cf_cv_shlib_version=cygdll
5546 cf_cv_shlib_version_infix=cygdll
5547 cat >mk_shared_lib.sh <<-CF_EOF
5550 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5553 Linking shared library
5554 ** SHARED_LIB \$SHARED_LIB
5555 ** IMPORT_LIB \$IMPORT_LIB
5557 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5559 chmod +x mk_shared_lib.sh
5562 EXTRA_CFLAGS="-no-cpp-precomp"
5563 CC_SHARED_OPTS="-dynamic"
5564 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5565 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5566 cf_cv_shlib_version_infix=yes
5567 echo "$as_me:5567: checking if ld -search_paths_first works" >&5
5568 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5569 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cf_save_LDFLAGS=$LDFLAGS
5574 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5575 cat >conftest.$ac_ext <<_ACEOF
5576 #line 5576 "configure"
5577 #include "confdefs.h"
5587 rm -f conftest.$ac_objext conftest$ac_exeext
5588 if { (eval echo "$as_me:5588: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5591 echo "$as_me:5591: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -s conftest$ac_exeext'
5594 { (eval echo "$as_me:5594: \"$ac_try\"") >&5
5597 echo "$as_me:5597: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 cf_cv_ldflags_search_paths_first=yes
5601 echo "$as_me: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5603 cf_cv_ldflags_search_paths_first=no
5605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5606 LDFLAGS=$cf_save_LDFLAGS
5608 echo "$as_me:5608: result: $cf_cv_ldflags_search_paths_first" >&5
5609 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5610 if test $cf_cv_ldflags_search_paths_first = yes; then
5611 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5615 # (tested with gcc 2.7.2 -- I don't have c89)
5616 if test "$GCC" = yes; then
5617 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5620 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5622 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5623 # HP-UX shared libraries must be executable, and should be
5624 # readonly to exploit a quirk in the memory manager.
5625 INSTALL_LIB="-m 555"
5628 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5629 if test "$cf_cv_shlib_version" = rel; then
5630 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5632 cf_shared_soname='`basename `'
5635 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5638 if test "$cf_cv_enable_rpath" = yes ; then
5639 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5641 # tested with IRIX 5.2 and 'cc'.
5642 if test "$GCC" != yes; then
5643 CC_SHARED_OPTS='-KPIC'
5644 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5646 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5648 cf_cv_rm_so_locs=yes
5650 linux*|gnu*|k*bsd*-gnu) #(vi
5651 if test "$DFT_LWR_MODEL" = "shared" ; then
5652 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5653 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5655 if test "$cf_cv_enable_rpath" = yes ; then
5656 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5659 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5660 if test "$cf_cv_shlib_version" = rel; then
5661 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5663 cf_cv_shared_soname='`basename $@`'
5666 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5669 cf_cv_shlib_version=mingw
5670 cf_cv_shlib_version_infix=mingw
5672 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5673 #MK_SHARED_LIB='${CC} ${CFLAGS} -mdll -Wl,-soname,'$cf_cv_shared_soname',-stats -o $[@]'
5674 #MK_SHARED_LIB='${DLLTOOL} --export-all-symbols --output-exp --output-lib $[@]'
5675 cat >mk_shared_lib.sh <<-CF_EOF
5678 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5681 Linking shared library
5682 ** SHARED_LIB \$SHARED_LIB
5683 ** IMPORT_LIB \$IMPORT_LIB
5685 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5687 chmod +x mk_shared_lib.sh
5689 openbsd[2-9].*|mirbsd*) #(vi
5690 if test "$DFT_LWR_MODEL" = "shared" ; then
5691 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5692 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5694 if test "$cf_cv_enable_rpath" = yes ; then
5695 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5697 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5699 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5700 if test "$cf_cv_shlib_version" = rel; then
5701 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5703 cf_cv_shared_soname='`basename $@`'
5706 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5708 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5709 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5710 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5711 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5713 dragonfly*|freebsd*) #(vi
5714 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5715 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5716 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5717 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5718 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5721 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5722 if test "$cf_cv_shlib_version" = rel; then
5723 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5725 cf_cv_shared_soname='`basename $@`'
5728 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5731 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5732 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5733 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5734 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5735 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5736 if test "$cf_cv_shlib_version" = auto; then
5737 if test -f /usr/libexec/ld.elf_so; then
5738 cf_cv_shlib_version=abi
5740 cf_cv_shlib_version=rel
5744 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5745 if test "$cf_cv_shlib_version" = rel; then
5746 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5748 cf_cv_shared_soname='`basename $@`'
5751 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5753 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5757 # tested with OSF/1 V3.2 and 'cc'
5758 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5759 # link with shared libs).
5760 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5761 case $host_os in #(vi
5763 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5766 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5767 if test "$DFT_LWR_MODEL" = "shared" ; then
5768 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5769 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5771 cf_cv_rm_so_locs=yes
5773 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5774 # tested with osr5.0.5
5775 if test "$GCC" != yes; then
5776 CC_SHARED_OPTS='-belf -KPIC'
5778 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5779 if test "$cf_cv_enable_rpath" = yes ; then
5780 # only way is to set LD_RUN_PATH but no switch for it
5783 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5784 LINK_PROGS='LD_RUN_PATH=${libdir}'
5785 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5788 # tested with SunOS 4.1.1 and gcc 2.7.0
5789 if test "$GCC" != yes; then
5790 CC_SHARED_OPTS='-KPIC'
5792 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5793 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5796 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5797 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5798 if test "$DFT_LWR_MODEL" = "shared" ; then
5799 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5800 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5802 if test "$cf_cv_enable_rpath" = yes ; then
5803 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5806 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5807 if test "$cf_cv_shlib_version" = rel; then
5808 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5810 cf_cv_shared_soname='`basename $@`'
5813 if test "$GCC" != yes; then
5814 cf_save_CFLAGS="$CFLAGS"
5815 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5817 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5818 cat >conftest.$ac_ext <<_ACEOF
5819 #line 5819 "configure"
5820 #include "confdefs.h"
5830 rm -f conftest.$ac_objext
5831 if { (eval echo "$as_me:5831: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>&5
5834 echo "$as_me:5834: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:5837: \"$ac_try\"") >&5
5840 echo "$as_me:5840: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5844 echo "$as_me: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5847 rm -f conftest.$ac_objext conftest.$ac_ext
5849 CFLAGS="$cf_save_CFLAGS"
5850 CC_SHARED_OPTS=$cf_shared_opts
5851 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5853 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5856 sysv5uw7*|unix_sv*) #(vi
5857 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5858 if test "$GCC" != yes; then
5859 CC_SHARED_OPTS='-KPIC'
5861 MK_SHARED_LIB='${LD} -d y -G -o $@'
5864 CC_SHARED_OPTS='unknown'
5865 MK_SHARED_LIB='echo unknown'
5869 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5870 case "$cf_cv_shlib_version" in #(vi
5872 case "$MK_SHARED_LIB" in #(vi
5874 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5877 { echo "$as_me:5877: WARNING: ignored --with-shlib-version" >&5
5878 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5884 # RPATH_LIST is a colon-separated list of directories
5885 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
5886 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
5888 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
5890 echo "${as_me:-configure}:5890: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
5892 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
5894 echo "${as_me:-configure}:5894: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
5896 if test "$CC_SHARED_OPTS" = "unknown"; then
5897 for model in $cf_list_models; do
5898 if test "$model" = "shared"; then
5899 { { echo "$as_me:5899: error: Shared libraries are not supported in this version" >&5
5900 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5901 { (exit 1); exit 1; }; }
5906 ### If we're building with rpath, try to link non-standard libs that way too.
5907 if test "$DFT_LWR_MODEL" = "shared"; then
5909 echo "$as_me:5909: checking if rpath-hack should be disabled" >&5
5910 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
5912 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
5913 if test "${enable_rpath_hack+set}" = set; then
5914 enableval="$enable_rpath_hack"
5915 test "$enableval" != no && enableval=yes
5916 if test "$enableval" != "yes" ; then
5917 cf_disable_rpath_hack=yes
5919 cf_disable_rpath_hack=no
5923 cf_disable_rpath_hack=no
5926 echo "$as_me:5926: result: $cf_disable_rpath_hack" >&5
5927 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
5928 if test "$cf_disable_rpath_hack" = no ; then
5930 echo "$as_me:5930: checking for updated LDFLAGS" >&5
5931 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
5932 if test -n "$LD_RPATH_OPT" ; then
5933 echo "$as_me:5933: result: maybe" >&5
5934 echo "${ECHO_T}maybe" >&6
5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; ac_word=$2
5940 echo "$as_me:5940: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 if test -n "$cf_ldd_prog"; then
5946 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
5948 ac_save_IFS=$IFS; IFS=$ac_path_separator
5950 for ac_dir in $ac_dummy; do
5952 test -z "$ac_dir" && ac_dir=.
5953 $as_executable_p "$ac_dir/$ac_word" || continue
5954 ac_cv_prog_cf_ldd_prog="$ac_prog"
5955 echo "$as_me:5955: found $ac_dir/$ac_word" >&5
5961 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
5962 if test -n "$cf_ldd_prog"; then
5963 echo "$as_me:5963: result: $cf_ldd_prog" >&5
5964 echo "${ECHO_T}$cf_ldd_prog" >&6
5966 echo "$as_me:5966: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5970 test -n "$cf_ldd_prog" && break
5972 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
5974 cf_rpath_list="/usr/lib /lib"
5975 if test "$cf_ldd_prog" != no
5979 cat >conftest.$ac_ext <<_ACEOF
5980 #line 5980 "configure"
5981 #include "confdefs.h"
5991 rm -f conftest.$ac_objext conftest$ac_exeext
5992 if { (eval echo "$as_me:5992: \"$ac_link\"") >&5
5993 (eval $ac_link) 2>&5
5995 echo "$as_me:5995: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try='test -s conftest$ac_exeext'
5998 { (eval echo "$as_me:5998: \"$ac_try\"") >&5
6001 echo "$as_me:6001: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6004 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6006 echo "$as_me: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6011 # If we passed the link-test, but get a "not found" on a given library,
6012 # this could be due to inept reconfiguration of gcc to make it only
6013 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6014 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6015 # /usr/local libraries.
6016 if test -n "$cf_rpath_oops"
6018 for cf_rpath_src in $cf_rpath_oops
6020 for cf_rpath_dir in \
6025 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6027 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6029 echo "${as_me:-configure}:6029: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6031 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6039 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6041 echo "${as_me:-configure}:6041: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6043 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6045 echo "${as_me:-configure}:6045: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6048 for cf_rpath_src in $LDFLAGS
6050 case $cf_rpath_src in #(vi
6053 # check if this refers to a directory which we will ignore
6055 if test -n "$cf_rpath_list"
6057 for cf_rpath_item in $cf_rpath_list
6059 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6067 if test "$cf_rpath_skip" = no
6069 # transform the option
6070 if test "$LD_RPATH_OPT" = "-R " ; then
6071 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6073 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6076 # if we have not already added this, add it now
6077 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6078 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6080 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6082 echo "${as_me:-configure}:6082: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6084 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6089 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6091 LDFLAGS=$cf_rpath_dst
6093 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6095 echo "${as_me:-configure}:6095: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6097 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6099 echo "${as_me:-configure}:6099: testing ...checking LIBS $LIBS ..." 1>&5
6102 for cf_rpath_src in $LIBS
6104 case $cf_rpath_src in #(vi
6107 # check if this refers to a directory which we will ignore
6109 if test -n "$cf_rpath_list"
6111 for cf_rpath_item in $cf_rpath_list
6113 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6121 if test "$cf_rpath_skip" = no
6123 # transform the option
6124 if test "$LD_RPATH_OPT" = "-R " ; then
6125 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6127 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6130 # if we have not already added this, add it now
6131 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6132 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6134 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6136 echo "${as_me:-configure}:6136: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6138 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6143 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6147 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6149 echo "${as_me:-configure}:6149: testing ...checked LIBS $LIBS ..." 1>&5
6151 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6153 echo "${as_me:-configure}:6153: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6161 ###############################################################################
6163 ### use option --disable-overwrite to leave out the link to -lcurses
6164 echo "$as_me:6164: checking if you wish to install ncurses overwriting curses" >&5
6165 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6167 # Check whether --enable-overwrite or --disable-overwrite was given.
6168 if test "${enable_overwrite+set}" = set; then
6169 enableval="$enable_overwrite"
6170 with_overwrite=$enableval
6172 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6174 echo "$as_me:6174: result: $with_overwrite" >&5
6175 echo "${ECHO_T}$with_overwrite" >&6
6177 echo "$as_me:6177: checking if external terminfo-database is used" >&5
6178 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6180 # Check whether --enable-database or --disable-database was given.
6181 if test "${enable_database+set}" = set; then
6182 enableval="$enable_database"
6183 use_database=$enableval
6187 echo "$as_me:6187: result: $use_database" >&5
6188 echo "${ECHO_T}$use_database" >&6
6190 case $host_os in #(vi
6192 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6195 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6199 if test "$use_database" != no ; then
6200 cat >>confdefs.h <<\EOF
6201 #define USE_DATABASE 1
6204 echo "$as_me:6204: checking which terminfo source-file will be installed" >&5
6205 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6207 # Check whether --with-database or --without-database was given.
6208 if test "${with_database+set}" = set; then
6209 withval="$with_database"
6210 TERMINFO_SRC=$withval
6212 echo "$as_me:6212: result: $TERMINFO_SRC" >&5
6213 echo "${ECHO_T}$TERMINFO_SRC" >&6
6215 echo "$as_me:6215: checking whether to use hashed database instead of directory/tree" >&5
6216 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6218 # Check whether --with-hashed-db or --without-hashed-db was given.
6219 if test "${with_hashed_db+set}" = set; then
6220 withval="$with_hashed_db"
6225 echo "$as_me:6225: result: $with_hashed_db" >&5
6226 echo "${ECHO_T}$with_hashed_db" >&6
6231 echo "$as_me:6231: checking for list of fallback descriptions" >&5
6232 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6234 # Check whether --with-fallbacks or --without-fallbacks was given.
6235 if test "${with_fallbacks+set}" = set; then
6236 withval="$with_fallbacks"
6237 with_fallback=$withval
6241 echo "$as_me:6241: result: $with_fallback" >&5
6242 echo "${ECHO_T}$with_fallback" >&6
6243 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6245 echo "$as_me:6245: checking if you want modern xterm or antique" >&5
6246 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6248 # Check whether --with-xterm-new or --without-xterm-new was given.
6249 if test "${with_xterm_new+set}" = set; then
6250 withval="$with_xterm_new"
6251 with_xterm_new=$withval
6255 case $with_xterm_new in
6256 no) with_xterm_new=xterm-old;;
6257 *) with_xterm_new=xterm-new;;
6259 echo "$as_me:6259: result: $with_xterm_new" >&5
6260 echo "${ECHO_T}$with_xterm_new" >&6
6261 WHICH_XTERM=$with_xterm_new
6263 echo "$as_me:6263: checking if xterm backspace sends BS or DEL" >&5
6264 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6266 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6267 if test "${with_xterm_kbs+set}" = set; then
6268 withval="$with_xterm_kbs"
6269 with_xterm_kbs=$withval
6273 case x$with_xterm_kbs in
6274 xyes|xno|xBS|xbs|x8)
6281 with_xterm_kbs=$withval
6284 echo "$as_me:6284: result: $with_xterm_kbs" >&5
6285 echo "${ECHO_T}$with_xterm_kbs" >&6
6286 XTERM_KBS=$with_xterm_kbs
6289 if test "$use_database" = no ; then
6290 TERMINFO="${datadir}/terminfo"
6294 echo "$as_me:6294: checking for list of terminfo directories" >&5
6295 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6297 case $cf_cv_system_name in
6298 os2*) PATH_SEPARATOR=';' ;;
6299 *) PATH_SEPARATOR=':' ;;
6302 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6303 if test "${with_terminfo_dirs+set}" = set; then
6304 withval="$with_terminfo_dirs"
6307 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6309 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6311 for cf_src_path in $withval
6314 if test "x$prefix" != xNONE; then
6315 cf_path_syntax="$prefix"
6317 cf_path_syntax="$ac_default_prefix"
6320 case ".$cf_src_path" in #(vi
6321 .\$\(*\)*|.\'*\'*) #(vi
6325 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6328 eval cf_src_path="$cf_src_path"
6329 case ".$cf_src_path" in #(vi
6331 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6336 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6339 { { echo "$as_me:6339: error: expected a pathname, not \"$cf_src_path\"" >&5
6340 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6341 { (exit 1); exit 1; }; }
6345 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6346 cf_dst_path="${cf_dst_path}${cf_src_path}"
6350 eval 'TERMINFO_DIRS="$cf_dst_path"'
6352 echo "$as_me:6352: result: $TERMINFO_DIRS" >&5
6353 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6354 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6355 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6358 echo "$as_me:6358: checking for default terminfo directory" >&5
6359 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6361 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6362 if test "${with_default_terminfo_dir+set}" = set; then
6363 withval="$with_default_terminfo_dir"
6366 withval="${TERMINFO:-${datadir}/terminfo}"
6367 fi; if test -n "${datadir}/terminfo" ; then
6369 if test "x$prefix" != xNONE; then
6370 cf_path_syntax="$prefix"
6372 cf_path_syntax="$ac_default_prefix"
6375 case ".$withval" in #(vi
6376 .\$\(*\)*|.\'*\'*) #(vi
6380 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6383 eval withval="$withval"
6384 case ".$withval" in #(vi
6386 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6391 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6394 { { echo "$as_me:6394: error: expected a pathname, not \"$withval\"" >&5
6395 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6396 { (exit 1); exit 1; }; }
6403 echo "$as_me:6403: result: $TERMINFO" >&5
6404 echo "${ECHO_T}$TERMINFO" >&6
6405 cat >>confdefs.h <<EOF
6406 #define TERMINFO "$TERMINFO"
6411 ### use option --disable-big-core to make tic run on small machines
6412 ### We need 4Mb, check if we can allocate 50% more than that.
6413 echo "$as_me:6413: checking if big-core option selected" >&5
6414 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6416 # Check whether --enable-big-core or --disable-big-core was given.
6417 if test "${enable_big_core+set}" = set; then
6418 enableval="$enable_big_core"
6419 with_big_core=$enableval
6421 if test "$cross_compiling" = yes; then
6424 cat >conftest.$ac_ext <<_ACEOF
6425 #line 6425 "configure"
6426 #include "confdefs.h"
6431 unsigned long n = 6000000L;
6432 char *s = malloc(n);
6435 ${cf_cv_main_return:-return}(s == 0);
6438 rm -f conftest$ac_exeext
6439 if { (eval echo "$as_me:6439: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>&5
6442 echo "$as_me:6442: \$? = $ac_status" >&5
6443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6444 { (eval echo "$as_me:6444: \"$ac_try\"") >&5
6447 echo "$as_me:6447: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6451 echo "$as_me: program exited with status $ac_status" >&5
6452 echo "$as_me: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6456 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6459 echo "$as_me:6459: result: $with_big_core" >&5
6460 echo "${ECHO_T}$with_big_core" >&6
6461 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6462 #define HAVE_BIG_CORE 1
6465 ### ISO C only guarantees 512-char strings, we have tables which load faster
6466 ### when constructed using "big" strings. More than the C compiler, the awk
6467 ### program is a limit on most vendor UNIX systems. Check that we can build.
6468 echo "$as_me:6468: checking if big-strings option selected" >&5
6469 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6471 # Check whether --enable-big-strings or --disable-big-strings was given.
6472 if test "${enable_big_strings+set}" = set; then
6473 enableval="$enable_big_strings"
6474 with_big_strings=$enableval
6479 eval with_big_strings=no
6482 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6483 | $AWK '{ printf "%d\n", length($0); }' 2>/dev/null | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
6484 eval with_big_strings=yes
6486 eval with_big_strings=no
6492 echo "$as_me:6492: result: $with_big_strings" >&5
6493 echo "${ECHO_T}$with_big_strings" >&6
6496 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6498 ### use option --enable-termcap to compile in the termcap fallback support
6499 echo "$as_me:6499: checking if you want termcap-fallback support" >&5
6500 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6502 # Check whether --enable-termcap or --disable-termcap was given.
6503 if test "${enable_termcap+set}" = set; then
6504 enableval="$enable_termcap"
6505 with_termcap=$enableval
6509 echo "$as_me:6509: result: $with_termcap" >&5
6510 echo "${ECHO_T}$with_termcap" >&6
6512 if test "$with_termcap" != "yes" ; then
6513 if test "$use_database" = no ; then
6514 if test -z "$with_fallback" ; then
6515 { { echo "$as_me:6515: error: You have disabled the database w/o specifying fallbacks" >&5
6516 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6517 { (exit 1); exit 1; }; }
6520 cat >>confdefs.h <<\EOF
6521 #define PURE_TERMINFO 1
6526 if test "$with_ticlib" != no ; then
6527 { { echo "$as_me:6527: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6528 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6529 { (exit 1); exit 1; }; }
6532 cat >>confdefs.h <<\EOF
6533 #define USE_TERMCAP 1
6536 echo "$as_me:6536: checking for list of termcap files" >&5
6537 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6539 # Check whether --with-termpath or --without-termpath was given.
6540 if test "${with_termpath+set}" = set; then
6541 withval="$with_termpath"
6544 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6546 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6548 for cf_src_path in $withval
6551 if test "x$prefix" != xNONE; then
6552 cf_path_syntax="$prefix"
6554 cf_path_syntax="$ac_default_prefix"
6557 case ".$cf_src_path" in #(vi
6558 .\$\(*\)*|.\'*\'*) #(vi
6562 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6565 eval cf_src_path="$cf_src_path"
6566 case ".$cf_src_path" in #(vi
6568 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6573 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6576 { { echo "$as_me:6576: error: expected a pathname, not \"$cf_src_path\"" >&5
6577 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6578 { (exit 1); exit 1; }; }
6582 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6583 cf_dst_path="${cf_dst_path}${cf_src_path}"
6587 eval 'TERMPATH="$cf_dst_path"'
6589 echo "$as_me:6589: result: $TERMPATH" >&5
6590 echo "${ECHO_T}$TERMPATH" >&6
6591 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6592 #define TERMPATH "$TERMPATH"
6595 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6596 echo "$as_me:6596: checking if fast termcap-loader is needed" >&5
6597 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6599 # Check whether --enable-getcap or --disable-getcap was given.
6600 if test "${enable_getcap+set}" = set; then
6601 enableval="$enable_getcap"
6602 with_getcap=$enableval
6606 echo "$as_me:6606: result: $with_getcap" >&5
6607 echo "${ECHO_T}$with_getcap" >&6
6608 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6609 #define USE_GETCAP 1
6612 echo "$as_me:6612: checking if translated termcaps will be cached in ~/.terminfo" >&5
6613 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6615 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6616 if test "${enable_getcap_cache+set}" = set; then
6617 enableval="$enable_getcap_cache"
6618 with_getcap_cache=$enableval
6620 with_getcap_cache=no
6622 echo "$as_me:6622: result: $with_getcap_cache" >&5
6623 echo "${ECHO_T}$with_getcap_cache" >&6
6624 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6625 #define USE_GETCAP_CACHE 1
6630 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6631 echo "$as_me:6631: checking if ~/.terminfo is wanted" >&5
6632 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6634 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6635 if test "${enable_home_terminfo+set}" = set; then
6636 enableval="$enable_home_terminfo"
6637 with_home_terminfo=$enableval
6639 with_home_terminfo=yes
6641 echo "$as_me:6641: result: $with_home_terminfo" >&5
6642 echo "${ECHO_T}$with_home_terminfo" >&6
6643 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6644 #define USE_HOME_TERMINFO 1
6647 echo "$as_me:6647: checking if you want to use restricted environment when running as root" >&5
6648 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6650 # Check whether --enable-root-environ or --disable-root-environ was given.
6651 if test "${enable_root_environ+set}" = set; then
6652 enableval="$enable_root_environ"
6653 with_root_environ=$enableval
6655 with_root_environ=yes
6657 echo "$as_me:6657: result: $with_root_environ" >&5
6658 echo "${ECHO_T}$with_root_environ" >&6
6659 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6660 #define USE_ROOT_ENVIRON 1
6663 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6664 ### to reduce storage requirements for the terminfo database.
6670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6671 echo "$as_me:6671: checking for $ac_func" >&5
6672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6673 if eval "test \"\${$as_ac_var+set}\" = set"; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 cat >conftest.$ac_ext <<_ACEOF
6677 #line 6677 "configure"
6678 #include "confdefs.h"
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char $ac_func (); below. */
6682 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6694 /* The GNU C library defines this for functions which it implements
6695 to always fail with ENOSYS. Some functions are actually named
6696 something starting with __ and the normal name is an alias. */
6697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6700 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6707 rm -f conftest.$ac_objext 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); } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:6714: \"$ac_try\"") >&5
6717 echo "$as_me:6717: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 eval "$as_ac_var=yes"
6721 echo "$as_me: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6723 eval "$as_ac_var=no"
6725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6727 echo "$as_me:6727: result: `eval echo '${'$as_ac_var'}'`" >&5
6728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6729 if test `eval echo '${'$as_ac_var'}'` = yes; then
6730 cat >>confdefs.h <<EOF
6731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6737 if test "$cross_compiling" = yes ; then
6743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6744 echo "$as_me:6744: checking for $ac_func" >&5
6745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6746 if eval "test \"\${$as_ac_var+set}\" = set"; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line 6750 "configure"
6751 #include "confdefs.h"
6752 /* System header to define __stub macros and hopefully few prototypes,
6753 which can conflict with char $ac_func (); below. */
6755 /* Override any gcc2 internal prototype to avoid an error. */
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6767 /* The GNU C library defines this for functions which it implements
6768 to always fail with ENOSYS. Some functions are actually named
6769 something starting with __ and the normal name is an alias. */
6770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:6781: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>&5
6784 echo "$as_me:6784: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -s conftest$ac_exeext'
6787 { (eval echo "$as_me:6787: \"$ac_try\"") >&5
6790 echo "$as_me:6790: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 eval "$as_ac_var=yes"
6794 echo "$as_me: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6796 eval "$as_ac_var=no"
6798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6800 echo "$as_me:6800: result: `eval echo '${'$as_ac_var'}'`" >&5
6801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6802 if test `eval echo '${'$as_ac_var'}'` = yes; then
6803 cat >>confdefs.h <<EOF
6804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6811 echo "$as_me:6811: checking if link/symlink functions work" >&5
6812 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6813 if test "${cf_cv_link_funcs+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 for cf_func in link symlink ; do
6819 if test "$cross_compiling" = yes; then
6821 eval 'ac_cv_func_'$cf_func'=error'
6823 cat >conftest.$ac_ext <<_ACEOF
6824 #line 6824 "configure"
6825 #include "confdefs.h"
6827 #include <sys/types.h>
6828 #include <sys/stat.h>
6829 #ifdef HAVE_UNISTD_H
6835 char *src = "config.log";
6836 char *dst = "conftest.chk";
6841 fail = ($cf_func("config.log", "conftest.chk") < 0)
6842 || (stat(dst, &dst_sb) < 0)
6843 || (dst_sb.st_mtime != src_sb.st_mtime);
6849 ${cf_cv_main_return:-return} (fail);
6853 rm -f conftest$ac_exeext
6854 if { (eval echo "$as_me:6854: \"$ac_link\"") >&5
6855 (eval $ac_link) 2>&5
6857 echo "$as_me:6857: \$? = $ac_status" >&5
6858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6859 { (eval echo "$as_me:6859: \"$ac_try\"") >&5
6862 echo "$as_me:6862: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6865 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6866 eval 'ac_cv_func_'$cf_func'=yes'
6868 echo "$as_me: program exited with status $ac_status" >&5
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 eval 'ac_cv_func_'$cf_func'=no'
6874 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6877 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6880 echo "$as_me:6880: result: $cf_cv_link_funcs" >&5
6881 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6882 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6886 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6887 #define HAVE_SYMLINK 1
6895 # soft links (symbolic links) are useful for some systems where hard links do
6896 # not work, or to make it simpler to copy terminfo trees around.
6897 if test "$ac_cv_func_symlink" = yes ; then
6898 echo "$as_me:6898: checking if tic should use symbolic links" >&5
6899 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6901 # Check whether --enable-symlinks or --disable-symlinks was given.
6902 if test "${enable_symlinks+set}" = set; then
6903 enableval="$enable_symlinks"
6904 with_symlinks=$enableval
6908 echo "$as_me:6908: result: $with_symlinks" >&5
6909 echo "${ECHO_T}$with_symlinks" >&6
6912 # If we have hard links and did not choose to use soft links instead, there is
6913 # no reason to make this choice optional - use the hard links.
6914 if test "$with_symlinks" = no ; then
6915 echo "$as_me:6915: checking if tic should use hard links" >&5
6916 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6917 if test "$ac_cv_func_link" = yes ; then
6922 echo "$as_me:6922: result: $with_links" >&5
6923 echo "${ECHO_T}$with_links" >&6
6926 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6930 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6931 #define USE_SYMLINKS 1
6934 ### use option --enable-broken-linker to force on use of broken-linker support
6935 echo "$as_me:6935: checking if you want broken-linker support code" >&5
6936 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6938 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6939 if test "${enable_broken_linker+set}" = set; then
6940 enableval="$enable_broken_linker"
6941 with_broken_linker=$enableval
6943 with_broken_linker=${BROKEN_LINKER:-no}
6945 echo "$as_me:6945: result: $with_broken_linker" >&5
6946 echo "${ECHO_T}$with_broken_linker" >&6
6949 if test "$with_broken_linker" = yes ; then
6950 cat >>confdefs.h <<\EOF
6951 #define BROKEN_LINKER 1
6955 elif test "$DFT_LWR_MODEL" = shared ; then
6956 case $cf_cv_system_name in #(vi
6958 cat >>confdefs.h <<\EOF
6959 #define BROKEN_LINKER 1
6963 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6965 echo "${as_me:-configure}:6965: testing cygwin linker is broken anyway ..." 1>&5
6971 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6972 echo "$as_me:6972: checking if tputs should process BSD-style prefix padding" >&5
6973 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6975 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6976 if test "${enable_bsdpad+set}" = set; then
6977 enableval="$enable_bsdpad"
6978 with_bsdpad=$enableval
6982 echo "$as_me:6982: result: $with_bsdpad" >&5
6983 echo "${ECHO_T}$with_bsdpad" >&6
6984 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6988 ### use option --enable-widec to turn on use of wide-character support
6997 # Check to define _XOPEN_SOURCE "automatically"
7000 cf_POSIX_C_SOURCE=199506L
7003 case $host_os in #(vi
7005 cf_xopen_source="-D_ALL_SOURCE"
7011 cf_xopen_source="-D_APPLE_C_SOURCE"
7014 cf_xopen_source="-D_DARWIN_C_SOURCE"
7017 freebsd*|dragonfly*) #(vi
7018 # 5.x headers associate
7019 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7020 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7021 cf_POSIX_C_SOURCE=200112L
7023 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7026 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7029 cf_xopen_source="-D_HPUX_SOURCE"
7032 cf_xopen_source="-D_SGI_SOURCE"
7035 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7037 echo "$as_me:7037: checking if we must define _GNU_SOURCE" >&5
7038 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7039 if test "${cf_cv_gnu_source+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 cat >conftest.$ac_ext <<_ACEOF
7044 #line 7044 "configure"
7045 #include "confdefs.h"
7046 #include <sys/types.h>
7051 #ifndef _XOPEN_SOURCE
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:7059: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>&5
7062 echo "$as_me:7062: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -s conftest.$ac_objext'
7065 { (eval echo "$as_me:7065: \"$ac_try\"") >&5
7068 echo "$as_me:7068: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7072 echo "$as_me: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7076 cat >conftest.$ac_ext <<_ACEOF
7077 #line 7077 "configure"
7078 #include "confdefs.h"
7079 #include <sys/types.h>
7084 #ifdef _XOPEN_SOURCE
7091 rm -f conftest.$ac_objext
7092 if { (eval echo "$as_me:7092: \"$ac_compile\"") >&5
7093 (eval $ac_compile) 2>&5
7095 echo "$as_me:7095: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:7098: \"$ac_try\"") >&5
7101 echo "$as_me:7101: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7105 echo "$as_me: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 cf_cv_gnu_source=yes
7109 rm -f conftest.$ac_objext conftest.$ac_ext
7113 rm -f conftest.$ac_objext conftest.$ac_ext
7116 echo "$as_me:7116: result: $cf_cv_gnu_source" >&5
7117 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7118 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7122 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7125 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7127 cf_save_CFLAGS="$CFLAGS"
7128 cf_save_CPPFLAGS="$CPPFLAGS"
7130 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7131 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7132 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7134 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7135 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7136 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7138 echo "$as_me:7138: checking if we should define _POSIX_C_SOURCE" >&5
7139 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7140 if test "${cf_cv_posix_c_source+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 echo "${as_me:-configure}:7144: testing if the symbol is already defined go no further ..." 1>&5
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line 7147 "configure"
7148 #include "confdefs.h"
7149 #include <sys/types.h>
7154 #ifndef _POSIX_C_SOURCE
7161 rm -f conftest.$ac_objext
7162 if { (eval echo "$as_me:7162: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>&5
7165 echo "$as_me:7165: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:7168: \"$ac_try\"") >&5
7171 echo "$as_me:7171: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 cf_cv_posix_c_source=no
7175 echo "$as_me: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7177 cf_want_posix_source=no
7178 case .$cf_POSIX_C_SOURCE in #(vi
7180 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7183 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7184 cf_want_posix_source=yes
7187 cf_want_posix_source=yes
7190 if test "$cf_want_posix_source" = yes ; then
7191 cat >conftest.$ac_ext <<_ACEOF
7192 #line 7192 "configure"
7193 #include "confdefs.h"
7194 #include <sys/types.h>
7199 #ifdef _POSIX_SOURCE
7206 rm -f conftest.$ac_objext
7207 if { (eval echo "$as_me:7207: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>&5
7210 echo "$as_me:7210: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7216 echo "$as_me:7216: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7220 echo "$as_me: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7222 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7224 rm -f conftest.$ac_objext conftest.$ac_ext
7227 echo "${as_me:-configure}:7227: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7229 CFLAGS="$cf_trim_CFLAGS"
7230 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7232 echo "${as_me:-configure}:7232: testing if the second compile does not leave our definition intact error ..." 1>&5
7234 cat >conftest.$ac_ext <<_ACEOF
7235 #line 7235 "configure"
7236 #include "confdefs.h"
7237 #include <sys/types.h>
7242 #ifndef _POSIX_C_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=no
7267 rm -f conftest.$ac_objext conftest.$ac_ext
7268 CFLAGS="$cf_save_CFLAGS"
7269 CPPFLAGS="$cf_save_CPPFLAGS"
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7275 echo "$as_me:7275: result: $cf_cv_posix_c_source" >&5
7276 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7278 if test "$cf_cv_posix_c_source" != no ; then
7279 CFLAGS="$cf_trim_CFLAGS"
7280 CPPFLAGS="$cf_trim_CPPFLAGS"
7285 cf_new_extra_cppflags=
7287 for cf_add_cflags in $cf_cv_posix_c_source
7289 case $cf_fix_cppflags in
7291 case $cf_add_cflags in #(vi
7292 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7293 case $cf_add_cflags in
7295 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7297 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7298 && test -z "${cf_tst_cflags}" \
7299 && cf_fix_cppflags=yes
7301 if test $cf_fix_cppflags = yes ; then
7302 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7304 elif test "${cf_tst_cflags}" = "\"'" ; then
7305 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7311 *$cf_add_cflags) #(vi
7314 case $cf_add_cflags in #(vi
7316 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7318 CPPFLAGS=`echo "$CPPFLAGS" | \
7319 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7320 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7324 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7329 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7334 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7336 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7338 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7339 && test -z "${cf_tst_cflags}" \
7340 && cf_fix_cppflags=no
7345 if test -n "$cf_new_cflags" ; then
7347 CFLAGS="$CFLAGS $cf_new_cflags"
7350 if test -n "$cf_new_cppflags" ; then
7352 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7355 if test -n "$cf_new_extra_cppflags" ; then
7357 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7364 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7367 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7368 cf_xopen_source="-D_BSD_SOURCE"
7372 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7375 cf_xopen_source="-D_OSF_SOURCE"
7378 cf_xopen_source="-D_QNX_SOURCE"
7381 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7384 cf_xopen_source="-D__EXTENSIONS__"
7388 echo "$as_me:7388: checking if we should define _XOPEN_SOURCE" >&5
7389 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7390 if test "${cf_cv_xopen_source+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 cat >conftest.$ac_ext <<_ACEOF
7395 #line 7395 "configure"
7396 #include "confdefs.h"
7400 #include <sys/types.h>
7406 #ifndef _XOPEN_SOURCE
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:7414: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>&5
7417 echo "$as_me:7417: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:7420: \"$ac_try\"") >&5
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 cf_cv_xopen_source=no
7427 echo "$as_me: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7430 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7431 cat >conftest.$ac_ext <<_ACEOF
7432 #line 7432 "configure"
7433 #include "confdefs.h"
7437 #include <sys/types.h>
7443 #ifdef _XOPEN_SOURCE
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:7451: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>&5
7454 echo "$as_me:7454: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:7457: \"$ac_try\"") >&5
7460 echo "$as_me:7460: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 cf_cv_xopen_source=no
7464 echo "$as_me: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7466 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7468 rm -f conftest.$ac_objext conftest.$ac_ext
7472 rm -f conftest.$ac_objext conftest.$ac_ext
7475 echo "$as_me:7475: result: $cf_cv_xopen_source" >&5
7476 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7478 if test "$cf_cv_xopen_source" != no ; then
7480 CFLAGS=`echo "$CFLAGS" | \
7481 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7482 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7484 CPPFLAGS=`echo "$CPPFLAGS" | \
7485 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7486 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7488 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7493 cf_new_extra_cppflags=
7495 for cf_add_cflags in $cf_temp_xopen_source
7497 case $cf_fix_cppflags in
7499 case $cf_add_cflags in #(vi
7500 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7501 case $cf_add_cflags in
7503 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7505 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7506 && test -z "${cf_tst_cflags}" \
7507 && cf_fix_cppflags=yes
7509 if test $cf_fix_cppflags = yes ; then
7510 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7512 elif test "${cf_tst_cflags}" = "\"'" ; then
7513 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7519 *$cf_add_cflags) #(vi
7522 case $cf_add_cflags in #(vi
7524 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7526 CPPFLAGS=`echo "$CPPFLAGS" | \
7527 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7528 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7532 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7537 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7544 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7546 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7547 && test -z "${cf_tst_cflags}" \
7548 && cf_fix_cppflags=no
7553 if test -n "$cf_new_cflags" ; then
7555 CFLAGS="$CFLAGS $cf_new_cflags"
7558 if test -n "$cf_new_cppflags" ; then
7560 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7563 if test -n "$cf_new_extra_cppflags" ; then
7565 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7570 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7572 cf_save_CFLAGS="$CFLAGS"
7573 cf_save_CPPFLAGS="$CPPFLAGS"
7575 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7576 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7577 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7579 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7580 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7581 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7583 echo "$as_me:7583: checking if we should define _POSIX_C_SOURCE" >&5
7584 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7585 if test "${cf_cv_posix_c_source+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 echo "${as_me:-configure}:7589: testing if the symbol is already defined go no further ..." 1>&5
7591 cat >conftest.$ac_ext <<_ACEOF
7592 #line 7592 "configure"
7593 #include "confdefs.h"
7594 #include <sys/types.h>
7599 #ifndef _POSIX_C_SOURCE
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:7607: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>&5
7610 echo "$as_me:7610: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:7613: \"$ac_try\"") >&5
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 cf_cv_posix_c_source=no
7620 echo "$as_me: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 cf_want_posix_source=no
7623 case .$cf_POSIX_C_SOURCE in #(vi
7625 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7628 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7629 cf_want_posix_source=yes
7632 cf_want_posix_source=yes
7635 if test "$cf_want_posix_source" = yes ; then
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line 7637 "configure"
7638 #include "confdefs.h"
7639 #include <sys/types.h>
7644 #ifdef _POSIX_SOURCE
7651 rm -f conftest.$ac_objext
7652 if { (eval echo "$as_me:7652: \"$ac_compile\"") >&5
7653 (eval $ac_compile) 2>&5
7655 echo "$as_me:7655: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -s conftest.$ac_objext'
7658 { (eval echo "$as_me:7658: \"$ac_try\"") >&5
7661 echo "$as_me:7661: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7665 echo "$as_me: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7669 rm -f conftest.$ac_objext conftest.$ac_ext
7672 echo "${as_me:-configure}:7672: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7674 CFLAGS="$cf_trim_CFLAGS"
7675 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7677 echo "${as_me:-configure}:7677: testing if the second compile does not leave our definition intact error ..." 1>&5
7679 cat >conftest.$ac_ext <<_ACEOF
7680 #line 7680 "configure"
7681 #include "confdefs.h"
7682 #include <sys/types.h>
7687 #ifndef _POSIX_C_SOURCE
7694 rm -f conftest.$ac_objext
7695 if { (eval echo "$as_me:7695: \"$ac_compile\"") >&5
7696 (eval $ac_compile) 2>&5
7698 echo "$as_me:7698: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:7701: \"$ac_try\"") >&5
7704 echo "$as_me:7704: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7708 echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 cf_cv_posix_c_source=no
7712 rm -f conftest.$ac_objext conftest.$ac_ext
7713 CFLAGS="$cf_save_CFLAGS"
7714 CPPFLAGS="$cf_save_CPPFLAGS"
7717 rm -f conftest.$ac_objext conftest.$ac_ext
7720 echo "$as_me:7720: result: $cf_cv_posix_c_source" >&5
7721 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7723 if test "$cf_cv_posix_c_source" != no ; then
7724 CFLAGS="$cf_trim_CFLAGS"
7725 CPPFLAGS="$cf_trim_CPPFLAGS"
7730 cf_new_extra_cppflags=
7732 for cf_add_cflags in $cf_cv_posix_c_source
7734 case $cf_fix_cppflags in
7736 case $cf_add_cflags in #(vi
7737 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7738 case $cf_add_cflags in
7740 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7742 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7743 && test -z "${cf_tst_cflags}" \
7744 && cf_fix_cppflags=yes
7746 if test $cf_fix_cppflags = yes ; then
7747 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7749 elif test "${cf_tst_cflags}" = "\"'" ; then
7750 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7756 *$cf_add_cflags) #(vi
7759 case $cf_add_cflags in #(vi
7761 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7763 CPPFLAGS=`echo "$CPPFLAGS" | \
7764 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7765 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7769 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7774 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7779 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7781 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7783 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7784 && test -z "${cf_tst_cflags}" \
7785 && cf_fix_cppflags=no
7790 if test -n "$cf_new_cflags" ; then
7792 CFLAGS="$CFLAGS $cf_new_cflags"
7795 if test -n "$cf_new_cppflags" ; then
7797 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7800 if test -n "$cf_new_extra_cppflags" ; then
7802 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7810 if test -n "$cf_xopen_source" ; then
7815 cf_new_extra_cppflags=
7817 for cf_add_cflags in $cf_xopen_source
7819 case $cf_fix_cppflags in
7821 case $cf_add_cflags in #(vi
7822 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7823 case $cf_add_cflags in
7825 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7827 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7828 && test -z "${cf_tst_cflags}" \
7829 && cf_fix_cppflags=yes
7831 if test $cf_fix_cppflags = yes ; then
7832 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7834 elif test "${cf_tst_cflags}" = "\"'" ; then
7835 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7841 *$cf_add_cflags) #(vi
7844 case $cf_add_cflags in #(vi
7846 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7848 CPPFLAGS=`echo "$CPPFLAGS" | \
7849 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7850 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7854 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7859 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7864 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7866 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7868 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7869 && test -z "${cf_tst_cflags}" \
7870 && cf_fix_cppflags=no
7875 if test -n "$cf_new_cflags" ; then
7877 CFLAGS="$CFLAGS $cf_new_cflags"
7880 if test -n "$cf_new_cppflags" ; then
7882 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7885 if test -n "$cf_new_extra_cppflags" ; then
7887 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7892 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
7893 echo "$as_me:7893: checking if _XOPEN_SOURCE really is set" >&5
7894 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line 7896 "configure"
7897 #include "confdefs.h"
7903 #ifndef _XOPEN_SOURCE
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:7911: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>&5
7914 echo "$as_me:7914: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:7917: \"$ac_try\"") >&5
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 cf_XOPEN_SOURCE_set=yes
7924 echo "$as_me: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 cf_XOPEN_SOURCE_set=no
7928 rm -f conftest.$ac_objext conftest.$ac_ext
7929 echo "$as_me:7929: result: $cf_XOPEN_SOURCE_set" >&5
7930 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
7931 if test $cf_XOPEN_SOURCE_set = yes
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line 7934 "configure"
7935 #include "confdefs.h"
7941 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
7948 rm -f conftest.$ac_objext
7949 if { (eval echo "$as_me:7949: \"$ac_compile\"") >&5
7950 (eval $ac_compile) 2>&5
7952 echo "$as_me:7952: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -s conftest.$ac_objext'
7955 { (eval echo "$as_me:7955: \"$ac_try\"") >&5
7958 echo "$as_me:7958: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 cf_XOPEN_SOURCE_set_ok=yes
7962 echo "$as_me: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7964 cf_XOPEN_SOURCE_set_ok=no
7966 rm -f conftest.$ac_objext conftest.$ac_ext
7967 if test $cf_XOPEN_SOURCE_set_ok = no
7969 { echo "$as_me:7969: WARNING: _XOPEN_SOURCE is lower than requested" >&5
7970 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
7974 echo "$as_me:7974: checking if we should define _XOPEN_SOURCE" >&5
7975 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7976 if test "${cf_cv_xopen_source+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 cat >conftest.$ac_ext <<_ACEOF
7981 #line 7981 "configure"
7982 #include "confdefs.h"
7986 #include <sys/types.h>
7992 #ifndef _XOPEN_SOURCE
7999 rm -f conftest.$ac_objext
8000 if { (eval echo "$as_me:8000: \"$ac_compile\"") >&5
8001 (eval $ac_compile) 2>&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest.$ac_objext'
8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 cf_cv_xopen_source=no
8013 echo "$as_me: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8016 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8017 cat >conftest.$ac_ext <<_ACEOF
8018 #line 8018 "configure"
8019 #include "confdefs.h"
8023 #include <sys/types.h>
8029 #ifdef _XOPEN_SOURCE
8036 rm -f conftest.$ac_objext
8037 if { (eval echo "$as_me:8037: \"$ac_compile\"") >&5
8038 (eval $ac_compile) 2>&5
8040 echo "$as_me:8040: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -s conftest.$ac_objext'
8043 { (eval echo "$as_me:8043: \"$ac_try\"") >&5
8046 echo "$as_me:8046: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 cf_cv_xopen_source=no
8050 echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8054 rm -f conftest.$ac_objext conftest.$ac_ext
8058 rm -f conftest.$ac_objext conftest.$ac_ext
8061 echo "$as_me:8061: result: $cf_cv_xopen_source" >&5
8062 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8064 if test "$cf_cv_xopen_source" != no ; then
8066 CFLAGS=`echo "$CFLAGS" | \
8067 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8068 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8070 CPPFLAGS=`echo "$CPPFLAGS" | \
8071 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8072 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8074 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8079 cf_new_extra_cppflags=
8081 for cf_add_cflags in $cf_temp_xopen_source
8083 case $cf_fix_cppflags in
8085 case $cf_add_cflags in #(vi
8086 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8087 case $cf_add_cflags in
8089 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8091 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8092 && test -z "${cf_tst_cflags}" \
8093 && cf_fix_cppflags=yes
8095 if test $cf_fix_cppflags = yes ; then
8096 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8098 elif test "${cf_tst_cflags}" = "\"'" ; then
8099 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8105 *$cf_add_cflags) #(vi
8108 case $cf_add_cflags in #(vi
8110 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8112 CPPFLAGS=`echo "$CPPFLAGS" | \
8113 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8114 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8118 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8123 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8130 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8132 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8133 && test -z "${cf_tst_cflags}" \
8134 && cf_fix_cppflags=no
8139 if test -n "$cf_new_cflags" ; then
8141 CFLAGS="$CFLAGS $cf_new_cflags"
8144 if test -n "$cf_new_cppflags" ; then
8146 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8149 if test -n "$cf_new_extra_cppflags" ; then
8151 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8159 # Work around breakage on OS X
8161 echo "$as_me:8161: checking if SIGWINCH is defined" >&5
8162 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8163 if test "${cf_cv_define_sigwinch+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.$ac_ext <<_ACEOF
8168 #line 8168 "configure"
8169 #include "confdefs.h"
8171 #include <sys/types.h>
8172 #include <sys/signal.h>
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:8183: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>&5
8186 echo "$as_me:8186: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:8189: \"$ac_try\"") >&5
8192 echo "$as_me:8192: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 cf_cv_define_sigwinch=yes
8196 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 cat >conftest.$ac_ext <<_ACEOF
8199 #line 8199 "configure"
8200 #include "confdefs.h"
8202 #undef _XOPEN_SOURCE
8203 #undef _POSIX_SOURCE
8204 #undef _POSIX_C_SOURCE
8205 #include <sys/types.h>
8206 #include <sys/signal.h>
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:8217: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>&5
8220 echo "$as_me:8220: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (eval echo "$as_me:8223: \"$ac_try\"") >&5
8226 echo "$as_me:8226: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 cf_cv_define_sigwinch=maybe
8230 echo "$as_me: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8232 cf_cv_define_sigwinch=no
8234 rm -f conftest.$ac_objext conftest.$ac_ext
8237 rm -f conftest.$ac_objext conftest.$ac_ext
8240 echo "$as_me:8240: result: $cf_cv_define_sigwinch" >&5
8241 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8243 if test "$cf_cv_define_sigwinch" = maybe ; then
8244 echo "$as_me:8244: checking for actual SIGWINCH definition" >&5
8245 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8246 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cf_cv_fixup_sigwinch=unknown
8252 while test $cf_sigwinch != 1
8254 cat >conftest.$ac_ext <<_ACEOF
8255 #line 8255 "configure"
8256 #include "confdefs.h"
8258 #undef _XOPEN_SOURCE
8259 #undef _POSIX_SOURCE
8260 #undef _POSIX_C_SOURCE
8261 #include <sys/types.h>
8262 #include <sys/signal.h>
8268 #if SIGWINCH != $cf_sigwinch
8276 rm -f conftest.$ac_objext
8277 if { (eval echo "$as_me:8277: \"$ac_compile\"") >&5
8278 (eval $ac_compile) 2>&5
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -s conftest.$ac_objext'
8283 { (eval echo "$as_me:8283: \"$ac_try\"") >&5
8286 echo "$as_me:8286: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 cf_cv_fixup_sigwinch=$cf_sigwinch
8291 echo "$as_me: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8294 rm -f conftest.$ac_objext conftest.$ac_ext
8296 cf_sigwinch=`expr $cf_sigwinch - 1`
8300 echo "$as_me:8300: result: $cf_cv_fixup_sigwinch" >&5
8301 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8303 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8304 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8308 # Checks for CODESET support.
8310 echo "$as_me:8310: checking for nl_langinfo and CODESET" >&5
8311 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8312 if test "${am_cv_langinfo_codeset+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8316 #line 8316 "configure"
8317 #include "confdefs.h"
8318 #include <langinfo.h>
8322 char* cs = nl_langinfo(CODESET);
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (eval echo "$as_me:8328: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>&5
8331 echo "$as_me:8331: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:8334: \"$ac_try\"") >&5
8337 echo "$as_me:8337: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 am_cv_langinfo_codeset=yes
8341 echo "$as_me: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8343 am_cv_langinfo_codeset=no
8345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8348 echo "$as_me:8348: result: $am_cv_langinfo_codeset" >&5
8349 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8350 if test $am_cv_langinfo_codeset = yes; then
8352 cat >>confdefs.h <<\EOF
8353 #define HAVE_LANGINFO_CODESET 1
8358 # use these variables to work around a defect in gcc's fixincludes.
8362 echo "$as_me:8362: checking if you want wide-character code" >&5
8363 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8365 # Check whether --enable-widec or --disable-widec was given.
8366 if test "${enable_widec+set}" = set; then
8367 enableval="$enable_widec"
8368 with_widec=$enableval
8372 echo "$as_me:8372: result: $with_widec" >&5
8373 echo "${ECHO_T}$with_widec" >&6
8374 if test "$with_widec" = yes ; then
8375 LIB_SUFFIX="w${LIB_SUFFIX}"
8376 cat >>confdefs.h <<\EOF
8377 #define USE_WIDEC_SUPPORT 1
8380 cat >>confdefs.h <<\EOF
8381 #define NCURSES_WIDECHAR 1
8384 echo "$as_me:8384: checking if wchar.h can be used as is" >&5
8385 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8386 if test "${cf_cv_wchar_h_okay+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8402 int bar = iswpunct(foo)
8407 rm -f conftest.$ac_objext
8408 if { (eval echo "$as_me:8408: \"$ac_compile\"") >&5
8409 (eval $ac_compile) 2>&5
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:8414: \"$ac_try\"") >&5
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 cf_cv_wchar_h_okay=yes
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 cf_cv_wchar_h_okay=no
8425 rm -f conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:8427: result: $cf_cv_wchar_h_okay" >&5
8428 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8430 if test $cf_cv_wchar_h_okay = no
8433 echo "$as_me:8433: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8434 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line 8436 "configure"
8437 #include "confdefs.h"
8438 #include <sys/types.h>
8444 #ifndef _XOPEN_SOURCE_EXTENDED
8451 rm -f conftest.$ac_objext
8452 if { (eval echo "$as_me:8452: \"$ac_compile\"") >&5
8453 (eval $ac_compile) 2>&5
8455 echo "$as_me:8455: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -s conftest.$ac_objext'
8458 { (eval echo "$as_me:8458: \"$ac_try\"") >&5
8461 echo "$as_me:8461: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8465 echo "$as_me: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8469 rm -f conftest.$ac_objext conftest.$ac_ext
8470 echo "$as_me:8470: result: $cf_result" >&5
8471 echo "${ECHO_T}$cf_result" >&6
8473 if test "$cf_result" = yes ; then
8474 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8475 elif test "x" != "x" ; then
8476 echo "$as_me:8476: checking checking for compatible value versus " >&5
8477 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8479 #line 8479 "configure"
8480 #include "confdefs.h"
8481 #include <sys/types.h>
8487 #if _XOPEN_SOURCE_EXTENDED- < 0
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:8495: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8498 echo "$as_me:8498: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:8501: \"$ac_try\"") >&5
8504 echo "$as_me:8504: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8508 echo "$as_me: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:8513: result: $cf_result" >&5
8514 echo "${ECHO_T}$cf_result" >&6
8515 if test "$cf_result" = no ; then
8516 # perhaps we can override it - try...
8517 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8524 NCURSES_CH_T=cchar_t
8526 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8529 echo "$as_me:8529: checking for $ac_func" >&5
8530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8531 if eval "test \"\${$as_ac_var+set}\" = set"; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line 8535 "configure"
8536 #include "confdefs.h"
8537 /* System header to define __stub macros and hopefully few prototypes,
8538 which can conflict with char $ac_func (); below. */
8540 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8552 /* The GNU C library defines this for functions which it implements
8553 to always fail with ENOSYS. Some functions are actually named
8554 something starting with __ and the normal name is an alias. */
8555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8558 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8565 rm -f conftest.$ac_objext conftest$ac_exeext
8566 if { (eval echo "$as_me:8566: \"$ac_link\"") >&5
8567 (eval $ac_link) 2>&5
8569 echo "$as_me:8569: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -s conftest$ac_exeext'
8572 { (eval echo "$as_me:8572: \"$ac_try\"") >&5
8575 echo "$as_me:8575: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 eval "$as_ac_var=yes"
8579 echo "$as_me: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8581 eval "$as_ac_var=no"
8583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8585 echo "$as_me:8585: result: `eval echo '${'$as_ac_var'}'`" >&5
8586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8587 if test `eval echo '${'$as_ac_var'}'` = yes; then
8588 cat >>confdefs.h <<EOF
8589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8595 if test "$ac_cv_func_putwc" != yes ; then
8597 echo "$as_me:8597: checking for multibyte character support" >&5
8598 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8599 if test "${cf_cv_utf8_lib+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 cf_save_LIBS="$LIBS"
8604 cat >conftest.$ac_ext <<_ACEOF
8605 #line 8605 "configure"
8606 #include "confdefs.h"
8617 rm -f conftest.$ac_objext conftest$ac_exeext
8618 if { (eval echo "$as_me:8618: \"$ac_link\"") >&5
8619 (eval $ac_link) 2>&5
8621 echo "$as_me:8621: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:8624: \"$ac_try\"") >&5
8627 echo "$as_me:8627: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8631 echo "$as_me: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8635 # will be set on completion of the AC_TRY_LINK below.
8636 cf_cv_header_path_utf8=
8637 cf_cv_library_path_utf8=
8639 echo "${as_me:-configure}:8639: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8641 cf_save_LIBS="$LIBS"
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line 8644 "configure"
8645 #include "confdefs.h"
8647 #include <libutf8.h>
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:8657: \"$ac_link\"") >&5
8658 (eval $ac_link) 2>&5
8660 echo "$as_me:8660: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:8663: \"$ac_try\"") >&5
8666 echo "$as_me:8666: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8669 cf_cv_find_linkage_utf8=yes
8670 cf_cv_header_path_utf8=/usr/include
8671 cf_cv_library_path_utf8=/usr/lib
8674 echo "$as_me: failed program was:" >&5
8675 cat conftest.$ac_ext >&5
8677 LIBS="-lutf8 $cf_save_LIBS"
8679 cat >conftest.$ac_ext <<_ACEOF
8680 #line 8680 "configure"
8681 #include "confdefs.h"
8683 #include <libutf8.h>
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:8693: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>&5
8696 echo "$as_me:8696: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -s conftest$ac_exeext'
8699 { (eval echo "$as_me:8699: \"$ac_try\"") >&5
8702 echo "$as_me:8702: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8705 cf_cv_find_linkage_utf8=yes
8706 cf_cv_header_path_utf8=/usr/include
8707 cf_cv_library_path_utf8=/usr/lib
8708 cf_cv_library_file_utf8="-lutf8"
8711 echo "$as_me: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8714 cf_cv_find_linkage_utf8=no
8715 LIBS="$cf_save_LIBS"
8717 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8719 echo "${as_me:-configure}:8719: testing find linkage for utf8 library ..." 1>&5
8721 echo "${as_me:-configure}:8721: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8723 cf_save_CPPFLAGS="$CPPFLAGS"
8724 cf_test_CPPFLAGS="$CPPFLAGS"
8728 # collect the current set of include-directories from compiler flags
8729 cf_header_path_list=""
8730 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8731 for cf_header_path in $CPPFLAGS $CFLAGS
8733 case $cf_header_path in #(vi
8735 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8737 test "$cf_header_path" != "NONE" && \
8738 test -d "$cf_header_path" && \
8740 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8741 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8742 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8743 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8744 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8745 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8748 cf_header_path_list="$cf_header_path_list $cf_search"
8754 # add the variations for the package we are looking for
8758 test "/usr" != "$prefix" && \
8760 (test $prefix = NONE || test "/usr" != "$prefix") && {
8761 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8762 test -d /usr/include && cf_search="$cf_search /usr/include"
8763 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8764 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8765 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8766 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8769 test "$prefix" != "NONE" && \
8770 test -d "$prefix" && \
8772 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8773 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8774 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8775 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8776 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8777 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8780 test "/usr/local" != "$prefix" && \
8781 test -d "/usr/local" && \
8782 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8783 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8784 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8785 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8786 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8787 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8788 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8791 test "/opt" != "$prefix" && \
8793 (test $prefix = NONE || test "/opt" != "$prefix") && {
8794 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8795 test -d /opt/include && cf_search="$cf_search /opt/include"
8796 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8797 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8798 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8799 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8802 test "$HOME" != "$prefix" && \
8803 test -d "$HOME" && \
8804 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8805 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8806 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8807 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8808 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8809 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8810 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8813 test "$includedir" != NONE && \
8814 test "$includedir" != "/usr/include" && \
8815 test -d "$includedir" && {
8816 test -d $includedir && cf_search="$cf_search $includedir"
8817 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8820 test "$oldincludedir" != NONE && \
8821 test "$oldincludedir" != "/usr/include" && \
8822 test -d "$oldincludedir" && {
8823 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8824 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8827 cf_search="$cf_search $cf_header_path_list"
8829 for cf_cv_header_path_utf8 in $cf_search
8831 if test -d $cf_cv_header_path_utf8 ; then
8832 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8834 echo "${as_me:-configure}:8834: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8836 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8837 cat >conftest.$ac_ext <<_ACEOF
8838 #line 8838 "configure"
8839 #include "confdefs.h"
8841 #include <libutf8.h>
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:8851: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>&5
8854 echo "$as_me:8854: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (eval echo "$as_me:8857: \"$ac_try\"") >&5
8860 echo "$as_me:8860: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8863 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8865 echo "${as_me:-configure}:8865: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8867 cf_cv_find_linkage_utf8=maybe
8868 cf_test_CPPFLAGS="$CPPFLAGS"
8871 echo "$as_me: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8874 CPPFLAGS="$cf_save_CPPFLAGS"
8877 rm -f conftest.$ac_objext conftest.$ac_ext
8881 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8883 echo "${as_me:-configure}:8883: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8885 cf_save_LIBS="$LIBS"
8886 cf_save_LDFLAGS="$LDFLAGS"
8888 if test "$cf_cv_find_linkage_utf8" != yes ; then
8891 cf_library_path_list=""
8892 if test -n "${LDFLAGS}${LIBS}" ; then
8893 for cf_library_path in $LDFLAGS $LIBS
8895 case $cf_library_path in #(vi
8897 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8899 test "$cf_library_path" != "NONE" && \
8900 test -d "$cf_library_path" && \
8902 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8903 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8904 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8905 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8906 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8907 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8910 cf_library_path_list="$cf_library_path_list $cf_search"
8918 test "/usr" != "$prefix" && \
8920 (test $prefix = NONE || test "/usr" != "$prefix") && {
8921 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8922 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8923 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8924 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8925 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8926 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8929 test "$prefix" != "NONE" && \
8930 test -d "$prefix" && \
8932 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8933 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8934 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8935 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8936 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8937 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8940 test "/usr/local" != "$prefix" && \
8941 test -d "/usr/local" && \
8942 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8943 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8944 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8945 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8946 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8947 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8948 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8951 test "/opt" != "$prefix" && \
8953 (test $prefix = NONE || test "/opt" != "$prefix") && {
8954 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8955 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8956 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8957 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8958 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8959 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8962 test "$HOME" != "$prefix" && \
8963 test -d "$HOME" && \
8964 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8965 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8966 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8967 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8968 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8969 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8970 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
8973 cf_search="$cf_library_path_list $cf_search"
8975 for cf_cv_library_path_utf8 in $cf_search
8977 if test -d $cf_cv_library_path_utf8 ; then
8978 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8980 echo "${as_me:-configure}:8980: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8982 CPPFLAGS="$cf_test_CPPFLAGS"
8983 LIBS="-lutf8 $cf_save_LIBS"
8984 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8985 cat >conftest.$ac_ext <<_ACEOF
8986 #line 8986 "configure"
8987 #include "confdefs.h"
8989 #include <libutf8.h>
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:8999: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>&5
9002 echo "$as_me:9002: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -s conftest$ac_exeext'
9005 { (eval echo "$as_me:9005: \"$ac_try\"") >&5
9008 echo "$as_me:9008: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9011 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9013 echo "${as_me:-configure}:9013: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9015 cf_cv_find_linkage_utf8=yes
9016 cf_cv_library_file_utf8="-lutf8"
9019 echo "$as_me: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9022 CPPFLAGS="$cf_save_CPPFLAGS"
9023 LIBS="$cf_save_LIBS"
9024 LDFLAGS="$cf_save_LDFLAGS"
9027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9030 CPPFLAGS="$cf_save_CPPFLAGS"
9031 LDFLAGS="$cf_save_LDFLAGS"
9035 cf_cv_find_linkage_utf8=no
9039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9044 LIBS="$cf_save_LIBS"
9046 if test "$cf_cv_find_linkage_utf8" = yes ; then
9047 cf_cv_utf8_lib=add-on
9053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9055 echo "$as_me:9055: result: $cf_cv_utf8_lib" >&5
9056 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9058 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9060 if test "$cf_cv_utf8_lib" = "add-on" ; then
9061 cat >>confdefs.h <<\EOF
9062 #define HAVE_LIBUTF8_H 1
9065 if test -n "$cf_cv_header_path_utf8" ; then
9066 for cf_add_incdir in $cf_cv_header_path_utf8
9068 while test $cf_add_incdir != /usr/include
9070 if test -d $cf_add_incdir
9073 if test -n "$CFLAGS$CPPFLAGS" ; then
9074 # a loop is needed to ensure we can add subdirs of existing dirs
9075 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9076 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9077 cf_have_incdir=yes; break
9082 if test "$cf_have_incdir" = no ; then
9083 if test "$cf_add_incdir" = /usr/local/include ; then
9084 if test "$GCC" = yes
9086 cf_save_CPPFLAGS=$CPPFLAGS
9087 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9088 cat >conftest.$ac_ext <<_ACEOF
9089 #line 9089 "configure"
9090 #include "confdefs.h"
9100 rm -f conftest.$ac_objext
9101 if { (eval echo "$as_me:9101: \"$ac_compile\"") >&5
9102 (eval $ac_compile) 2>&5
9104 echo "$as_me:9104: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:9107: \"$ac_try\"") >&5
9110 echo "$as_me:9110: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9114 echo "$as_me: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9118 rm -f conftest.$ac_objext conftest.$ac_ext
9119 CPPFLAGS=$cf_save_CPPFLAGS
9124 if test "$cf_have_incdir" = no ; then
9125 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9127 echo "${as_me:-configure}:9127: testing adding $cf_add_incdir to include-path ..." 1>&5
9129 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9131 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9132 test "$cf_top_incdir" = "$cf_add_incdir" && break
9133 cf_add_incdir="$cf_top_incdir"
9142 if test -n "$cf_cv_library_path_utf8" ; then
9143 for cf_add_libdir in $cf_cv_library_path_utf8
9145 if test $cf_add_libdir = /usr/lib ; then
9147 elif test -d $cf_add_libdir
9150 if test -n "$LDFLAGS$LIBS" ; then
9151 # a loop is needed to ensure we can add subdirs of existing dirs
9152 for cf_test_libdir in $LDFLAGS $LIBS ; do
9153 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9154 cf_have_libdir=yes; break
9158 if test "$cf_have_libdir" = no ; then
9159 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9161 echo "${as_me:-configure}:9161: testing adding $cf_add_libdir to library-path ..." 1>&5
9163 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9169 LIBS="$cf_cv_library_file_utf8 $LIBS"
9172 if test "$cf_cv_utf8_lib" != no ; then
9177 # This is needed on Tru64 5.0 to declare mbstate_t
9178 echo "$as_me:9178: checking if we must include wchar.h to declare mbstate_t" >&5
9179 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9180 if test "${cf_cv_mbstate_t+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 cat >conftest.$ac_ext <<_ACEOF
9185 #line 9185 "configure"
9186 #include "confdefs.h"
9191 #ifdef HAVE_LIBUTF8_H
9192 #include <libutf8.h>
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:9203: \"$ac_compile\"") >&5
9204 (eval $ac_compile) 2>&5
9206 echo "$as_me:9206: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:9209: \"$ac_try\"") >&5
9212 echo "$as_me:9212: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9216 echo "$as_me: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line 9219 "configure"
9220 #include "confdefs.h"
9226 #ifdef HAVE_LIBUTF8_H
9227 #include <libutf8.h>
9237 rm -f conftest.$ac_objext
9238 if { (eval echo "$as_me:9238: \"$ac_compile\"") >&5
9239 (eval $ac_compile) 2>&5
9241 echo "$as_me:9241: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:9244: \"$ac_try\"") >&5
9247 echo "$as_me:9247: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9251 echo "$as_me: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 cf_cv_mbstate_t=unknown
9255 rm -f conftest.$ac_objext conftest.$ac_ext
9257 rm -f conftest.$ac_objext conftest.$ac_ext
9259 echo "$as_me:9259: result: $cf_cv_mbstate_t" >&5
9260 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9262 if test "$cf_cv_mbstate_t" = yes ; then
9263 cat >>confdefs.h <<\EOF
9264 #define NEED_WCHAR_H 1
9270 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9271 if test "$cf_cv_mbstate_t" = unknown ; then
9275 # This is needed on Tru64 5.0 to declare wchar_t
9276 echo "$as_me:9276: checking if we must include wchar.h to declare wchar_t" >&5
9277 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9278 if test "${cf_cv_wchar_t+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 cat >conftest.$ac_ext <<_ACEOF
9283 #line 9283 "configure"
9284 #include "confdefs.h"
9289 #ifdef HAVE_LIBUTF8_H
9290 #include <libutf8.h>
9300 rm -f conftest.$ac_objext
9301 if { (eval echo "$as_me:9301: \"$ac_compile\"") >&5
9302 (eval $ac_compile) 2>&5
9304 echo "$as_me:9304: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -s conftest.$ac_objext'
9307 { (eval echo "$as_me:9307: \"$ac_try\"") >&5
9310 echo "$as_me:9310: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9314 echo "$as_me: failed program was:" >&5
9315 cat conftest.$ac_ext >&5
9316 cat >conftest.$ac_ext <<_ACEOF
9317 #line 9317 "configure"
9318 #include "confdefs.h"
9324 #ifdef HAVE_LIBUTF8_H
9325 #include <libutf8.h>
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:9336: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>&5
9339 echo "$as_me:9339: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (eval echo "$as_me:9342: \"$ac_try\"") >&5
9345 echo "$as_me:9345: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9349 echo "$as_me: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 cf_cv_wchar_t=unknown
9353 rm -f conftest.$ac_objext conftest.$ac_ext
9355 rm -f conftest.$ac_objext conftest.$ac_ext
9357 echo "$as_me:9357: result: $cf_cv_wchar_t" >&5
9358 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9360 if test "$cf_cv_wchar_t" = yes ; then
9361 cat >>confdefs.h <<\EOF
9362 #define NEED_WCHAR_H 1
9368 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9369 if test "$cf_cv_wchar_t" = unknown ; then
9373 # if we find wchar_t in either place, use substitution to provide a fallback.
9374 if test "$cf_cv_wchar_t" != unknown ; then
9375 NCURSES_OK_WCHAR_T=1
9378 # This is needed on Tru64 5.0 to declare wint_t
9379 echo "$as_me:9379: checking if we must include wchar.h to declare wint_t" >&5
9380 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9381 if test "${cf_cv_wint_t+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line 9386 "configure"
9387 #include "confdefs.h"
9392 #ifdef HAVE_LIBUTF8_H
9393 #include <libutf8.h>
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:9404: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>&5
9407 echo "$as_me:9407: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -s conftest.$ac_objext'
9410 { (eval echo "$as_me:9410: \"$ac_try\"") >&5
9413 echo "$as_me:9413: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9417 echo "$as_me: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9419 cat >conftest.$ac_ext <<_ACEOF
9420 #line 9420 "configure"
9421 #include "confdefs.h"
9427 #ifdef HAVE_LIBUTF8_H
9428 #include <libutf8.h>
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:9439: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>&5
9442 echo "$as_me:9442: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try='test -s conftest.$ac_objext'
9445 { (eval echo "$as_me:9445: \"$ac_try\"") >&5
9448 echo "$as_me:9448: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9452 echo "$as_me: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 cf_cv_wint_t=unknown
9456 rm -f conftest.$ac_objext conftest.$ac_ext
9458 rm -f conftest.$ac_objext conftest.$ac_ext
9460 echo "$as_me:9460: result: $cf_cv_wint_t" >&5
9461 echo "${ECHO_T}$cf_cv_wint_t" >&6
9463 if test "$cf_cv_wint_t" = yes ; then
9464 cat >>confdefs.h <<\EOF
9465 #define NEED_WCHAR_H 1
9471 # if we do not find wint_t in either place, use substitution to provide a fallback.
9472 if test "$cf_cv_wint_t" = unknown ; then
9476 # if we find wint_t in either place, use substitution to provide a fallback.
9477 if test "$cf_cv_wint_t" != unknown ; then
9481 if test "$NCURSES_MBSTATE_T" != 0; then
9482 cat >>confdefs.h <<\EOF
9483 #define NEED_MBSTATE_T_DEF 1
9489 ### use option --disable-lp64 to allow long chtype
9490 case $cf_cv_abi_version in
9492 default_with_lp64=no
9495 default_with_lp64=yes
9499 echo "$as_me:9499: checking whether to enable _LP64 definition in curses.h" >&5
9500 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9502 # Check whether --enable-lp64 or --disable-lp64 was given.
9503 if test "${enable_lp64+set}" = set; then
9504 enableval="$enable_lp64"
9505 with_lp64=$enableval
9507 with_lp64=$default_with_lp64
9509 echo "$as_me:9509: result: $with_lp64" >&5
9510 echo "${ECHO_T}$with_lp64" >&6
9512 if test "$with_lp64" = yes ; then
9518 # Check whether --enable-largefile or --disable-largefile was given.
9519 if test "${enable_largefile+set}" = set; then
9520 enableval="$enable_largefile"
9523 if test "$enable_largefile" != no; then
9525 echo "$as_me:9525: checking for special C compiler options needed for large files" >&5
9526 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9527 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 ac_cv_sys_largefile_CC=no
9531 if test "$GCC" != yes; then
9534 # IRIX 6.2 and later do not support large files by default,
9535 # so use the C compiler's -n32 option if that helps.
9536 cat >conftest.$ac_ext <<_ACEOF
9537 #line 9537 "configure"
9538 #include "confdefs.h"
9539 #include <sys/types.h>
9540 /* Check that off_t can represent 2**63 - 1 correctly.
9541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9542 since some C++ compilers masquerading as C compilers
9543 incorrectly reject 9223372036854775807. */
9544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9546 && LARGE_OFF_T % 2147483647 == 1)
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:9557: \"$ac_compile\"") >&5
9558 (eval $ac_compile) 2>&5
9560 echo "$as_me:9560: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:9563: \"$ac_try\"") >&5
9566 echo "$as_me:9566: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9570 echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 rm -f conftest.$ac_objext
9575 rm -f conftest.$ac_objext
9576 if { (eval echo "$as_me:9576: \"$ac_compile\"") >&5
9577 (eval $ac_compile) 2>&5
9579 echo "$as_me:9579: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -s conftest.$ac_objext'
9582 { (eval echo "$as_me:9582: \"$ac_try\"") >&5
9585 echo "$as_me:9585: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_sys_largefile_CC=' -n32'; break
9589 echo "$as_me: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9592 rm -f conftest.$ac_objext
9596 rm -f conftest.$ac_ext
9599 echo "$as_me:9599: result: $ac_cv_sys_largefile_CC" >&5
9600 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9601 if test "$ac_cv_sys_largefile_CC" != no; then
9602 CC=$CC$ac_cv_sys_largefile_CC
9605 echo "$as_me:9605: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9606 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9607 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 ac_cv_sys_file_offset_bits=no
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line 9613 "configure"
9614 #include "confdefs.h"
9615 #include <sys/types.h>
9616 /* Check that off_t can represent 2**63 - 1 correctly.
9617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9618 since some C++ compilers masquerading as C compilers
9619 incorrectly reject 9223372036854775807. */
9620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9622 && LARGE_OFF_T % 2147483647 == 1)
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:9633: \"$ac_compile\"") >&5
9634 (eval $ac_compile) 2>&5
9636 echo "$as_me:9636: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:9639: \"$ac_try\"") >&5
9642 echo "$as_me:9642: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9646 echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9649 rm -f conftest.$ac_objext conftest.$ac_ext
9650 cat >conftest.$ac_ext <<_ACEOF
9651 #line 9651 "configure"
9652 #include "confdefs.h"
9653 #define _FILE_OFFSET_BITS 64
9654 #include <sys/types.h>
9655 /* Check that off_t can represent 2**63 - 1 correctly.
9656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9657 since some C++ compilers masquerading as C compilers
9658 incorrectly reject 9223372036854775807. */
9659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9661 && LARGE_OFF_T % 2147483647 == 1)
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:9672: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>&5
9675 echo "$as_me:9675: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:9678: \"$ac_try\"") >&5
9681 echo "$as_me:9681: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_sys_file_offset_bits=64; break
9685 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 rm -f conftest.$ac_objext conftest.$ac_ext
9692 echo "$as_me:9692: result: $ac_cv_sys_file_offset_bits" >&5
9693 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9694 if test "$ac_cv_sys_file_offset_bits" != no; then
9696 cat >>confdefs.h <<EOF
9697 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9702 echo "$as_me:9702: checking for _LARGE_FILES value needed for large files" >&5
9703 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9704 if test "${ac_cv_sys_large_files+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 ac_cv_sys_large_files=no
9709 cat >conftest.$ac_ext <<_ACEOF
9710 #line 9710 "configure"
9711 #include "confdefs.h"
9712 #include <sys/types.h>
9713 /* Check that off_t can represent 2**63 - 1 correctly.
9714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9715 since some C++ compilers masquerading as C compilers
9716 incorrectly reject 9223372036854775807. */
9717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9719 && LARGE_OFF_T % 2147483647 == 1)
9729 rm -f conftest.$ac_objext
9730 if { (eval echo "$as_me:9730: \"$ac_compile\"") >&5
9731 (eval $ac_compile) 2>&5
9733 echo "$as_me:9733: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -s conftest.$ac_objext'
9736 { (eval echo "$as_me:9736: \"$ac_try\"") >&5
9739 echo "$as_me:9739: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9743 echo "$as_me: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9746 rm -f conftest.$ac_objext conftest.$ac_ext
9747 cat >conftest.$ac_ext <<_ACEOF
9748 #line 9748 "configure"
9749 #include "confdefs.h"
9750 #define _LARGE_FILES 1
9751 #include <sys/types.h>
9752 /* Check that off_t can represent 2**63 - 1 correctly.
9753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9754 since some C++ compilers masquerading as C compilers
9755 incorrectly reject 9223372036854775807. */
9756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9758 && LARGE_OFF_T % 2147483647 == 1)
9768 rm -f conftest.$ac_objext
9769 if { (eval echo "$as_me:9769: \"$ac_compile\"") >&5
9770 (eval $ac_compile) 2>&5
9772 echo "$as_me:9772: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -s conftest.$ac_objext'
9775 { (eval echo "$as_me:9775: \"$ac_try\"") >&5
9778 echo "$as_me:9778: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_sys_large_files=1; break
9782 echo "$as_me: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9785 rm -f conftest.$ac_objext conftest.$ac_ext
9789 echo "$as_me:9789: result: $ac_cv_sys_large_files" >&5
9790 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9791 if test "$ac_cv_sys_large_files" != no; then
9793 cat >>confdefs.h <<EOF
9794 #define _LARGE_FILES $ac_cv_sys_large_files
9801 if test "$enable_largefile" != no ; then
9802 echo "$as_me:9802: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9803 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9804 if test "${ac_cv_sys_largefile_source+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 ac_cv_sys_largefile_source=no
9809 cat >conftest.$ac_ext <<_ACEOF
9810 #line 9810 "configure"
9811 #include "confdefs.h"
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:9822: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9825 echo "$as_me:9825: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest.$ac_objext'
9828 { (eval echo "$as_me:9828: \"$ac_try\"") >&5
9831 echo "$as_me:9831: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9838 rm -f conftest.$ac_objext conftest.$ac_ext
9839 cat >conftest.$ac_ext <<_ACEOF
9840 #line 9840 "configure"
9841 #include "confdefs.h"
9842 #define _LARGEFILE_SOURCE 1
9852 rm -f conftest.$ac_objext
9853 if { (eval echo "$as_me:9853: \"$ac_compile\"") >&5
9854 (eval $ac_compile) 2>&5
9856 echo "$as_me:9856: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -s conftest.$ac_objext'
9859 { (eval echo "$as_me:9859: \"$ac_try\"") >&5
9862 echo "$as_me:9862: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_sys_largefile_source=1; break
9866 echo "$as_me: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9869 rm -f conftest.$ac_objext conftest.$ac_ext
9873 echo "$as_me:9873: result: $ac_cv_sys_largefile_source" >&5
9874 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9875 if test "$ac_cv_sys_largefile_source" != no; then
9877 cat >>confdefs.h <<EOF
9878 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9884 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9885 # in glibc 2.1.3, but that breaks too many other things.
9886 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9887 echo "$as_me:9887: checking for fseeko" >&5
9888 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9889 if test "${ac_cv_func_fseeko+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9893 #line 9893 "configure"
9894 #include "confdefs.h"
9899 return fseeko && fseeko (stdin, 0, 0);
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (eval echo "$as_me:9905: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>&5
9908 echo "$as_me:9908: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (eval echo "$as_me:9911: \"$ac_try\"") >&5
9914 echo "$as_me:9914: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_func_fseeko=yes
9918 echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_cv_func_fseeko=no
9922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9924 echo "$as_me:9924: result: $ac_cv_func_fseeko" >&5
9925 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9926 if test $ac_cv_func_fseeko = yes; then
9928 cat >>confdefs.h <<\EOF
9929 #define HAVE_FSEEKO 1
9934 # Normally we would collect these definitions in the config.h,
9935 # but (like _XOPEN_SOURCE), some environments rely on having these
9936 # defined before any of the system headers are included. Another
9937 # case comes up with C++, e.g., on AIX the compiler compiles the
9938 # header files by themselves before looking at the body files it is
9939 # told to compile. For ncurses, those header files do not include
9941 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9942 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9943 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9945 echo "$as_me:9945: checking whether to use struct dirent64" >&5
9946 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9947 if test "${cf_cv_struct_dirent64+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 cat >conftest.$ac_ext <<_ACEOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9955 #include <sys/types.h>
9962 /* if transitional largefile support is setup, this is true */
9963 extern struct dirent64 * readdir(DIR *);
9964 struct dirent64 *x = readdir((DIR *)0);
9965 struct dirent *y = readdir((DIR *)0);
9972 rm -f conftest.$ac_objext
9973 if { (eval echo "$as_me:9973: \"$ac_compile\"") >&5
9974 (eval $ac_compile) 2>&5
9976 echo "$as_me:9976: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -s conftest.$ac_objext'
9979 { (eval echo "$as_me:9979: \"$ac_try\"") >&5
9982 echo "$as_me:9982: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 cf_cv_struct_dirent64=yes
9986 echo "$as_me: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 cf_cv_struct_dirent64=no
9990 rm -f conftest.$ac_objext conftest.$ac_ext
9993 echo "$as_me:9993: result: $cf_cv_struct_dirent64" >&5
9994 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9995 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
9996 #define HAVE_STRUCT_DIRENT64 1
10001 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10002 echo "$as_me:10002: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10003 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10005 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10006 if test "${enable_tparm_varargs+set}" = set; then
10007 enableval="$enable_tparm_varargs"
10008 with_tparm_varargs=$enableval
10010 with_tparm_varargs=yes
10012 echo "$as_me:10012: result: $with_tparm_varargs" >&5
10013 echo "${ECHO_T}$with_tparm_varargs" >&6
10014 NCURSES_TPARM_VARARGS=0
10015 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
10017 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10018 if test "$with_ticlib" != no ; then
10019 echo "$as_me:10019: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10020 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10022 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10023 if test "${enable_tic_depends+set}" = set; then
10024 enableval="$enable_tic_depends"
10025 with_tic_depends=$enableval
10027 with_tic_depends=yes
10029 echo "$as_me:10029: result: $with_tic_depends" >&5
10030 echo "${ECHO_T}$with_tic_depends" >&6
10032 with_tic_depends=no
10035 ### use option --with-bool to override bool's type
10036 echo "$as_me:10036: checking for type of bool" >&5
10037 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10039 # Check whether --with-bool or --without-bool was given.
10040 if test "${with_bool+set}" = set; then
10041 withval="$with_bool"
10042 NCURSES_BOOL="$withval"
10046 echo "$as_me:10046: result: $NCURSES_BOOL" >&5
10047 echo "${ECHO_T}$NCURSES_BOOL" >&6
10049 echo "$as_me:10049: checking for alternate terminal capabilities file" >&5
10050 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10052 # Check whether --with-caps or --without-caps was given.
10053 if test "${with_caps+set}" = set; then
10054 withval="$with_caps"
10055 TERMINFO_CAPS=Caps.$withval
10059 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10060 echo "$as_me:10060: result: $TERMINFO_CAPS" >&5
10061 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10063 ### use option --with-chtype to override chtype's type
10064 echo "$as_me:10064: checking for type of chtype" >&5
10065 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10067 # Check whether --with-chtype or --without-chtype was given.
10068 if test "${with_chtype+set}" = set; then
10069 withval="$with_chtype"
10070 NCURSES_CHTYPE="$withval"
10072 NCURSES_CHTYPE=auto
10074 echo "$as_me:10074: result: $NCURSES_CHTYPE" >&5
10075 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10077 ### use option --with-ospeed to override ospeed's type
10078 echo "$as_me:10078: checking for type of ospeed" >&5
10079 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10081 # Check whether --with-ospeed or --without-ospeed was given.
10082 if test "${with_ospeed+set}" = set; then
10083 withval="$with_ospeed"
10084 NCURSES_OSPEED="$withval"
10086 NCURSES_OSPEED=short
10088 echo "$as_me:10088: result: $NCURSES_OSPEED" >&5
10089 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10091 ### use option --with-mmask-t to override mmask_t's type
10092 echo "$as_me:10092: checking for type of mmask_t" >&5
10093 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10095 # Check whether --with-mmask-t or --without-mmask-t was given.
10096 if test "${with_mmask_t+set}" = set; then
10097 withval="$with_mmask_t"
10098 NCURSES_MMASK_T="$withval"
10100 NCURSES_MMASK_T=auto
10102 echo "$as_me:10102: result: $NCURSES_MMASK_T" >&5
10103 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10105 ### use option --with-ccharw-max to override CCHARW_MAX size
10106 echo "$as_me:10106: checking for size CCHARW_MAX" >&5
10107 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10109 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10110 if test "${with_ccharw_max+set}" = set; then
10111 withval="$with_ccharw_max"
10112 NCURSES_CCHARW_MAX="$withval"
10114 NCURSES_CCHARW_MAX=5
10116 echo "$as_me:10116: result: $NCURSES_CCHARW_MAX" >&5
10117 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10119 ### use option --with-tparm-arg to override tparm's argument type
10120 echo "$as_me:10120: checking for type of tparm args" >&5
10121 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10123 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10124 if test "${with_tparm_arg+set}" = set; then
10125 withval="$with_tparm_arg"
10126 NCURSES_TPARM_ARG="$withval"
10128 NCURSES_TPARM_ARG=long
10130 echo "$as_me:10130: result: $NCURSES_TPARM_ARG" >&5
10131 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10133 ### Enable compiling-in rcs id's
10134 echo "$as_me:10134: checking if RCS identifiers should be compiled-in" >&5
10135 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10137 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10138 if test "${with_rcs_ids+set}" = set; then
10139 withval="$with_rcs_ids"
10140 with_rcs_ids=$withval
10144 echo "$as_me:10144: result: $with_rcs_ids" >&5
10145 echo "${ECHO_T}$with_rcs_ids" >&6
10146 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
10147 #define USE_RCS_IDS 1
10150 ###############################################################################
10152 echo "$as_me:10152: checking format of man-pages" >&5
10153 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10155 # Check whether --with-manpage-format or --without-manpage-format was given.
10156 if test "${with_manpage_format+set}" = set; then
10157 withval="$with_manpage_format"
10158 MANPAGE_FORMAT=$withval
10160 MANPAGE_FORMAT=unknown
10163 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10164 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10168 case $MANPAGE_FORMAT in
10170 if test -z "$MANPATH" ; then
10171 MANPATH="/usr/man:/usr/share/man"
10174 # look for the 'date' man-page (it's most likely to be installed!)
10180 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10181 for cf_dir in $MANPATH; do
10182 test -z "$cf_dir" && cf_dir=/usr/man
10183 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
10185 cf_test=`echo $cf_name | sed -e 's/*//'`
10186 if test "x$cf_test" = "x$cf_name" ; then
10189 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10190 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10191 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10192 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10206 # if we found a match in either man* or cat*, stop looking
10207 if test -n "$MANPAGE_FORMAT" ; then
10209 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10210 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10216 test $cf_found=yes && break
10219 # only check the first directory in $MANPATH where we find manpages
10220 if test -n "$MANPAGE_FORMAT" ; then
10224 # if we did not find the example, just assume it is normal
10225 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10229 for cf_option in $MANPAGE_FORMAT; do
10230 case $cf_option in #(vi
10231 gzip|compress|BSDI|normal|formatted|catonly)
10234 cf_unknown="$cf_unknown $cf_option"
10241 echo "$as_me:10241: result: $MANPAGE_FORMAT" >&5
10242 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10243 if test -n "$cf_unknown" ; then
10244 { echo "$as_me:10244: WARNING: Unexpected manpage-format $cf_unknown" >&5
10245 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10248 echo "$as_me:10248: checking for manpage renaming" >&5
10249 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10251 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10252 if test "${with_manpage_renames+set}" = set; then
10253 withval="$with_manpage_renames"
10254 MANPAGE_RENAMES=$withval
10256 MANPAGE_RENAMES=yes
10259 case ".$MANPAGE_RENAMES" in #(vi
10263 # Debian 'man' program?
10264 if test -f /etc/debian_version ; then
10265 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10272 if test "$MANPAGE_RENAMES" != no ; then
10273 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10274 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10275 elif test ! -f $MANPAGE_RENAMES ; then
10276 { { echo "$as_me:10276: error: not a filename: $MANPAGE_RENAMES" >&5
10277 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10278 { (exit 1); exit 1; }; }
10281 test ! -d man && mkdir man
10283 # Construct a sed-script to perform renaming within man-pages
10284 if test -n "$MANPAGE_RENAMES" ; then
10285 test ! -d man && mkdir man
10286 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10290 echo "$as_me:10290: result: $MANPAGE_RENAMES" >&5
10291 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10293 echo "$as_me:10293: checking if manpage aliases will be installed" >&5
10294 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10296 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10297 if test "${with_manpage_aliases+set}" = set; then
10298 withval="$with_manpage_aliases"
10299 MANPAGE_ALIASES=$withval
10301 MANPAGE_ALIASES=yes
10304 echo "$as_me:10304: result: $MANPAGE_ALIASES" >&5
10305 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10307 case "x$LN_S" in #(vi
10309 cf_use_symlinks=yes
10316 MANPAGE_SYMLINKS=no
10317 if test "$MANPAGE_ALIASES" = yes ; then
10318 echo "$as_me:10318: checking if manpage symlinks should be used" >&5
10319 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10321 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10322 if test "${with_manpage_symlinks+set}" = set; then
10323 withval="$with_manpage_symlinks"
10324 MANPAGE_SYMLINKS=$withval
10326 MANPAGE_SYMLINKS=$cf_use_symlinks
10329 if test "$$cf_use_symlinks" = no; then
10330 if test "$MANPAGE_SYMLINKS" = yes ; then
10331 { echo "$as_me:10331: WARNING: cannot make symlinks" >&5
10332 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10333 MANPAGE_SYMLINKS=no
10337 echo "$as_me:10337: result: $MANPAGE_SYMLINKS" >&5
10338 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10341 echo "$as_me:10341: checking for manpage tbl" >&5
10342 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10344 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10345 if test "${with_manpage_tbl+set}" = set; then
10346 withval="$with_manpage_tbl"
10347 MANPAGE_TBL=$withval
10352 echo "$as_me:10352: result: $MANPAGE_TBL" >&5
10353 echo "${ECHO_T}$MANPAGE_TBL" >&6
10355 if test "$prefix" = "NONE" ; then
10356 cf_prefix="$ac_default_prefix"
10358 cf_prefix="$prefix"
10361 case "$MANPAGE_FORMAT" in # (vi
10376 test ! -d man && mkdir man
10380 case "$MANPAGE_FORMAT" in #(vi
10383 cf_compress=compress
10391 cf_edit_man=./edit_man.sh
10392 cf_man_alias=`pwd`/man_alias.sed
10394 cat >$cf_edit_man <<CF_EOF
10396 # this script is generated by the configure-script CF_MAN_PAGES macro.
10398 prefix="$cf_prefix"
10401 NCURSES_MAJOR="$NCURSES_MAJOR"
10402 NCURSES_MINOR="$NCURSES_MINOR"
10403 NCURSES_PATCH="$NCURSES_PATCH"
10405 NCURSES_OSPEED="$NCURSES_OSPEED"
10406 TERMINFO="$TERMINFO"
10409 INSTALL_DATA="$INSTALL_DATA"
10411 transform="$program_transform_name"
10413 TMP=\${TMPDIR:=/tmp}/man\$\$
10414 trap "rm -f \$TMP" 0 1 2 5 15
10426 top_srcdir=\$srcdir/..
10429 if test "\$form" = normal ; then
10430 if test "$cf_format" = yes ; then
10431 if test "$cf_inboth" = no ; then
10432 sh \$0 format \$verb \$mandir \$srcdir \$*
10436 cf_subdir=\$mandir/man
10437 cf_tables=$MANPAGE_TBL
10439 cf_subdir=\$mandir/cat
10443 # process the list of source-files
10446 *.orig|*.rej) ;; #(vi
10448 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10449 if test \$verb = installing ; then
10450 if test ! -d \$cf_subdir\${section} ; then
10451 mkdir -p \$cf_subdir\$section
10455 # replace variables in man page
10456 if test ! -f $cf_man_alias ; then
10457 cat >>$cf_man_alias <<-CF_EOF2
10458 s,@DATADIR@,\$datadir,g
10459 s,@TERMINFO@,\$TERMINFO,g
10460 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
10461 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
10462 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
10463 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
10466 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10468 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10469 cf_name=`echo $cf_name|sed "$program_transform_name"`
10470 cat >>$cf_edit_man <<-CF_EOF
10471 s,@$cf_NAME@,$cf_name,g
10475 cat >>$cf_edit_man <<CF_EOF
10477 echo "...made $cf_man_alias"
10481 cf_source=\`basename \$i\`
10482 inalias=\$cf_source
10483 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10484 if test ! -f \$inalias ; then
10485 echo .. skipped \$cf_source
10490 if test "$MANPAGE_ALIASES" != no ; then
10491 cat >>$cf_edit_man <<CF_EOF
10493 test $with_curses_h = yes && nCurses=ncurses.3x
10494 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10498 if test "$MANPAGE_RENAMES" = no ; then
10499 cat >>$cf_edit_man <<CF_EOF
10500 # perform program transformations for section 1 man pages
10501 if test \$section = 1 ; then
10502 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10504 cf_target=\$cf_subdir\${section}/\$cf_source
10508 cat >>$cf_edit_man <<CF_EOF
10509 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10510 if test -z "\$cf_target" ; then
10511 echo '? missing rename for '\$cf_source
10512 cf_target="\$cf_source"
10514 cf_target="\$cf_subdir\${section}/\${cf_target}"
10519 cat >>$cf_edit_man <<CF_EOF
10520 sed -f $cf_man_alias \\
10523 if test -f $MANPAGE_RENAMES ; then
10524 cat >>$cf_edit_man <<CF_EOF
10525 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10528 cat >>$cf_edit_man <<CF_EOF
10533 cat >>$cf_edit_man <<CF_EOF
10534 if test \$cf_tables = yes ; then
10535 tbl \$TMP >\$TMP.out
10540 if test $with_overwrite != yes ; then
10541 cat >>$cf_edit_man <<CF_EOF
10542 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10547 if test $with_curses_h != yes ; then
10548 cat >>$cf_edit_man <<CF_EOF
10549 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10554 cat >>$cf_edit_man <<CF_EOF
10555 if test \$form = format ; then
10556 nroff -man \$TMP >\$TMP.out
10561 if test -n "$cf_compress" ; then
10562 cat >>$cf_edit_man <<CF_EOF
10563 if test \$verb = installing ; then
10564 if ( $cf_compress -f \$TMP )
10566 mv \$TMP.$cf_so_strip \$TMP
10569 cf_target="\$cf_target.$cf_so_strip"
10573 case "$MANPAGE_FORMAT" in #(vi
10575 cat >>$cf_edit_man <<CF_EOF
10576 if test \$form = format ; then
10577 # BSDI installs only .0 suffixes in the cat directories
10578 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10584 cat >>$cf_edit_man <<CF_EOF
10585 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10586 if test \$verb = installing ; then
10587 echo \$verb \$cf_target
10588 \$INSTALL_DATA \$TMP \$cf_target
10589 test -d \$cf_subdir\${section} &&
10590 test -n "\$aliases" && (
10591 cd \$cf_subdir\${section} && (
10592 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10593 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10594 cf_target=\`basename \$cf_target\`
10595 for cf_alias in \$aliases
10597 if test \$section = 1 ; then
10598 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10601 if test "$MANPAGE_SYMLINKS" = yes ; then
10602 if test -f \$cf_alias\${suffix} ; then
10603 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10608 echo .. \$verb alias \$cf_alias\${suffix}
10610 case "x$LN_S" in #(vi
10612 cat >>$cf_edit_man <<CF_EOF
10613 $LN_S \$cf_target \$cf_alias\${suffix}
10617 cat >>$cf_edit_man <<CF_EOF
10618 rm -f \$cf_alias\${suffix}
10619 $LN_S \$cf_target \$cf_alias\${suffix}
10623 cat >>$cf_edit_man <<CF_EOF
10624 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10625 echo ".so \$cf_source" >\$TMP
10627 if test -n "$cf_compress" ; then
10628 cat >>$cf_edit_man <<CF_EOF
10629 if test -n "$cf_so_strip" ; then
10630 $cf_compress -f \$TMP
10631 mv \$TMP.$cf_so_strip \$TMP
10635 cat >>$cf_edit_man <<CF_EOF
10636 echo .. \$verb alias \$cf_alias\${suffix}
10637 rm -f \$cf_alias\${suffix}
10638 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10643 elif test \$verb = removing ; then
10644 test -f \$cf_target && (
10645 echo \$verb \$cf_target
10648 test -d \$cf_subdir\${section} &&
10649 test -n "\$aliases" && (
10650 cd \$cf_subdir\${section} && (
10651 for cf_alias in \$aliases
10653 if test \$section = 1 ; then
10654 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10657 echo .. \$verb alias \$cf_alias\${suffix}
10658 rm -f \$cf_alias\${suffix}
10670 if test $cf_inboth = yes ; then
10671 if test \$form != format ; then
10672 sh \$0 format \$verb \$mandir \$srcdir \$*
10678 chmod 755 $cf_edit_man
10680 ###############################################################################
10682 ### Note that some functions (such as const) are normally disabled anyway.
10683 echo "$as_me:10683: checking if you want to build with function extensions" >&5
10684 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10686 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10687 if test "${enable_ext_funcs+set}" = set; then
10688 enableval="$enable_ext_funcs"
10689 with_ext_funcs=$enableval
10693 echo "$as_me:10693: result: $with_ext_funcs" >&5
10694 echo "${ECHO_T}$with_ext_funcs" >&6
10695 if test "$with_ext_funcs" = yes ; then
10696 NCURSES_EXT_FUNCS=1
10697 cat >>confdefs.h <<\EOF
10698 #define HAVE_ASSUME_DEFAULT_COLORS 1
10701 cat >>confdefs.h <<\EOF
10702 #define HAVE_CURSES_VERSION 1
10705 cat >>confdefs.h <<\EOF
10706 #define HAVE_HAS_KEY 1
10709 cat >>confdefs.h <<\EOF
10710 #define HAVE_RESIZETERM 1
10713 cat >>confdefs.h <<\EOF
10714 #define HAVE_RESIZE_TERM 1
10717 cat >>confdefs.h <<\EOF
10718 #define HAVE_TERM_ENTRY_H 1
10721 cat >>confdefs.h <<\EOF
10722 #define HAVE_USE_DEFAULT_COLORS 1
10725 cat >>confdefs.h <<\EOF
10726 #define HAVE_USE_SCREEN 1
10729 cat >>confdefs.h <<\EOF
10730 #define HAVE_USE_WINDOW 1
10733 cat >>confdefs.h <<\EOF
10734 #define HAVE_WRESIZE 1
10737 cat >>confdefs.h <<\EOF
10738 #define NCURSES_EXT_FUNCS 1
10741 GENERATED_EXT_FUNCS=generated
10743 NCURSES_EXT_FUNCS=0
10744 GENERATED_EXT_FUNCS=
10747 echo "$as_me:10747: checking if you want to build with experimental SCREEN extensions" >&5
10748 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10750 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10751 if test "${enable_sp_funcs+set}" = set; then
10752 enableval="$enable_sp_funcs"
10753 with_sp_funcs=$enableval
10757 echo "$as_me:10757: result: $with_sp_funcs" >&5
10758 echo "${ECHO_T}$with_sp_funcs" >&6
10759 if test "$with_sp_funcs" = yes ; then
10761 cat >>confdefs.h <<\EOF
10762 #define NCURSES_SP_FUNCS 1
10765 GENERATED_SP_FUNCS=generated
10768 GENERATED_SP_FUNCS=
10771 echo "$as_me:10771: checking if you want to build with experimental terminal-driver" >&5
10772 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10774 # Check whether --enable-term-driver or --disable-term-driver was given.
10775 if test "${enable_term_driver+set}" = set; then
10776 enableval="$enable_term_driver"
10777 with_term_driver=$enableval
10779 with_term_driver=no
10781 echo "$as_me:10781: result: $with_term_driver" >&5
10782 echo "${ECHO_T}$with_term_driver" >&6
10783 if test "$with_term_driver" = yes ; then
10784 cat >>confdefs.h <<\EOF
10785 #define USE_TERM_DRIVER 1
10788 if test "$with_sp_funcs" != yes ; then
10789 { { echo "$as_me:10789: error: The term-driver option relies upon sp-funcs" >&5
10790 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10791 { (exit 1); exit 1; }; }
10795 ### use option --enable-const to turn on use of const beyond that in XSI.
10796 echo "$as_me:10796: checking for extended use of const keyword" >&5
10797 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10799 # Check whether --enable-const or --disable-const was given.
10800 if test "${enable_const+set}" = set; then
10801 enableval="$enable_const"
10802 with_ext_const=$enableval
10806 echo "$as_me:10806: result: $with_ext_const" >&5
10807 echo "${ECHO_T}$with_ext_const" >&6
10808 NCURSES_CONST='/*nothing*/'
10809 if test "$with_ext_const" = yes ; then
10810 NCURSES_CONST=const
10813 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10814 echo "$as_me:10814: checking if you want to use extended colors" >&5
10815 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10817 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10818 if test "${enable_ext_colors+set}" = set; then
10819 enableval="$enable_ext_colors"
10820 with_ext_colors=$enableval
10824 echo "$as_me:10824: result: $with_ext_colors" >&5
10825 echo "${ECHO_T}$with_ext_colors" >&6
10826 NCURSES_EXT_COLORS=0
10827 if test "$with_ext_colors" = yes ; then
10828 if test "$with_widec" != yes ; then
10829 { { echo "$as_me:10829: error: This option applies only to wide-character library" >&5
10830 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10831 { (exit 1); exit 1; }; }
10833 # cannot be ABI 5 since it changes sizeof(cchar_t)
10835 if test "${with_abi_version+set}" != set; then
10836 case $cf_cv_rel_version in
10838 cf_cv_rel_version=6.0
10839 cf_cv_abi_version=6
10840 { echo "$as_me:10840: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10841 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10847 NCURSES_EXT_COLORS=1
10848 cat >>confdefs.h <<\EOF
10849 #define NCURSES_EXT_COLORS 1
10854 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10855 echo "$as_me:10855: checking if you want to use extended mouse encoding" >&5
10856 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10858 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10859 if test "${enable_ext_mouse+set}" = set; then
10860 enableval="$enable_ext_mouse"
10861 with_ext_mouse=$enableval
10865 echo "$as_me:10865: result: $with_ext_mouse" >&5
10866 echo "${ECHO_T}$with_ext_mouse" >&6
10867 NCURSES_MOUSE_VERSION=1
10868 if test "$with_ext_mouse" = yes ; then
10869 NCURSES_MOUSE_VERSION=2
10871 if test "${with_abi_version+set}" != set; then
10872 case $cf_cv_rel_version in
10874 cf_cv_rel_version=6.0
10875 cf_cv_abi_version=6
10876 { echo "$as_me:10876: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10877 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10884 echo "$as_me:10884: checking if you want \$NCURSES_NO_PADDING code" >&5
10885 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10887 # Check whether --enable-no-padding or --disable-no-padding was given.
10888 if test "${enable_no_padding+set}" = set; then
10889 enableval="$enable_no_padding"
10890 with_no_padding=$enableval
10892 with_no_padding=$with_ext_funcs
10894 echo "$as_me:10894: result: $with_no_padding" >&5
10895 echo "${ECHO_T}$with_no_padding" >&6
10896 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10897 #define NCURSES_NO_PADDING 1
10900 echo "$as_me:10900: checking for ANSI C header files" >&5
10901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10902 if test "${ac_cv_header_stdc+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 cat >conftest.$ac_ext <<_ACEOF
10906 #line 10906 "configure"
10907 #include "confdefs.h"
10908 #include <stdlib.h>
10909 #include <stdarg.h>
10910 #include <string.h>
10914 if { (eval echo "$as_me:10914: \"$ac_cpp conftest.$ac_ext\"") >&5
10915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10917 egrep -v '^ *\+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 echo "$as_me:10920: \$? = $ac_status" >&5
10921 (exit $ac_status); } >/dev/null; then
10922 if test -s conftest.err; then
10923 ac_cpp_err=$ac_c_preproc_warn_flag
10930 if test -z "$ac_cpp_err"; then
10931 ac_cv_header_stdc=yes
10933 echo "$as_me: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10935 ac_cv_header_stdc=no
10937 rm -f conftest.err conftest.$ac_ext
10939 if test $ac_cv_header_stdc = yes; then
10940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10941 cat >conftest.$ac_ext <<_ACEOF
10942 #line 10942 "configure"
10943 #include "confdefs.h"
10944 #include <string.h>
10947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10948 egrep "memchr" >/dev/null 2>&1; then
10951 ac_cv_header_stdc=no
10957 if test $ac_cv_header_stdc = yes; then
10958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10959 cat >conftest.$ac_ext <<_ACEOF
10960 #line 10960 "configure"
10961 #include "confdefs.h"
10962 #include <stdlib.h>
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966 egrep "free" >/dev/null 2>&1; then
10969 ac_cv_header_stdc=no
10975 if test $ac_cv_header_stdc = yes; then
10976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10977 if test "$cross_compiling" = yes; then
10980 cat >conftest.$ac_ext <<_ACEOF
10981 #line 10981 "configure"
10982 #include "confdefs.h"
10984 #if ((' ' & 0x0FF) == 0x020)
10985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10988 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10989 || ('j' <= (c) && (c) <= 'r') \
10990 || ('s' <= (c) && (c) <= 'z'))
10991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10999 for (i = 0; i < 256; i++)
11000 if (XOR (islower (i), ISLOWER (i))
11001 || toupper (i) != TOUPPER (i))
11002 $ac_main_return(2);
11003 $ac_main_return (0);
11006 rm -f conftest$ac_exeext
11007 if { (eval echo "$as_me:11007: \"$ac_link\"") >&5
11008 (eval $ac_link) 2>&5
11010 echo "$as_me:11010: \$? = $ac_status" >&5
11011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11012 { (eval echo "$as_me:11012: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11015 echo "$as_me:11015: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11019 echo "$as_me: program exited with status $ac_status" >&5
11020 echo "$as_me: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11022 ac_cv_header_stdc=no
11024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11028 echo "$as_me:11028: result: $ac_cv_header_stdc" >&5
11029 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11030 if test $ac_cv_header_stdc = yes; then
11032 cat >>confdefs.h <<\EOF
11033 #define STDC_HEADERS 1
11038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11040 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11041 inttypes.h stdint.h unistd.h
11043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11044 echo "$as_me:11044: checking for $ac_header" >&5
11045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11050 #line 11050 "configure"
11051 #include "confdefs.h"
11052 $ac_includes_default
11053 #include <$ac_header>
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:11056: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11059 echo "$as_me:11059: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (eval echo "$as_me:11062: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:11065: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 eval "$as_ac_Header=yes"
11069 echo "$as_me: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 eval "$as_ac_Header=no"
11073 rm -f conftest.$ac_objext conftest.$ac_ext
11075 echo "$as_me:11075: result: `eval echo '${'$as_ac_Header'}'`" >&5
11076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11078 cat >>confdefs.h <<EOF
11079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11085 echo "$as_me:11085: checking for signed char" >&5
11086 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11087 if test "${ac_cv_type_signed_char+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 cat >conftest.$ac_ext <<_ACEOF
11091 #line 11091 "configure"
11092 #include "confdefs.h"
11093 $ac_includes_default
11097 if ((signed char *) 0)
11099 if (sizeof (signed char))
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:11106: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>&5
11109 echo "$as_me:11109: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -s conftest.$ac_objext'
11112 { (eval echo "$as_me:11112: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:11115: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_type_signed_char=yes
11119 echo "$as_me: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 ac_cv_type_signed_char=no
11123 rm -f conftest.$ac_objext conftest.$ac_ext
11125 echo "$as_me:11125: result: $ac_cv_type_signed_char" >&5
11126 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11128 echo "$as_me:11128: checking size of signed char" >&5
11129 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11130 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 if test "$ac_cv_type_signed_char" = yes; then
11134 if test "$cross_compiling" = yes; then
11135 # Depending upon the size, compute the lo and hi bounds.
11136 cat >conftest.$ac_ext <<_ACEOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11139 $ac_includes_default
11143 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11148 rm -f conftest.$ac_objext
11149 if { (eval echo "$as_me:11149: \"$ac_compile\"") >&5
11150 (eval $ac_compile) 2>&5
11152 echo "$as_me:11152: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (eval echo "$as_me:11155: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:11158: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11162 cat >conftest.$ac_ext <<_ACEOF
11163 #line 11163 "configure"
11164 #include "confdefs.h"
11165 $ac_includes_default
11169 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:11175: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>&5
11178 echo "$as_me:11178: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (eval echo "$as_me:11181: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:11184: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_hi=$ac_mid; break
11188 echo "$as_me: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11190 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11192 rm -f conftest.$ac_objext conftest.$ac_ext
11195 echo "$as_me: failed program was:" >&5
11196 cat conftest.$ac_ext >&5
11199 cat >conftest.$ac_ext <<_ACEOF
11200 #line 11200 "configure"
11201 #include "confdefs.h"
11202 $ac_includes_default
11206 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11211 rm -f conftest.$ac_objext
11212 if { (eval echo "$as_me:11212: \"$ac_compile\"") >&5
11213 (eval $ac_compile) 2>&5
11215 echo "$as_me:11215: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -s conftest.$ac_objext'
11218 { (eval echo "$as_me:11218: \"$ac_try\"") >&5
11219 (eval $ac_try) 2>&5
11221 echo "$as_me:11221: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
11223 ac_lo=$ac_mid; break
11225 echo "$as_me: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11227 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11232 rm -f conftest.$ac_objext conftest.$ac_ext
11233 # Binary search between lo and hi bounds.
11234 while test "x$ac_lo" != "x$ac_hi"; do
11235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11236 cat >conftest.$ac_ext <<_ACEOF
11237 #line 11237 "configure"
11238 #include "confdefs.h"
11239 $ac_includes_default
11243 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11248 rm -f conftest.$ac_objext
11249 if { (eval echo "$as_me:11249: \"$ac_compile\"") >&5
11250 (eval $ac_compile) 2>&5
11252 echo "$as_me:11252: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:11255: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:11258: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11262 echo "$as_me: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11264 ac_lo=`expr $ac_mid + 1`
11266 rm -f conftest.$ac_objext conftest.$ac_ext
11268 ac_cv_sizeof_signed_char=$ac_lo
11270 if test "$cross_compiling" = yes; then
11271 { { echo "$as_me:11271: error: cannot run test program while cross compiling" >&5
11272 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11273 { (exit 1); exit 1; }; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 #line 11276 "configure"
11277 #include "confdefs.h"
11278 $ac_includes_default
11282 FILE *f = fopen ("conftest.val", "w");
11284 $ac_main_return (1);
11285 fprintf (f, "%d", (sizeof (signed char)));
11291 rm -f conftest$ac_exeext
11292 if { (eval echo "$as_me:11292: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>&5
11295 echo "$as_me:11295: \$? = $ac_status" >&5
11296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11297 { (eval echo "$as_me:11297: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:11300: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_sizeof_signed_char=`cat conftest.val`
11304 echo "$as_me: program exited with status $ac_status" >&5
11305 echo "$as_me: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11308 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11313 ac_cv_sizeof_signed_char=0
11316 echo "$as_me:11316: result: $ac_cv_sizeof_signed_char" >&5
11317 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11318 cat >>confdefs.h <<EOF
11319 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11322 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11323 NCURSES_SBOOL="signed char"
11325 NCURSES_SBOOL="char"
11327 echo "$as_me:11327: checking if you want to use signed Boolean array in term.h" >&5
11328 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11330 # Check whether --enable-signed-char or --disable-signed-char was given.
11331 if test "${enable_signed_char+set}" = set; then
11332 enableval="$enable_signed_char"
11333 with_signed_char=$enableval
11335 with_signed_char=no
11337 echo "$as_me:11337: result: $with_signed_char" >&5
11338 echo "${ECHO_T}$with_signed_char" >&6
11339 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
11341 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11342 echo "$as_me:11342: checking if you want SIGWINCH handler" >&5
11343 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11345 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11346 if test "${enable_sigwinch+set}" = set; then
11347 enableval="$enable_sigwinch"
11348 with_sigwinch=$enableval
11350 with_sigwinch=$with_ext_funcs
11352 echo "$as_me:11352: result: $with_sigwinch" >&5
11353 echo "${ECHO_T}$with_sigwinch" >&6
11354 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
11355 #define USE_SIGWINCH 1
11358 ### use option --enable-tcap-names to allow user to define new capabilities
11359 echo "$as_me:11359: checking if you want user-definable terminal capabilities like termcap" >&5
11360 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11362 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11363 if test "${enable_tcap_names+set}" = set; then
11364 enableval="$enable_tcap_names"
11365 with_tcap_names=$enableval
11367 with_tcap_names=$with_ext_funcs
11369 echo "$as_me:11369: result: $with_tcap_names" >&5
11370 echo "${ECHO_T}$with_tcap_names" >&6
11372 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
11374 ###############################################################################
11375 # These options are relatively safe to experiment with.
11377 echo "$as_me:11377: checking if you want all development code" >&5
11378 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11380 # Check whether --with-develop or --without-develop was given.
11381 if test "${with_develop+set}" = set; then
11382 withval="$with_develop"
11383 with_develop=$withval
11387 echo "$as_me:11387: result: $with_develop" >&5
11388 echo "${ECHO_T}$with_develop" >&6
11390 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11391 echo "$as_me:11391: checking if you want hard-tabs code" >&5
11392 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11394 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11395 if test "${enable_hard_tabs+set}" = set; then
11396 enableval="$enable_hard_tabs"
11399 enable_hard_tabs=$with_develop
11401 echo "$as_me:11401: result: $enable_hard_tabs" >&5
11402 echo "${ECHO_T}$enable_hard_tabs" >&6
11403 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
11404 #define USE_HARD_TABS 1
11407 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11408 echo "$as_me:11408: checking if you want limited support for xmc" >&5
11409 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11411 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11412 if test "${enable_xmc_glitch+set}" = set; then
11413 enableval="$enable_xmc_glitch"
11416 enable_xmc_glitch=$with_develop
11418 echo "$as_me:11418: result: $enable_xmc_glitch" >&5
11419 echo "${ECHO_T}$enable_xmc_glitch" >&6
11420 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
11421 #define USE_XMC_SUPPORT 1
11424 ###############################################################################
11425 # These are just experimental, probably should not be in a package:
11427 echo "$as_me:11427: checking if you do not want to assume colors are white-on-black" >&5
11428 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11430 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11431 if test "${enable_assumed_color+set}" = set; then
11432 enableval="$enable_assumed_color"
11433 with_assumed_color=$enableval
11435 with_assumed_color=yes
11437 echo "$as_me:11437: result: $with_assumed_color" >&5
11438 echo "${ECHO_T}$with_assumed_color" >&6
11439 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
11440 #define USE_ASSUMED_COLOR 1
11443 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11444 echo "$as_me:11444: checking if you want hashmap scrolling-optimization code" >&5
11445 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11447 # Check whether --enable-hashmap or --disable-hashmap was given.
11448 if test "${enable_hashmap+set}" = set; then
11449 enableval="$enable_hashmap"
11450 with_hashmap=$enableval
11454 echo "$as_me:11454: result: $with_hashmap" >&5
11455 echo "${ECHO_T}$with_hashmap" >&6
11456 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
11457 #define USE_HASHMAP 1
11460 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11461 echo "$as_me:11461: checking if you want colorfgbg code" >&5
11462 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11464 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11465 if test "${enable_colorfgbg+set}" = set; then
11466 enableval="$enable_colorfgbg"
11467 with_colorfgbg=$enableval
11471 echo "$as_me:11471: result: $with_colorfgbg" >&5
11472 echo "${ECHO_T}$with_colorfgbg" >&6
11473 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
11474 #define USE_COLORFGBG 1
11477 ### use option --enable-interop to turn on use of bindings used for interop
11478 echo "$as_me:11478: checking if you want interop bindings" >&5
11479 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11481 # Check whether --enable-interop or --disable-interop was given.
11482 if test "${enable_interop+set}" = set; then
11483 enableval="$enable_interop"
11484 with_exp_interop=$enableval
11486 with_exp_interop=no
11488 echo "$as_me:11488: result: $with_exp_interop" >&5
11489 echo "${ECHO_T}$with_exp_interop" >&6
11491 NCURSES_INTEROP_FUNCS=0
11492 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
11494 # This is still experimental (20080329), but should ultimately be moved to
11495 # the script-block --with-normal, etc.
11497 echo "$as_me:11497: checking if you want to link with the pthread library" >&5
11498 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11500 # Check whether --with-pthread or --without-pthread was given.
11501 if test "${with_pthread+set}" = set; then
11502 withval="$with_pthread"
11503 with_pthread=$withval
11507 echo "$as_me:11507: result: $with_pthread" >&5
11508 echo "${ECHO_T}$with_pthread" >&6
11510 if test "$with_pthread" != no ; then
11511 echo "$as_me:11511: checking for pthread.h" >&5
11512 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11513 if test "${ac_cv_header_pthread_h+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 cat >conftest.$ac_ext <<_ACEOF
11517 #line 11517 "configure"
11518 #include "confdefs.h"
11519 #include <pthread.h>
11521 if { (eval echo "$as_me:11521: \"$ac_cpp conftest.$ac_ext\"") >&5
11522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11524 egrep -v '^ *\+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 echo "$as_me:11527: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null; then
11529 if test -s conftest.err; then
11530 ac_cpp_err=$ac_c_preproc_warn_flag
11537 if test -z "$ac_cpp_err"; then
11538 ac_cv_header_pthread_h=yes
11540 echo "$as_me: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 ac_cv_header_pthread_h=no
11544 rm -f conftest.err conftest.$ac_ext
11546 echo "$as_me:11546: result: $ac_cv_header_pthread_h" >&5
11547 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11548 if test $ac_cv_header_pthread_h = yes; then
11550 cat >>confdefs.h <<\EOF
11551 #define HAVE_PTHREADS_H 1
11554 for cf_lib_pthread in pthread c_r
11556 echo "$as_me:11556: checking if we can link with the $cf_lib_pthread library" >&5
11557 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11558 cf_save_LIBS="$LIBS"
11559 LIBS="-l$cf_lib_pthread $LIBS"
11560 cat >conftest.$ac_ext <<_ACEOF
11561 #line 11561 "configure"
11562 #include "confdefs.h"
11564 #include <pthread.h>
11570 int rc = pthread_create(0,0,0,0);
11571 int r2 = pthread_mutexattr_settype(0, 0);
11577 rm -f conftest.$ac_objext conftest$ac_exeext
11578 if { (eval echo "$as_me:11578: \"$ac_link\"") >&5
11579 (eval $ac_link) 2>&5
11581 echo "$as_me:11581: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -s conftest$ac_exeext'
11584 { (eval echo "$as_me:11584: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:11587: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11591 echo "$as_me: failed program was:" >&5
11592 cat conftest.$ac_ext >&5
11595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11596 LIBS="$cf_save_LIBS"
11597 echo "$as_me:11597: result: $with_pthread" >&5
11598 echo "${ECHO_T}$with_pthread" >&6
11599 test "$with_pthread" = yes && break
11602 if test "$with_pthread" = yes ; then
11603 LIBS="-l$cf_lib_pthread $LIBS"
11604 cat >>confdefs.h <<\EOF
11605 #define HAVE_LIBPTHREADS 1
11609 { { echo "$as_me:11609: error: Cannot link with pthread library" >&5
11610 echo "$as_me: error: Cannot link with pthread library" >&2;}
11611 { (exit 1); exit 1; }; }
11618 if test "x$with_pthread" != xno; then
11619 echo "$as_me:11619: checking for pthread_kill" >&5
11620 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11621 if test "${ac_cv_func_pthread_kill+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 cat >conftest.$ac_ext <<_ACEOF
11625 #line 11625 "configure"
11626 #include "confdefs.h"
11627 /* System header to define __stub macros and hopefully few prototypes,
11628 which can conflict with char pthread_kill (); below. */
11629 #include <assert.h>
11630 /* Override any gcc2 internal prototype to avoid an error. */
11634 /* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11636 char pthread_kill ();
11642 /* The GNU C library defines this for functions which it implements
11643 to always fail with ENOSYS. Some functions are actually named
11644 something starting with __ and the normal name is an alias. */
11645 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11648 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (eval echo "$as_me:11656: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>&5
11659 echo "$as_me:11659: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (eval echo "$as_me:11662: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:11665: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 ac_cv_func_pthread_kill=yes
11669 echo "$as_me: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 ac_cv_func_pthread_kill=no
11673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11675 echo "$as_me:11675: result: $ac_cv_func_pthread_kill" >&5
11676 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11677 if test $ac_cv_func_pthread_kill = yes; then
11679 echo "$as_me:11679: checking if you want to allow EINTR in wgetch with pthreads" >&5
11680 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11682 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11683 if test "${enable_pthreads_eintr+set}" = set; then
11684 enableval="$enable_pthreads_eintr"
11685 use_pthreads_eintr=$enableval
11687 use_pthreads_eintr=no
11689 echo "$as_me:11689: result: $use_pthreads_eintr" >&5
11690 echo "${ECHO_T}$use_pthreads_eintr" >&6
11691 if test $use_pthreads_eintr = yes ; then
11692 cat >>confdefs.h <<\EOF
11693 #define USE_PTHREADS_EINTR 1
11699 echo "$as_me:11699: checking if you want to use weak-symbols for pthreads" >&5
11700 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11702 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11703 if test "${enable_weak_symbols+set}" = set; then
11704 enableval="$enable_weak_symbols"
11705 use_weak_symbols=$enableval
11707 use_weak_symbols=no
11709 echo "$as_me:11709: result: $use_weak_symbols" >&5
11710 echo "${ECHO_T}$use_weak_symbols" >&6
11711 if test "$use_weak_symbols" = yes ; then
11713 echo "$as_me:11713: checking if $CC supports weak symbols" >&5
11714 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11715 if test "${cf_cv_weak_symbols+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 cat >conftest.$ac_ext <<_ACEOF
11720 #line 11720 "configure"
11721 #include "confdefs.h"
11728 #if defined(__GNUC__)
11729 # if defined __USE_ISOC99
11730 # define _cat_pragma(exp) _Pragma(#exp)
11731 # define _weak_pragma(exp) _cat_pragma(weak name)
11733 # define _weak_pragma(exp)
11735 # define _declare(name) __extension__ extern __typeof__(name) name
11736 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11739 weak_symbol(fopen);
11745 rm -f conftest.$ac_objext
11746 if { (eval echo "$as_me:11746: \"$ac_compile\"") >&5
11747 (eval $ac_compile) 2>&5
11749 echo "$as_me:11749: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -s conftest.$ac_objext'
11752 { (eval echo "$as_me:11752: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:11755: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 cf_cv_weak_symbols=yes
11759 echo "$as_me: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11761 cf_cv_weak_symbols=no
11763 rm -f conftest.$ac_objext conftest.$ac_ext
11766 echo "$as_me:11766: result: $cf_cv_weak_symbols" >&5
11767 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11770 cf_cv_weak_symbols=no
11773 if test $cf_cv_weak_symbols = yes ; then
11774 cat >>confdefs.h <<\EOF
11775 #define USE_WEAK_SYMBOLS 1
11782 if test "$with_pthread" = "yes" ; then
11783 cat >>confdefs.h <<\EOF
11784 #define USE_PTHREADS 1
11787 enable_reentrant=yes
11788 if test $cf_cv_weak_symbols = yes ; then
11793 # Reentrant code has to be opaque; there's little advantage to making ncurses
11794 # opaque outside of that, so there is no --enable-opaque option. We can use
11795 # this option without --with-pthreads, but this will be always set for
11797 echo "$as_me:11797: checking if you want experimental reentrant code" >&5
11798 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11800 # Check whether --enable-reentrant or --disable-reentrant was given.
11801 if test "${enable_reentrant+set}" = set; then
11802 enableval="$enable_reentrant"
11803 with_reentrant=$enableval
11807 echo "$as_me:11807: result: $with_reentrant" >&5
11808 echo "${ECHO_T}$with_reentrant" >&6
11809 if test "$with_reentrant" = yes ; then
11810 cf_cv_enable_reentrant=1
11811 cf_cv_enable_opaque="NCURSES_INTERNALS"
11814 if test $cf_cv_weak_symbols = yes ; then
11816 # remove pthread library from $LIBS
11817 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11819 TEST_LIBS="-lpthread $TEST_LIBS"
11820 TEST_LIBS2="-lpthread $TEST_LIBS2"
11822 LIB_SUFFIX="t${LIB_SUFFIX}"
11824 cat >>confdefs.h <<\EOF
11825 #define USE_REENTRANT 1
11828 if test "${with_abi_version+set}" != set; then
11829 case $cf_cv_rel_version in
11831 cf_cv_rel_version=6.0
11832 cf_cv_abi_version=6
11833 { echo "$as_me:11833: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11834 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11840 cf_cv_enable_reentrant=0
11841 cf_cv_enable_opaque="NCURSES_OPAQUE"
11843 NCURSES_SIZE_T=short
11846 ### Allow using a different wrap-prefix
11847 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11848 echo "$as_me:11848: checking for prefix used to wrap public variables" >&5
11849 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11851 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11852 if test "${with_wrap_prefix+set}" = set; then
11853 withval="$with_wrap_prefix"
11854 NCURSES_WRAP_PREFIX=$withval
11856 NCURSES_WRAP_PREFIX=_nc_
11858 echo "$as_me:11858: result: $NCURSES_WRAP_PREFIX" >&5
11859 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11861 NCURSES_WRAP_PREFIX=_nc_
11864 cat >>confdefs.h <<EOF
11865 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11868 echo "$as_me:11868: checking if you want experimental safe-sprintf code" >&5
11869 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11871 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11872 if test "${enable_safe_sprintf+set}" = set; then
11873 enableval="$enable_safe_sprintf"
11874 with_safe_sprintf=$enableval
11876 with_safe_sprintf=no
11878 echo "$as_me:11878: result: $with_safe_sprintf" >&5
11879 echo "${ECHO_T}$with_safe_sprintf" >&6
11880 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11881 #define USE_SAFE_SPRINTF 1
11884 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11885 # when hashmap is used scroll hints are useless
11886 if test "$with_hashmap" = no ; then
11887 echo "$as_me:11887: checking if you want to experiment without scrolling-hints code" >&5
11888 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11890 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11891 if test "${enable_scroll_hints+set}" = set; then
11892 enableval="$enable_scroll_hints"
11893 with_scroll_hints=$enableval
11895 with_scroll_hints=yes
11897 echo "$as_me:11897: result: $with_scroll_hints" >&5
11898 echo "${ECHO_T}$with_scroll_hints" >&6
11899 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11900 #define USE_SCROLL_HINTS 1
11905 echo "$as_me:11905: checking if you want experimental wgetch-events code" >&5
11906 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11908 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11909 if test "${enable_wgetch_events+set}" = set; then
11910 enableval="$enable_wgetch_events"
11911 with_wgetch_events=$enableval
11913 with_wgetch_events=no
11915 echo "$as_me:11915: result: $with_wgetch_events" >&5
11916 echo "${ECHO_T}$with_wgetch_events" >&6
11917 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
11918 #define NCURSES_WGETCH_EVENTS 1
11921 ###############################################################################
11923 ### use option --disable-echo to suppress full display compiling commands
11925 echo "$as_me:11925: checking if you want to see long compiling messages" >&5
11926 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
11928 # Check whether --enable-echo or --disable-echo was given.
11929 if test "${enable_echo+set}" = set; then
11930 enableval="$enable_echo"
11931 test "$enableval" != no && enableval=yes
11932 if test "$enableval" != "yes" ; then
11935 ECHO_LD='@echo linking $@;'
11936 RULE_CC='@echo compiling $<'
11937 SHOW_CC='@echo compiling $@'
11959 echo "$as_me:11959: result: $enableval" >&5
11960 echo "${ECHO_T}$enableval" >&6
11962 if test "$enable_echo" = yes; then
11965 ECHO_LINK='@ echo linking $@ ... ;'
11966 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11967 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11970 ### use option --enable-warnings to turn on all gcc warnings
11971 echo "$as_me:11971: checking if you want to see compiler warnings" >&5
11972 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
11974 # Check whether --enable-warnings or --disable-warnings was given.
11975 if test "${enable_warnings+set}" = set; then
11976 enableval="$enable_warnings"
11977 with_warnings=$enableval
11979 echo "$as_me:11979: result: $with_warnings" >&5
11980 echo "${ECHO_T}$with_warnings" >&6
11982 if test "x$with_warnings" = "xyes"; then
11984 ADAFLAGS="$ADAFLAGS -gnatg"
11988 if test "$GCC" = yes ; then
11991 echo "$as_me:11991: checking if this is really Intel C compiler" >&5
11992 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
11993 cf_save_CFLAGS="$CFLAGS"
11994 CFLAGS="$CFLAGS -no-gcc"
11995 cat >conftest.$ac_ext <<_ACEOF
11996 #line 11996 "configure"
11997 #include "confdefs.h"
12003 #ifdef __INTEL_COMPILER
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:12013: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>&5
12016 echo "$as_me:12016: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:12019: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:12022: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12025 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12028 echo "$as_me: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12031 rm -f conftest.$ac_objext conftest.$ac_ext
12032 CFLAGS="$cf_save_CFLAGS"
12033 echo "$as_me:12033: result: $INTEL_COMPILER" >&5
12034 echo "${ECHO_T}$INTEL_COMPILER" >&6
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12040 "${as_me:-configure}"
12041 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12044 if test "$INTEL_COMPILER" = yes
12046 # The "-wdXXX" options suppress warnings:
12047 # remark #1419: external declaration in primary source file
12048 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12049 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12050 # remark #193: zero used for undefined preprocessing identifier
12051 # remark #593: variable "curs_sb_left_arrow" was set but never used
12052 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12053 # remark #869: parameter "tw" was never referenced
12054 # remark #981: operands are evaluated in unspecified order
12055 # warning #279: controlling expression is constant
12057 { echo "$as_me:12057: checking for $CC warning options..." >&5
12058 echo "$as_me: checking for $CC warning options..." >&6;}
12059 cf_save_CFLAGS="$CFLAGS"
12060 EXTRA_CFLAGS="-Wall"
12072 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12073 if { (eval echo "$as_me:12073: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>&5
12076 echo "$as_me:12076: \$? = $ac_status" >&5
12077 (exit $ac_status); }; then
12078 test -n "$verbose" && echo "$as_me:12078: result: ... -$cf_opt" >&5
12079 echo "${ECHO_T}... -$cf_opt" >&6
12080 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12083 CFLAGS="$cf_save_CFLAGS"
12085 elif test "$GCC" = yes
12087 { echo "$as_me:12087: checking for $CC warning options..." >&5
12088 echo "$as_me: checking for $CC warning options..." >&6;}
12089 cf_save_CFLAGS="$CFLAGS"
12092 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12093 for cf_opt in W Wall \
12094 Wbad-function-cast \
12098 Wmissing-declarations \
12099 Wmissing-prototypes \
12103 Wstrict-prototypes \
12104 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12106 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12107 if { (eval echo "$as_me:12107: \"$ac_compile\"") >&5
12108 (eval $ac_compile) 2>&5
12110 echo "$as_me:12110: \$? = $ac_status" >&5
12111 (exit $ac_status); }; then
12112 test -n "$verbose" && echo "$as_me:12112: result: ... -$cf_opt" >&5
12113 echo "${ECHO_T}... -$cf_opt" >&6
12114 case $cf_opt in #(vi
12116 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12119 case $GCC_VERSION in
12121 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12123 echo "${as_me:-configure}:12123: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12128 Wpointer-arith) #(vi
12129 case $GCC_VERSION in
12131 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12133 echo "${as_me:-configure}:12133: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12139 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12142 CFLAGS="$cf_save_CFLAGS"
12146 if test "$cf_with_cxx" = yes ; then
12150 if test "$GCC" = yes ; then
12153 echo "$as_me:12153: checking if this is really Intel C++ compiler" >&5
12154 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12155 cf_save_CFLAGS="$CXXFLAGS"
12156 CXXFLAGS="$CXXFLAGS -no-gcc"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 #line 12158 "configure"
12159 #include "confdefs.h"
12165 #ifdef __INTEL_COMPILER
12174 rm -f conftest.$ac_objext
12175 if { (eval echo "$as_me:12175: \"$ac_compile\"") >&5
12176 (eval $ac_compile) 2>&5
12178 echo "$as_me:12178: \$? = $ac_status" >&5
12179 (exit $ac_status); } &&
12180 { ac_try='test -s conftest.$ac_objext'
12181 { (eval echo "$as_me:12181: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12184 echo "$as_me:12184: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 INTEL_CPLUSPLUS=yes
12187 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12190 echo "$as_me: failed program was:" >&5
12191 cat conftest.$ac_ext >&5
12193 rm -f conftest.$ac_objext conftest.$ac_ext
12194 CXXFLAGS="$cf_save_CFLAGS"
12195 echo "$as_me:12195: result: $INTEL_CPLUSPLUS" >&5
12196 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12202 ac_cpp='$CXXCPP $CPPFLAGS'
12203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12206 ac_main_return=return
12208 cat > conftest.$ac_ext <<EOF
12209 #line 12209 "configure"
12210 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12213 if test "$INTEL_CPLUSPLUS" = yes
12215 # The "-wdXXX" options suppress warnings:
12216 # remark #1419: external declaration in primary source file
12217 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12218 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12219 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12220 # remark #193: zero used for undefined preprocessing identifier
12221 # remark #593: variable "curs_sb_left_arrow" was set but never used
12222 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12223 # remark #869: parameter "tw" was never referenced
12224 # remark #981: operands are evaluated in unspecified order
12225 # warning #269: invalid format string conversion
12227 { echo "$as_me:12227: checking for $CC warning options..." >&5
12228 echo "$as_me: checking for $CC warning options..." >&6;}
12229 cf_save_CXXFLAGS="$CXXFLAGS"
12230 EXTRA_CXXFLAGS="-Wall"
12243 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12244 if { (eval echo "$as_me:12244: \"$ac_compile\"") >&5
12245 (eval $ac_compile) 2>&5
12247 echo "$as_me:12247: \$? = $ac_status" >&5
12248 (exit $ac_status); }; then
12249 test -n "$verbose" && echo "$as_me:12249: result: ... -$cf_opt" >&5
12250 echo "${ECHO_T}... -$cf_opt" >&6
12251 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12254 CXXFLAGS="$cf_save_CXXFLAGS"
12256 elif test "$GXX" = yes
12258 { echo "$as_me:12258: checking for $CXX warning options..." >&5
12259 echo "$as_me: checking for $CXX warning options..." >&6;}
12260 cf_save_CXXFLAGS="$CXXFLAGS"
12261 EXTRA_CXXFLAGS="-W -Wall"
12262 cf_gxx_extra_warnings=""
12263 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12264 case "$GCC_VERSION" in
12268 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12274 Woverloaded-virtual \
12280 Wmissing-prototypes \
12283 Wstrict-prototypes \
12284 Wundef $cf_gxx_extra_warnings Wno-unused
12286 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12287 if { (eval echo "$as_me:12287: \"$ac_compile\"") >&5
12288 (eval $ac_compile) 2>&5
12290 echo "$as_me:12290: \$? = $ac_status" >&5
12291 (exit $ac_status); }; then
12292 test -n "$verbose" && echo "$as_me:12292: result: ... -$cf_opt" >&5
12293 echo "${ECHO_T}... -$cf_opt" >&6
12294 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12296 test -n "$verbose" && echo "$as_me:12296: result: ... no -$cf_opt" >&5
12297 echo "${ECHO_T}... no -$cf_opt" >&6
12300 CXXFLAGS="$cf_save_CXXFLAGS"
12305 ac_cpp='$CPP $CPPFLAGS'
12306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12309 ac_main_return=return
12314 if test "$GCC" = yes
12316 cat > conftest.i <<EOF
12318 #define GCC_PRINTF 0
12321 #define GCC_SCANF 0
12323 #ifndef GCC_NORETURN
12324 #define GCC_NORETURN /* nothing */
12327 #define GCC_UNUSED /* nothing */
12330 if test "$GCC" = yes
12332 { echo "$as_me:12332: checking for $CC __attribute__ directives..." >&5
12333 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12334 cat > conftest.$ac_ext <<EOF
12335 #line 12335 "${as_me:-configure}"
12336 #include "confdefs.h"
12337 #include "conftest.h"
12338 #include "conftest.i"
12340 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12342 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12345 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12347 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12349 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12350 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12351 extern void foo(void) GCC_NORETURN;
12352 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12354 cf_printf_attribute=no
12355 cf_scanf_attribute=no
12356 for cf_attribute in scanf printf unused noreturn
12359 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12361 cf_directive="__attribute__(($cf_attribute))"
12362 echo "checking for $CC $cf_directive" 1>&5
12364 case $cf_attribute in #(vi
12366 cf_printf_attribute=yes
12367 cat >conftest.h <<EOF
12368 #define GCC_$cf_ATTRIBUTE 1
12372 cf_scanf_attribute=yes
12373 cat >conftest.h <<EOF
12374 #define GCC_$cf_ATTRIBUTE 1
12378 cat >conftest.h <<EOF
12379 #define GCC_$cf_ATTRIBUTE $cf_directive
12384 if { (eval echo "$as_me:12384: \"$ac_compile\"") >&5
12385 (eval $ac_compile) 2>&5
12387 echo "$as_me:12387: \$? = $ac_status" >&5
12388 (exit $ac_status); }; then
12389 test -n "$verbose" && echo "$as_me:12389: result: ... $cf_attribute" >&5
12390 echo "${ECHO_T}... $cf_attribute" >&6
12391 cat conftest.h >>confdefs.h
12392 case $cf_attribute in #(vi
12394 if test "$cf_printf_attribute" = no ; then
12395 cat >>confdefs.h <<EOF
12396 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
12399 cat >>confdefs.h <<EOF
12400 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12405 if test "$cf_scanf_attribute" = no ; then
12406 cat >>confdefs.h <<EOF
12407 #define GCC_SCANFLIKE(fmt,var) /* nothing */
12410 cat >>confdefs.h <<EOF
12411 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12419 fgrep define conftest.i >>confdefs.h
12424 echo "$as_me:12424: checking if you want to work around bogus compiler/loader warnings" >&5
12425 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
12427 # Check whether --enable-string-hacks or --disable-string-hacks was given.
12428 if test "${enable_string_hacks+set}" = set; then
12429 enableval="$enable_string_hacks"
12430 with_string_hacks=$enableval
12432 with_string_hacks=no
12434 echo "$as_me:12434: result: $with_string_hacks" >&5
12435 echo "${ECHO_T}$with_string_hacks" >&6
12437 if test "x$with_string_hacks" = "xyes"; then
12438 cat >>confdefs.h <<\EOF
12439 #define USE_STRING_HACKS 1
12442 { echo "$as_me:12442: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
12443 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
12445 for ac_func in strlcat strlcpy snprintf
12447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12448 echo "$as_me:12448: checking for $ac_func" >&5
12449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12450 if eval "test \"\${$as_ac_var+set}\" = set"; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 cat >conftest.$ac_ext <<_ACEOF
12454 #line 12454 "configure"
12455 #include "confdefs.h"
12456 /* System header to define __stub macros and hopefully few prototypes,
12457 which can conflict with char $ac_func (); below. */
12458 #include <assert.h>
12459 /* Override any gcc2 internal prototype to avoid an error. */
12463 /* We use char because int might match the return type of a gcc2
12464 builtin and then its argument prototype would still apply. */
12471 /* The GNU C library defines this for functions which it implements
12472 to always fail with ENOSYS. Some functions are actually named
12473 something starting with __ and the normal name is an alias. */
12474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12477 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (eval echo "$as_me:12485: \"$ac_link\"") >&5
12486 (eval $ac_link) 2>&5
12488 echo "$as_me:12488: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -s conftest$ac_exeext'
12491 { (eval echo "$as_me:12491: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:12494: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 eval "$as_ac_var=yes"
12498 echo "$as_me: failed program was:" >&5
12499 cat conftest.$ac_ext >&5
12500 eval "$as_ac_var=no"
12502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12504 echo "$as_me:12504: result: `eval echo '${'$as_ac_var'}'`" >&5
12505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12506 if test `eval echo '${'$as_ac_var'}'` = yes; then
12507 cat >>confdefs.h <<EOF
12508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12516 ### use option --enable-assertions to turn on generation of assertion code
12517 echo "$as_me:12517: checking if you want to enable runtime assertions" >&5
12518 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12520 # Check whether --enable-assertions or --disable-assertions was given.
12521 if test "${enable_assertions+set}" = set; then
12522 enableval="$enable_assertions"
12523 with_assertions=$enableval
12527 echo "$as_me:12527: result: $with_assertions" >&5
12528 echo "${ECHO_T}$with_assertions" >&6
12531 if test "$with_assertions" = no
12533 cat >>confdefs.h <<\EOF
12537 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12540 ADAFLAGS="$ADAFLAGS -gnata"
12545 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12547 echo "$as_me:12547: checking if you want to use dmalloc for testing" >&5
12548 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12550 # Check whether --with-dmalloc or --without-dmalloc was given.
12551 if test "${with_dmalloc+set}" = set; then
12552 withval="$with_dmalloc"
12553 cat >>confdefs.h <<\EOF
12554 #define USE_DMALLOC 1
12557 : ${with_cflags:=-g}
12558 : ${with_no_leaks:=yes}
12563 echo "$as_me:12563: result: ${with_dmalloc:-no}" >&5
12564 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12566 case .$with_cflags in #(vi
12568 case .$CFLAGS in #(vi
12576 cf_new_extra_cppflags=
12578 for cf_add_cflags in -g
12580 case $cf_fix_cppflags in
12582 case $cf_add_cflags in #(vi
12583 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12584 case $cf_add_cflags in
12586 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12588 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12589 && test -z "${cf_tst_cflags}" \
12590 && cf_fix_cppflags=yes
12592 if test $cf_fix_cppflags = yes ; then
12593 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12595 elif test "${cf_tst_cflags}" = "\"'" ; then
12596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12601 case "$CPPFLAGS" in
12602 *$cf_add_cflags) #(vi
12605 case $cf_add_cflags in #(vi
12607 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12609 CPPFLAGS=`echo "$CPPFLAGS" | \
12610 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12611 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12615 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12620 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12625 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12627 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12629 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12630 && test -z "${cf_tst_cflags}" \
12631 && cf_fix_cppflags=no
12636 if test -n "$cf_new_cflags" ; then
12638 CFLAGS="$CFLAGS $cf_new_cflags"
12641 if test -n "$cf_new_cppflags" ; then
12643 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12646 if test -n "$cf_new_extra_cppflags" ; then
12648 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12656 if test "$with_dmalloc" = yes ; then
12657 echo "$as_me:12657: checking for dmalloc.h" >&5
12658 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12659 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >conftest.$ac_ext <<_ACEOF
12663 #line 12663 "configure"
12664 #include "confdefs.h"
12665 #include <dmalloc.h>
12667 if { (eval echo "$as_me:12667: \"$ac_cpp conftest.$ac_ext\"") >&5
12668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12670 egrep -v '^ *\+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:12673: \$? = $ac_status" >&5
12674 (exit $ac_status); } >/dev/null; then
12675 if test -s conftest.err; then
12676 ac_cpp_err=$ac_c_preproc_warn_flag
12683 if test -z "$ac_cpp_err"; then
12684 ac_cv_header_dmalloc_h=yes
12686 echo "$as_me: failed program was:" >&5
12687 cat conftest.$ac_ext >&5
12688 ac_cv_header_dmalloc_h=no
12690 rm -f conftest.err conftest.$ac_ext
12692 echo "$as_me:12692: result: $ac_cv_header_dmalloc_h" >&5
12693 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
12694 if test $ac_cv_header_dmalloc_h = yes; then
12696 echo "$as_me:12696: checking for dmalloc_debug in -ldmalloc" >&5
12697 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
12698 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-ldmalloc $LIBS"
12703 cat >conftest.$ac_ext <<_ACEOF
12704 #line 12704 "configure"
12705 #include "confdefs.h"
12707 /* Override any gcc2 internal prototype to avoid an error. */
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713 char dmalloc_debug ();
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (eval echo "$as_me:12723: \"$ac_link\"") >&5
12724 (eval $ac_link) 2>&5
12726 echo "$as_me:12726: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -s conftest$ac_exeext'
12729 { (eval echo "$as_me:12729: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12732 echo "$as_me:12732: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_lib_dmalloc_dmalloc_debug=yes
12736 echo "$as_me: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12738 ac_cv_lib_dmalloc_dmalloc_debug=no
12740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12741 LIBS=$ac_check_lib_save_LIBS
12743 echo "$as_me:12743: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
12744 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
12745 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
12746 cat >>confdefs.h <<EOF
12747 #define HAVE_LIBDMALLOC 1
12750 LIBS="-ldmalloc $LIBS"
12758 echo "$as_me:12758: checking if you want to use dbmalloc for testing" >&5
12759 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12761 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12762 if test "${with_dbmalloc+set}" = set; then
12763 withval="$with_dbmalloc"
12764 cat >>confdefs.h <<\EOF
12765 #define USE_DBMALLOC 1
12768 : ${with_cflags:=-g}
12769 : ${with_no_leaks:=yes}
12774 echo "$as_me:12774: result: ${with_dbmalloc:-no}" >&5
12775 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12777 case .$with_cflags in #(vi
12779 case .$CFLAGS in #(vi
12787 cf_new_extra_cppflags=
12789 for cf_add_cflags in -g
12791 case $cf_fix_cppflags in
12793 case $cf_add_cflags in #(vi
12794 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12795 case $cf_add_cflags in
12797 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12799 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12800 && test -z "${cf_tst_cflags}" \
12801 && cf_fix_cppflags=yes
12803 if test $cf_fix_cppflags = yes ; then
12804 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12806 elif test "${cf_tst_cflags}" = "\"'" ; then
12807 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12812 case "$CPPFLAGS" in
12813 *$cf_add_cflags) #(vi
12816 case $cf_add_cflags in #(vi
12818 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12820 CPPFLAGS=`echo "$CPPFLAGS" | \
12821 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12822 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12826 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12831 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12836 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12838 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12840 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12841 && test -z "${cf_tst_cflags}" \
12842 && cf_fix_cppflags=no
12847 if test -n "$cf_new_cflags" ; then
12849 CFLAGS="$CFLAGS $cf_new_cflags"
12852 if test -n "$cf_new_cppflags" ; then
12854 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12857 if test -n "$cf_new_extra_cppflags" ; then
12859 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12867 if test "$with_dbmalloc" = yes ; then
12868 echo "$as_me:12868: checking for dbmalloc.h" >&5
12869 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12870 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 cat >conftest.$ac_ext <<_ACEOF
12874 #line 12874 "configure"
12875 #include "confdefs.h"
12876 #include <dbmalloc.h>
12878 if { (eval echo "$as_me:12878: \"$ac_cpp conftest.$ac_ext\"") >&5
12879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12881 egrep -v '^ *\+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:12884: \$? = $ac_status" >&5
12885 (exit $ac_status); } >/dev/null; then
12886 if test -s conftest.err; then
12887 ac_cpp_err=$ac_c_preproc_warn_flag
12894 if test -z "$ac_cpp_err"; then
12895 ac_cv_header_dbmalloc_h=yes
12897 echo "$as_me: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 ac_cv_header_dbmalloc_h=no
12901 rm -f conftest.err conftest.$ac_ext
12903 echo "$as_me:12903: result: $ac_cv_header_dbmalloc_h" >&5
12904 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
12905 if test $ac_cv_header_dbmalloc_h = yes; then
12907 echo "$as_me:12907: checking for debug_malloc in -ldbmalloc" >&5
12908 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
12909 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 ac_check_lib_save_LIBS=$LIBS
12913 LIBS="-ldbmalloc $LIBS"
12914 cat >conftest.$ac_ext <<_ACEOF
12915 #line 12915 "configure"
12916 #include "confdefs.h"
12918 /* Override any gcc2 internal prototype to avoid an error. */
12922 /* We use char because int might match the return type of a gcc2
12923 builtin and then its argument prototype would still apply. */
12924 char debug_malloc ();
12933 rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (eval echo "$as_me:12934: \"$ac_link\"") >&5
12935 (eval $ac_link) 2>&5
12937 echo "$as_me:12937: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:12940: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:12943: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_dbmalloc_debug_malloc=yes
12947 echo "$as_me: failed program was:" >&5
12948 cat conftest.$ac_ext >&5
12949 ac_cv_lib_dbmalloc_debug_malloc=no
12951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS
12954 echo "$as_me:12954: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
12955 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
12956 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
12957 cat >>confdefs.h <<EOF
12958 #define HAVE_LIBDBMALLOC 1
12961 LIBS="-ldbmalloc $LIBS"
12969 echo "$as_me:12969: checking if you want to use valgrind for testing" >&5
12970 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
12972 # Check whether --with-valgrind or --without-valgrind was given.
12973 if test "${with_valgrind+set}" = set; then
12974 withval="$with_valgrind"
12975 cat >>confdefs.h <<\EOF
12976 #define USE_VALGRIND 1
12979 : ${with_cflags:=-g}
12980 : ${with_no_leaks:=yes}
12985 echo "$as_me:12985: result: ${with_valgrind:-no}" >&5
12986 echo "${ECHO_T}${with_valgrind:-no}" >&6
12988 case .$with_cflags in #(vi
12990 case .$CFLAGS in #(vi
12998 cf_new_extra_cppflags=
13000 for cf_add_cflags in -g
13002 case $cf_fix_cppflags in
13004 case $cf_add_cflags in #(vi
13005 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13006 case $cf_add_cflags in
13008 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13010 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13011 && test -z "${cf_tst_cflags}" \
13012 && cf_fix_cppflags=yes
13014 if test $cf_fix_cppflags = yes ; then
13015 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13017 elif test "${cf_tst_cflags}" = "\"'" ; then
13018 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13023 case "$CPPFLAGS" in
13024 *$cf_add_cflags) #(vi
13027 case $cf_add_cflags in #(vi
13029 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13031 CPPFLAGS=`echo "$CPPFLAGS" | \
13032 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13033 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13037 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13042 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13047 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13049 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13051 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13052 && test -z "${cf_tst_cflags}" \
13053 && cf_fix_cppflags=no
13058 if test -n "$cf_new_cflags" ; then
13060 CFLAGS="$CFLAGS $cf_new_cflags"
13063 if test -n "$cf_new_cppflags" ; then
13065 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13068 if test -n "$cf_new_extra_cppflags" ; then
13070 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13078 echo "$as_me:13078: checking if you want to perform memory-leak testing" >&5
13079 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13081 # Check whether --enable-leaks or --disable-leaks was given.
13082 if test "${enable_leaks+set}" = set; then
13083 enableval="$enable_leaks"
13084 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13086 : ${with_no_leaks:=no}
13088 echo "$as_me:13088: result: $with_no_leaks" >&5
13089 echo "${ECHO_T}$with_no_leaks" >&6
13091 if test "$with_no_leaks" = yes ; then
13092 cat >>confdefs.h <<\EOF
13096 cat >>confdefs.h <<\EOF
13097 #define YY_NO_LEAKS 1
13102 cat >>confdefs.h <<\EOF
13103 #define HAVE_NC_ALLOC_H 1
13106 ### use option --enable-expanded to generate certain macros as functions
13108 # Check whether --enable-expanded or --disable-expanded was given.
13109 if test "${enable_expanded+set}" = set; then
13110 enableval="$enable_expanded"
13111 test "$enableval" = yes && cat >>confdefs.h <<\EOF
13112 #define NCURSES_EXPANDED 1
13117 ### use option --disable-macros to suppress macros in favor of functions
13119 # Check whether --enable-macros or --disable-macros was given.
13120 if test "${enable_macros+set}" = set; then
13121 enableval="$enable_macros"
13122 test "$enableval" = no && cat >>confdefs.h <<\EOF
13123 #define NCURSES_NOMACROS 1
13128 # Normally we only add trace() to the debug-library. Allow this to be
13129 # extended to all models of the ncurses library:
13131 case "$CFLAGS $CPPFLAGS" in
13137 echo "$as_me:13137: checking whether to add trace feature to all models" >&5
13138 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13140 # Check whether --with-trace or --without-trace was given.
13141 if test "${with_trace+set}" = set; then
13142 withval="$with_trace"
13143 cf_with_trace=$withval
13145 cf_with_trace=$cf_all_traces
13147 echo "$as_me:13147: result: $cf_with_trace" >&5
13148 echo "${ECHO_T}$cf_with_trace" >&6
13150 if test "$cf_with_trace" = yes ; then
13157 cf_new_extra_cppflags=
13159 for cf_add_cflags in -DTRACE
13161 case $cf_fix_cppflags in
13163 case $cf_add_cflags in #(vi
13164 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13165 case $cf_add_cflags in
13167 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13169 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13170 && test -z "${cf_tst_cflags}" \
13171 && cf_fix_cppflags=yes
13173 if test $cf_fix_cppflags = yes ; then
13174 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13176 elif test "${cf_tst_cflags}" = "\"'" ; then
13177 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13182 case "$CPPFLAGS" in
13183 *$cf_add_cflags) #(vi
13186 case $cf_add_cflags in #(vi
13188 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13190 CPPFLAGS=`echo "$CPPFLAGS" | \
13191 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13192 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13196 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13201 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13206 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13208 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13210 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13211 && test -z "${cf_tst_cflags}" \
13212 && cf_fix_cppflags=no
13217 if test -n "$cf_new_cflags" ; then
13219 CFLAGS="$CFLAGS $cf_new_cflags"
13222 if test -n "$cf_new_cppflags" ; then
13224 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13227 if test -n "$cf_new_extra_cppflags" ; then
13229 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13237 ### Checks for libraries.
13238 case $cf_cv_system_name in #(vi
13242 echo "$as_me:13242: checking for gettimeofday" >&5
13243 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13244 if test "${ac_cv_func_gettimeofday+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 cat >conftest.$ac_ext <<_ACEOF
13248 #line 13248 "configure"
13249 #include "confdefs.h"
13250 /* System header to define __stub macros and hopefully few prototypes,
13251 which can conflict with char gettimeofday (); below. */
13252 #include <assert.h>
13253 /* Override any gcc2 internal prototype to avoid an error. */
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259 char gettimeofday ();
13265 /* The GNU C library defines this for functions which it implements
13266 to always fail with ENOSYS. Some functions are actually named
13267 something starting with __ and the normal name is an alias. */
13268 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13271 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (eval echo "$as_me:13279: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>&5
13282 echo "$as_me:13282: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -s conftest$ac_exeext'
13285 { (eval echo "$as_me:13285: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13288 echo "$as_me:13288: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_func_gettimeofday=yes
13292 echo "$as_me: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13294 ac_cv_func_gettimeofday=no
13296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13298 echo "$as_me:13298: result: $ac_cv_func_gettimeofday" >&5
13299 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13300 if test $ac_cv_func_gettimeofday = yes; then
13301 cat >>confdefs.h <<\EOF
13302 #define HAVE_GETTIMEOFDAY 1
13307 echo "$as_me:13307: checking for gettimeofday in -lbsd" >&5
13308 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13309 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 ac_check_lib_save_LIBS=$LIBS
13314 cat >conftest.$ac_ext <<_ACEOF
13315 #line 13315 "configure"
13316 #include "confdefs.h"
13318 /* Override any gcc2 internal prototype to avoid an error. */
13322 /* We use char because int might match the return type of a gcc2
13323 builtin and then its argument prototype would still apply. */
13324 char gettimeofday ();
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (eval echo "$as_me:13334: \"$ac_link\"") >&5
13335 (eval $ac_link) 2>&5
13337 echo "$as_me:13337: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -s conftest$ac_exeext'
13340 { (eval echo "$as_me:13340: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:13343: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 ac_cv_lib_bsd_gettimeofday=yes
13347 echo "$as_me: failed program was:" >&5
13348 cat conftest.$ac_ext >&5
13349 ac_cv_lib_bsd_gettimeofday=no
13351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13352 LIBS=$ac_check_lib_save_LIBS
13354 echo "$as_me:13354: result: $ac_cv_lib_bsd_gettimeofday" >&5
13355 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13356 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13357 cat >>confdefs.h <<\EOF
13358 #define HAVE_GETTIMEOFDAY 1
13368 echo "$as_me:13368: checking if -lm needed for math functions" >&5
13369 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13370 if test "${cf_cv_need_libm+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 cat >conftest.$ac_ext <<_ACEOF
13375 #line 13375 "configure"
13376 #include "confdefs.h"
13384 double x = rand(); printf("result = %g\n", sin(x))
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (eval echo "$as_me:13390: \"$ac_link\"") >&5
13391 (eval $ac_link) 2>&5
13393 echo "$as_me:13393: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (eval echo "$as_me:13396: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:13399: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13403 echo "$as_me: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13405 cf_cv_need_libm=yes
13407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13409 echo "$as_me:13409: result: $cf_cv_need_libm" >&5
13410 echo "${ECHO_T}$cf_cv_need_libm" >&6
13411 if test "$cf_cv_need_libm" = yes
13416 ### Checks for header files.
13417 echo "$as_me:13417: checking for ANSI C header files" >&5
13418 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13419 if test "${ac_cv_header_stdc+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 cat >conftest.$ac_ext <<_ACEOF
13423 #line 13423 "configure"
13424 #include "confdefs.h"
13425 #include <stdlib.h>
13426 #include <stdarg.h>
13427 #include <string.h>
13431 if { (eval echo "$as_me:13431: \"$ac_cpp conftest.$ac_ext\"") >&5
13432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13434 egrep -v '^ *\+' conftest.er1 >conftest.err
13436 cat conftest.err >&5
13437 echo "$as_me:13437: \$? = $ac_status" >&5
13438 (exit $ac_status); } >/dev/null; then
13439 if test -s conftest.err; then
13440 ac_cpp_err=$ac_c_preproc_warn_flag
13447 if test -z "$ac_cpp_err"; then
13448 ac_cv_header_stdc=yes
13450 echo "$as_me: failed program was:" >&5
13451 cat conftest.$ac_ext >&5
13452 ac_cv_header_stdc=no
13454 rm -f conftest.err conftest.$ac_ext
13456 if test $ac_cv_header_stdc = yes; then
13457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13458 cat >conftest.$ac_ext <<_ACEOF
13459 #line 13459 "configure"
13460 #include "confdefs.h"
13461 #include <string.h>
13464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13465 egrep "memchr" >/dev/null 2>&1; then
13468 ac_cv_header_stdc=no
13474 if test $ac_cv_header_stdc = yes; then
13475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13476 cat >conftest.$ac_ext <<_ACEOF
13477 #line 13477 "configure"
13478 #include "confdefs.h"
13479 #include <stdlib.h>
13482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13483 egrep "free" >/dev/null 2>&1; then
13486 ac_cv_header_stdc=no
13492 if test $ac_cv_header_stdc = yes; then
13493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13494 if test "$cross_compiling" = yes; then
13497 cat >conftest.$ac_ext <<_ACEOF
13498 #line 13498 "configure"
13499 #include "confdefs.h"
13501 #if ((' ' & 0x0FF) == 0x020)
13502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13505 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13506 || ('j' <= (c) && (c) <= 'r') \
13507 || ('s' <= (c) && (c) <= 'z'))
13508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13516 for (i = 0; i < 256; i++)
13517 if (XOR (islower (i), ISLOWER (i))
13518 || toupper (i) != TOUPPER (i))
13519 $ac_main_return(2);
13520 $ac_main_return (0);
13523 rm -f conftest$ac_exeext
13524 if { (eval echo "$as_me:13524: \"$ac_link\"") >&5
13525 (eval $ac_link) 2>&5
13527 echo "$as_me:13527: \$? = $ac_status" >&5
13528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13529 { (eval echo "$as_me:13529: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:13532: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13536 echo "$as_me: program exited with status $ac_status" >&5
13537 echo "$as_me: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 ac_cv_header_stdc=no
13541 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13545 echo "$as_me:13545: result: $ac_cv_header_stdc" >&5
13546 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13547 if test $ac_cv_header_stdc = yes; then
13549 cat >>confdefs.h <<\EOF
13550 #define STDC_HEADERS 1
13555 ac_header_dirent=no
13556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13557 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13558 echo "$as_me:13558: checking for $ac_hdr that defines DIR" >&5
13559 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 cat >conftest.$ac_ext <<_ACEOF
13564 #line 13564 "configure"
13565 #include "confdefs.h"
13566 #include <sys/types.h>
13578 rm -f conftest.$ac_objext
13579 if { (eval echo "$as_me:13579: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>&5
13582 echo "$as_me:13582: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:13585: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:13588: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 eval "$as_ac_Header=yes"
13592 echo "$as_me: failed program was:" >&5
13593 cat conftest.$ac_ext >&5
13594 eval "$as_ac_Header=no"
13596 rm -f conftest.$ac_objext conftest.$ac_ext
13598 echo "$as_me:13598: result: `eval echo '${'$as_ac_Header'}'`" >&5
13599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13601 cat >>confdefs.h <<EOF
13602 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13605 ac_header_dirent=$ac_hdr; break
13609 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13610 if test $ac_header_dirent = dirent.h; then
13611 echo "$as_me:13611: checking for opendir in -ldir" >&5
13612 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13613 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 ac_check_lib_save_LIBS=$LIBS
13618 cat >conftest.$ac_ext <<_ACEOF
13619 #line 13619 "configure"
13620 #include "confdefs.h"
13622 /* Override any gcc2 internal prototype to avoid an error. */
13626 /* We use char because int might match the return type of a gcc2
13627 builtin and then its argument prototype would still apply. */
13637 rm -f conftest.$ac_objext conftest$ac_exeext
13638 if { (eval echo "$as_me:13638: \"$ac_link\"") >&5
13639 (eval $ac_link) 2>&5
13641 echo "$as_me:13641: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (eval echo "$as_me:13644: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:13647: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_cv_lib_dir_opendir=yes
13651 echo "$as_me: failed program was:" >&5
13652 cat conftest.$ac_ext >&5
13653 ac_cv_lib_dir_opendir=no
13655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13658 echo "$as_me:13658: result: $ac_cv_lib_dir_opendir" >&5
13659 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13660 if test $ac_cv_lib_dir_opendir = yes; then
13665 echo "$as_me:13665: checking for opendir in -lx" >&5
13666 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13667 if test "${ac_cv_lib_x_opendir+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 ac_check_lib_save_LIBS=$LIBS
13672 cat >conftest.$ac_ext <<_ACEOF
13673 #line 13673 "configure"
13674 #include "confdefs.h"
13676 /* Override any gcc2 internal prototype to avoid an error. */
13680 /* We use char because int might match the return type of a gcc2
13681 builtin and then its argument prototype would still apply. */
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:13692: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>&5
13695 echo "$as_me:13695: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:13698: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:13701: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_lib_x_opendir=yes
13705 echo "$as_me: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13707 ac_cv_lib_x_opendir=no
13709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 echo "$as_me:13712: result: $ac_cv_lib_x_opendir" >&5
13713 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
13714 if test $ac_cv_lib_x_opendir = yes; then
13720 echo "$as_me:13720: checking whether time.h and sys/time.h may both be included" >&5
13721 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13722 if test "${ac_cv_header_time+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 cat >conftest.$ac_ext <<_ACEOF
13726 #line 13726 "configure"
13727 #include "confdefs.h"
13728 #include <sys/types.h>
13729 #include <sys/time.h>
13735 if ((struct tm *) 0)
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:13742: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>&5
13745 echo "$as_me:13745: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:13748: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:13751: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_header_time=yes
13755 echo "$as_me: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 ac_cv_header_time=no
13759 rm -f conftest.$ac_objext conftest.$ac_ext
13761 echo "$as_me:13761: result: $ac_cv_header_time" >&5
13762 echo "${ECHO_T}$ac_cv_header_time" >&6
13763 if test $ac_cv_header_time = yes; then
13765 cat >>confdefs.h <<\EOF
13766 #define TIME_WITH_SYS_TIME 1
13773 cf_regex_libs="regex re"
13774 case $host_os in #(vi
13776 cf_regex_libs="gnurx $cf_regex_libs"
13780 echo "$as_me:13780: checking for regcomp" >&5
13781 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13782 if test "${ac_cv_func_regcomp+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 cat >conftest.$ac_ext <<_ACEOF
13786 #line 13786 "configure"
13787 #include "confdefs.h"
13788 /* System header to define __stub macros and hopefully few prototypes,
13789 which can conflict with char regcomp (); below. */
13790 #include <assert.h>
13791 /* Override any gcc2 internal prototype to avoid an error. */
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13803 /* The GNU C library defines this for functions which it implements
13804 to always fail with ENOSYS. Some functions are actually named
13805 something starting with __ and the normal name is an alias. */
13806 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13809 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13816 rm -f conftest.$ac_objext conftest$ac_exeext
13817 if { (eval echo "$as_me:13817: \"$ac_link\"") >&5
13818 (eval $ac_link) 2>&5
13820 echo "$as_me:13820: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
13822 { ac_try='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:13823: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:13826: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_func_regcomp=yes
13830 echo "$as_me: failed program was:" >&5
13831 cat conftest.$ac_ext >&5
13832 ac_cv_func_regcomp=no
13834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13836 echo "$as_me:13836: result: $ac_cv_func_regcomp" >&5
13837 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13838 if test $ac_cv_func_regcomp = yes; then
13839 cf_regex_func=regcomp
13842 for cf_regex_lib in $cf_regex_libs
13844 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
13845 echo "$as_me:13845: checking for regcomp in -l$cf_regex_lib" >&5
13846 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
13847 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 ac_check_lib_save_LIBS=$LIBS
13851 LIBS="-l$cf_regex_lib $LIBS"
13852 cat >conftest.$ac_ext <<_ACEOF
13853 #line 13853 "configure"
13854 #include "confdefs.h"
13856 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:13872: \"$ac_link\"") >&5
13873 (eval $ac_link) 2>&5
13875 echo "$as_me:13875: \$? = $ac_status" >&5
13876 (exit $ac_status); } &&
13877 { ac_try='test -s conftest$ac_exeext'
13878 { (eval echo "$as_me:13878: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:13881: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 eval "$as_ac_Lib=yes"
13885 echo "$as_me: failed program was:" >&5
13886 cat conftest.$ac_ext >&5
13887 eval "$as_ac_Lib=no"
13889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13892 echo "$as_me:13892: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13893 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13894 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13896 LIBS="-l$cf_regex_lib $LIBS"
13897 cf_regex_func=regcomp
13905 if test "$cf_regex_func" = no ; then
13906 echo "$as_me:13906: checking for compile" >&5
13907 echo $ECHO_N "checking for compile... $ECHO_C" >&6
13908 if test "${ac_cv_func_compile+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 cat >conftest.$ac_ext <<_ACEOF
13912 #line 13912 "configure"
13913 #include "confdefs.h"
13914 /* System header to define __stub macros and hopefully few prototypes,
13915 which can conflict with char compile (); below. */
13916 #include <assert.h>
13917 /* Override any gcc2 internal prototype to avoid an error. */
13921 /* We use char because int might match the return type of a gcc2
13922 builtin and then its argument prototype would still apply. */
13929 /* The GNU C library defines this for functions which it implements
13930 to always fail with ENOSYS. Some functions are actually named
13931 something starting with __ and the normal name is an alias. */
13932 #if defined (__stub_compile) || defined (__stub___compile)
13935 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13942 rm -f conftest.$ac_objext conftest$ac_exeext
13943 if { (eval echo "$as_me:13943: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>&5
13946 echo "$as_me:13946: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -s conftest$ac_exeext'
13949 { (eval echo "$as_me:13949: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:13952: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_cv_func_compile=yes
13956 echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13958 ac_cv_func_compile=no
13960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13962 echo "$as_me:13962: result: $ac_cv_func_compile" >&5
13963 echo "${ECHO_T}$ac_cv_func_compile" >&6
13964 if test $ac_cv_func_compile = yes; then
13965 cf_regex_func=compile
13968 echo "$as_me:13968: checking for compile in -lgen" >&5
13969 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
13970 if test "${ac_cv_lib_gen_compile+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 ac_check_lib_save_LIBS=$LIBS
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line 13976 "configure"
13977 #include "confdefs.h"
13979 /* Override any gcc2 internal prototype to avoid an error. */
13983 /* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (eval echo "$as_me:13995: \"$ac_link\"") >&5
13996 (eval $ac_link) 2>&5
13998 echo "$as_me:13998: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -s conftest$ac_exeext'
14001 { (eval echo "$as_me:14001: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14004 echo "$as_me:14004: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14006 ac_cv_lib_gen_compile=yes
14008 echo "$as_me: failed program was:" >&5
14009 cat conftest.$ac_ext >&5
14010 ac_cv_lib_gen_compile=no
14012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14015 echo "$as_me:14015: result: $ac_cv_lib_gen_compile" >&5
14016 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14017 if test $ac_cv_lib_gen_compile = yes; then
14020 cf_regex_func=compile
14027 if test "$cf_regex_func" = no ; then
14028 { echo "$as_me:14028: WARNING: cannot find regular expression library" >&5
14029 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14032 echo "$as_me:14032: checking for regular-expression headers" >&5
14033 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14034 if test "${cf_cv_regex_hdrs+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 cf_cv_regex_hdrs=no
14039 case $cf_regex_func in #(vi
14041 for cf_regex_hdr in regexp.h regexpr.h
14043 cat >conftest.$ac_ext <<_ACEOF
14044 #line 14044 "configure"
14045 #include "confdefs.h"
14046 #include <$cf_regex_hdr>
14051 char *p = compile("", "", "", 0);
14052 int x = step("", "");
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (eval echo "$as_me:14059: \"$ac_link\"") >&5
14060 (eval $ac_link) 2>&5
14062 echo "$as_me:14062: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try='test -s conftest$ac_exeext'
14065 { (eval echo "$as_me:14065: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:14068: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14071 cf_cv_regex_hdrs=$cf_regex_hdr
14075 echo "$as_me: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14082 for cf_regex_hdr in regex.h
14084 cat >conftest.$ac_ext <<_ACEOF
14085 #line 14085 "configure"
14086 #include "confdefs.h"
14087 #include <sys/types.h>
14088 #include <$cf_regex_hdr>
14094 int x = regcomp(p, "", 0);
14095 int y = regexec(p, "", 0, 0, 0);
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:14103: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>&5
14106 echo "$as_me:14106: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -s conftest$ac_exeext'
14109 { (eval echo "$as_me:14109: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:14112: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14115 cf_cv_regex_hdrs=$cf_regex_hdr
14119 echo "$as_me: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14128 echo "$as_me:14128: result: $cf_cv_regex_hdrs" >&5
14129 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14131 case $cf_cv_regex_hdrs in #(vi
14132 no) { echo "$as_me:14132: WARNING: no regular expression header found" >&5
14133 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14134 regex.h) cat >>confdefs.h <<\EOF
14135 #define HAVE_REGEX_H_FUNCS 1
14138 regexp.h) cat >>confdefs.h <<\EOF
14139 #define HAVE_REGEXP_H_FUNCS 1
14142 regexpr.h) cat >>confdefs.h <<\EOF
14143 #define HAVE_REGEXPR_H_FUNCS 1
14167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14168 echo "$as_me:14168: checking for $ac_header" >&5
14169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14174 #line 14174 "configure"
14175 #include "confdefs.h"
14176 #include <$ac_header>
14178 if { (eval echo "$as_me:14178: \"$ac_cpp conftest.$ac_ext\"") >&5
14179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14181 egrep -v '^ *\+' conftest.er1 >conftest.err
14183 cat conftest.err >&5
14184 echo "$as_me:14184: \$? = $ac_status" >&5
14185 (exit $ac_status); } >/dev/null; then
14186 if test -s conftest.err; then
14187 ac_cpp_err=$ac_c_preproc_warn_flag
14194 if test -z "$ac_cpp_err"; then
14195 eval "$as_ac_Header=yes"
14197 echo "$as_me: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14199 eval "$as_ac_Header=no"
14201 rm -f conftest.err conftest.$ac_ext
14203 echo "$as_me:14203: result: `eval echo '${'$as_ac_Header'}'`" >&5
14204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14206 cat >>confdefs.h <<EOF
14207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14213 for ac_header in unistd.h getopt.h
14215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14216 echo "$as_me:14216: checking for $ac_header" >&5
14217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 cat >conftest.$ac_ext <<_ACEOF
14222 #line 14222 "configure"
14223 #include "confdefs.h"
14224 #include <$ac_header>
14226 if { (eval echo "$as_me:14226: \"$ac_cpp conftest.$ac_ext\"") >&5
14227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14229 egrep -v '^ *\+' conftest.er1 >conftest.err
14231 cat conftest.err >&5
14232 echo "$as_me:14232: \$? = $ac_status" >&5
14233 (exit $ac_status); } >/dev/null; then
14234 if test -s conftest.err; then
14235 ac_cpp_err=$ac_c_preproc_warn_flag
14242 if test -z "$ac_cpp_err"; then
14243 eval "$as_ac_Header=yes"
14245 echo "$as_me: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 eval "$as_ac_Header=no"
14249 rm -f conftest.err conftest.$ac_ext
14251 echo "$as_me:14251: result: `eval echo '${'$as_ac_Header'}'`" >&5
14252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14254 cat >>confdefs.h <<EOF
14255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14261 echo "$as_me:14261: checking for header declaring getopt variables" >&5
14262 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14263 if test "${cf_cv_getopt_header+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 cf_cv_getopt_header=none
14268 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line 14271 "configure"
14272 #include "confdefs.h"
14274 #include <$cf_header>
14278 int x = optind; char *y = optarg
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:14284: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>&5
14287 echo "$as_me:14287: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (eval echo "$as_me:14290: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14293 echo "$as_me:14293: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 cf_cv_getopt_header=$cf_header
14298 echo "$as_me: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14301 rm -f conftest.$ac_objext conftest.$ac_ext
14305 echo "$as_me:14305: result: $cf_cv_getopt_header" >&5
14306 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14307 if test $cf_cv_getopt_header != none ; then
14308 cat >>confdefs.h <<\EOF
14309 #define HAVE_GETOPT_HEADER 1
14314 # check for ISC (this may also define _POSIX_SOURCE)
14315 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14316 if test "$ISC" = yes ; then
14318 echo "$as_me:14318: checking for main in -lcposix" >&5
14319 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14320 if test "${ac_cv_lib_cposix_main+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 ac_check_lib_save_LIBS=$LIBS
14324 LIBS="-lcposix $LIBS"
14325 cat >conftest.$ac_ext <<_ACEOF
14326 #line 14326 "configure"
14327 #include "confdefs.h"
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:14338: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>&5
14341 echo "$as_me:14341: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
14343 { ac_try='test -s conftest$ac_exeext'
14344 { (eval echo "$as_me:14344: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:14347: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349 ac_cv_lib_cposix_main=yes
14351 echo "$as_me: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14353 ac_cv_lib_cposix_main=no
14355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14356 LIBS=$ac_check_lib_save_LIBS
14358 echo "$as_me:14358: result: $ac_cv_lib_cposix_main" >&5
14359 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14360 if test $ac_cv_lib_cposix_main = yes; then
14361 cat >>confdefs.h <<EOF
14362 #define HAVE_LIBCPOSIX 1
14365 LIBS="-lcposix $LIBS"
14369 echo "$as_me:14369: checking for bzero in -linet" >&5
14370 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14371 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 ac_check_lib_save_LIBS=$LIBS
14375 LIBS="-linet $LIBS"
14376 cat >conftest.$ac_ext <<_ACEOF
14377 #line 14377 "configure"
14378 #include "confdefs.h"
14380 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (eval echo "$as_me:14396: \"$ac_link\"") >&5
14397 (eval $ac_link) 2>&5
14399 echo "$as_me:14399: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -s conftest$ac_exeext'
14402 { (eval echo "$as_me:14402: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14405 echo "$as_me:14405: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
14407 ac_cv_lib_inet_bzero=yes
14409 echo "$as_me: failed program was:" >&5
14410 cat conftest.$ac_ext >&5
14411 ac_cv_lib_inet_bzero=no
14413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14414 LIBS=$ac_check_lib_save_LIBS
14416 echo "$as_me:14416: result: $ac_cv_lib_inet_bzero" >&5
14417 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14418 if test $ac_cv_lib_inet_bzero = yes; then
14419 LIBS="-linet $LIBS"
14423 echo "$as_me:14423: checking if sys/time.h works with sys/select.h" >&5
14424 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14425 if test "${cf_cv_sys_time_select+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14433 #include <sys/types.h>
14434 #ifdef HAVE_SYS_TIME_H
14435 #include <sys/time.h>
14437 #ifdef HAVE_SYS_SELECT_H
14438 #include <sys/select.h>
14449 rm -f conftest.$ac_objext
14450 if { (eval echo "$as_me:14450: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>&5
14453 echo "$as_me:14453: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -s conftest.$ac_objext'
14456 { (eval echo "$as_me:14456: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14459 echo "$as_me:14459: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 cf_cv_sys_time_select=yes
14463 echo "$as_me: failed program was:" >&5
14464 cat conftest.$ac_ext >&5
14465 cf_cv_sys_time_select=no
14467 rm -f conftest.$ac_objext conftest.$ac_ext
14471 echo "$as_me:14471: result: $cf_cv_sys_time_select" >&5
14472 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14473 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
14474 #define HAVE_SYS_TIME_SELECT 1
14477 ### checks for compiler characteristics
14479 ac_cpp='$CPP $CPPFLAGS'
14480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14483 ac_main_return=return
14485 echo "$as_me:14485: checking for $CC option to accept ANSI C" >&5
14486 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14487 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 ac_cv_prog_cc_stdc=no
14492 cat >conftest.$ac_ext <<_ACEOF
14493 #line 14493 "configure"
14494 #include "confdefs.h"
14495 #include <stdarg.h>
14497 #include <sys/types.h>
14498 #include <sys/stat.h>
14499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14500 struct buf { int x; };
14501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14502 static char *e (p, i)
14508 static char *f (char * (*g) (char **, int), char **p, ...)
14513 s = g (p, va_arg (v,int));
14517 int test (int i, double x);
14518 struct s1 {int (*f) (int a);};
14519 struct s2 {int (*f) (double a);};
14520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14531 # Don't try gcc -ansi; that turns off useful extensions and
14532 # breaks some systems' header files.
14533 # AIX -qlanglvl=ansi
14534 # Ultrix and OSF/1 -std1
14535 # HP-UX 10.20 and later -Ae
14536 # HP-UX older versions -Aa -D_HPUX_SOURCE
14537 # SVR4 -Xc -D__EXTENSIONS__
14538 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14540 CC="$ac_save_CC $ac_arg"
14541 rm -f conftest.$ac_objext
14542 if { (eval echo "$as_me:14542: \"$ac_compile\"") >&5
14543 (eval $ac_compile) 2>&5
14545 echo "$as_me:14545: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -s conftest.$ac_objext'
14548 { (eval echo "$as_me:14548: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:14551: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_prog_cc_stdc=$ac_arg
14556 echo "$as_me: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14559 rm -f conftest.$ac_objext
14561 rm -f conftest.$ac_ext conftest.$ac_objext
14566 case "x$ac_cv_prog_cc_stdc" in
14568 echo "$as_me:14568: result: none needed" >&5
14569 echo "${ECHO_T}none needed" >&6 ;;
14571 echo "$as_me:14571: result: $ac_cv_prog_cc_stdc" >&5
14572 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14573 CC="$CC $ac_cv_prog_cc_stdc" ;;
14576 echo "$as_me:14576: checking for an ANSI C-conforming const" >&5
14577 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14578 if test "${ac_cv_c_const+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14582 #line 14582 "configure"
14583 #include "confdefs.h"
14588 /* FIXME: Include the comments suggested by Paul. */
14589 #ifndef __cplusplus
14590 /* Ultrix mips cc rejects this. */
14591 typedef int charset[2];
14593 /* SunOS 4.1.1 cc rejects this. */
14594 char const *const *ccp;
14596 /* NEC SVR4.0.2 mips cc rejects this. */
14597 struct point {int x, y;};
14598 static struct point const zero = {0,0};
14599 /* AIX XL C 1.02.0.0 rejects this.
14600 It does not let you subtract one const X* pointer from another in
14601 an arm of an if-expression whose if-part is not a constant
14603 const char *g = "string";
14604 ccp = &g + (g ? g-g : 0);
14605 /* HPUX 7.0 cc rejects these. */
14608 ccp = (char const *const *) p;
14609 { /* SCO 3.2v4 cc rejects this. */
14611 char const *s = 0 ? (char *) 0 : (char const *) 0;
14615 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14616 int x[] = {25, 17};
14617 const int *foo = &x[0];
14620 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14621 typedef const int *iptr;
14625 { /* AIX XL C 1.02.0.0 rejects this saying
14626 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14627 struct s { int j; const int *ap[3]; };
14628 struct s *b; b->j = 5;
14630 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14631 const int foo = 10;
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:14640: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>&5
14643 echo "$as_me:14643: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:14646: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14653 echo "$as_me: failed program was:" >&5
14654 cat conftest.$ac_ext >&5
14657 rm -f conftest.$ac_objext conftest.$ac_ext
14659 echo "$as_me:14659: result: $ac_cv_c_const" >&5
14660 echo "${ECHO_T}$ac_cv_c_const" >&6
14661 if test $ac_cv_c_const = no; then
14663 cat >>confdefs.h <<\EOF
14669 echo "$as_me:14669: checking for inline" >&5
14670 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14671 if test "${ac_cv_c_inline+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 for ac_kw in inline __inline__ __inline; do
14676 cat >conftest.$ac_ext <<_ACEOF
14677 #line 14677 "configure"
14678 #include "confdefs.h"
14679 #ifndef __cplusplus
14680 static $ac_kw int static_foo () {return 0; }
14681 $ac_kw int foo () {return 0; }
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:14686: \"$ac_compile\"") >&5
14687 (eval $ac_compile) 2>&5
14689 echo "$as_me:14689: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:14692: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:14695: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_c_inline=$ac_kw; break
14699 echo "$as_me: failed program was:" >&5
14700 cat conftest.$ac_ext >&5
14702 rm -f conftest.$ac_objext conftest.$ac_ext
14706 echo "$as_me:14706: result: $ac_cv_c_inline" >&5
14707 echo "${ECHO_T}$ac_cv_c_inline" >&6
14708 case $ac_cv_c_inline in
14711 cat >>confdefs.h <<\EOF
14715 *) cat >>confdefs.h <<EOF
14716 #define inline $ac_cv_c_inline
14722 if test "$ac_cv_c_inline" != no ; then
14723 NCURSES_INLINE=inline
14724 if test "$INTEL_COMPILER" = yes
14727 elif test "$GCC" = yes
14729 echo "$as_me:14729: checking if $CC supports options to tune inlining" >&5
14730 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14731 if test "${cf_cv_gcc_inline+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 cf_save_CFLAGS=$CFLAGS
14736 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14737 cat >conftest.$ac_ext <<_ACEOF
14738 #line 14738 "configure"
14739 #include "confdefs.h"
14740 inline int foo(void) { return 1; }
14744 ${cf_cv_main_return:-return} foo()
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:14750: \"$ac_compile\"") >&5
14751 (eval $ac_compile) 2>&5
14753 echo "$as_me:14753: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:14756: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:14759: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 cf_cv_gcc_inline=yes
14763 echo "$as_me: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14765 cf_cv_gcc_inline=no
14767 rm -f conftest.$ac_objext conftest.$ac_ext
14768 CFLAGS=$cf_save_CFLAGS
14771 echo "$as_me:14771: result: $cf_cv_gcc_inline" >&5
14772 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14773 if test "$cf_cv_gcc_inline" = yes ; then
14778 cf_new_extra_cppflags=
14780 for cf_add_cflags in --param max-inline-insns-single=1200
14782 case $cf_fix_cppflags in
14784 case $cf_add_cflags in #(vi
14785 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14786 case $cf_add_cflags in
14788 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14790 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14791 && test -z "${cf_tst_cflags}" \
14792 && cf_fix_cppflags=yes
14794 if test $cf_fix_cppflags = yes ; then
14795 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14797 elif test "${cf_tst_cflags}" = "\"'" ; then
14798 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14803 case "$CPPFLAGS" in
14804 *$cf_add_cflags) #(vi
14807 case $cf_add_cflags in #(vi
14809 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14811 CPPFLAGS=`echo "$CPPFLAGS" | \
14812 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14813 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14817 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14822 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14827 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14831 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14832 && test -z "${cf_tst_cflags}" \
14833 && cf_fix_cppflags=no
14838 if test -n "$cf_new_cflags" ; then
14840 CFLAGS="$CFLAGS $cf_new_cflags"
14843 if test -n "$cf_new_cppflags" ; then
14845 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14848 if test -n "$cf_new_extra_cppflags" ; then
14850 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14857 echo "$as_me:14857: checking for signal global datatype" >&5
14858 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
14859 if test "${cf_cv_sig_atomic_t+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 "volatile sig_atomic_t" \
14868 cat >conftest.$ac_ext <<_ACEOF
14869 #line 14869 "configure"
14870 #include "confdefs.h"
14872 #include <sys/types.h>
14873 #include <signal.h>
14878 static void handler(int sig)
14885 signal(SIGINT, handler);
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:14892: \"$ac_compile\"") >&5
14893 (eval $ac_compile) 2>&5
14895 echo "$as_me:14895: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:14898: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:14901: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 cf_cv_sig_atomic_t=$cf_type
14905 echo "$as_me: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14907 cf_cv_sig_atomic_t=no
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14910 test "$cf_cv_sig_atomic_t" != no && break
14915 echo "$as_me:14915: result: $cf_cv_sig_atomic_t" >&5
14916 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
14917 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
14918 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
14921 if test $NCURSES_CHTYPE = auto ; then
14923 echo "$as_me:14923: checking for type of chtype" >&5
14924 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14925 if test "${cf_cv_typeof_chtype+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 if test "$cross_compiling" = yes; then
14930 cf_cv_typeof_chtype=long
14932 cat >conftest.$ac_ext <<_ACEOF
14933 #line 14933 "configure"
14934 #include "confdefs.h"
14936 #define WANT_BITS 31
14940 FILE *fp = fopen("cf_test.out", "w");
14942 char *result = "long";
14943 if (sizeof(unsigned long) > sizeof(unsigned int)) {
14946 for (n = 0; n < WANT_BITS; n++) {
14949 if (y != 1 || x == 0) {
14955 * If x is nonzero, an int is big enough for the bits
14958 result = (x != 0) ? "int" : "long";
14963 ${cf_cv_main_return:-return}(0);
14967 rm -f conftest$ac_exeext
14968 if { (eval echo "$as_me:14968: \"$ac_link\"") >&5
14969 (eval $ac_link) 2>&5
14971 echo "$as_me:14971: \$? = $ac_status" >&5
14972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14973 { (eval echo "$as_me:14973: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14976 echo "$as_me:14976: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 cf_cv_typeof_chtype=`cat cf_test.out`
14980 echo "$as_me: program exited with status $ac_status" >&5
14981 echo "$as_me: failed program was:" >&5
14982 cat conftest.$ac_ext >&5
14983 cf_cv_typeof_chtype=long
14985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14991 echo "$as_me:14991: result: $cf_cv_typeof_chtype" >&5
14992 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
14994 cat >>confdefs.h <<EOF
14995 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
14999 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15001 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15003 echo "$as_me:15003: checking if unsigned literals are legal" >&5
15004 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15005 if test "${cf_cv_unsigned_literals+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 cat >conftest.$ac_ext <<_ACEOF
15010 #line 15010 "configure"
15011 #include "confdefs.h"
15016 long x = 1L + 1UL + 1U + 1
15021 rm -f conftest.$ac_objext
15022 if { (eval echo "$as_me:15022: \"$ac_compile\"") >&5
15023 (eval $ac_compile) 2>&5
15025 echo "$as_me:15025: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (eval echo "$as_me:15028: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:15031: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 cf_cv_unsigned_literals=yes
15035 echo "$as_me: failed program was:" >&5
15036 cat conftest.$ac_ext >&5
15037 cf_cv_unsigned_literals=no
15039 rm -f conftest.$ac_objext conftest.$ac_ext
15043 echo "$as_me:15043: result: $cf_cv_unsigned_literals" >&5
15044 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15047 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15048 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15050 if test $NCURSES_MMASK_T = auto ; then
15051 cf_cv_typeof_mmask_t=long
15053 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15055 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15057 ### Checks for external-data
15059 echo "$as_me:15059: checking if external errno is declared" >&5
15060 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15061 if test "${cf_cv_dcl_errno+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line 15066 "configure"
15067 #include "confdefs.h"
15069 #ifdef HAVE_STDLIB_H
15070 #include <stdlib.h>
15073 #include <sys/types.h>
15078 int x = (int) errno
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:15084: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15087 echo "$as_me:15087: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:15090: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:15093: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 cf_cv_dcl_errno=yes
15097 echo "$as_me: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15101 rm -f conftest.$ac_objext conftest.$ac_ext
15104 echo "$as_me:15104: result: $cf_cv_dcl_errno" >&5
15105 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15107 if test "$cf_cv_dcl_errno" = no ; then
15109 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15111 cat >>confdefs.h <<EOF
15112 #define $cf_result 1
15117 # It's possible (for near-UNIX clones) that the data doesn't exist
15119 echo "$as_me:15119: checking if external errno exists" >&5
15120 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15121 if test "${cf_cv_have_errno+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line 15126 "configure"
15127 #include "confdefs.h"
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (eval echo "$as_me:15141: \"$ac_link\"") >&5
15142 (eval $ac_link) 2>&5
15144 echo "$as_me:15144: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -s conftest$ac_exeext'
15147 { (eval echo "$as_me:15147: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:15150: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 cf_cv_have_errno=yes
15154 echo "$as_me: failed program was:" >&5
15155 cat conftest.$ac_ext >&5
15156 cf_cv_have_errno=no
15158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15161 echo "$as_me:15161: result: $cf_cv_have_errno" >&5
15162 echo "${ECHO_T}$cf_cv_have_errno" >&6
15164 if test "$cf_cv_have_errno" = yes ; then
15166 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15168 cat >>confdefs.h <<EOF
15169 #define $cf_result 1
15174 echo "$as_me:15174: checking if data-only library module links" >&5
15175 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15176 if test "${cf_cv_link_dataonly+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 cat >conftest.$ac_ext <<EOF
15182 #line 15182 "configure"
15183 int testdata[3] = { 123, 456, 789 };
15185 if { (eval echo "$as_me:15185: \"$ac_compile\"") >&5
15186 (eval $ac_compile) 2>&5
15188 echo "$as_me:15188: \$? = $ac_status" >&5
15189 (exit $ac_status); } ; then
15190 mv conftest.o data.o && \
15191 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15193 rm -f conftest.$ac_ext data.o
15194 cat >conftest.$ac_ext <<EOF
15195 #line 15195 "configure"
15199 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15201 extern int testdata[3];
15202 return testdata[0] == 123
15203 && testdata[1] == 456
15204 && testdata[2] == 789;
15208 if { (eval echo "$as_me:15208: \"$ac_compile\"") >&5
15209 (eval $ac_compile) 2>&5
15211 echo "$as_me:15211: \$? = $ac_status" >&5
15212 (exit $ac_status); }; then
15213 mv conftest.o func.o && \
15214 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15216 rm -f conftest.$ac_ext func.o
15217 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15218 cf_saveLIBS="$LIBS"
15219 LIBS="conftest.a $LIBS"
15220 if test "$cross_compiling" = yes; then
15221 cf_cv_link_dataonly=unknown
15223 cat >conftest.$ac_ext <<_ACEOF
15224 #line 15224 "configure"
15225 #include "confdefs.h"
15229 extern int testfunc();
15230 ${cf_cv_main_return:-return} (!testfunc());
15234 rm -f conftest$ac_exeext
15235 if { (eval echo "$as_me:15235: \"$ac_link\"") >&5
15236 (eval $ac_link) 2>&5
15238 echo "$as_me:15238: \$? = $ac_status" >&5
15239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15240 { (eval echo "$as_me:15240: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15243 echo "$as_me:15243: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 cf_cv_link_dataonly=yes
15247 echo "$as_me: program exited with status $ac_status" >&5
15248 echo "$as_me: failed program was:" >&5
15249 cat conftest.$ac_ext >&5
15250 cf_cv_link_dataonly=no
15252 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15254 LIBS="$cf_saveLIBS"
15258 echo "$as_me:15258: result: $cf_cv_link_dataonly" >&5
15259 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15261 if test "$cf_cv_link_dataonly" = no ; then
15262 cat >>confdefs.h <<\EOF
15263 #define BROKEN_LINKER 1
15269 ### Checks for library functions.
15292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15293 echo "$as_me:15293: checking for $ac_func" >&5
15294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15295 if eval "test \"\${$as_ac_var+set}\" = set"; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 cat >conftest.$ac_ext <<_ACEOF
15299 #line 15299 "configure"
15300 #include "confdefs.h"
15301 /* System header to define __stub macros and hopefully few prototypes,
15302 which can conflict with char $ac_func (); below. */
15303 #include <assert.h>
15304 /* Override any gcc2 internal prototype to avoid an error. */
15308 /* We use char because int might match the return type of a gcc2
15309 builtin and then its argument prototype would still apply. */
15316 /* The GNU C library defines this for functions which it implements
15317 to always fail with ENOSYS. Some functions are actually named
15318 something starting with __ and the normal name is an alias. */
15319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (eval echo "$as_me:15330: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>&5
15333 echo "$as_me:15333: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -s conftest$ac_exeext'
15336 { (eval echo "$as_me:15336: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:15339: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 eval "$as_ac_var=yes"
15343 echo "$as_me: failed program was:" >&5
15344 cat conftest.$ac_ext >&5
15345 eval "$as_ac_var=no"
15347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349 echo "$as_me:15349: result: `eval echo '${'$as_ac_var'}'`" >&5
15350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15351 if test `eval echo '${'$as_ac_var'}'` = yes; then
15352 cat >>confdefs.h <<EOF
15353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15359 if test "$with_getcap" = "yes" ; then
15361 echo "$as_me:15361: checking for terminal-capability database functions" >&5
15362 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15363 if test "${cf_cv_cgetent+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 cat >conftest.$ac_ext <<_ACEOF
15368 #line 15368 "configure"
15369 #include "confdefs.h"
15371 #include <stdlib.h>
15378 char *db_array = temp;
15379 cgetent(&buf, &db_array, "vt100");
15380 cgetcap(buf, "tc", '=');
15381 cgetmatch(buf, "tc");
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (eval echo "$as_me:15388: \"$ac_link\"") >&5
15389 (eval $ac_link) 2>&5
15391 echo "$as_me:15391: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -s conftest$ac_exeext'
15394 { (eval echo "$as_me:15394: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15397 echo "$as_me:15397: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15401 echo "$as_me: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408 echo "$as_me:15408: result: $cf_cv_cgetent" >&5
15409 echo "${ECHO_T}$cf_cv_cgetent" >&6
15411 if test "$cf_cv_cgetent" = yes
15413 cat >>confdefs.h <<\EOF
15414 #define HAVE_BSD_CGETENT 1
15417 echo "$as_me:15417: checking if cgetent uses const parameter" >&5
15418 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15419 if test "${cf_cv_cgetent_const+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 cat >conftest.$ac_ext <<_ACEOF
15424 #line 15424 "configure"
15425 #include "confdefs.h"
15427 #include <stdlib.h>
15434 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15435 const char *db_array = temp;
15436 cgetent(&buf, &db_array, "vt100");
15438 cgetcap(buf, "tc", '=');
15439 cgetmatch(buf, "tc");
15445 rm -f conftest.$ac_objext conftest$ac_exeext
15446 if { (eval echo "$as_me:15446: \"$ac_link\"") >&5
15447 (eval $ac_link) 2>&5
15449 echo "$as_me:15449: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try='test -s conftest$ac_exeext'
15452 { (eval echo "$as_me:15452: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:15455: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 cf_cv_cgetent_const=yes
15459 echo "$as_me: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15461 cf_cv_cgetent_const=no
15463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15466 echo "$as_me:15466: result: $cf_cv_cgetent_const" >&5
15467 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15468 if test "$cf_cv_cgetent_const" = yes
15470 cat >>confdefs.h <<EOF
15471 #define CGETENT_CONST const
15479 echo "$as_me:15479: checking for isascii" >&5
15480 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15481 if test "${cf_cv_have_isascii+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 cat >conftest.$ac_ext <<_ACEOF
15486 #line 15486 "configure"
15487 #include "confdefs.h"
15492 int x = isascii(' ')
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:15498: \"$ac_link\"") >&5
15499 (eval $ac_link) 2>&5
15501 echo "$as_me:15501: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -s conftest$ac_exeext'
15504 { (eval echo "$as_me:15504: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:15507: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 cf_cv_have_isascii=yes
15511 echo "$as_me: failed program was:" >&5
15512 cat conftest.$ac_ext >&5
15513 cf_cv_have_isascii=no
15515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15518 echo "$as_me:15518: result: $cf_cv_have_isascii" >&5
15519 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15520 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
15521 #define HAVE_ISASCII 1
15524 if test "$ac_cv_func_sigaction" = yes; then
15525 echo "$as_me:15525: checking whether sigaction needs _POSIX_SOURCE" >&5
15526 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15527 cat >conftest.$ac_ext <<_ACEOF
15528 #line 15528 "configure"
15529 #include "confdefs.h"
15531 #include <sys/types.h>
15532 #include <signal.h>
15536 struct sigaction act
15541 rm -f conftest.$ac_objext
15542 if { (eval echo "$as_me:15542: \"$ac_compile\"") >&5
15543 (eval $ac_compile) 2>&5
15545 echo "$as_me:15545: \$? = $ac_status" >&5
15546 (exit $ac_status); } &&
15547 { ac_try='test -s conftest.$ac_objext'
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
15555 echo "$as_me: failed program was:" >&5
15556 cat conftest.$ac_ext >&5
15558 cat >conftest.$ac_ext <<_ACEOF
15559 #line 15559 "configure"
15560 #include "confdefs.h"
15562 #define _POSIX_SOURCE
15563 #include <sys/types.h>
15564 #include <signal.h>
15568 struct sigaction act
15573 rm -f conftest.$ac_objext
15574 if { (eval echo "$as_me:15574: \"$ac_compile\"") >&5
15575 (eval $ac_compile) 2>&5
15577 echo "$as_me:15577: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -s conftest.$ac_objext'
15580 { (eval echo "$as_me:15580: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:15583: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15586 cat >>confdefs.h <<\EOF
15587 #define _POSIX_SOURCE 1
15591 echo "$as_me: failed program was:" >&5
15592 cat conftest.$ac_ext >&5
15595 rm -f conftest.$ac_objext conftest.$ac_ext
15597 rm -f conftest.$ac_objext conftest.$ac_ext
15598 echo "$as_me:15598: result: $sigact_bad" >&5
15599 echo "${ECHO_T}$sigact_bad" >&6
15602 echo "$as_me:15602: checking if nanosleep really works" >&5
15603 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15604 if test "${cf_cv_func_nanosleep+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 if test "$cross_compiling" = yes; then
15609 cf_cv_func_nanosleep=unknown
15611 cat >conftest.$ac_ext <<_ACEOF
15612 #line 15612 "configure"
15613 #include "confdefs.h"
15619 #ifdef HAVE_SYS_TIME_H
15620 #include <sys/time.h>
15624 struct timespec ts1, ts2;
15627 ts1.tv_nsec = 750000000;
15631 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15632 ${cf_cv_main_return:-return}(code != 0);
15636 rm -f conftest$ac_exeext
15637 if { (eval echo "$as_me:15637: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>&5
15640 echo "$as_me:15640: \$? = $ac_status" >&5
15641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15642 { (eval echo "$as_me:15642: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:15645: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 cf_cv_func_nanosleep=yes
15649 echo "$as_me: program exited with status $ac_status" >&5
15650 echo "$as_me: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 cf_cv_func_nanosleep=no
15654 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15657 echo "$as_me:15657: result: $cf_cv_func_nanosleep" >&5
15658 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15660 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
15661 #define HAVE_NANOSLEEP 1
15670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671 echo "$as_me:15671: checking for $ac_header" >&5
15672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 cat >conftest.$ac_ext <<_ACEOF
15677 #line 15677 "configure"
15678 #include "confdefs.h"
15679 #include <$ac_header>
15681 if { (eval echo "$as_me:15681: \"$ac_cpp conftest.$ac_ext\"") >&5
15682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15684 egrep -v '^ *\+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:15687: \$? = $ac_status" >&5
15688 (exit $ac_status); } >/dev/null; then
15689 if test -s conftest.err; then
15690 ac_cpp_err=$ac_c_preproc_warn_flag
15697 if test -z "$ac_cpp_err"; then
15698 eval "$as_ac_Header=yes"
15700 echo "$as_me: failed program was:" >&5
15701 cat conftest.$ac_ext >&5
15702 eval "$as_ac_Header=no"
15704 rm -f conftest.err conftest.$ac_ext
15706 echo "$as_me:15706: result: `eval echo '${'$as_ac_Header'}'`" >&5
15707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15709 cat >>confdefs.h <<EOF
15710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15716 if test "$ISC" = yes ; then
15718 for ac_header in sys/termio.h
15720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15721 echo "$as_me:15721: checking for $ac_header" >&5
15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 cat >conftest.$ac_ext <<_ACEOF
15727 #line 15727 "configure"
15728 #include "confdefs.h"
15729 #include <$ac_header>
15731 if { (eval echo "$as_me:15731: \"$ac_cpp conftest.$ac_ext\"") >&5
15732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15734 egrep -v '^ *\+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:15737: \$? = $ac_status" >&5
15738 (exit $ac_status); } >/dev/null; then
15739 if test -s conftest.err; then
15740 ac_cpp_err=$ac_c_preproc_warn_flag
15747 if test -z "$ac_cpp_err"; then
15748 eval "$as_ac_Header=yes"
15750 echo "$as_me: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 eval "$as_ac_Header=no"
15754 rm -f conftest.err conftest.$ac_ext
15756 echo "$as_me:15756: result: `eval echo '${'$as_ac_Header'}'`" >&5
15757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15759 cat >>confdefs.h <<EOF
15760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15767 if test "$ac_cv_header_termios_h" = yes ; then
15768 case "$CFLAGS $CPPFLAGS" in
15770 termios_bad=dunno ;;
15771 *) termios_bad=maybe ;;
15773 if test "$termios_bad" = maybe ; then
15774 echo "$as_me:15774: checking whether termios.h needs _POSIX_SOURCE" >&5
15775 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
15776 cat >conftest.$ac_ext <<_ACEOF
15777 #line 15777 "configure"
15778 #include "confdefs.h"
15779 #include <termios.h>
15783 struct termios foo; int x = foo.c_iflag
15788 rm -f conftest.$ac_objext
15789 if { (eval echo "$as_me:15789: \"$ac_compile\"") >&5
15790 (eval $ac_compile) 2>&5
15792 echo "$as_me:15792: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -s conftest.$ac_objext'
15795 { (eval echo "$as_me:15795: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:15798: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15802 echo "$as_me: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15805 cat >conftest.$ac_ext <<_ACEOF
15806 #line 15806 "configure"
15807 #include "confdefs.h"
15809 #define _POSIX_SOURCE
15810 #include <termios.h>
15814 struct termios foo; int x = foo.c_iflag
15819 rm -f conftest.$ac_objext
15820 if { (eval echo "$as_me:15820: \"$ac_compile\"") >&5
15821 (eval $ac_compile) 2>&5
15823 echo "$as_me:15823: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (eval echo "$as_me:15826: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15829 echo "$as_me:15829: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 termios_bad=unknown
15833 echo "$as_me: failed program was:" >&5
15834 cat conftest.$ac_ext >&5
15835 termios_bad=yes cat >>confdefs.h <<\EOF
15836 #define _POSIX_SOURCE 1
15840 rm -f conftest.$ac_objext conftest.$ac_ext
15843 rm -f conftest.$ac_objext conftest.$ac_ext
15844 echo "$as_me:15844: result: $termios_bad" >&5
15845 echo "${ECHO_T}$termios_bad" >&6
15849 echo "$as_me:15849: checking for tcgetattr" >&5
15850 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
15851 if test "${cf_cv_have_tcgetattr+set}" = set; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15856 #line 15856 "configure"
15857 #include "confdefs.h"
15859 #include <sys/types.h>
15860 #ifdef HAVE_UNISTD_H
15861 #include <unistd.h>
15863 #ifdef HAVE_TERMIOS_H
15864 #include <termios.h>
15865 #define TTY struct termios
15867 #ifdef HAVE_TERMIO_H
15868 #include <termio.h>
15869 #define TTY struct termio
15878 tcgetattr(1, &foo);
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (eval echo "$as_me:15884: \"$ac_link\"") >&5
15885 (eval $ac_link) 2>&5
15887 echo "$as_me:15887: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -s conftest$ac_exeext'
15890 { (eval echo "$as_me:15890: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:15893: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 cf_cv_have_tcgetattr=yes
15897 echo "$as_me: failed program was:" >&5
15898 cat conftest.$ac_ext >&5
15899 cf_cv_have_tcgetattr=no
15901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15903 echo "$as_me:15903: result: $cf_cv_have_tcgetattr" >&5
15904 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
15905 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
15906 #define HAVE_TCGETATTR 1
15909 echo "$as_me:15909: checking for vsscanf function or workaround" >&5
15910 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
15911 if test "${cf_cv_func_vsscanf+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 cat >conftest.$ac_ext <<_ACEOF
15916 #line 15916 "configure"
15917 #include "confdefs.h"
15919 #include <stdarg.h>
15926 vsscanf("from", "%d", ap)
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (eval echo "$as_me:15932: \"$ac_link\"") >&5
15933 (eval $ac_link) 2>&5
15935 echo "$as_me:15935: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
15937 { ac_try='test -s conftest$ac_exeext'
15938 { (eval echo "$as_me:15938: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15941 echo "$as_me:15941: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 cf_cv_func_vsscanf=vsscanf
15945 echo "$as_me: failed program was:" >&5
15946 cat conftest.$ac_ext >&5
15948 cat >conftest.$ac_ext <<_ACEOF
15949 #line 15949 "configure"
15950 #include "confdefs.h"
15952 #include <stdarg.h>
15959 char *str = "from";
15961 strbuf._flag = _IOREAD;
15962 strbuf._ptr = strbuf._base = (unsigned char *) str;
15963 strbuf._cnt = strlen(str);
15964 strbuf._file = _NFILE;
15965 return (vfscanf(&strbuf, "%d", ap))
15970 rm -f conftest.$ac_objext conftest$ac_exeext
15971 if { (eval echo "$as_me:15971: \"$ac_link\"") >&5
15972 (eval $ac_link) 2>&5
15974 echo "$as_me:15974: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try='test -s conftest$ac_exeext'
15977 { (eval echo "$as_me:15977: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15980 echo "$as_me:15980: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 cf_cv_func_vsscanf=vfscanf
15984 echo "$as_me: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15987 cat >conftest.$ac_ext <<_ACEOF
15988 #line 15988 "configure"
15989 #include "confdefs.h"
15991 #include <stdarg.h>
15998 char *str = "from";
16000 strbuf._flag = _IOREAD;
16001 strbuf._ptr = strbuf._base = (unsigned char *) str;
16002 strbuf._cnt = strlen(str);
16003 strbuf._file = _NFILE;
16004 return (_doscan(&strbuf, "%d", ap))
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (eval echo "$as_me:16010: \"$ac_link\"") >&5
16011 (eval $ac_link) 2>&5
16013 echo "$as_me:16013: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -s conftest$ac_exeext'
16016 { (eval echo "$as_me:16016: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:16019: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 cf_cv_func_vsscanf=_doscan
16023 echo "$as_me: failed program was:" >&5
16024 cat conftest.$ac_ext >&5
16026 cf_cv_func_vsscanf=no
16028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16034 echo "$as_me:16034: result: $cf_cv_func_vsscanf" >&5
16035 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16037 case $cf_cv_func_vsscanf in #(vi
16038 vsscanf) cat >>confdefs.h <<\EOF
16039 #define HAVE_VSSCANF 1
16042 vfscanf) cat >>confdefs.h <<\EOF
16043 #define HAVE_VFSCANF 1
16046 _doscan) cat >>confdefs.h <<\EOF
16047 #define HAVE__DOSCAN 1
16052 echo "$as_me:16052: checking for working mkstemp" >&5
16053 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16054 if test "${cf_cv_func_mkstemp+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 if test "$cross_compiling" = yes; then
16060 cf_cv_func_mkstemp=maybe
16062 cat >conftest.$ac_ext <<_ACEOF
16063 #line 16063 "configure"
16064 #include "confdefs.h"
16066 #include <sys/types.h>
16067 #include <stdlib.h>
16069 #include <string.h>
16070 #include <sys/stat.h>
16073 char *tmpl = "conftestXXXXXX";
16081 for (n = 0; n < 2; ++n) {
16082 strcpy(name[n], tmpl);
16083 if ((fd = mkstemp(name[n])) >= 0) {
16084 if (!strcmp(name[n], tmpl)
16085 || stat(name[n], &sb) != 0
16086 || (sb.st_mode & S_IFMT) != S_IFREG
16087 || (sb.st_mode & 077) != 0) {
16094 && !strcmp(name[0], name[1]))
16096 ${cf_cv_main_return:-return}(result);
16100 rm -f conftest$ac_exeext
16101 if { (eval echo "$as_me:16101: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>&5
16104 echo "$as_me:16104: \$? = $ac_status" >&5
16105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16106 { (eval echo "$as_me:16106: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:16109: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 cf_cv_func_mkstemp=yes
16114 echo "$as_me: program exited with status $ac_status" >&5
16115 echo "$as_me: failed program was:" >&5
16116 cat conftest.$ac_ext >&5
16117 cf_cv_func_mkstemp=no
16120 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16124 echo "$as_me:16124: result: $cf_cv_func_mkstemp" >&5
16125 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16126 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16127 echo "$as_me:16127: checking for mkstemp" >&5
16128 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16129 if test "${ac_cv_func_mkstemp+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 cat >conftest.$ac_ext <<_ACEOF
16133 #line 16133 "configure"
16134 #include "confdefs.h"
16135 /* System header to define __stub macros and hopefully few prototypes,
16136 which can conflict with char mkstemp (); below. */
16137 #include <assert.h>
16138 /* Override any gcc2 internal prototype to avoid an error. */
16142 /* We use char because int might match the return type of a gcc2
16143 builtin and then its argument prototype would still apply. */
16150 /* The GNU C library defines this for functions which it implements
16151 to always fail with ENOSYS. Some functions are actually named
16152 something starting with __ and the normal name is an alias. */
16153 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16156 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16163 rm -f conftest.$ac_objext conftest$ac_exeext
16164 if { (eval echo "$as_me:16164: \"$ac_link\"") >&5
16165 (eval $ac_link) 2>&5
16167 echo "$as_me:16167: \$? = $ac_status" >&5
16168 (exit $ac_status); } &&
16169 { ac_try='test -s conftest$ac_exeext'
16170 { (eval echo "$as_me:16170: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:16173: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_func_mkstemp=yes
16177 echo "$as_me: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16179 ac_cv_func_mkstemp=no
16181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16183 echo "$as_me:16183: result: $ac_cv_func_mkstemp" >&5
16184 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16187 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16188 cat >>confdefs.h <<\EOF
16189 #define HAVE_MKSTEMP 1
16194 # setup for prototype of fallback for vsscanf()
16196 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16202 if test "$cross_compiling" = yes ; then
16203 { echo "$as_me:16203: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16204 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16206 echo "$as_me:16206: checking whether setvbuf arguments are reversed" >&5
16207 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16208 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 if test "$cross_compiling" = yes; then
16212 { { echo "$as_me:16212: error: cannot run test program while cross compiling" >&5
16213 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16214 { (exit 1); exit 1; }; }
16216 cat >conftest.$ac_ext <<_ACEOF
16217 #line 16217 "configure"
16218 #include "confdefs.h"
16220 /* If setvbuf has the reversed format, exit 0. */
16224 /* This call has the arguments reversed.
16225 A reversed system may check and see that the address of main
16226 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16227 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16228 $ac_main_return(1);
16229 putc('\r', stdout);
16230 $ac_main_return(0); /* Non-reversed systems segv here. */
16233 rm -f conftest$ac_exeext
16234 if { (eval echo "$as_me:16234: \"$ac_link\"") >&5
16235 (eval $ac_link) 2>&5
16237 echo "$as_me:16237: \$? = $ac_status" >&5
16238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16239 { (eval echo "$as_me:16239: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16242 echo "$as_me:16242: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_cv_func_setvbuf_reversed=yes
16246 echo "$as_me: program exited with status $ac_status" >&5
16247 echo "$as_me: failed program was:" >&5
16248 cat conftest.$ac_ext >&5
16249 ac_cv_func_setvbuf_reversed=no
16251 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16253 rm -f core core.* *.core
16255 echo "$as_me:16255: result: $ac_cv_func_setvbuf_reversed" >&5
16256 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16257 if test $ac_cv_func_setvbuf_reversed = yes; then
16259 cat >>confdefs.h <<\EOF
16260 #define SETVBUF_REVERSED 1
16266 echo "$as_me:16266: checking return type of signal handlers" >&5
16267 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16268 if test "${ac_cv_type_signal+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 cat >conftest.$ac_ext <<_ACEOF
16272 #line 16272 "configure"
16273 #include "confdefs.h"
16274 #include <sys/types.h>
16275 #include <signal.h>
16280 extern "C" void (*signal (int, void (*)(int)))(int);
16282 void (*signal ()) ();
16293 rm -f conftest.$ac_objext
16294 if { (eval echo "$as_me:16294: \"$ac_compile\"") >&5
16295 (eval $ac_compile) 2>&5
16297 echo "$as_me:16297: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -s conftest.$ac_objext'
16300 { (eval echo "$as_me:16300: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:16303: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_cv_type_signal=void
16307 echo "$as_me: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16309 ac_cv_type_signal=int
16311 rm -f conftest.$ac_objext conftest.$ac_ext
16313 echo "$as_me:16313: result: $ac_cv_type_signal" >&5
16314 echo "${ECHO_T}$ac_cv_type_signal" >&6
16316 cat >>confdefs.h <<EOF
16317 #define RETSIGTYPE $ac_cv_type_signal
16320 echo "$as_me:16320: checking for intptr_t" >&5
16321 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16322 if test "${ac_cv_type_intptr_t+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 cat >conftest.$ac_ext <<_ACEOF
16326 #line 16326 "configure"
16327 #include "confdefs.h"
16328 $ac_includes_default
16332 if ((intptr_t *) 0)
16334 if (sizeof (intptr_t))
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:16341: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>&5
16344 echo "$as_me:16344: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (eval echo "$as_me:16347: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:16350: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_cv_type_intptr_t=yes
16354 echo "$as_me: failed program was:" >&5
16355 cat conftest.$ac_ext >&5
16356 ac_cv_type_intptr_t=no
16358 rm -f conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:16360: result: $ac_cv_type_intptr_t" >&5
16361 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16362 if test $ac_cv_type_intptr_t = yes; then
16366 cat >>confdefs.h <<EOF
16367 #define intptr_t long
16372 echo "$as_me:16372: checking for type sigaction_t" >&5
16373 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16374 if test "${cf_cv_type_sigaction+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 cat >conftest.$ac_ext <<_ACEOF
16379 #line 16379 "configure"
16380 #include "confdefs.h"
16382 #include <signal.h>
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:16392: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>&5
16395 echo "$as_me:16395: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:16398: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:16401: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 cf_cv_type_sigaction=yes
16405 echo "$as_me: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 cf_cv_type_sigaction=no
16409 rm -f conftest.$ac_objext conftest.$ac_ext
16412 echo "$as_me:16412: result: $cf_cv_type_sigaction" >&5
16413 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16414 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
16415 #define HAVE_TYPE_SIGACTION 1
16418 echo "$as_me:16418: checking declaration of size-change" >&5
16419 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16420 if test "${cf_cv_sizechange+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 cf_cv_sizechange=unknown
16425 cf_save_CPPFLAGS="$CPPFLAGS"
16427 for cf_opts in "" "NEED_PTEM_H"
16430 CPPFLAGS="$cf_save_CPPFLAGS"
16431 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16432 cat >conftest.$ac_ext <<_ACEOF
16433 #line 16433 "configure"
16434 #include "confdefs.h"
16435 #include <sys/types.h>
16436 #ifdef HAVE_TERMIOS_H
16437 #include <termios.h>
16439 #ifdef HAVE_TERMIO_H
16440 #include <termio.h>
16444 /* This is a workaround for SCO: they neglected to define struct winsize in
16445 * termios.h -- it's only in termio.h and ptem.h
16447 #include <sys/stream.h>
16448 #include <sys/ptem.h>
16450 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16451 #include <sys/ioctl.h>
16459 struct ttysize win; /* FIXME: what system is this? */
16460 int y = win.ts_lines;
16461 int x = win.ts_cols;
16464 struct winsize win;
16465 int y = win.ws_row;
16466 int x = win.ws_col;
16468 no TIOCGSIZE or TIOCGWINSZ
16469 #endif /* TIOCGWINSZ */
16470 #endif /* TIOCGSIZE */
16476 rm -f conftest.$ac_objext
16477 if { (eval echo "$as_me:16477: \"$ac_compile\"") >&5
16478 (eval $ac_compile) 2>&5
16480 echo "$as_me:16480: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -s conftest.$ac_objext'
16483 { (eval echo "$as_me:16483: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:16486: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 cf_cv_sizechange=yes
16490 echo "$as_me: failed program was:" >&5
16491 cat conftest.$ac_ext >&5
16492 cf_cv_sizechange=no
16494 rm -f conftest.$ac_objext conftest.$ac_ext
16496 CPPFLAGS="$cf_save_CPPFLAGS"
16497 if test "$cf_cv_sizechange" = yes ; then
16498 echo "size-change succeeded ($cf_opts)" >&5
16499 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16505 echo "$as_me:16505: result: $cf_cv_sizechange" >&5
16506 echo "${ECHO_T}$cf_cv_sizechange" >&6
16507 if test "$cf_cv_sizechange" != no ; then
16508 cat >>confdefs.h <<\EOF
16509 #define HAVE_SIZECHANGE 1
16512 case $cf_cv_sizechange in #(vi
16514 cat >>confdefs.h <<EOF
16515 #define $cf_cv_sizechange 1
16522 echo "$as_me:16522: checking for memmove" >&5
16523 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16524 if test "${ac_cv_func_memmove+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 cat >conftest.$ac_ext <<_ACEOF
16528 #line 16528 "configure"
16529 #include "confdefs.h"
16530 /* System header to define __stub macros and hopefully few prototypes,
16531 which can conflict with char memmove (); below. */
16532 #include <assert.h>
16533 /* Override any gcc2 internal prototype to avoid an error. */
16537 /* We use char because int might match the return type of a gcc2
16538 builtin and then its argument prototype would still apply. */
16545 /* The GNU C library defines this for functions which it implements
16546 to always fail with ENOSYS. Some functions are actually named
16547 something starting with __ and the normal name is an alias. */
16548 #if defined (__stub_memmove) || defined (__stub___memmove)
16551 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (eval echo "$as_me:16559: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>&5
16562 echo "$as_me:16562: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -s conftest$ac_exeext'
16565 { (eval echo "$as_me:16565: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:16568: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_func_memmove=yes
16572 echo "$as_me: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 ac_cv_func_memmove=no
16576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16578 echo "$as_me:16578: result: $ac_cv_func_memmove" >&5
16579 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16580 if test $ac_cv_func_memmove = yes; then
16584 echo "$as_me:16584: checking for bcopy" >&5
16585 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16586 if test "${ac_cv_func_bcopy+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16590 #line 16590 "configure"
16591 #include "confdefs.h"
16592 /* System header to define __stub macros and hopefully few prototypes,
16593 which can conflict with char bcopy (); below. */
16594 #include <assert.h>
16595 /* Override any gcc2 internal prototype to avoid an error. */
16599 /* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16607 /* The GNU C library defines this for functions which it implements
16608 to always fail with ENOSYS. Some functions are actually named
16609 something starting with __ and the normal name is an alias. */
16610 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16613 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (eval echo "$as_me:16621: \"$ac_link\"") >&5
16622 (eval $ac_link) 2>&5
16624 echo "$as_me:16624: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -s conftest$ac_exeext'
16627 { (eval echo "$as_me:16627: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 echo "$as_me:16630: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 ac_cv_func_bcopy=yes
16634 echo "$as_me: failed program was:" >&5
16635 cat conftest.$ac_ext >&5
16636 ac_cv_func_bcopy=no
16638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16640 echo "$as_me:16640: result: $ac_cv_func_bcopy" >&5
16641 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16642 if test $ac_cv_func_bcopy = yes; then
16644 echo "$as_me:16644: checking if bcopy does overlapping moves" >&5
16645 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16646 if test "${cf_cv_good_bcopy+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 if test "$cross_compiling" = yes; then
16651 cf_cv_good_bcopy=unknown
16653 cat >conftest.$ac_ext <<_ACEOF
16654 #line 16654 "configure"
16655 #include "confdefs.h"
16658 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16660 bcopy(data, temp, sizeof(data));
16661 bcopy(temp+10, temp, 15);
16662 bcopy(temp+5, temp+15, 10);
16663 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16667 rm -f conftest$ac_exeext
16668 if { (eval echo "$as_me:16668: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>&5
16671 echo "$as_me:16671: \$? = $ac_status" >&5
16672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16673 { (eval echo "$as_me:16673: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:16676: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 cf_cv_good_bcopy=yes
16680 echo "$as_me: program exited with status $ac_status" >&5
16681 echo "$as_me: failed program was:" >&5
16682 cat conftest.$ac_ext >&5
16683 cf_cv_good_bcopy=no
16685 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16689 echo "$as_me:16689: result: $cf_cv_good_bcopy" >&5
16690 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16693 cf_cv_good_bcopy=no
16696 if test "$cf_cv_good_bcopy" = yes ; then
16697 cat >>confdefs.h <<\EOF
16698 #define USE_OK_BCOPY 1
16702 cat >>confdefs.h <<\EOF
16703 #define USE_MY_MEMMOVE 1
16710 echo "$as_me:16710: checking if poll really works" >&5
16711 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16712 if test "${cf_cv_working_poll+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 if test "$cross_compiling" = yes; then
16717 cf_cv_working_poll=unknown
16719 cat >conftest.$ac_ext <<_ACEOF
16720 #line 16720 "configure"
16721 #include "confdefs.h"
16727 #include <sys/poll.h>
16730 struct pollfd myfds;
16733 /* check for Darwin bug with respect to "devices" */
16734 myfds.fd = open("/dev/null", 1);
16737 myfds.events = POLLIN;
16740 ret = poll(&myfds, 1, 100);
16742 if (ret < 0 || (myfds.revents & POLLNVAL)) {
16746 /* also check with standard input */
16748 myfds.events = POLLIN;
16751 ret = poll(&myfds, 1, 100);
16756 ${cf_cv_main_return:-return}(ret != 0);
16759 rm -f conftest$ac_exeext
16760 if { (eval echo "$as_me:16760: \"$ac_link\"") >&5
16761 (eval $ac_link) 2>&5
16763 echo "$as_me:16763: \$? = $ac_status" >&5
16764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16765 { (eval echo "$as_me:16765: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:16768: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 cf_cv_working_poll=yes
16772 echo "$as_me: program exited with status $ac_status" >&5
16773 echo "$as_me: failed program was:" >&5
16774 cat conftest.$ac_ext >&5
16775 cf_cv_working_poll=no
16777 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16780 echo "$as_me:16780: result: $cf_cv_working_poll" >&5
16781 echo "${ECHO_T}$cf_cv_working_poll" >&6
16782 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
16783 #define HAVE_WORKING_POLL 1
16786 echo "$as_me:16786: checking for va_copy" >&5
16787 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
16788 if test "${cf_cv_have_va_copy+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 cat >conftest.$ac_ext <<_ACEOF
16793 #line 16793 "configure"
16794 #include "confdefs.h"
16796 #include <stdarg.h>
16802 static va_list dst;
16803 static va_list src;
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (eval echo "$as_me:16810: \"$ac_link\"") >&5
16811 (eval $ac_link) 2>&5
16813 echo "$as_me:16813: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -s conftest$ac_exeext'
16816 { (eval echo "$as_me:16816: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 echo "$as_me:16819: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 cf_cv_have_va_copy=yes
16823 echo "$as_me: failed program was:" >&5
16824 cat conftest.$ac_ext >&5
16825 cf_cv_have_va_copy=no
16827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16829 echo "$as_me:16829: result: $cf_cv_have_va_copy" >&5
16830 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
16832 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
16833 #define HAVE_VA_COPY 1
16836 echo "$as_me:16836: checking for __va_copy" >&5
16837 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16838 if test "${cf_cv_have___va_copy+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 cat >conftest.$ac_ext <<_ACEOF
16843 #line 16843 "configure"
16844 #include "confdefs.h"
16846 #include <stdarg.h>
16852 static va_list dst;
16853 static va_list src;
16854 __va_copy(dst, src)
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:16860: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>&5
16863 echo "$as_me:16863: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:16866: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:16869: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 cf_cv_have___va_copy=yes
16873 echo "$as_me: failed program was:" >&5
16874 cat conftest.$ac_ext >&5
16875 cf_cv_have___va_copy=no
16877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879 echo "$as_me:16879: result: $cf_cv_have___va_copy" >&5
16880 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
16882 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
16883 #define HAVE___VA_COPY 1
16886 echo "$as_me:16886: checking for pid_t" >&5
16887 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16888 if test "${ac_cv_type_pid_t+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16892 #line 16892 "configure"
16893 #include "confdefs.h"
16894 $ac_includes_default
16900 if (sizeof (pid_t))
16906 rm -f conftest.$ac_objext
16907 if { (eval echo "$as_me:16907: \"$ac_compile\"") >&5
16908 (eval $ac_compile) 2>&5
16910 echo "$as_me:16910: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (eval echo "$as_me:16913: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16916 echo "$as_me:16916: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_cv_type_pid_t=yes
16920 echo "$as_me: failed program was:" >&5
16921 cat conftest.$ac_ext >&5
16922 ac_cv_type_pid_t=no
16924 rm -f conftest.$ac_objext conftest.$ac_ext
16926 echo "$as_me:16926: result: $ac_cv_type_pid_t" >&5
16927 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16928 if test $ac_cv_type_pid_t = yes; then
16932 cat >>confdefs.h <<EOF
16938 for ac_header in unistd.h vfork.h
16940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16941 echo "$as_me:16941: checking for $ac_header" >&5
16942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 cat >conftest.$ac_ext <<_ACEOF
16947 #line 16947 "configure"
16948 #include "confdefs.h"
16949 #include <$ac_header>
16951 if { (eval echo "$as_me:16951: \"$ac_cpp conftest.$ac_ext\"") >&5
16952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16954 egrep -v '^ *\+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:16957: \$? = $ac_status" >&5
16958 (exit $ac_status); } >/dev/null; then
16959 if test -s conftest.err; then
16960 ac_cpp_err=$ac_c_preproc_warn_flag
16967 if test -z "$ac_cpp_err"; then
16968 eval "$as_ac_Header=yes"
16970 echo "$as_me: failed program was:" >&5
16971 cat conftest.$ac_ext >&5
16972 eval "$as_ac_Header=no"
16974 rm -f conftest.err conftest.$ac_ext
16976 echo "$as_me:16976: result: `eval echo '${'$as_ac_Header'}'`" >&5
16977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16979 cat >>confdefs.h <<EOF
16980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16986 for ac_func in fork vfork
16988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16989 echo "$as_me:16989: checking for $ac_func" >&5
16990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16991 if eval "test \"\${$as_ac_var+set}\" = set"; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cat >conftest.$ac_ext <<_ACEOF
16995 #line 16995 "configure"
16996 #include "confdefs.h"
16997 /* System header to define __stub macros and hopefully few prototypes,
16998 which can conflict with char $ac_func (); below. */
16999 #include <assert.h>
17000 /* Override any gcc2 internal prototype to avoid an error. */
17004 /* We use char because int might match the return type of a gcc2
17005 builtin and then its argument prototype would still apply. */
17012 /* The GNU C library defines this for functions which it implements
17013 to always fail with ENOSYS. Some functions are actually named
17014 something starting with __ and the normal name is an alias. */
17015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17018 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (eval echo "$as_me:17026: \"$ac_link\"") >&5
17027 (eval $ac_link) 2>&5
17029 echo "$as_me:17029: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try='test -s conftest$ac_exeext'
17032 { (eval echo "$as_me:17032: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:17035: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 eval "$as_ac_var=yes"
17039 echo "$as_me: failed program was:" >&5
17040 cat conftest.$ac_ext >&5
17041 eval "$as_ac_var=no"
17043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17045 echo "$as_me:17045: result: `eval echo '${'$as_ac_var'}'`" >&5
17046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17047 if test `eval echo '${'$as_ac_var'}'` = yes; then
17048 cat >>confdefs.h <<EOF
17049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17055 ac_cv_func_fork_works=$ac_cv_func_fork
17056 if test "x$ac_cv_func_fork" = xyes; then
17057 echo "$as_me:17057: checking for working fork" >&5
17058 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17059 if test "${ac_cv_func_fork_works+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 if test "$cross_compiling" = yes; then
17063 ac_cv_func_fork_works=cross
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* By Rüdiger Kuhlmann. */
17067 #include <sys/types.h>
17069 # include <unistd.h>
17071 /* Some systems only have a dummy stub for fork() */
17075 $ac_main_return (1);
17076 $ac_main_return (0);
17079 rm -f conftest$ac_exeext
17080 if { (eval echo "$as_me:17080: \"$ac_link\"") >&5
17081 (eval $ac_link) 2>&5
17083 echo "$as_me:17083: \$? = $ac_status" >&5
17084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17085 { (eval echo "$as_me:17085: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17088 echo "$as_me:17088: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_func_fork_works=yes
17092 echo "$as_me: program exited with status $ac_status" >&5
17093 echo "$as_me: failed program was:" >&5
17094 cat conftest.$ac_ext >&5
17095 ac_cv_func_fork_works=no
17097 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17100 echo "$as_me:17100: result: $ac_cv_func_fork_works" >&5
17101 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17104 if test "x$ac_cv_func_fork_works" = xcross; then
17106 *-*-amigaos* | *-*-msdosdjgpp*)
17107 # Override, as these systems have only a dummy fork() stub
17108 ac_cv_func_fork_works=no
17111 ac_cv_func_fork_works=yes
17114 { echo "$as_me:17114: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17115 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17117 ac_cv_func_vfork_works=$ac_cv_func_vfork
17118 if test "x$ac_cv_func_vfork" = xyes; then
17119 echo "$as_me:17119: checking for working vfork" >&5
17120 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17121 if test "${ac_cv_func_vfork_works+set}" = set; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 if test "$cross_compiling" = yes; then
17125 ac_cv_func_vfork_works=cross
17127 cat >conftest.$ac_ext <<_ACEOF
17128 #line 17128 "configure"
17129 #include "confdefs.h"
17130 /* Thanks to Paul Eggert for this test. */
17132 #include <sys/types.h>
17133 #include <sys/stat.h>
17135 # include <unistd.h>
17138 # include <vfork.h>
17140 /* On some sparc systems, changes by the child to local and incoming
17141 argument registers are propagated back to the parent. The compiler
17142 is told about this with #include <vfork.h>, but some compilers
17143 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17144 static variable whose address is put into a register that is
17145 clobbered by the vfork. */
17148 sparc_address_test (int arg)
17150 sparc_address_test (arg) int arg;
17153 static pid_t child;
17171 pid_t parent = getpid ();
17174 sparc_address_test ();
17179 /* Here is another test for sparc vfork register problems. This
17180 test uses lots of local variables, at least as many local
17181 variables as main has allocated so far including compiler
17182 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17183 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17184 reuse the register of parent for one of the local variables,
17185 since it will think that parent can't possibly be used any more
17186 in this routine. Assigning to the local variable will thus
17187 munge parent in the parent process. */
17189 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17190 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17191 /* Convince the compiler that p..p7 are live; otherwise, it might
17192 use the same hardware register for all 8 local variables. */
17193 if (p != p1 || p != p2 || p != p3 || p != p4
17194 || p != p5 || p != p6 || p != p7)
17197 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17198 from child file descriptors. If the child closes a descriptor
17199 before it execs or exits, this munges the parent's descriptor
17200 as well. Test for this by closing stdout in the child. */
17201 _exit(close(fileno(stdout)) != 0);
17206 while (wait(&status) != child)
17209 /* Was there some problem with vforking? */
17212 /* Did the child fail? (This shouldn't happen.) */
17215 /* Did the vfork/compiler bug occur? */
17216 || parent != getpid()
17218 /* Did the file descriptor bug occur? */
17219 || fstat(fileno(stdout), &st) != 0
17224 rm -f conftest$ac_exeext
17225 if { (eval echo "$as_me:17225: \"$ac_link\"") >&5
17226 (eval $ac_link) 2>&5
17228 echo "$as_me:17228: \$? = $ac_status" >&5
17229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17230 { (eval echo "$as_me:17230: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:17233: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_func_vfork_works=yes
17237 echo "$as_me: program exited with status $ac_status" >&5
17238 echo "$as_me: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17240 ac_cv_func_vfork_works=no
17242 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17245 echo "$as_me:17245: result: $ac_cv_func_vfork_works" >&5
17246 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17249 if test "x$ac_cv_func_fork_works" = xcross; then
17250 ac_cv_func_vfork_works=ac_cv_func_vfork
17251 { echo "$as_me:17251: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17252 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17255 if test "x$ac_cv_func_vfork_works" = xyes; then
17257 cat >>confdefs.h <<\EOF
17258 #define HAVE_WORKING_VFORK 1
17263 cat >>confdefs.h <<\EOF
17268 if test "x$ac_cv_func_fork_works" = xyes; then
17270 cat >>confdefs.h <<\EOF
17271 #define HAVE_WORKING_FORK 1
17276 # special check for test/ditto.c
17278 echo "$as_me:17278: checking for openpty in -lutil" >&5
17279 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17280 if test "${ac_cv_lib_util_openpty+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 ac_check_lib_save_LIBS=$LIBS
17284 LIBS="-lutil $LIBS"
17285 cat >conftest.$ac_ext <<_ACEOF
17286 #line 17286 "configure"
17287 #include "confdefs.h"
17289 /* Override any gcc2 internal prototype to avoid an error. */
17293 /* We use char because int might match the return type of a gcc2
17294 builtin and then its argument prototype would still apply. */
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (eval echo "$as_me:17305: \"$ac_link\"") >&5
17306 (eval $ac_link) 2>&5
17308 echo "$as_me:17308: \$? = $ac_status" >&5
17309 (exit $ac_status); } &&
17310 { ac_try='test -s conftest$ac_exeext'
17311 { (eval echo "$as_me:17311: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:17314: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 ac_cv_lib_util_openpty=yes
17318 echo "$as_me: failed program was:" >&5
17319 cat conftest.$ac_ext >&5
17320 ac_cv_lib_util_openpty=no
17322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17323 LIBS=$ac_check_lib_save_LIBS
17325 echo "$as_me:17325: result: $ac_cv_lib_util_openpty" >&5
17326 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17327 if test $ac_cv_lib_util_openpty = yes; then
17333 echo "$as_me:17333: checking for openpty header" >&5
17334 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17335 if test "${cf_cv_func_openpty+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 cf_save_LIBS="$LIBS"
17340 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17341 for cf_header in pty.h libutil.h util.h
17343 cat >conftest.$ac_ext <<_ACEOF
17344 #line 17344 "configure"
17345 #include "confdefs.h"
17347 #include <$cf_header>
17353 int x = openpty((int *)0, (int *)0, (char *)0,
17354 (struct termios *)0, (struct winsize *)0);
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (eval echo "$as_me:17361: \"$ac_link\"") >&5
17362 (eval $ac_link) 2>&5
17364 echo "$as_me:17364: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -s conftest$ac_exeext'
17367 { (eval echo "$as_me:17367: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17370 echo "$as_me:17370: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17373 cf_cv_func_openpty=$cf_header
17377 echo "$as_me: failed program was:" >&5
17378 cat conftest.$ac_ext >&5
17380 cf_cv_func_openpty=no
17383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17385 LIBS="$cf_save_LIBS"
17388 echo "$as_me:17388: result: $cf_cv_func_openpty" >&5
17389 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17391 if test "$cf_cv_func_openpty" != no ; then
17392 cat >>confdefs.h <<EOF
17393 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17396 cat >>confdefs.h <<\EOF
17397 #define USE_XTERM_PTY 1
17400 if test "$cf_cv_lib_util" = yes ; then
17401 TEST_LIBS="-lutil $TEST_LIBS"
17405 if test "$with_hashed_db" != no ; then
17406 cat >>confdefs.h <<\EOF
17407 #define USE_HASHED_DB 1
17410 case $with_hashed_db in #(vi
17414 if test -d "$with_hashed_db" ; then
17416 if test -n "$with_hashed_db/include" ; then
17417 for cf_add_incdir in $with_hashed_db/include
17419 while test $cf_add_incdir != /usr/include
17421 if test -d $cf_add_incdir
17424 if test -n "$CFLAGS$CPPFLAGS" ; then
17425 # a loop is needed to ensure we can add subdirs of existing dirs
17426 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17427 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17428 cf_have_incdir=yes; break
17433 if test "$cf_have_incdir" = no ; then
17434 if test "$cf_add_incdir" = /usr/local/include ; then
17435 if test "$GCC" = yes
17437 cf_save_CPPFLAGS=$CPPFLAGS
17438 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17439 cat >conftest.$ac_ext <<_ACEOF
17440 #line 17440 "configure"
17441 #include "confdefs.h"
17451 rm -f conftest.$ac_objext
17452 if { (eval echo "$as_me:17452: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>&5
17455 echo "$as_me:17455: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -s conftest.$ac_objext'
17458 { (eval echo "$as_me:17458: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:17461: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17465 echo "$as_me: failed program was:" >&5
17466 cat conftest.$ac_ext >&5
17469 rm -f conftest.$ac_objext conftest.$ac_ext
17470 CPPFLAGS=$cf_save_CPPFLAGS
17475 if test "$cf_have_incdir" = no ; then
17476 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17478 echo "${as_me:-configure}:17478: testing adding $cf_add_incdir to include-path ..." 1>&5
17480 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17482 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17483 test "$cf_top_incdir" = "$cf_add_incdir" && break
17484 cf_add_incdir="$cf_top_incdir"
17493 if test -n "$with_hashed_db/lib" ; then
17494 for cf_add_libdir in $with_hashed_db/lib
17496 if test $cf_add_libdir = /usr/lib ; then
17498 elif test -d $cf_add_libdir
17501 if test -n "$LDFLAGS$LIBS" ; then
17502 # a loop is needed to ensure we can add subdirs of existing dirs
17503 for cf_test_libdir in $LDFLAGS $LIBS ; do
17504 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17505 cf_have_libdir=yes; break
17509 if test "$cf_have_libdir" = no ; then
17510 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17512 echo "${as_me:-configure}:17512: testing adding $cf_add_libdir to library-path ..." 1>&5
17514 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17523 echo "$as_me:17523: checking for db.h" >&5
17524 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
17525 if test "${ac_cv_header_db_h+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 cat >conftest.$ac_ext <<_ACEOF
17529 #line 17529 "configure"
17530 #include "confdefs.h"
17533 if { (eval echo "$as_me:17533: \"$ac_cpp conftest.$ac_ext\"") >&5
17534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17536 egrep -v '^ *\+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 echo "$as_me:17539: \$? = $ac_status" >&5
17540 (exit $ac_status); } >/dev/null; then
17541 if test -s conftest.err; then
17542 ac_cpp_err=$ac_c_preproc_warn_flag
17549 if test -z "$ac_cpp_err"; then
17550 ac_cv_header_db_h=yes
17552 echo "$as_me: failed program was:" >&5
17553 cat conftest.$ac_ext >&5
17554 ac_cv_header_db_h=no
17556 rm -f conftest.err conftest.$ac_ext
17558 echo "$as_me:17558: result: $ac_cv_header_db_h" >&5
17559 echo "${ECHO_T}$ac_cv_header_db_h" >&6
17560 if test $ac_cv_header_db_h = yes; then
17562 echo "$as_me:17562: checking for version of db" >&5
17563 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
17564 if test "${cf_cv_hashed_db_version+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 cf_cv_hashed_db_version=unknown
17570 for cf_db_version in 1 2 3 4 5
17573 echo "${as_me:-configure}:17573: testing checking for db version $cf_db_version ..." 1>&5
17575 cat >conftest.$ac_ext <<_ACEOF
17576 #line 17576 "configure"
17577 #include "confdefs.h"
17579 $ac_includes_default
17582 #ifdef DB_VERSION_MAJOR
17583 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
17584 #if $cf_db_version == DB_VERSION_MAJOR
17590 #if $cf_db_version == 1
17591 /* ok: assuming this is DB 1.8.5 */
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:17606: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>&5
17609 echo "$as_me:17609: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:17612: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 echo "$as_me:17615: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17618 cf_cv_hashed_db_version=$cf_db_version
17622 echo "$as_me: failed program was:" >&5
17623 cat conftest.$ac_ext >&5
17625 rm -f conftest.$ac_objext conftest.$ac_ext
17629 echo "$as_me:17629: result: $cf_cv_hashed_db_version" >&5
17630 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
17632 if test "$cf_cv_hashed_db_version" = unknown ; then
17633 { { echo "$as_me:17633: error: Cannot determine version of db" >&5
17634 echo "$as_me: error: Cannot determine version of db" >&2;}
17635 { (exit 1); exit 1; }; }
17638 echo "$as_me:17638: checking for db libraries" >&5
17639 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
17640 if test "${cf_cv_hashed_db_libs+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 cf_cv_hashed_db_libs=unknown
17645 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
17647 cf_save_libs="$LIBS"
17648 if test -n "$cf_db_libs"; then
17649 LIBS="-l$cf_db_libs $LIBS"
17652 echo "${as_me:-configure}:17652: testing checking for library "$cf_db_libs" ..." 1>&5
17654 cat >conftest.$ac_ext <<_ACEOF
17655 #line 17655 "configure"
17656 #include "confdefs.h"
17658 $ac_includes_default
17665 char *path = "/tmp/foo";
17666 #ifdef DB_VERSION_MAJOR
17667 #if DB_VERSION_MAJOR >= 4
17669 db_create(&result, NULL, 0);
17670 result->open(result,
17677 #elif DB_VERSION_MAJOR >= 3
17679 db_create(&result, NULL, 0);
17680 result->open(result,
17686 #elif DB_VERSION_MAJOR >= 2
17695 #endif /* DB_VERSION_MAJOR */
17697 DB *result = dbopen(path,
17703 ${cf_cv_main_return:-return}(result != 0)
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (eval echo "$as_me:17710: \"$ac_link\"") >&5
17711 (eval $ac_link) 2>&5
17713 echo "$as_me:17713: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (eval echo "$as_me:17716: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:17719: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17722 if test -n "$cf_db_libs" ; then
17723 cf_cv_hashed_db_libs=$cf_db_libs
17725 cf_cv_hashed_db_libs=default
17727 LIBS="$cf_save_libs"
17731 echo "$as_me: failed program was:" >&5
17732 cat conftest.$ac_ext >&5
17734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17735 LIBS="$cf_save_libs"
17739 echo "$as_me:17739: result: $cf_cv_hashed_db_libs" >&5
17740 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17742 if test "$cf_cv_hashed_db_libs" = unknown ; then
17743 { { echo "$as_me:17743: error: Cannot determine library for db" >&5
17744 echo "$as_me: error: Cannot determine library for db" >&2;}
17745 { (exit 1); exit 1; }; }
17746 elif test "$cf_cv_hashed_db_libs" != default ; then
17747 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17753 { { echo "$as_me:17753: error: Cannot find db.h" >&5
17754 echo "$as_me: error: Cannot find db.h" >&2;}
17755 { (exit 1); exit 1; }; }
17761 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17762 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17763 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17766 # Just in case, check if the C compiler has a bool type.
17768 echo "$as_me:17768: checking if we should include stdbool.h" >&5
17769 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17771 if test "${cf_cv_header_stdbool_h+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 cat >conftest.$ac_ext <<_ACEOF
17776 #line 17776 "configure"
17777 #include "confdefs.h"
17787 rm -f conftest.$ac_objext
17788 if { (eval echo "$as_me:17788: \"$ac_compile\"") >&5
17789 (eval $ac_compile) 2>&5
17791 echo "$as_me:17791: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -s conftest.$ac_objext'
17794 { (eval echo "$as_me:17794: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 echo "$as_me:17797: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 cf_cv_header_stdbool_h=0
17801 echo "$as_me: failed program was:" >&5
17802 cat conftest.$ac_ext >&5
17803 cat >conftest.$ac_ext <<_ACEOF
17804 #line 17804 "configure"
17805 #include "confdefs.h"
17808 #include <stdbool.h>
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:17820: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>&5
17823 echo "$as_me:17823: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (eval echo "$as_me:17826: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17829 echo "$as_me:17829: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 cf_cv_header_stdbool_h=1
17833 echo "$as_me: failed program was:" >&5
17834 cat conftest.$ac_ext >&5
17835 cf_cv_header_stdbool_h=0
17837 rm -f conftest.$ac_objext conftest.$ac_ext
17839 rm -f conftest.$ac_objext conftest.$ac_ext
17842 if test "$cf_cv_header_stdbool_h" = 1
17843 then echo "$as_me:17843: result: yes" >&5
17844 echo "${ECHO_T}yes" >&6
17845 else echo "$as_me:17845: result: no" >&5
17846 echo "${ECHO_T}no" >&6
17849 echo "$as_me:17849: checking for builtin bool type" >&5
17850 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17852 if test "${cf_cv_cc_bool_type+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 cat >conftest.$ac_ext <<_ACEOF
17857 #line 17857 "configure"
17858 #include "confdefs.h"
17861 #include <sys/types.h>
17871 rm -f conftest.$ac_objext
17872 if { (eval echo "$as_me:17872: \"$ac_compile\"") >&5
17873 (eval $ac_compile) 2>&5
17875 echo "$as_me:17875: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -s conftest.$ac_objext'
17878 { (eval echo "$as_me:17878: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17881 echo "$as_me:17881: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 cf_cv_cc_bool_type=1
17885 echo "$as_me: failed program was:" >&5
17886 cat conftest.$ac_ext >&5
17887 cf_cv_cc_bool_type=0
17889 rm -f conftest.$ac_objext conftest.$ac_ext
17893 if test "$cf_cv_cc_bool_type" = 1
17894 then echo "$as_me:17894: result: yes" >&5
17895 echo "${ECHO_T}yes" >&6
17896 else echo "$as_me:17896: result: no" >&5
17897 echo "${ECHO_T}no" >&6
17900 # Check for C++ compiler characteristics (and ensure that it's there!)
17901 if test -n "$CXX" ; then
17903 ac_cpp='$CXXCPP $CPPFLAGS'
17904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17907 ac_main_return=return
17909 if test -n "$GXX" ; then
17910 case $cf_cv_system_name in #(vi
17912 cf_stdcpp_libname=stdcpp
17915 cf_stdcpp_libname=stdc++
17918 echo "$as_me:17918: checking for library $cf_stdcpp_libname" >&5
17919 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
17920 if test "${cf_cv_libstdcpp+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 LIBS="-l$cf_stdcpp_libname $LIBS"
17926 cat >conftest.$ac_ext <<_ACEOF
17927 #line 17927 "configure"
17928 #include "confdefs.h"
17930 #include <strstream.h>
17936 strstreambuf foo(buf, sizeof(buf))
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (eval echo "$as_me:17943: \"$ac_link\"") >&5
17944 (eval $ac_link) 2>&5
17946 echo "$as_me:17946: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (eval echo "$as_me:17949: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:17952: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 cf_cv_libstdcpp=yes
17956 echo "$as_me: failed program was:" >&5
17957 cat conftest.$ac_ext >&5
17960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17964 echo "$as_me:17964: result: $cf_cv_libstdcpp" >&5
17965 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
17966 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
17969 echo "$as_me:17969: checking whether $CXX understands -c and -o together" >&5
17970 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
17971 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 cat > conftest.$ac_ext <<CF_EOF
17979 ${cf_cv_main_return:-return}(0);
17982 # We do the test twice because some compilers refuse to overwrite an
17983 # existing .o file with -o, though they will create one.
17984 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17985 if { (eval echo "$as_me:17985: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:17988: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
17990 test -f conftest2.$ac_objext && { (eval echo "$as_me:17990: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:17993: \$? = $ac_status" >&5
17994 (exit $ac_status); };
17996 eval cf_cv_prog_CXX_c_o=yes
17998 eval cf_cv_prog_CXX_c_o=no
18003 if test $cf_cv_prog_CXX_c_o = yes; then
18004 echo "$as_me:18004: result: yes" >&5
18005 echo "${ECHO_T}yes" >&6
18007 echo "$as_me:18007: result: no" >&5
18008 echo "${ECHO_T}no" >&6
18011 case $GXX_VERSION in
18017 cf_cxx_library=unknown
18018 case $cf_cv_system_name in #(vi
18026 if test "$GXX" = yes; then
18027 echo "$as_me:18027: checking for lib$cf_gpp_libname" >&5
18028 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
18030 LIBS="-l$cf_gpp_libname $LIBS"
18031 cat >conftest.$ac_ext <<_ACEOF
18032 #line 18032 "configure"
18033 #include "confdefs.h"
18035 #include <$cf_gpp_libname/builtin.h>
18040 two_arg_error_handler_t foo2 = lib_error_handler
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (eval echo "$as_me:18046: \"$ac_link\"") >&5
18047 (eval $ac_link) 2>&5
18049 echo "$as_me:18049: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:18052: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:18055: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18058 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18059 if test "$cf_gpp_libname" = cpp ; then
18060 cat >>confdefs.h <<\EOF
18061 #define HAVE_GPP_BUILTIN_H 1
18065 cat >>confdefs.h <<\EOF
18066 #define HAVE_GXX_BUILTIN_H 1
18071 echo "$as_me: failed program was:" >&5
18072 cat conftest.$ac_ext >&5
18073 cat >conftest.$ac_ext <<_ACEOF
18074 #line 18074 "configure"
18075 #include "confdefs.h"
18077 #include <builtin.h>
18082 two_arg_error_handler_t foo2 = lib_error_handler
18087 rm -f conftest.$ac_objext conftest$ac_exeext
18088 if { (eval echo "$as_me:18088: \"$ac_link\"") >&5
18089 (eval $ac_link) 2>&5
18091 echo "$as_me:18091: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -s conftest$ac_exeext'
18094 { (eval echo "$as_me:18094: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18097 echo "$as_me:18097: \$? = $ac_status" >&5
18098 (exit $ac_status); }; }; then
18100 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18101 cat >>confdefs.h <<\EOF
18102 #define HAVE_BUILTIN_H 1
18106 echo "$as_me: failed program was:" >&5
18107 cat conftest.$ac_ext >&5
18110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18114 echo "$as_me:18114: result: $cf_cxx_library" >&5
18115 echo "${ECHO_T}$cf_cxx_library" >&6
18125 ac_cpp='$CXXCPP $CPPFLAGS'
18126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18129 ac_main_return=return
18130 echo "$as_me:18130: checking how to run the C++ preprocessor" >&5
18131 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18132 if test -z "$CXXCPP"; then
18133 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 # Double quotes because CXXCPP needs to be expanded
18137 for CXXCPP in "$CXX -E" "/lib/cpp"
18139 ac_preproc_ok=false
18140 for ac_cxx_preproc_warn_flag in '' yes
18142 # Use a header file that comes with gcc, so configuring glibc
18143 # with a fresh cross-compiler works.
18144 # On the NeXT, cc -E runs the code through the compiler's parser,
18145 # not just through cpp. "Syntax error" is here to catch this case.
18146 cat >conftest.$ac_ext <<_ACEOF
18147 #line 18147 "configure"
18148 #include "confdefs.h"
18149 #include <assert.h>
18152 if { (eval echo "$as_me:18152: \"$ac_cpp conftest.$ac_ext\"") >&5
18153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18155 egrep -v '^ *\+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:18158: \$? = $ac_status" >&5
18159 (exit $ac_status); } >/dev/null; then
18160 if test -s conftest.err; then
18161 ac_cpp_err=$ac_cxx_preproc_warn_flag
18168 if test -z "$ac_cpp_err"; then
18171 echo "$as_me: failed program was:" >&5
18172 cat conftest.$ac_ext >&5
18173 # Broken: fails on valid input.
18176 rm -f conftest.err conftest.$ac_ext
18178 # OK, works on sane cases. Now check whether non-existent headers
18179 # can be detected and how.
18180 cat >conftest.$ac_ext <<_ACEOF
18181 #line 18181 "configure"
18182 #include "confdefs.h"
18183 #include <ac_nonexistent.h>
18185 if { (eval echo "$as_me:18185: \"$ac_cpp conftest.$ac_ext\"") >&5
18186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18188 egrep -v '^ *\+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 echo "$as_me:18191: \$? = $ac_status" >&5
18192 (exit $ac_status); } >/dev/null; then
18193 if test -s conftest.err; then
18194 ac_cpp_err=$ac_cxx_preproc_warn_flag
18201 if test -z "$ac_cpp_err"; then
18202 # Broken: success on invalid input.
18205 echo "$as_me: failed program was:" >&5
18206 cat conftest.$ac_ext >&5
18207 # Passes both tests.
18211 rm -f conftest.err conftest.$ac_ext
18214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18215 rm -f conftest.err conftest.$ac_ext
18216 if $ac_preproc_ok; then
18221 ac_cv_prog_CXXCPP=$CXXCPP
18224 CXXCPP=$ac_cv_prog_CXXCPP
18226 ac_cv_prog_CXXCPP=$CXXCPP
18228 echo "$as_me:18228: result: $CXXCPP" >&5
18229 echo "${ECHO_T}$CXXCPP" >&6
18230 ac_preproc_ok=false
18231 for ac_cxx_preproc_warn_flag in '' yes
18233 # Use a header file that comes with gcc, so configuring glibc
18234 # with a fresh cross-compiler works.
18235 # On the NeXT, cc -E runs the code through the compiler's parser,
18236 # not just through cpp. "Syntax error" is here to catch this case.
18237 cat >conftest.$ac_ext <<_ACEOF
18238 #line 18238 "configure"
18239 #include "confdefs.h"
18240 #include <assert.h>
18243 if { (eval echo "$as_me:18243: \"$ac_cpp conftest.$ac_ext\"") >&5
18244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18246 egrep -v '^ *\+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:18249: \$? = $ac_status" >&5
18250 (exit $ac_status); } >/dev/null; then
18251 if test -s conftest.err; then
18252 ac_cpp_err=$ac_cxx_preproc_warn_flag
18259 if test -z "$ac_cpp_err"; then
18262 echo "$as_me: failed program was:" >&5
18263 cat conftest.$ac_ext >&5
18264 # Broken: fails on valid input.
18267 rm -f conftest.err conftest.$ac_ext
18269 # OK, works on sane cases. Now check whether non-existent headers
18270 # can be detected and how.
18271 cat >conftest.$ac_ext <<_ACEOF
18272 #line 18272 "configure"
18273 #include "confdefs.h"
18274 #include <ac_nonexistent.h>
18276 if { (eval echo "$as_me:18276: \"$ac_cpp conftest.$ac_ext\"") >&5
18277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18279 egrep -v '^ *\+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:18282: \$? = $ac_status" >&5
18283 (exit $ac_status); } >/dev/null; then
18284 if test -s conftest.err; then
18285 ac_cpp_err=$ac_cxx_preproc_warn_flag
18292 if test -z "$ac_cpp_err"; then
18293 # Broken: success on invalid input.
18296 echo "$as_me: failed program was:" >&5
18297 cat conftest.$ac_ext >&5
18298 # Passes both tests.
18302 rm -f conftest.err conftest.$ac_ext
18305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18306 rm -f conftest.err conftest.$ac_ext
18307 if $ac_preproc_ok; then
18310 { { echo "$as_me:18310: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18311 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18312 { (exit 1); exit 1; }; }
18316 ac_cpp='$CXXCPP $CPPFLAGS'
18317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18320 ac_main_return=return
18322 for ac_header in typeinfo
18324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18325 echo "$as_me:18325: checking for $ac_header" >&5
18326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 cat >conftest.$ac_ext <<_ACEOF
18331 #line 18331 "configure"
18332 #include "confdefs.h"
18333 #include <$ac_header>
18335 if { (eval echo "$as_me:18335: \"$ac_cpp conftest.$ac_ext\"") >&5
18336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18338 egrep -v '^ *\+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:18341: \$? = $ac_status" >&5
18342 (exit $ac_status); } >/dev/null; then
18343 if test -s conftest.err; then
18344 ac_cpp_err=$ac_cxx_preproc_warn_flag
18351 if test -z "$ac_cpp_err"; then
18352 eval "$as_ac_Header=yes"
18354 echo "$as_me: failed program was:" >&5
18355 cat conftest.$ac_ext >&5
18356 eval "$as_ac_Header=no"
18358 rm -f conftest.err conftest.$ac_ext
18360 echo "$as_me:18360: result: `eval echo '${'$as_ac_Header'}'`" >&5
18361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18363 cat >>confdefs.h <<EOF
18364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18370 for ac_header in iostream
18372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18373 echo "$as_me:18373: checking for $ac_header" >&5
18374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 cat >conftest.$ac_ext <<_ACEOF
18379 #line 18379 "configure"
18380 #include "confdefs.h"
18381 #include <$ac_header>
18383 if { (eval echo "$as_me:18383: \"$ac_cpp conftest.$ac_ext\"") >&5
18384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18386 egrep -v '^ *\+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 echo "$as_me:18389: \$? = $ac_status" >&5
18390 (exit $ac_status); } >/dev/null; then
18391 if test -s conftest.err; then
18392 ac_cpp_err=$ac_cxx_preproc_warn_flag
18399 if test -z "$ac_cpp_err"; then
18400 eval "$as_ac_Header=yes"
18402 echo "$as_me: failed program was:" >&5
18403 cat conftest.$ac_ext >&5
18404 eval "$as_ac_Header=no"
18406 rm -f conftest.err conftest.$ac_ext
18408 echo "$as_me:18408: result: `eval echo '${'$as_ac_Header'}'`" >&5
18409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18411 cat >>confdefs.h <<EOF
18412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18418 if test x"$ac_cv_header_iostream" = xyes ; then
18419 echo "$as_me:18419: checking if iostream uses std-namespace" >&5
18420 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
18421 cat >conftest.$ac_ext <<_ACEOF
18422 #line 18422 "configure"
18423 #include "confdefs.h"
18425 #include <iostream>
18432 cerr << "testing" << endl;
18438 rm -f conftest.$ac_objext
18439 if { (eval echo "$as_me:18439: \"$ac_compile\"") >&5
18440 (eval $ac_compile) 2>&5
18442 echo "$as_me:18442: \$? = $ac_status" >&5
18443 (exit $ac_status); } &&
18444 { ac_try='test -s conftest.$ac_objext'
18445 { (eval echo "$as_me:18445: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18448 echo "$as_me:18448: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 cf_iostream_namespace=yes
18452 echo "$as_me: failed program was:" >&5
18453 cat conftest.$ac_ext >&5
18454 cf_iostream_namespace=no
18456 rm -f conftest.$ac_objext conftest.$ac_ext
18457 echo "$as_me:18457: result: $cf_iostream_namespace" >&5
18458 echo "${ECHO_T}$cf_iostream_namespace" >&6
18459 if test "$cf_iostream_namespace" = yes ; then
18460 cat >>confdefs.h <<\EOF
18461 #define IOSTREAM_NAMESPACE 1
18467 echo "$as_me:18467: checking if we should include stdbool.h" >&5
18468 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18470 if test "${cf_cv_header_stdbool_h+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18475 #line 18475 "configure"
18476 #include "confdefs.h"
18486 rm -f conftest.$ac_objext
18487 if { (eval echo "$as_me:18487: \"$ac_compile\"") >&5
18488 (eval $ac_compile) 2>&5
18490 echo "$as_me:18490: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -s conftest.$ac_objext'
18493 { (eval echo "$as_me:18493: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:18496: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 cf_cv_header_stdbool_h=0
18500 echo "$as_me: failed program was:" >&5
18501 cat conftest.$ac_ext >&5
18502 cat >conftest.$ac_ext <<_ACEOF
18503 #line 18503 "configure"
18504 #include "confdefs.h"
18507 #include <stdbool.h>
18518 rm -f conftest.$ac_objext
18519 if { (eval echo "$as_me:18519: \"$ac_compile\"") >&5
18520 (eval $ac_compile) 2>&5
18522 echo "$as_me:18522: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -s conftest.$ac_objext'
18525 { (eval echo "$as_me:18525: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 echo "$as_me:18528: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 cf_cv_header_stdbool_h=1
18532 echo "$as_me: failed program was:" >&5
18533 cat conftest.$ac_ext >&5
18534 cf_cv_header_stdbool_h=0
18536 rm -f conftest.$ac_objext conftest.$ac_ext
18538 rm -f conftest.$ac_objext conftest.$ac_ext
18541 if test "$cf_cv_header_stdbool_h" = 1
18542 then echo "$as_me:18542: result: yes" >&5
18543 echo "${ECHO_T}yes" >&6
18544 else echo "$as_me:18544: result: no" >&5
18545 echo "${ECHO_T}no" >&6
18548 echo "$as_me:18548: checking for builtin bool type" >&5
18549 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18551 if test "${cf_cv_builtin_bool+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 cat >conftest.$ac_ext <<_ACEOF
18556 #line 18556 "configure"
18557 #include "confdefs.h"
18560 #include <sys/types.h>
18570 rm -f conftest.$ac_objext
18571 if { (eval echo "$as_me:18571: \"$ac_compile\"") >&5
18572 (eval $ac_compile) 2>&5
18574 echo "$as_me:18574: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -s conftest.$ac_objext'
18577 { (eval echo "$as_me:18577: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:18580: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 cf_cv_builtin_bool=1
18584 echo "$as_me: failed program was:" >&5
18585 cat conftest.$ac_ext >&5
18586 cf_cv_builtin_bool=0
18588 rm -f conftest.$ac_objext conftest.$ac_ext
18592 if test "$cf_cv_builtin_bool" = 1
18593 then echo "$as_me:18593: result: yes" >&5
18594 echo "${ECHO_T}yes" >&6
18595 else echo "$as_me:18595: result: no" >&5
18596 echo "${ECHO_T}no" >&6
18599 echo "$as_me:18599: checking for size of bool" >&5
18600 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18601 if test "${cf_cv_type_of_bool+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 if test "$cross_compiling" = yes; then
18607 cf_cv_type_of_bool=unknown
18609 cat >conftest.$ac_ext <<_ACEOF
18610 #line 18610 "configure"
18611 #include "confdefs.h"
18613 #include <stdlib.h>
18616 #if defined(__cplusplus)
18618 #ifdef HAVE_GXX_BUILTIN_H
18619 #include <g++/builtin.h>
18620 #elif HAVE_GPP_BUILTIN_H
18621 #include <gpp/builtin.h>
18622 #elif HAVE_BUILTIN_H
18623 #include <builtin.h>
18628 #if $cf_cv_header_stdbool_h
18629 #include <stdbool.h>
18636 FILE *fp = fopen("cf_test.out", "w");
18639 if ((bool)(-x) >= 0)
18640 fputs("unsigned ", fp);
18641 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18642 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18643 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18644 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18647 ${cf_cv_main_return:-return}(0);
18651 rm -f conftest$ac_exeext
18652 if { (eval echo "$as_me:18652: \"$ac_link\"") >&5
18653 (eval $ac_link) 2>&5
18655 echo "$as_me:18655: \$? = $ac_status" >&5
18656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18657 { (eval echo "$as_me:18657: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:18660: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 cf_cv_type_of_bool=`cat cf_test.out`
18663 if test -z "$cf_cv_type_of_bool"; then
18664 cf_cv_type_of_bool=unknown
18667 echo "$as_me: program exited with status $ac_status" >&5
18668 echo "$as_me: failed program was:" >&5
18669 cat conftest.$ac_ext >&5
18670 cf_cv_type_of_bool=unknown
18672 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18678 echo "$as_me:18678: result: $cf_cv_type_of_bool" >&5
18679 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18680 if test "$cf_cv_type_of_bool" = unknown ; then
18681 case .$NCURSES_BOOL in #(vi
18682 .auto|.) NCURSES_BOOL=unsigned;;
18684 { echo "$as_me:18684: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18685 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18686 cf_cv_type_of_bool=$NCURSES_BOOL
18689 echo "$as_me:18689: checking for special defines needed for etip.h" >&5
18690 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
18691 cf_save_CXXFLAGS="$CXXFLAGS"
18694 # etip.h includes ncurses.h which includes ncurses_dll.h
18695 # But ncurses_dll.h is generated - fix here.
18696 test -d include || mkdir include
18697 test -f include/ncurses_dll.h || sed -e 's/@NCURSES_WRAP_PREFIX@/'$NCURSES_WRAP_PREFIX'/g' ${srcdir}/include/ncurses_dll.h.in >include/ncurses_dll.h
18699 for cf_math in "" MATH_H
18701 for cf_excp in "" MATH_EXCEPTION
18703 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
18704 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
18705 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
18706 cat >conftest.$ac_ext <<_ACEOF
18707 #line 18707 "configure"
18708 #include "confdefs.h"
18710 #include <etip.h.in>
18720 rm -f conftest.$ac_objext
18721 if { (eval echo "$as_me:18721: \"$ac_compile\"") >&5
18722 (eval $ac_compile) 2>&5
18724 echo "$as_me:18724: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:18727: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18730 echo "$as_me:18730: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18733 test -n "$cf_math" && cat >>confdefs.h <<EOF
18734 #define ETIP_NEEDS_${cf_math} 1
18737 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18738 #define ETIP_NEEDS_${cf_excp} 1
18741 cf_result="$cf_math $cf_excp"
18745 echo "$as_me: failed program was:" >&5
18746 cat conftest.$ac_ext >&5
18748 rm -f conftest.$ac_objext conftest.$ac_ext
18751 echo "$as_me:18751: result: $cf_result" >&5
18752 echo "${ECHO_T}$cf_result" >&6
18753 CXXFLAGS="$cf_save_CXXFLAGS"
18755 if test -n "$CXX"; then
18756 echo "$as_me:18756: checking if $CXX accepts parameter initialization" >&5
18757 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18758 if test "${cf_cv_cpp_param_init+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 ac_cpp='$CXXCPP $CPPFLAGS'
18764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18767 ac_main_return=return
18769 if test "$cross_compiling" = yes; then
18770 cf_cv_cpp_param_init=unknown
18772 cat >conftest.$ac_ext <<_ACEOF
18773 #line 18773 "configure"
18774 #include "confdefs.h"
18784 TEST::TEST(int x = 1) // some compilers do not like second initializer
18791 rm -f conftest$ac_exeext
18792 if { (eval echo "$as_me:18792: \"$ac_link\"") >&5
18793 (eval $ac_link) 2>&5
18795 echo "$as_me:18795: \$? = $ac_status" >&5
18796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18797 { (eval echo "$as_me:18797: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:18800: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 cf_cv_cpp_param_init=yes
18804 echo "$as_me: program exited with status $ac_status" >&5
18805 echo "$as_me: failed program was:" >&5
18806 cat conftest.$ac_ext >&5
18807 cf_cv_cpp_param_init=no
18809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18812 ac_cpp='$CXXCPP $CPPFLAGS'
18813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18816 ac_main_return=return
18819 echo "$as_me:18819: result: $cf_cv_cpp_param_init" >&5
18820 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
18822 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
18823 #define CPP_HAS_PARAM_INIT 1
18826 if test -n "$CXX"; then
18828 echo "$as_me:18828: checking if $CXX accepts static_cast" >&5
18829 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
18830 if test "${cf_cv_cpp_static_cast+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18835 ac_cpp='$CXXCPP $CPPFLAGS'
18836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18839 ac_main_return=return
18841 cat >conftest.$ac_ext <<_ACEOF
18842 #line 18842 "configure"
18843 #include "confdefs.h"
18848 NCursesPanel(int nlines,
18858 template<class T> class NCursesUserPanel : public NCursesPanel
18861 NCursesUserPanel (int nlines,
18865 const T* p_UserData = static_cast<T*>(0))
18866 : NCursesPanel (nlines, ncols, begin_y, begin_x)
18869 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
18873 virtual ~NCursesUserPanel() {};
18880 const char* p_UserData = static_cast<char*>(0)
18885 rm -f conftest.$ac_objext
18886 if { (eval echo "$as_me:18886: \"$ac_compile\"") >&5
18887 (eval $ac_compile) 2>&5
18889 echo "$as_me:18889: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:18892: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18895 echo "$as_me:18895: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 cf_cv_cpp_static_cast=yes
18899 echo "$as_me: failed program was:" >&5
18900 cat conftest.$ac_ext >&5
18901 cf_cv_cpp_static_cast=no
18903 rm -f conftest.$ac_objext conftest.$ac_ext
18906 ac_cpp='$CXXCPP $CPPFLAGS'
18907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18910 ac_main_return=return
18913 echo "$as_me:18913: result: $cf_cv_cpp_static_cast" >&5
18914 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
18918 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
18919 #define CPP_HAS_STATIC_CAST 1
18923 CXX_ARFLAGS='$(ARFLAGS)'
18924 case $cf_cv_system_name in #(vi
18926 if test "$GXX" != yes ; then
18928 CXX_ARFLAGS='-ar -o'
18932 CXXLDFLAGS="-u main"
18935 if test "$GXX" != yes ; then
18937 CXX_ARFLAGS='-xar -o'
18944 cf_cv_builtin_bool=1
18946 # Just because we are not configuring against C++ right now does not
18947 # mean that a user will not want to use C++. Some distributors disable
18948 # the C++ portion of this configuration as a shortcut (or just to avoid
18949 # compiling the demo in the c++ directory). So we need a reasonable
18950 # default for the 'bool' type.
18952 # Caveat: since the storage of the bool type is not standardized, it
18955 if test "$NCURSES_BOOL" != auto ; then
18956 cf_cv_type_of_bool=$NCURSES_BOOL
18957 cf_cv_header_stdbool_h=0
18959 if test "$cf_cv_header_stdbool_h" = 1 ; then
18961 echo "$as_me:18961: checking for size of bool" >&5
18962 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18963 if test "${cf_cv_type_of_bool+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 if test "$cross_compiling" = yes; then
18969 cf_cv_type_of_bool=unknown
18971 cat >conftest.$ac_ext <<_ACEOF
18972 #line 18972 "configure"
18973 #include "confdefs.h"
18975 #include <stdlib.h>
18978 #if defined(__cplusplus)
18980 #ifdef HAVE_GXX_BUILTIN_H
18981 #include <g++/builtin.h>
18982 #elif HAVE_GPP_BUILTIN_H
18983 #include <gpp/builtin.h>
18984 #elif HAVE_BUILTIN_H
18985 #include <builtin.h>
18990 #if $cf_cv_header_stdbool_h
18991 #include <stdbool.h>
18998 FILE *fp = fopen("cf_test.out", "w");
19001 if ((bool)(-x) >= 0)
19002 fputs("unsigned ", fp);
19003 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19004 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19005 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19006 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19009 ${cf_cv_main_return:-return}(0);
19013 rm -f conftest$ac_exeext
19014 if { (eval echo "$as_me:19014: \"$ac_link\"") >&5
19015 (eval $ac_link) 2>&5
19017 echo "$as_me:19017: \$? = $ac_status" >&5
19018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19019 { (eval echo "$as_me:19019: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19022 echo "$as_me:19022: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 cf_cv_type_of_bool=`cat cf_test.out`
19025 if test -z "$cf_cv_type_of_bool"; then
19026 cf_cv_type_of_bool=unknown
19029 echo "$as_me: program exited with status $ac_status" >&5
19030 echo "$as_me: failed program was:" >&5
19031 cat conftest.$ac_ext >&5
19032 cf_cv_type_of_bool=unknown
19034 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19040 echo "$as_me:19040: result: $cf_cv_type_of_bool" >&5
19041 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19042 if test "$cf_cv_type_of_bool" = unknown ; then
19043 case .$NCURSES_BOOL in #(vi
19044 .auto|.) NCURSES_BOOL=unsigned;;
19046 { echo "$as_me:19046: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19047 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19048 cf_cv_type_of_bool=$NCURSES_BOOL
19052 echo "$as_me:19052: checking for fallback type of bool" >&5
19053 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
19054 case "$host_cpu" in #(vi
19055 i?86) cf_cv_type_of_bool=char ;; #(vi
19056 *) cf_cv_type_of_bool=int ;;
19058 echo "$as_me:19058: result: $cf_cv_type_of_bool" >&5
19059 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19064 # If the C compiler did not declare bool, and we did not determine that the C++
19065 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
19066 # ncurses library use the same type as C++ bool. Note that this allows one to
19067 # specify the type of bool in a configure-script option and postpone
19068 # integration with the C++ compiler provided that the types are compatible.
19070 if test $cf_cv_cc_bool_type = 1
19072 # oops: C has a bool. Unlikely, but C++ could differ.
19074 elif test $cf_cv_builtin_bool = 0
19079 # this is the normal case
19080 USE_CXX_BOOL='defined(__cplusplus)'
19083 if test -f "${srcdir}/Ada95/Makefile.in" ; then
19085 if test "$cf_with_ada" != "no" ; then
19086 if test "$with_libtool" != "no"; then
19087 { echo "$as_me:19087: WARNING: libtool does not support Ada - disabling feature" >&5
19088 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
19093 if test "$cf_with_ada" != "no" ; then
19095 cf_ada_make=gnatmake
19096 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
19097 set dummy $cf_ada_make; ac_word=$2
19098 echo "$as_me:19098: checking for $ac_word" >&5
19099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19100 if test "${ac_cv_prog_gnat_exists+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 if test -n "$gnat_exists"; then
19104 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
19106 ac_save_IFS=$IFS; IFS=$ac_path_separator
19108 for ac_dir in $ac_dummy; do
19110 test -z "$ac_dir" && ac_dir=.
19111 $as_executable_p "$ac_dir/$ac_word" || continue
19112 ac_cv_prog_gnat_exists="yes"
19113 echo "$as_me:19113: found $ac_dir/$ac_word" >&5
19117 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19120 gnat_exists=$ac_cv_prog_gnat_exists
19121 if test -n "$gnat_exists"; then
19122 echo "$as_me:19122: result: $gnat_exists" >&5
19123 echo "${ECHO_T}$gnat_exists" >&6
19125 echo "$as_me:19125: result: no" >&5
19126 echo "${ECHO_T}no" >&6
19129 if test "$ac_cv_prog_gnat_exists" = no; then
19131 cf_cv_prog_gnat_correct=no
19134 echo "$as_me:19134: checking for gnat version" >&5
19135 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19136 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19137 grep '[0-9].[0-9][0-9]*' |\
19138 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19139 echo "$as_me:19139: result: $cf_gnat_version" >&5
19140 echo "${ECHO_T}$cf_gnat_version" >&6
19142 case $cf_gnat_version in #(vi
19143 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
19144 cf_cv_prog_gnat_correct=yes
19147 { echo "$as_me:19147: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19148 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19149 cf_cv_prog_gnat_correct=no
19153 # Extract the first word of "m4", so it can be a program name with args.
19154 set dummy m4; ac_word=$2
19155 echo "$as_me:19155: checking for $ac_word" >&5
19156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19157 if test "${ac_cv_prog_M4_exists+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 if test -n "$M4_exists"; then
19161 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19163 ac_save_IFS=$IFS; IFS=$ac_path_separator
19165 for ac_dir in $ac_dummy; do
19167 test -z "$ac_dir" && ac_dir=.
19168 $as_executable_p "$ac_dir/$ac_word" || continue
19169 ac_cv_prog_M4_exists="yes"
19170 echo "$as_me:19170: found $ac_dir/$ac_word" >&5
19174 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19177 M4_exists=$ac_cv_prog_M4_exists
19178 if test -n "$M4_exists"; then
19179 echo "$as_me:19179: result: $M4_exists" >&5
19180 echo "${ECHO_T}$M4_exists" >&6
19182 echo "$as_me:19182: result: no" >&5
19183 echo "${ECHO_T}no" >&6
19186 if test "$ac_cv_prog_M4_exists" = no; then
19187 cf_cv_prog_gnat_correct=no
19188 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19190 if test "$cf_cv_prog_gnat_correct" = yes; then
19191 echo "$as_me:19191: checking if GNAT works" >&5
19192 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19194 rm -rf conftest* *~conftest*
19195 cat >>conftest.ads <<CF_EOF
19196 procedure conftest;
19198 cat >>conftest.adb <<CF_EOF
19201 procedure conftest is
19203 Text_IO.Put ("Hello World");
19205 GNAT.OS_Lib.OS_Exit (0);
19208 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19209 if ( ./conftest 1>&5 2>&1 ) ; then
19210 cf_cv_prog_gnat_correct=yes
19212 cf_cv_prog_gnat_correct=no
19215 cf_cv_prog_gnat_correct=no
19217 rm -rf conftest* *~conftest*
19219 echo "$as_me:19219: result: $cf_cv_prog_gnat_correct" >&5
19220 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19224 if test "$cf_cv_prog_gnat_correct" = yes; then
19226 ADAFLAGS="$ADAFLAGS -gnatpn"
19228 echo "$as_me:19228: checking optimization options for ADAFLAGS" >&5
19229 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
19233 ADAFLAGS="$ADAFLAGS -g"
19239 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
19241 ADAFLAGS="$ADAFLAGS $cf_O_flag"
19245 echo "$as_me:19245: result: $ADAFLAGS" >&5
19246 echo "${ECHO_T}$ADAFLAGS" >&6
19248 echo "$as_me:19248: checking if GNAT supports generics" >&5
19249 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19250 case $cf_gnat_version in #(vi
19251 3.[1-9]*|[4-9].*) #(vi
19252 cf_gnat_generics=yes
19255 cf_gnat_generics=no
19258 echo "$as_me:19258: result: $cf_gnat_generics" >&5
19259 echo "${ECHO_T}$cf_gnat_generics" >&6
19261 if test "$cf_gnat_generics" = yes
19263 cf_compile_generics=generics
19264 cf_generic_objects="\${GENOBJS}"
19266 cf_compile_generics=
19267 cf_generic_objects=
19270 echo "$as_me:19270: checking if GNAT supports SIGINT" >&5
19271 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19272 if test "${cf_cv_gnat_sigint+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 rm -rf conftest* *~conftest*
19277 cat >>conftest.ads <<CF_EOF
19278 with Ada.Interrupts.Names;
19280 package ConfTest is
19282 pragma Warnings (Off); -- the next pragma exists since 3.11p
19283 pragma Unreserve_All_Interrupts;
19284 pragma Warnings (On);
19286 protected Process is
19288 function Continue return Boolean;
19289 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19291 Done : Boolean := False;
19296 cat >>conftest.adb <<CF_EOF
19297 package body ConfTest is
19298 protected body Process is
19303 function Continue return Boolean is
19310 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19311 cf_cv_gnat_sigint=yes
19313 cf_cv_gnat_sigint=no
19315 rm -rf conftest* *~conftest*
19318 echo "$as_me:19318: result: $cf_cv_gnat_sigint" >&5
19319 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19321 if test $cf_cv_gnat_sigint = yes ; then
19324 USE_GNAT_SIGINT="#"
19327 echo "$as_me:19327: checking if GNAT pragma Unreferenced works" >&5
19328 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
19329 if test "${cf_cv_pragma_unreferenced+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 rm -rf conftest* *~conftest*
19334 cat >>conftest.ads <<CF_EOF
19335 procedure conftest;
19337 cat >>conftest.adb <<CF_EOF
19340 procedure conftest is
19342 pragma Unreferenced (test);
19345 Text_IO.Put ("Hello World");
19347 GNAT.OS_Lib.OS_Exit (0);
19350 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19351 cf_cv_pragma_unreferenced=yes
19353 cf_cv_pragma_unreferenced=no
19355 rm -rf conftest* *~conftest*
19358 echo "$as_me:19358: result: $cf_cv_pragma_unreferenced" >&5
19359 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
19361 # if the pragma is supported, use it (needed in the Trace code).
19362 if test $cf_cv_pragma_unreferenced = yes ; then
19368 cf_gnat_libraries=no
19369 cf_gnat_projects=no
19371 echo "$as_me:19371: checking if GNAT supports project files" >&5
19372 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19373 case $cf_gnat_version in #(vi
19377 case $cf_cv_system_name in #(vi
19381 mkdir conftest.src conftest.bin conftest.lib
19383 rm -rf conftest* *~conftest*
19384 cat >>library.gpr <<CF_EOF
19386 Kind := External ("LIB_KIND");
19387 for Library_Name use "ConfTest";
19388 for Object_Dir use ".";
19389 for Library_ALI_Dir use External("LIBRARY_DIR");
19390 for Library_Version use External ("SONAME");
19391 for Library_Kind use Kind;
19392 for Library_Dir use External("BUILD_DIR");
19393 Source_Dir := External ("SOURCE_DIR");
19394 for Source_Dirs use (Source_Dir);
19395 package Compiler is
19396 for Default_Switches ("Ada") use
19400 "-gnatVa", -- All validity checks
19401 "-gnatwa"); -- Activate all optional errors
19405 cat >>confpackage.ads <<CF_EOF
19406 package ConfPackage is
19407 procedure conftest;
19410 cat >>confpackage.adb <<CF_EOF
19412 package body ConfPackage is
19413 procedure conftest is
19415 Text_IO.Put ("Hello World");
19420 if ( $cf_ada_make $ADAFLAGS \
19422 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19423 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19424 -XSOURCE_DIR=`pwd` \
19425 -XSONAME=libConfTest.so.1 \
19426 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19427 cf_gnat_projects=yes
19430 if test -f conftest.lib/confpackage.ali
19432 cf_gnat_libraries=yes
19434 rm -rf conftest* *~conftest*
19439 echo "$as_me:19439: result: $cf_gnat_projects" >&5
19440 echo "${ECHO_T}$cf_gnat_projects" >&6
19442 if test $cf_gnat_projects = yes
19444 echo "$as_me:19444: checking if GNAT supports libraries" >&5
19445 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19446 echo "$as_me:19446: result: $cf_gnat_libraries" >&5
19447 echo "${ECHO_T}$cf_gnat_libraries" >&6
19450 if test "$cf_gnat_projects" = yes
19452 USE_OLD_MAKERULES="#"
19453 USE_GNAT_PROJECTS=""
19455 USE_OLD_MAKERULES=""
19456 USE_GNAT_PROJECTS="#"
19459 if test "$cf_gnat_libraries" = yes
19461 USE_GNAT_LIBRARIES=""
19463 USE_GNAT_LIBRARIES="#"
19466 echo "$as_me:19466: checking for ada-compiler" >&5
19467 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
19469 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19470 if test "${with_ada_compiler+set}" = set; then
19471 withval="$with_ada_compiler"
19472 cf_ada_compiler=$withval
19474 cf_ada_compiler=gnatmake
19477 echo "$as_me:19477: result: $cf_ada_compiler" >&5
19478 echo "${ECHO_T}$cf_ada_compiler" >&6
19480 cf_ada_package=terminal_interface
19482 echo "$as_me:19482: checking for ada-include" >&5
19483 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
19485 # Check whether --with-ada-include or --without-ada-include was given.
19486 if test "${with_ada_include+set}" = set; then
19487 withval="$with_ada_include"
19490 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19491 fi; if test -n "$prefix/share/ada/adainclude" ; then
19493 if test "x$prefix" != xNONE; then
19494 cf_path_syntax="$prefix"
19496 cf_path_syntax="$ac_default_prefix"
19499 case ".$withval" in #(vi
19500 .\$\(*\)*|.\'*\'*) #(vi
19504 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19506 .\${*prefix}*) #(vi
19507 eval withval="$withval"
19508 case ".$withval" in #(vi
19510 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19515 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19518 { { echo "$as_me:19518: error: expected a pathname, not \"$withval\"" >&5
19519 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19520 { (exit 1); exit 1; }; }
19525 ADA_INCLUDE="$withval"
19527 echo "$as_me:19527: result: $ADA_INCLUDE" >&5
19528 echo "${ECHO_T}$ADA_INCLUDE" >&6
19530 echo "$as_me:19530: checking for ada-objects" >&5
19531 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
19533 # Check whether --with-ada-objects or --without-ada-objects was given.
19534 if test "${with_ada_objects+set}" = set; then
19535 withval="$with_ada_objects"
19538 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19539 fi; if test -n "$prefix/lib/ada/adalib" ; then
19541 if test "x$prefix" != xNONE; then
19542 cf_path_syntax="$prefix"
19544 cf_path_syntax="$ac_default_prefix"
19547 case ".$withval" in #(vi
19548 .\$\(*\)*|.\'*\'*) #(vi
19552 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19554 .\${*prefix}*) #(vi
19555 eval withval="$withval"
19556 case ".$withval" in #(vi
19558 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19563 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19566 { { echo "$as_me:19566: error: expected a pathname, not \"$withval\"" >&5
19567 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19568 { (exit 1); exit 1; }; }
19573 ADA_OBJECTS="$withval"
19575 echo "$as_me:19575: result: $ADA_OBJECTS" >&5
19576 echo "${ECHO_T}$ADA_OBJECTS" >&6
19578 echo "$as_me:19578: checking if an Ada95 shared-library should be built" >&5
19579 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
19581 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19582 if test "${with_ada_sharedlib+set}" = set; then
19583 withval="$with_ada_sharedlib"
19584 with_ada_sharedlib=$withval
19586 with_ada_sharedlib=no
19588 echo "$as_me:19588: result: $with_ada_sharedlib" >&5
19589 echo "${ECHO_T}$with_ada_sharedlib" >&6
19591 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19592 MAKE_ADA_SHAREDLIB="#"
19594 if test "x$with_ada_sharedlib" != xno
19596 MAKE_ADA_SHAREDLIB=
19597 if test "x$with_ada_sharedlib" != xyes
19599 ADA_SHAREDLIB="$with_ada_sharedlib"
19609 ### Construct the ncurses library-subsets, if any, from this set of keywords:
19610 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
19612 ### ticlib modules may be a separate library, otherwise contained in termlib.
19613 ### termlib modules may be a separate library, otherwise contained in ncurses.
19615 ### The of "+" or " " between the tokens controls the way the script
19616 ### chooses to split module lists into libraries.
19618 ### (see CF_LIB_RULES).
19619 echo "$as_me:19619: checking for library subsets" >&5
19620 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
19623 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
19624 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
19625 if test "$with_ticlib" != no ; then
19626 LIB_SUBSETS="${LIB_SUBSETS} "
19628 LIB_SUBSETS="${LIB_SUBSETS}+"
19632 LIB_SUBSETS="${LIB_SUBSETS}termlib"
19633 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
19635 if test "$with_termlib" != no ; then
19636 LIB_SUBSETS="${LIB_SUBSETS} "
19638 LIB_SUBSETS="${LIB_SUBSETS}+"
19641 LIB_SUBSETS="${LIB_SUBSETS}base"
19643 # Most term-driver calls are to tinfo, but some like init_pair are to the
19644 # base library (so it resides in base).
19645 if test "$with_term_driver" != no ; then
19646 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
19647 case $cf_cv_system_name in #(vi
19649 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
19652 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
19657 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
19658 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
19660 echo "$as_me:19660: result: $LIB_SUBSETS" >&5
19661 echo "${ECHO_T}$LIB_SUBSETS" >&6
19663 ### Construct the list of include-directories to be generated
19665 CPPFLAGS="$CPPFLAGS -I. -I../include"
19666 if test "$srcdir" != "."; then
19667 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
19669 if test "$GCC" != yes; then
19670 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19671 elif test "$includedir" != "/usr/include"; then
19672 if test "$includedir" = '${prefix}/include' ; then
19673 if test $prefix != /usr ; then
19674 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19677 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19681 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
19682 if test "$srcdir" != "."; then
19683 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
19685 if test "$GCC" != yes; then
19686 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19687 elif test "$includedir" != "/usr/include"; then
19688 if test "$includedir" = '${prefix}/include' ; then
19689 if test $prefix != /usr ; then
19690 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19693 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19697 ### Build up pieces for makefile rules
19698 echo "$as_me:19698: checking default library suffix" >&5
19699 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
19701 case $DFT_LWR_MODEL in
19702 libtool) DFT_ARG_SUFFIX='' ;;
19703 normal) DFT_ARG_SUFFIX='' ;;
19704 debug) DFT_ARG_SUFFIX='_g' ;;
19705 profile) DFT_ARG_SUFFIX='_p' ;;
19706 shared) DFT_ARG_SUFFIX='' ;;
19708 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
19709 echo "$as_me:19709: result: $DFT_ARG_SUFFIX" >&5
19710 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
19712 echo "$as_me:19712: checking default library-dependency suffix" >&5
19713 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
19715 case $DFT_LWR_MODEL in #(vi
19717 DFT_LIB_SUFFIX='.la'
19718 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19721 DFT_LIB_SUFFIX='.a'
19722 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19725 DFT_LIB_SUFFIX='_g.a'
19726 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19729 DFT_LIB_SUFFIX='_p.a'
19730 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19733 case $cf_cv_system_name in
19735 DFT_LIB_SUFFIX='.a'
19736 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19738 cygwin*|mingw*) #(vi
19739 DFT_LIB_SUFFIX='.dll'
19740 DFT_DEP_SUFFIX='.dll.a'
19743 DFT_LIB_SUFFIX='.dylib'
19744 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19749 DFT_LIB_SUFFIX='.so'
19750 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19753 DFT_LIB_SUFFIX='.sl'
19754 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19758 *) DFT_LIB_SUFFIX='.so'
19759 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19763 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
19764 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
19765 echo "$as_me:19765: result: $DFT_DEP_SUFFIX" >&5
19766 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19768 echo "$as_me:19768: checking default object directory" >&5
19769 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
19771 case $DFT_LWR_MODEL in
19772 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19773 normal) DFT_OBJ_SUBDIR='objects' ;;
19774 debug) DFT_OBJ_SUBDIR='obj_g' ;;
19775 profile) DFT_OBJ_SUBDIR='obj_p' ;;
19777 case $cf_cv_system_name in #(vi
19779 DFT_OBJ_SUBDIR='objects' ;;
19781 DFT_OBJ_SUBDIR='obj_s' ;;
19784 echo "$as_me:19784: result: $DFT_OBJ_SUBDIR" >&5
19785 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19787 # libtool thinks it can make c++ shared libraries (perhaps only g++)
19788 if test "$cf_with_cxx" = yes ; then
19789 echo "$as_me:19789: checking c++ library-dependency suffix" >&5
19790 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
19791 if test "$with_libtool" != "no"; then
19792 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19795 case normal in #(vi
19797 CXX_LIB_SUFFIX='.la'
19798 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19801 CXX_LIB_SUFFIX='.a'
19802 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19805 CXX_LIB_SUFFIX='_g.a'
19806 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19809 CXX_LIB_SUFFIX='_p.a'
19810 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19813 case $cf_cv_system_name in
19815 CXX_LIB_SUFFIX='.a'
19816 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19818 cygwin*|mingw*) #(vi
19819 CXX_LIB_SUFFIX='.dll'
19820 CXX_DEP_SUFFIX='.dll.a'
19823 CXX_LIB_SUFFIX='.dylib'
19824 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19829 CXX_LIB_SUFFIX='.so'
19830 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19833 CXX_LIB_SUFFIX='.sl'
19834 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19838 *) CXX_LIB_SUFFIX='.so'
19839 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19843 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
19844 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
19846 echo "$as_me:19846: result: $CXX_LIB_SUFFIX" >&5
19847 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
19851 # do not want -ldl in build except as needed for -lncurses dependency
19852 if test "$with_dlsym" = yes ; then
19853 if test $DFT_LWR_MODEL = shared || \
19854 test $DFT_LWR_MODEL = libtool ; then
19856 # remove dl library from $LIBS
19857 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19861 ### Set up low-level terminfo dependencies for makefiles.
19863 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
19864 # do not need libdl
19866 if test "$with_dlsym" = yes ; then
19868 # remove dl library from $SHLIB_LIST
19869 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19873 if test "$with_ticlib" != no ; then
19875 if test "$with_ticlib" != yes ; then
19876 TICS_NAME=$with_ticlib
19877 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19878 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19879 TICS_LIB_SUFFIX="${with_ticlib}"
19881 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
19882 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
19883 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
19885 TICS_LDFLAGS="-L${LIB_DIR}"
19886 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
19888 TICS_LDFLAGS="-L${LIB_DIR}"
19889 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19892 if test "$with_termlib" != no ; then
19894 if test "$with_termlib" != yes ; then
19895 TINFO_NAME=$with_termlib
19896 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19897 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19898 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19899 TINFO_LIB_SUFFIX="${with_termlib}"
19901 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19902 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
19903 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
19904 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
19907 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19908 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19909 if test "$DFT_LWR_MODEL" = "libtool"; then
19910 TEST_ARGS="${TEST_DEPS}"
19911 TEST_ARG2="${TEST_DEP2}"
19912 TINFO_LDFLAGS="-L${LIB_DIR}"
19913 TINFO_LIBS="$TEST_ARGS"
19914 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
19915 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
19917 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
19918 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
19919 if test "x$with_term_driver" != xno ; then
19920 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19921 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19922 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
19924 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19925 TINFO_LIBS="$TEST_ARGS"
19927 TINFO_LDFLAGS="-L${LIB_DIR}"
19928 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19931 # the next lines are needed for linking libtic over libncurses
19932 TINFO_NAME=${LIB_NAME}
19933 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19934 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
19935 if test "$with_tic_depends" = yes ; then
19936 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19938 TICS_LIST="$SHLIB_LIST"
19941 TINFO_LDFLAGS="-L${LIB_DIR}"
19942 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19945 if test "$DFT_LWR_MODEL" = shared ; then
19946 case $cf_cv_system_name in #(vi
19948 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
19954 if test "$with_dlsym" = yes ; then
19956 # remove dl library from $TICS_LIST
19957 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19961 if test "$DFT_LWR_MODEL" = "libtool"; then
19966 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
19968 case $DFT_LWR_MODEL in
19969 normal|debug|profile)
19971 if test "$GCC" = yes ; then
19972 case $cf_cv_system_name in #(
19973 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
19977 *) #( normally, except when broken
19978 LDFLAGS_STATIC=-static
19979 LDFLAGS_SHARED=-dynamic
19983 case $cf_cv_system_name in #(
19984 aix[4-7]*) #( from ld manpage
19985 LDFLAGS_STATIC=-bstatic
19986 LDFLAGS_SHARED=-bdynamic
19988 hpux*) #( from ld manpage for hpux10.20, hpux11.11
19989 # We could also use just "archive" and "shared".
19990 LDFLAGS_STATIC=-Wl,-a,archive_shared
19991 LDFLAGS_SHARED=-Wl,-a,shared_archive
19993 irix*) #( from ld manpage IRIX64
19994 LDFLAGS_STATIC=-Bstatic
19995 LDFLAGS_SHARED=-Bdynamic
19997 osf[45]*) #( from ld manpage osf4.0d, osf5.1
19998 # alternative "-oldstyle_liblookup" (not in cc manpage)
19999 LDFLAGS_STATIC=-noso
20000 LDFLAGS_SHARED=-so_archive
20003 LDFLAGS_STATIC=-Bstatic
20004 LDFLAGS_SHARED=-Bdynamic
20009 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
20011 echo "$as_me:20011: checking if linker supports switching between static/dynamic" >&5
20012 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
20014 rm -f libconftest.a
20015 cat >conftest.$ac_ext <<EOF
20016 #line 20016 "configure"
20018 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
20020 if { (eval echo "$as_me:20020: \"$ac_compile\"") >&5
20021 (eval $ac_compile) 2>&5
20023 echo "$as_me:20023: \$? = $ac_status" >&5
20024 (exit $ac_status); } ; then
20025 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
20026 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
20030 cf_save_LIBS="$LIBS"
20032 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
20033 cat >conftest.$ac_ext <<_ACEOF
20034 #line 20034 "configure"
20035 #include "confdefs.h"
20037 #line 20037 "configure"
20039 int cf_ldflags_static(FILE *fp);
20045 return cf_ldflags_static(stdin);
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (eval echo "$as_me:20052: \"$ac_link\"") >&5
20053 (eval $ac_link) 2>&5
20055 echo "$as_me:20055: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
20057 { ac_try='test -s conftest$ac_exeext'
20058 { (eval echo "$as_me:20058: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20061 echo "$as_me:20061: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20064 # some linkers simply ignore the -dynamic
20065 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
20067 cf_ldflags_static=no
20070 cf_ldflags_static=yes
20075 echo "$as_me: failed program was:" >&5
20076 cat conftest.$ac_ext >&5
20077 cf_ldflags_static=no
20079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20081 rm -f libconftest.*
20082 LIBS="$cf_save_LIBS"
20084 echo "$as_me:20084: result: $cf_ldflags_static" >&5
20085 echo "${ECHO_T}$cf_ldflags_static" >&6
20087 if test $cf_ldflags_static != yes
20100 echo "$as_me:20100: checking where we will install curses.h" >&5
20101 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
20102 test "$with_overwrite" = no && \
20103 test "x$includedir" = 'x${prefix}/include' && \
20104 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
20105 echo "$as_me:20105: result: $includedir" >&5
20106 echo "${ECHO_T}$includedir" >&6
20108 ### Resolve a conflict between normal and wide-curses by forcing applications
20109 ### that will need libutf8 to add it to their configure script.
20110 if test "$with_overwrite" != no ; then
20111 if test "$NCURSES_LIBUTF8" = 1 ; then
20112 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
20113 { echo "$as_me:20113: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
20114 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
20117 WITH_OVERWRITE=$with_overwrite
20119 # used to separate tack out of the tree
20122 ### predefined stuff for the test programs
20123 cat >>confdefs.h <<\EOF
20124 #define HAVE_SLK_COLOR 1
20127 ### Construct the list of subdirectories for which we'll customize makefiles
20128 ### with the appropriate compile-rules.
20130 echo "$as_me:20130: checking for src modules" >&5
20131 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20133 # dependencies and linker-arguments for test-programs
20134 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20135 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20136 if test "$DFT_LWR_MODEL" = "libtool"; then
20137 TEST_ARGS="${TEST_DEPS}"
20138 TEST_ARG2="${TEST_DEP2}"
20140 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20141 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20144 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
20146 for cf_dir in $modules_to_build
20148 if test -f $srcdir/$cf_dir/modules; then
20150 # We may/may not have tack in the distribution, though the
20152 if test $cf_dir = tack ; then
20153 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20158 if test -z "$cf_cv_src_modules"; then
20159 cf_cv_src_modules=$cf_dir
20161 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20164 # Make the ncurses_cfg.h file record the library interface files as
20165 # well. These are header files that are the same name as their
20166 # directory. Ncurses is the only library that does not follow
20168 if test $cf_dir = tack ; then
20170 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20172 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20174 cat >>confdefs.h <<EOF
20175 #define HAVE_${cf_have_include}_H 1
20178 cat >>confdefs.h <<EOF
20179 #define HAVE_LIB${cf_have_include} 1
20182 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20183 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20184 if test "$DFT_LWR_MODEL" = "libtool"; then
20185 TEST_ARGS="${TEST_DEPS}"
20186 TEST_ARG2="${TEST_DEP2}"
20188 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20189 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20191 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
20195 echo "$as_me:20195: result: $cf_cv_src_modules" >&5
20196 echo "${ECHO_T}$cf_cv_src_modules" >&6
20198 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
20199 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
20202 if test "x$cf_with_manpages" != xno ; then
20203 SRC_SUBDIRS="$SRC_SUBDIRS man"
20205 SRC_SUBDIRS="$SRC_SUBDIRS include"
20206 for cf_dir in $cf_cv_src_modules
20208 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
20210 if test "x$cf_with_tests" != "xno" ; then
20211 SRC_SUBDIRS="$SRC_SUBDIRS test"
20213 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
20214 if test "$cf_with_cxx_binding" != no; then
20215 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
20216 SRC_SUBDIRS="$SRC_SUBDIRS c++"
20219 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
20220 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
20223 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
20224 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
20225 ADA_SUBDIRS="gen src"
20226 if test "x$cf_with_tests" != "xno" ; then
20227 ADA_SUBDIRS="$ADA_SUBDIRS samples"
20232 for cf_dir in $SRC_SUBDIRS
20234 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
20237 if test -n "$ADA_SUBDIRS"; then
20238 for cf_dir in $ADA_SUBDIRS
20240 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
20245 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
20246 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
20247 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
20251 for cf_item in $cf_list_models
20255 libtool) cf_subdir='obj_lo' ;;
20256 normal) cf_subdir='objects' ;;
20257 debug) cf_subdir='obj_g' ;;
20258 profile) cf_subdir='obj_p' ;;
20260 case $cf_cv_system_name in #(vi
20262 cf_subdir='objects' ;;
20264 cf_subdir='obj_s' ;;
20268 for cf_item2 in $DIRS_TO_MAKE
20270 test $cf_item2 = $cf_subdir && break
20272 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
20274 for cf_dir in $DIRS_TO_MAKE
20276 test ! -d $cf_dir && mkdir $cf_dir
20279 # symbols that differ when compiling Ada95 by itself.
20280 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
20282 # values to use as strings
20283 cat >>confdefs.h <<EOF
20284 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
20287 cat >>confdefs.h <<EOF
20288 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
20291 ### Now that we're done running tests, add the compiler-warnings, if any
20296 cf_new_extra_cppflags=
20298 for cf_add_cflags in $EXTRA_CFLAGS
20300 case $cf_fix_cppflags in
20302 case $cf_add_cflags in #(vi
20303 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
20304 case $cf_add_cflags in
20306 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20308 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20309 && test -z "${cf_tst_cflags}" \
20310 && cf_fix_cppflags=yes
20312 if test $cf_fix_cppflags = yes ; then
20313 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20315 elif test "${cf_tst_cflags}" = "\"'" ; then
20316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20321 case "$CPPFLAGS" in
20322 *$cf_add_cflags) #(vi
20325 case $cf_add_cflags in #(vi
20327 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20329 CPPFLAGS=`echo "$CPPFLAGS" | \
20330 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20331 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20335 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20340 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20347 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20349 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20350 && test -z "${cf_tst_cflags}" \
20351 && cf_fix_cppflags=no
20356 if test -n "$cf_new_cflags" ; then
20358 CFLAGS="$CFLAGS $cf_new_cflags"
20361 if test -n "$cf_new_cppflags" ; then
20363 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20366 if test -n "$cf_new_extra_cppflags" ; then
20368 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20371 ### Define substitutions for header files to avoid name-pollution
20373 if test "$cf_cv_have_tcgetattr" = yes ; then
20379 if test "$ac_cv_header_termio_h" = yes ; then
20385 if test "$ac_cv_header_termios_h" = yes ; then
20391 ################################################################################
20392 test "$use_database" = yes && \
20393 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
20395 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
20396 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
20398 if test x"$enable_pc_files" = xyes ; then \
20399 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
20405 # Extract the first word of "tic", so it can be a program name with args.
20406 set dummy tic; ac_word=$2
20407 echo "$as_me:20407: checking for $ac_word" >&5
20408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20409 if test "${ac_cv_path_TIC_PATH+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
20417 ac_save_IFS=$IFS; IFS=$ac_path_separator
20418 ac_dummy="$PATH:/usr/local/ncurses/bin"
20419 for ac_dir in $ac_dummy; do
20421 test -z "$ac_dir" && ac_dir=.
20422 if $as_executable_p "$ac_dir/$ac_word"; then
20423 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
20424 echo "$as_me:20424: found $ac_dir/$ac_word" >&5
20429 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
20433 TIC_PATH=$ac_cv_path_TIC_PATH
20435 if test -n "$TIC_PATH"; then
20436 echo "$as_me:20436: result: $TIC_PATH" >&5
20437 echo "${ECHO_T}$TIC_PATH" >&6
20439 echo "$as_me:20439: result: no" >&5
20440 echo "${ECHO_T}no" >&6
20443 if test -n "$FALLBACK_LIST"
20445 if test "$TIC_PATH" = unknown
20447 { echo "$as_me:20447: WARNING: no tic program found for fallbacks" >&5
20448 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
20452 if test "x$cf_with_tests" != xno ; then
20458 ADAHTML_DIR=../../doc/html/ada
20462 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_SCRIPTS $SUB_MAKEFILES Makefile"
20463 ac_config_commands="$ac_config_commands default"
20464 cat >confcache <<\_ACEOF
20465 # This file is a shell script that caches the results of configure
20466 # tests run on this system so they can be shared between configure
20467 # scripts and configure runs, see configure's option --config-cache.
20468 # It is not useful on other systems. If it contains results you don't
20469 # want to keep, you may remove or edit it.
20471 # config.status only pays attention to the cache file if you give it
20472 # the --recheck option to rerun configure.
20474 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20476 # following values.
20480 # The following way of writing the cache mishandles newlines in values,
20481 # but we know of no workaround that is simple, portable, and efficient.
20482 # So, don't put newlines in cache variables' values.
20483 # Ultrix sh set writes to stderr and can't be redirected directly,
20484 # and sets the high bit in the cache file unless we assign to the vars.
20487 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20489 # `set' does not quote correctly, so add quotes (double-quote
20490 # substitution turns \\\\ into \\, and sed turns \\ into \).
20493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20496 # `set' quotes correctly as required by POSIX, so do not add quotes.
20498 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20507 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20509 if cmp -s $cache_file confcache; then :; else
20510 if test -w $cache_file; then
20511 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20512 cat confcache >$cache_file
20514 echo "not updating unwritable cache $cache_file"
20519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20520 # Let make expand exec_prefix.
20521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20523 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20524 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20525 # trailing colons and then remove the whole line if VPATH becomes empty
20526 # (actually we leave an empty line to preserve line numbers).
20527 if test "x$srcdir" = x.; then
20528 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20529 s/:*\$(srcdir):*/:/;
20530 s/:*\${srcdir}:*/:/;
20532 s/^\([^=]*=[ ]*\):*/\1/;
20538 DEFS=-DHAVE_CONFIG_H
20540 : ${CONFIG_STATUS=./config.status}
20541 ac_clean_files_save=$ac_clean_files
20542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20543 { echo "$as_me:20543: creating $CONFIG_STATUS" >&5
20544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20545 cat >$CONFIG_STATUS <<_ACEOF
20547 # Generated automatically by configure.
20548 # Run this file to recreate the current configuration.
20549 # Compiler output produced by configure, useful for debugging
20550 # configure, is in config.log if it exists.
20553 SHELL=\${CONFIG_SHELL-$SHELL}
20554 ac_cs_invocation="\$0 \$@"
20558 cat >>$CONFIG_STATUS <<\_ACEOF
20559 # Be Bourne compatible
20560 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20563 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20567 # Name of the executable.
20568 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20570 if expr a : '\(a\)' >/dev/null 2>&1; then
20576 rm -f conf$$ conf$$.exe conf$$.file
20578 if ln -s conf$$.file conf$$ 2>/dev/null; then
20579 # We could just check for DJGPP; but this test a) works b) is more generic
20580 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20581 if test -f conf$$.exe; then
20582 # Don't use ln at all; we don't have any links
20587 elif ln conf$$.file conf$$ 2>/dev/null; then
20592 rm -f conf$$ conf$$.exe conf$$.file
20594 as_executable_p="test -f"
20596 # Support unset when possible.
20597 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20604 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
20605 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
20606 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
20607 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
20608 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
20609 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
20610 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
20611 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
20614 # We need space, tab and new line, in precisely that order.
20620 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
20626 # Files that config.status was made for.
20627 if test -n "$ac_config_files"; then
20628 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20631 if test -n "$ac_config_headers"; then
20632 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20635 if test -n "$ac_config_links"; then
20636 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20639 if test -n "$ac_config_commands"; then
20640 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20643 cat >>$CONFIG_STATUS <<\EOF
20646 \`$as_me' instantiates files from templates according to the
20647 current configuration.
20649 Usage: $0 [OPTIONS] [FILE]...
20651 -h, --help print this help, then exit
20652 -V, --version print version number, then exit
20653 -d, --debug don't remove temporary files
20654 --recheck update $as_me by reconfiguring in the same conditions
20655 --file=FILE[:TEMPLATE]
20656 instantiate the configuration file FILE
20657 --header=FILE[:TEMPLATE]
20658 instantiate the configuration header FILE
20660 Configuration files:
20663 Configuration headers:
20666 Configuration commands:
20669 Report bugs to <dickey@invisible-island.net>."
20672 cat >>$CONFIG_STATUS <<EOF
20675 configured by $0, generated by GNU Autoconf 2.52.20120310,
20676 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20678 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20679 Free Software Foundation, Inc.
20680 This config.status script is free software; the Free Software Foundation
20681 gives unlimited permission to copy, distribute and modify it."
20686 cat >>$CONFIG_STATUS <<\EOF
20687 # If no file are specified by the user, then we need to provide default
20688 # value. By we need to know if files were specified by the user.
20694 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20695 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20697 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20701 *) # This is not an option, so the user has probably given explicit
20703 ac_need_defaults=false;;
20707 # Handling of the options.
20709 cat >>$CONFIG_STATUS <<EOF
20710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20711 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20712 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20714 cat >>$CONFIG_STATUS <<\EOF
20715 --version | --vers* | -V )
20716 echo "$ac_cs_version"; exit 0 ;;
20718 # Conflict between --help and --header
20719 { { echo "$as_me:20719: error: ambiguous option: $1
20720 Try \`$0 --help' for more information." >&5
20721 echo "$as_me: error: ambiguous option: $1
20722 Try \`$0 --help' for more information." >&2;}
20723 { (exit 1); exit 1; }; };;
20724 --help | --hel | -h )
20725 echo "$ac_cs_usage"; exit 0 ;;
20726 --debug | --d* | -d )
20728 --file | --fil | --fi | --f )
20730 CONFIG_FILES="$CONFIG_FILES $1"
20731 ac_need_defaults=false;;
20732 --header | --heade | --head | --hea )
20734 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20735 ac_need_defaults=false;;
20737 # This is an error.
20738 -*) { { echo "$as_me:20738: error: unrecognized option: $1
20739 Try \`$0 --help' for more information." >&5
20740 echo "$as_me: error: unrecognized option: $1
20741 Try \`$0 --help' for more information." >&2;}
20742 { (exit 1); exit 1; }; } ;;
20744 *) ac_config_targets="$ac_config_targets $1" ;;
20753 ## ----------------------- ##
20754 ## Running config.status. ##
20755 ## ----------------------- ##
20757 This file was extended by $as_me 2.52.20120310, executed with
20758 CONFIG_FILES = $CONFIG_FILES
20759 CONFIG_HEADERS = $CONFIG_HEADERS
20760 CONFIG_LINKS = $CONFIG_LINKS
20761 CONFIG_COMMANDS = $CONFIG_COMMANDS
20762 > $ac_cs_invocation
20763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20768 cat >>$CONFIG_STATUS <<EOF
20770 # INIT-COMMANDS section.
20773 ### Special initialization commands, used to pass information from the
20774 ### configuration-run into config.status
20777 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20778 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20780 LDCONFIG="$LDCONFIG"
20781 LIBTOOL_VERSION="$LIBTOOL_VERSION"
20782 LIB_NAME="$LIB_NAME"
20783 LIB_PREFIX="$LIB_PREFIX"
20784 LIB_SUBSETS="$LIB_SUBSETS"
20785 LIB_SUFFIX="$LIB_SUFFIX"
20786 LIB_TRACING="$LIB_TRACING"
20788 MAKE_TERMINFO="$MAKE_TERMINFO"
20789 NCURSES_MAJOR="$NCURSES_MAJOR"
20790 NCURSES_MINOR="$NCURSES_MINOR"
20791 NCURSES_OSPEED="$NCURSES_OSPEED"
20792 NCURSES_PATCH="$NCURSES_PATCH"
20793 SRC_SUBDIRS="$SRC_SUBDIRS"
20794 TERMINFO="$TERMINFO"
20795 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
20796 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
20797 TICS_NAME="$TICS_NAME"
20798 TIC_PATH="$TIC_PATH"
20799 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
20800 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
20801 TINFO_NAME="$TINFO_NAME"
20802 TINFO_SUFFIX="$TINFO_SUFFIX"
20803 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20804 WITH_CURSES_H="$with_curses_h"
20805 WITH_ECHO="$with_echo"
20806 WITH_OVERWRITE="$with_overwrite"
20807 cf_LIST_MODELS="$cf_list_models"
20808 cf_cv_abi_version="$cf_cv_abi_version"
20809 cf_cv_do_relink="$cf_cv_do_relink"
20810 cf_cv_do_symlinks="$cf_cv_do_symlinks"
20811 cf_cv_enable_lp64="$cf_cv_enable_lp64"
20812 cf_cv_enable_opaque="$cf_cv_enable_opaque"
20813 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
20814 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
20815 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
20816 cf_cv_rel_version="$cf_cv_rel_version"
20817 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20818 cf_cv_shared_soname='$cf_cv_shared_soname'
20819 cf_cv_shlib_version="$cf_cv_shlib_version"
20820 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20821 cf_cv_system_name="$cf_cv_system_name"
20822 cf_cv_term_driver="$with_term_driver"
20823 cf_with_ada="$cf_with_ada"
20824 cf_with_cxx_binding="$cf_with_cxx_binding"
20825 cf_with_manpages="$cf_with_manpages"
20826 cf_with_tests="$cf_with_tests"
20832 cat >>$CONFIG_STATUS <<\EOF
20833 for ac_config_target in $ac_config_targets
20835 case "$ac_config_target" in
20836 # Handling of arguments.
20837 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
20838 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
20839 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
20840 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
20841 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
20842 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
20843 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20844 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20845 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20846 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
20847 *) { { echo "$as_me:20847: error: invalid argument: $ac_config_target" >&5
20848 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20849 { (exit 1); exit 1; }; };;
20853 # If the user did not use the arguments to specify the items to instantiate,
20854 # then the envvar interface is used. Set only those that are not.
20855 # We use the long form for the default assignment because of an extremely
20856 # bizarre bug on SunOS 4.1.3.
20857 if $ac_need_defaults; then
20858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20859 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20860 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20863 # Create a temporary directory, and hook for its removal unless debugging.
20866 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20867 trap '{ (exit 1); exit 1; }' 1 2 13 15
20870 # Create a (secure) tmp directory for tmp files.
20873 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20874 test -n "$tmp" && test -d "$tmp"
20877 tmp=$TMPDIR/cs$$-$RANDOM
20878 (umask 077 && mkdir $tmp)
20881 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20882 { (exit 1); exit 1; }
20887 cat >>$CONFIG_STATUS <<EOF
20890 # CONFIG_FILES section.
20893 # No need to generate the scripts if there are no CONFIG_FILES.
20894 # This happens for instance when ./config.status config.h
20895 if test -n "\$CONFIG_FILES"; then
20896 # Protect against being on the right side of a sed subst in config.status.
20897 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20898 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20899 s,@SHELL@,$SHELL,;t t
20900 s,@exec_prefix@,$exec_prefix,;t t
20901 s,@prefix@,$prefix,;t t
20902 s,@program_transform_name@,$program_transform_name,;t t
20903 s,@bindir@,$bindir,;t t
20904 s,@sbindir@,$sbindir,;t t
20905 s,@libexecdir@,$libexecdir,;t t
20906 s,@datadir@,$datadir,;t t
20907 s,@sysconfdir@,$sysconfdir,;t t
20908 s,@sharedstatedir@,$sharedstatedir,;t t
20909 s,@localstatedir@,$localstatedir,;t t
20910 s,@libdir@,$libdir,;t t
20911 s,@includedir@,$includedir,;t t
20912 s,@oldincludedir@,$oldincludedir,;t t
20913 s,@infodir@,$infodir,;t t
20914 s,@mandir@,$mandir,;t t
20915 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20916 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20917 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20918 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20919 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20920 s,@build_alias@,$build_alias,;t t
20921 s,@host_alias@,$host_alias,;t t
20922 s,@target_alias@,$target_alias,;t t
20923 s,@ECHO_C@,$ECHO_C,;t t
20924 s,@ECHO_N@,$ECHO_N,;t t
20925 s,@ECHO_T@,$ECHO_T,;t t
20926 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20927 s,@DEFS@,$DEFS,;t t
20928 s,@LIBS@,$LIBS,;t t
20929 s,@top_builddir@,$top_builddir,;t t
20930 s,@EGREP@,$EGREP,;t t
20931 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
20932 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
20933 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
20934 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
20935 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
20936 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
20937 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
20938 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
20939 s,@build@,$build,;t t
20940 s,@build_cpu@,$build_cpu,;t t
20941 s,@build_vendor@,$build_vendor,;t t
20942 s,@build_os@,$build_os,;t t
20943 s,@host@,$host,;t t
20944 s,@host_cpu@,$host_cpu,;t t
20945 s,@host_vendor@,$host_vendor,;t t
20946 s,@host_os@,$host_os,;t t
20947 s,@target@,$target,;t t
20948 s,@target_cpu@,$target_cpu,;t t
20949 s,@target_vendor@,$target_vendor,;t t
20950 s,@target_os@,$target_os,;t t
20952 s,@CFLAGS@,$CFLAGS,;t t
20953 s,@LDFLAGS@,$LDFLAGS,;t t
20954 s,@CPPFLAGS@,$CPPFLAGS,;t t
20955 s,@ac_ct_CC@,$ac_ct_CC,;t t
20956 s,@EXEEXT@,$EXEEXT,;t t
20957 s,@OBJEXT@,$OBJEXT,;t t
20959 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
20960 s,@PROG_EXT@,$PROG_EXT,;t t
20961 s,@LDCONFIG@,$LDCONFIG,;t t
20963 s,@CXXFLAGS@,$CXXFLAGS,;t t
20964 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20966 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20967 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20968 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20969 s,@LINT@,$LINT,;t t
20970 s,@LINT_OPTS@,$LINT_OPTS,;t t
20971 s,@LN_S@,$LN_S,;t t
20972 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20973 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20974 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
20975 s,@SET_MAKE@,$SET_MAKE,;t t
20976 s,@CTAGS@,$CTAGS,;t t
20977 s,@ETAGS@,$ETAGS,;t t
20978 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
20979 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
20980 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
20981 s,@RANLIB@,$RANLIB,;t t
20982 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20984 s,@ac_ct_LD@,$ac_ct_LD,;t t
20986 s,@ac_ct_AR@,$ac_ct_AR,;t t
20987 s,@ARFLAGS@,$ARFLAGS,;t t
20988 s,@DESTDIR@,$DESTDIR,;t t
20989 s,@BUILD_CC@,$BUILD_CC,;t t
20990 s,@BUILD_CPP@,$BUILD_CPP,;t t
20991 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20992 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20993 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20994 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
20995 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20996 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
20997 s,@cf_list_models@,$cf_list_models,;t t
20998 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
20999 s,@LIBTOOL@,$LIBTOOL,;t t
21000 s,@LT_UNDEF@,$LT_UNDEF,;t t
21001 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
21002 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21003 s,@LIB_CREATE@,$LIB_CREATE,;t t
21004 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
21005 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
21006 s,@LIB_PREP@,$LIB_PREP,;t t
21007 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21008 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21009 s,@LIB_LINK@,$LIB_LINK,;t t
21010 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
21011 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
21012 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
21013 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21014 s,@TICS_NAME@,$TICS_NAME,;t t
21015 s,@TINFO_NAME@,$TINFO_NAME,;t t
21016 s,@LIB_NAME@,$LIB_NAME,;t t
21017 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
21018 s,@CC_G_OPT@,$CC_G_OPT,;t t
21019 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
21020 s,@LD_MODEL@,$LD_MODEL,;t t
21021 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21022 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
21023 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21024 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
21025 s,@LINK_PROGS@,$LINK_PROGS,;t t
21026 s,@LINK_TESTS@,$LINK_TESTS,;t t
21027 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21028 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21029 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
21030 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
21031 s,@RPATH_LIST@,$RPATH_LIST,;t t
21032 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21033 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
21034 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
21035 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
21036 s,@XTERM_KBS@,$XTERM_KBS,;t t
21037 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
21038 s,@TERMINFO@,$TERMINFO,;t t
21039 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
21040 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
21041 s,@TERMPATH@,$TERMPATH,;t t
21042 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
21043 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
21044 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
21045 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
21046 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
21047 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
21048 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
21049 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
21050 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
21051 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
21052 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
21053 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
21054 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
21055 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
21056 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
21057 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
21058 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
21059 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
21060 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
21061 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
21062 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
21063 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
21064 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
21065 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
21066 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
21067 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
21068 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
21069 s,@PTHREAD@,$PTHREAD,;t t
21070 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
21071 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
21072 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
21073 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
21074 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21075 s,@ECHO_LT@,$ECHO_LT,;t t
21076 s,@ECHO_LD@,$ECHO_LD,;t t
21077 s,@RULE_CC@,$RULE_CC,;t t
21078 s,@SHOW_CC@,$SHOW_CC,;t t
21079 s,@ECHO_CC@,$ECHO_CC,;t t
21080 s,@ECHO_LINK@,$ECHO_LINK,;t t
21081 s,@ADAFLAGS@,$ADAFLAGS,;t t
21082 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21083 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
21084 s,@ADA_TRACE@,$ADA_TRACE,;t t
21085 s,@MATH_LIB@,$MATH_LIB,;t t
21086 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
21087 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
21088 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
21089 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
21090 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
21091 s,@TEST_LIBS@,$TEST_LIBS,;t t
21092 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
21093 s,@CXXCPP@,$CXXCPP,;t t
21094 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
21095 s,@CXX_AR@,$CXX_AR,;t t
21096 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
21097 s,@CXXLIBS@,$CXXLIBS,;t t
21098 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
21099 s,@gnat_exists@,$gnat_exists,;t t
21100 s,@M4_exists@,$M4_exists,;t t
21101 s,@cf_ada_make@,$cf_ada_make,;t t
21102 s,@cf_compile_generics@,$cf_compile_generics,;t t
21103 s,@cf_generic_objects@,$cf_generic_objects,;t t
21104 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
21105 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
21106 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
21107 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
21108 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
21109 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
21110 s,@cf_ada_package@,$cf_ada_package,;t t
21111 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
21112 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
21113 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
21114 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
21115 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
21116 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
21117 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21118 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21119 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
21120 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
21121 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
21122 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
21123 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
21124 s,@TICS_LIBS@,$TICS_LIBS,;t t
21125 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
21126 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21127 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21128 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21129 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21130 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21131 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21132 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21133 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
21134 s,@TICS_LIST@,$TICS_LIST,;t t
21135 s,@TINFO_LIST@,$TINFO_LIST,;t t
21136 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
21137 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
21138 s,@TEST_ARGS@,$TEST_ARGS,;t t
21139 s,@TEST_DEPS@,$TEST_DEPS,;t t
21140 s,@TEST_ARG2@,$TEST_ARG2,;t t
21141 s,@TEST_DEP2@,$TEST_DEP2,;t t
21142 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
21143 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
21144 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
21145 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
21146 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
21147 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
21148 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
21149 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
21150 s,@cross_compiling@,$cross_compiling,;t t
21151 s,@TIC_PATH@,$TIC_PATH,;t t
21152 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
21153 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
21158 cat >>$CONFIG_STATUS <<\EOF
21159 # Split the substitutions into bite-sized pieces for seds with
21160 # small command number limits, like on Digital OSF/1 and HP-UX.
21161 ac_max_sed_lines=48
21162 ac_sed_frag=1 # Number of current file.
21163 ac_beg=1 # First line for current file.
21164 ac_end=$ac_max_sed_lines # Line after last line for current file.
21167 while $ac_more_lines; do
21168 if test $ac_beg -gt 1; then
21169 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21171 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21173 if test ! -s $tmp/subs.frag; then
21174 ac_more_lines=false
21176 # The purpose of the label and of the branching condition is to
21177 # speed up the sed processing (if there are no `@' at all, there
21178 # is no need to browse any of the substitutions).
21179 # These are the two extra sed commands mentioned above.
21181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21182 if test -z "$ac_sed_cmds"; then
21183 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21185 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21187 ac_sed_frag=`expr $ac_sed_frag + 1`
21189 ac_end=`expr $ac_end + $ac_max_sed_lines`
21192 if test -z "$ac_sed_cmds"; then
21195 fi # test -n "$CONFIG_FILES"
21198 cat >>$CONFIG_STATUS <<\EOF
21199 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21200 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21202 - | *:- | *:-:* ) # input from stdin
21204 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21205 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21206 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21208 * ) ac_file_in=$ac_file.in ;;
21211 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21212 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21213 X"$ac_file" : 'X\(//\)[^/]' \| \
21214 X"$ac_file" : 'X\(//\)$' \| \
21215 X"$ac_file" : 'X\(/\)' \| \
21216 . : '\(.\)' 2>/dev/null ||
21218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21220 /^X\(\/\/\)$/{ s//\1/; q; }
21221 /^X\(\/\).*/{ s//\1/; q; }
21223 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21224 { case "$ac_dir" in
21225 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21229 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21230 case $as_mkdir_dir in
21231 # Skip DOS drivespec
21232 ?:) as_incr_dir=$as_mkdir_dir ;;
21234 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21235 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21240 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21241 # A "../" for each directory in $ac_dir_suffix.
21242 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21244 ac_dir_suffix= ac_dots=
21249 if test -z "$ac_dots"; then
21252 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21254 [\\/]* | ?:[\\/]* )
21255 ac_srcdir=$srcdir$ac_dir_suffix;
21256 ac_top_srcdir=$srcdir ;;
21257 *) # Relative path.
21258 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21259 ac_top_srcdir=$ac_dots$srcdir ;;
21263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21264 *) ac_INSTALL=$ac_dots$INSTALL ;;
21267 if test x"$ac_file" != x-; then
21268 { echo "$as_me:21268: creating $ac_file" >&5
21269 echo "$as_me: creating $ac_file" >&6;}
21272 # Let's still pretend it is `configure' which instantiates (i.e., don't
21273 # use $as_me), people would be surprised to read:
21274 # /* config.h. Generated automatically by config.status. */
21275 configure_input="Generated automatically from `echo $ac_file_in |
21276 sed 's,.*/,,'` by configure."
21278 # First look for the input files in the build tree, otherwise in the
21280 ac_file_inputs=`IFS=:
21281 for f in $ac_file_in; do
21283 -) echo $tmp/stdin ;;
21285 # Absolute (can't be DOS-style, as IFS=:)
21286 test -f "$f" || { { echo "$as_me:21286: error: cannot find input file: $f" >&5
21287 echo "$as_me: error: cannot find input file: $f" >&2;}
21288 { (exit 1); exit 1; }; }
21291 if test -f "$f"; then
21294 elif test -f "$srcdir/$f"; then
21299 { { echo "$as_me:21299: error: cannot find input file: $f" >&5
21300 echo "$as_me: error: cannot find input file: $f" >&2;}
21301 { (exit 1); exit 1; }; }
21304 done` || { (exit 1); exit 1; }
21306 cat >>$CONFIG_STATUS <<EOF
21310 cat >>$CONFIG_STATUS <<\EOF
21312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21313 s,@configure_input@,$configure_input,;t t
21314 s,@srcdir@,$ac_srcdir,;t t
21315 s,@top_srcdir@,$ac_top_srcdir,;t t
21316 s,@INSTALL@,$ac_INSTALL,;t t
21317 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21319 if test x"$ac_file" != x-; then
21320 mv $tmp/out $ac_file
21328 cat >>$CONFIG_STATUS <<\EOF
21331 # CONFIG_HEADER section.
21334 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21335 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21337 # ac_d sets the value in "#define NAME VALUE" lines.
21338 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21339 ac_dB='[ ].*$,\1#\2'
21342 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21343 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21344 ac_iB='\([ ]\),\1#\2define\3'
21347 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21348 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21349 ac_uB='$,\1#\2define\3'
21353 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21356 - | *:- | *:-:* ) # input from stdin
21358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21362 * ) ac_file_in=$ac_file.in ;;
21365 test x"$ac_file" != x- && { echo "$as_me:21365: creating $ac_file" >&5
21366 echo "$as_me: creating $ac_file" >&6;}
21368 # First look for the input files in the build tree, otherwise in the
21370 ac_file_inputs=`IFS=:
21371 for f in $ac_file_in; do
21373 -) echo $tmp/stdin ;;
21375 # Absolute (can't be DOS-style, as IFS=:)
21376 test -f "$f" || { { echo "$as_me:21376: error: cannot find input file: $f" >&5
21377 echo "$as_me: error: cannot find input file: $f" >&2;}
21378 { (exit 1); exit 1; }; }
21381 if test -f "$f"; then
21384 elif test -f "$srcdir/$f"; then
21389 { { echo "$as_me:21389: error: cannot find input file: $f" >&5
21390 echo "$as_me: error: cannot find input file: $f" >&2;}
21391 { (exit 1); exit 1; }; }
21394 done` || { (exit 1); exit 1; }
21395 # Remove the trailing spaces.
21396 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21400 # Transform confdefs.h into a list of #define's. We won't use it as a sed
21401 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
21402 # be either 'cat' or 'sort'.
21403 cat confdefs.h | uniq >conftest.vals
21405 # Break up conftest.vals because some shells have a limit on
21406 # the size of here documents, and old seds have small limits too.
21408 rm -f conftest.tail
21409 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
21410 while grep . conftest.vals >/dev/null
21412 # Write chunks of a limited-size here document to conftest.frag.
21413 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
21414 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
21415 echo 'CEOF' >> $CONFIG_STATUS
21416 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21417 rm -f conftest.vals
21418 mv conftest.tail conftest.vals
21420 rm -f conftest.vals
21422 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
21424 echo ' cat >> conftest.edit <<CEOF
21425 /@DEFS@/r conftest.frag
21428 sed -f conftest.edit $tmp/in > $tmp/out
21430 mv $tmp/out $tmp/in
21431 rm -f conftest.edit conftest.frag
21432 ' >> $CONFIG_STATUS
21434 cat >>$CONFIG_STATUS <<\EOF
21435 # Let's still pretend it is `configure' which instantiates (i.e., don't
21436 # use $as_me), people would be surprised to read:
21437 # /* config.h. Generated automatically by config.status. */
21438 if test x"$ac_file" = x-; then
21439 echo "/* Generated automatically by configure. */" >$tmp/config.h
21441 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21443 cat $tmp/in >>$tmp/config.h
21445 if test x"$ac_file" != x-; then
21446 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21447 { echo "$as_me:21447: $ac_file is unchanged" >&5
21448 echo "$as_me: $ac_file is unchanged" >&6;}
21450 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21451 X"$ac_file" : 'X\(//\)[^/]' \| \
21452 X"$ac_file" : 'X\(//\)$' \| \
21453 X"$ac_file" : 'X\(/\)' \| \
21454 . : '\(.\)' 2>/dev/null ||
21456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21458 /^X\(\/\/\)$/{ s//\1/; q; }
21459 /^X\(\/\).*/{ s//\1/; q; }
21461 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21462 { case "$ac_dir" in
21463 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21467 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21468 case $as_mkdir_dir in
21469 # Skip DOS drivespec
21470 ?:) as_incr_dir=$as_mkdir_dir ;;
21472 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21473 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21480 mv $tmp/config.h $ac_file
21484 rm -f $tmp/config.h
21488 cat >>$CONFIG_STATUS <<\EOF
21490 # CONFIG_COMMANDS section.
21492 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21498 if test "x$cf_with_tests" != xno ; then
21502 if test ! -d $srcdir/$cf_dir; then
21504 elif test -f $srcdir/$cf_dir/programs; then
21505 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
21511 cf_prefix=$LIB_PREFIX
21513 case $cf_cv_shlib_version in #(vi
21515 TINFO_NAME=$TINFO_ARG_SUFFIX
21520 if test -n "$TINFO_SUFFIX" ; then
21521 case $TINFO_SUFFIX in
21523 TINFO_NAME="${TINFO_NAME}tw"
21524 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
21527 TINFO_NAME="${TINFO_NAME}t"
21528 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
21531 TINFO_NAME="${TINFO_NAME}w"
21532 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
21537 for cf_dir in $SRC_SUBDIRS
21539 if test ! -d $srcdir/$cf_dir ; then
21541 elif test -f $srcdir/$cf_dir/modules; then
21545 for cf_item in $cf_LIST_MODELS
21548 case $cf_item in #(vi
21551 cf_depsuf=$cf_suffix
21555 cf_depsuf=$cf_suffix
21559 cf_depsuf=$cf_suffix
21563 cf_depsuf=$cf_suffix
21566 case $cf_cv_system_name in
21569 cf_depsuf=$cf_suffix
21571 cygwin*|mingw*) #(vi
21577 cf_depsuf=$cf_suffix
21583 cf_depsuf=$cf_suffix
21587 cf_depsuf=$cf_suffix
21592 cf_depsuf=$cf_suffix
21596 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21597 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21599 if test $cf_item = shared ; then
21600 if test "$cf_cv_do_symlinks" = yes ; then
21601 case "$cf_cv_shlib_version" in #(vi
21603 case "$cf_cv_system_name" in #(vi
21605 case .${LIB_SUFFIX} in
21607 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21608 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
21611 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21612 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
21615 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21616 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
21619 cf_suffix='.${REL_VERSION}'"$cf_suffix"
21623 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
21627 case "$cf_cv_system_name" in #(vi
21629 case .${LIB_SUFFIX} in
21631 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21632 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
21635 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21636 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
21639 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21640 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
21643 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
21647 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
21652 # cygwin needs import library, and has unique naming convention
21653 # use autodetected ${cf_prefix} for import lib and static lib, but
21654 # use 'cyg' prefix for shared lib.
21655 case $cf_cv_shlib_version in #(vi
21657 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21658 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
21662 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21663 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/lib${cf_dir}${cf_cygsuf}"
21668 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
21671 if test $cf_dir = ncurses ; then
21672 cf_subsets="$LIB_SUBSETS"
21673 cf_r_parts="$cf_subsets"
21674 cf_liblist="$LIBS_TO_MAKE"
21676 while test -n "$cf_r_parts"
21678 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
21679 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
21680 if test "$cf_l_parts" != "$cf_r_parts" ; then
21682 case $cf_l_parts in #(vi
21684 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
21687 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
21693 if test -n "$cf_item"; then
21694 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
21701 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
21704 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
21705 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
21706 $cf_dir/Makefile >$cf_dir/Makefile.out
21707 mv $cf_dir/Makefile.out $cf_dir/Makefile
21709 $AWK -f $srcdir/mk-0th.awk \
21710 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
21711 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21713 for cf_subset in $cf_subsets
21716 for cf_item in $cf_LIST_MODELS
21718 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
21720 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21722 case $cf_item in #(vi
21725 cf_depsuf=$cf_suffix
21729 cf_depsuf=$cf_suffix
21733 cf_depsuf=$cf_suffix
21737 cf_depsuf=$cf_suffix
21740 case $cf_cv_system_name in
21743 cf_depsuf=$cf_suffix
21745 cygwin*|mingw*) #(vi
21751 cf_depsuf=$cf_suffix
21757 cf_depsuf=$cf_suffix
21761 cf_depsuf=$cf_suffix
21766 cf_depsuf=$cf_suffix
21770 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21771 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21774 libtool) cf_subdir='obj_lo' ;;
21775 normal) cf_subdir='objects' ;;
21776 debug) cf_subdir='obj_g' ;;
21777 profile) cf_subdir='obj_p' ;;
21779 case $cf_cv_system_name in #(vi
21781 cf_subdir='objects' ;;
21783 cf_subdir='obj_s' ;;
21787 # Test for case where we build libtinfo with a different name.
21789 if test $cf_dir = ncurses ; then
21792 cf_libname=${cf_libname}$LIB_SUFFIX
21795 cf_libname=$TINFO_LIB_SUFFIX
21798 cf_libname=$TICS_LIB_SUFFIX
21802 cf_libname=${cf_libname}$LIB_SUFFIX
21804 if test -n "${DFT_ARG_SUFFIX}" ; then
21805 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
21806 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
21809 # These dependencies really are for development, not
21810 # builds, but they are useful in porting, too.
21811 cf_depend="../include/ncurses_cfg.h"
21812 if test "$srcdir" = "."; then
21815 cf_reldir="\${srcdir}"
21818 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
21819 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
21820 elif test -f $srcdir/$cf_dir/curses.priv.h; then
21821 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
21825 old_cf_suffix="$cf_suffix"
21826 if test "$cf_cv_shlib_version_infix" = yes ; then
21827 if test -n "$LIB_SUFFIX" ; then
21828 case $LIB_SUFFIX in
21830 cf_libname=`echo $cf_libname | sed 's/tw$//'`
21831 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21835 cf_libname=`echo $cf_libname | sed 's/t$//'`
21836 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21840 cf_libname=`echo $cf_libname | sed 's/w$//'`
21841 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21848 $AWK -f $srcdir/mk-1st.awk \
21849 name=${cf_libname}${cf_dir_suffix} \
21850 traces=$LIB_TRACING \
21853 prefix=$cf_prefix \
21854 suffix=$cf_suffix \
21855 subset=$cf_subset \
21856 driver=$cf_cv_term_driver \
21858 TermlibRoot=$TINFO_NAME \
21859 TermlibSuffix=$TINFO_SUFFIX \
21860 ShlibVer=$cf_cv_shlib_version \
21861 ShlibVerInfix=$cf_cv_shlib_version_infix \
21862 ReLink=${cf_cv_do_relink:-no} \
21863 DoLinks=$cf_cv_do_symlinks \
21864 rmSoLocs=$cf_cv_rm_so_locs \
21865 ldconfig="$LDCONFIG" \
21866 overwrite=$WITH_OVERWRITE \
21867 depend="$cf_depend" \
21869 libtool_version="$LIBTOOL_VERSION" \
21870 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21872 cf_suffix="$old_cf_suffix"
21874 for cf_subdir2 in $cf_subdirs lib
21876 test $cf_subdir = $cf_subdir2 && break
21878 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
21879 $AWK -f $srcdir/mk-2nd.awk \
21881 traces=$LIB_TRACING \
21884 subset=$cf_subset \
21887 crenames=$cf_cv_prog_CC_c_o \
21888 cxxrenames=$cf_cv_prog_CXX_c_o \
21889 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21890 cf_subdirs="$cf_subdirs $cf_subdir"
21895 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
21898 for cf_dir in $SRC_SUBDIRS
21900 if test ! -d $srcdir/$cf_dir ; then
21904 if test -f $cf_dir/Makefile ; then
21907 echo 'libs \' >> Makefile
21908 echo 'install.libs \' >> Makefile
21909 echo 'uninstall.libs ::' >> Makefile
21910 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
21915 if test -f $srcdir/$cf_dir/modules; then
21917 if test -f $srcdir/$cf_dir/headers; then
21918 cat >> Makefile <<CF_EOF
21919 install.includes \\
21920 uninstall.includes \\
21923 if test "$cf_dir" != "c++" ; then
21924 echo 'lint \' >> Makefile
21926 cat >> Makefile <<CF_EOF
21932 uninstall.$cf_dir ::
21933 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21935 elif test -f $srcdir/$cf_dir/headers; then
21936 cat >> Makefile <<CF_EOF
21941 install.includes \\
21942 uninstall.includes ::
21943 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21948 cat >> Makefile <<CF_EOF
21950 install.libs uninstall.libs \\
21951 install.data uninstall.data ::
21952 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
21955 if test "x$cf_with_manpages" = xyes; then
21956 cat >> Makefile <<CF_EOF
21960 cd man && \${MAKE} \${CF_MFLAGS} \$@
21964 cat >> Makefile <<CF_EOF
21967 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
21968 rm -f headers.sh headers.sed mk_shared_lib.sh
21969 rm -f edit_man.* man_alias.*
21970 rm -rf \${DIRS_TO_MAKE}
21973 # Special case: tack's manpage lives in its own directory.
21974 if test "x$cf_with_manpages" = xyes; then
21975 if test -d tack ; then
21976 if test -f $srcdir/$tack.h; then
21977 cat >> Makefile <<CF_EOF
21981 cd tack && \${MAKE} \${CF_MFLAGS} \$@
21987 rm -f headers.sed headers.sh
21989 echo creating headers.sh
21990 cat >headers.sh <<CF_EOF
21992 # This shell script is generated by the 'configure' script. It is invoked in a
21993 # subdirectory of the build tree. It generates a sed-script in the parent
21994 # directory that is used to adjust includes for header files that reside in a
21995 # subdirectory of /usr/include, etc.
21997 while test \$# != 3
21999 PRG="\$PRG \$1"; shift
22004 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
22005 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
22006 echo installing \$SRC in \$DST
22009 if test $WITH_CURSES_H = yes; then
22010 cat >>headers.sh <<CF_EOF
22013 END=\`basename \$DST\`
22014 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22016 NAME=\`basename \$i\`
22017 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22021 echo "" >> \$TMPSED
22027 cat >>headers.sh <<CF_EOF
22030 END=\`basename \$DST\`
22031 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22033 NAME=\`basename \$i\`
22034 if test "\$NAME" = "curses.h"
22036 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22039 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22043 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22048 cat >>headers.sh <<CF_EOF
22050 sed -f \$TMPSED \$SRC > \$TMPSRC
22051 NAME=\`basename \$SRC\`
22053 if test $WITH_CURSES_H != yes; then
22054 cat >>headers.sh <<CF_EOF
22055 test "\$NAME" = "curses.h" && NAME=ncurses.h
22058 cat >>headers.sh <<CF_EOF
22059 # Just in case someone gzip'd manpages, remove the conflicting copy.
22060 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
22062 eval \$PRG \$TMPSRC \$DST/\$NAME
22063 rm -f \$TMPSRC \$TMPSED
22066 chmod 0755 headers.sh
22068 for cf_dir in $SRC_SUBDIRS
22070 if test ! -d $srcdir/$cf_dir ; then
22074 if test -f $srcdir/$cf_dir/headers; then
22075 $AWK -f $srcdir/mk-hdr.awk \
22076 subset="$LIB_SUBSETS" \
22077 compat="$WITH_CURSES_H" \
22078 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
22081 if test -f $srcdir/$cf_dir/modules; then
22082 if test "$cf_dir" != "c++" ; then
22083 cat >>$cf_dir/Makefile <<"CF_EOF"
22084 depend : ${AUTO_SRC}
22085 makedepend -- ${CPPFLAGS} -- ${C_SRC}
22087 # DO NOT DELETE THIS LINE -- make depend depends on it.
22093 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22094 if test -z "$USE_OLD_MAKERULES" ; then
22095 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
22103 cat >>$CONFIG_STATUS <<\EOF
22105 { (exit 0); exit 0; }
22107 chmod +x $CONFIG_STATUS
22108 ac_clean_files=$ac_clean_files_save
22110 # configure is writing to config.log, and then calls config.status.
22111 # config.status does its own redirection, appending to config.log.
22112 # Unfortunately, on DOS this fails, as config.log is still kept open
22113 # by configure, so config.status won't be able to write to it; its
22114 # output is simply discarded. So we exec the FD to /dev/null,
22115 # effectively closing config.log, so it can be properly (re)opened and
22116 # appended to by config.status. When coming back to configure, we
22117 # need to make the FD available again.
22118 if test "$no_create" != yes; then
22121 $SHELL $CONFIG_STATUS || ac_cs_success=false
22123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22124 # would make configure fail if this is the last instruction.
22125 $ac_cs_success || { (exit 1); exit 1; }
22127 ${MAKE:-make} preinstall